Skip to content
Snippets Groups Projects
Commit d8e3b0ed authored by dg's avatar dg
Browse files

Added ghost NPCs if you die to them, you can complain to Patryn on the forums :)

git-svn-id: http://svn.net-core.org/repos/t-engine4@1234 51575b47-30f0-44d4-a5cc-537603b46e54
parent ec3395df
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ loadIfNot("/data/general/npcs/canine.lua")
loadIfNot("/data/general/npcs/cold-drake.lua")
--loadIfNot("/data/general/npcs/faeros.lua")
loadIfNot("/data/general/npcs/fire-drake.lua")
loadIfNot("/data/general/npcs/ghost.lua")
loadIfNot("/data/general/npcs/ghoul.lua")
loadIfNot("/data/general/npcs/jelly.lua")
loadIfNot("/data/general/npcs/minor-demon.lua")
......
-- ToME - Tales of Middle-Earth
-- Copyright (C) 2009, 2010 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
local Talents = require("engine.interface.ActorTalents")
newEntity{
define_as = "BASE_NPC_GHOST",
type = "undead", subtype = "ghost",
display = "G", color=colors.WHITE,
combat = { dam=1, atk=1, apr=1 },
body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1 },
autolevel = "warriormage",
ai = "dumb_talented_simple", ai_state = { ai_target="target_player_radius", sense_radius=40, talent_in=2, },
energy = { mod=1 },
stats = { str=14, dex=18, mag=20, con=12 },
rank = 2,
size_category = 3,
infravision = 20,
can_pass = {pass_wall=70},
resists = {all = 35, [DamageType.LIGHT] = -70, [DamageType.DARKNESS] = 65},
no_breath = 1,
stone_immune = 1,
confusion_immune = 1,
fear_immune = 1,
teleport_immune = 0.5,
disease_immune = 1,
poison_immune = 1,
stun_immune = 1,
blind_immune = 1,
see_invisible = 80,
undead = 1,
resolvers.sustains_at_birth(),
}
newEntity{ base = "BASE_NPC_GHOST",
name = "dread", color=colors.ORANGE,
desc = [[It is a form that screams its presence against the eye. Death incarnate, its hideous black body seems to struggle against reality as the universe itself struggles to banish it.]],
level_range = {25, nil}, exp_worth = 1,
rarity = 10,
max_life = resolvers.rngavg(90,100),
combat_armor = 0, combat_def = resolvers.mbonus(10, 50),
invisibility = resolvers.mbonus(5, 25),
ai_state = { talent_in=4, },
combat = { dam=resolvers.mbonus(45, 45), atk=resolvers.mbonus(25, 45), apr=100, dammod={str=0.5, mag=0.5} },
resolvers.talents{
[Talents.T_BURNING_HEX]=3,
[Talents.T_BLUR_SIGHT]=4,
},
}
newEntity{ base = "BASE_NPC_GHOST",
name = "dreadmaster", color=colors.YELLOW,
desc = [[It is an unlife of power almost unequalled. An affront to existence, its very touch abuses and disrupts the flow of life, and its unearthly limbs, of purest black, crush rock and flesh with ease.]],
level_range = {32, nil}, exp_worth = 1,
rarity = 15,
rank = 3,
max_life = resolvers.rngavg(140,170),
combat_armor = 0, combat_def = resolvers.mbonus(10, 50),
invisibility = resolvers.mbonus(10, 40),
combat = { dam=resolvers.mbonus(65, 65), atk=resolvers.mbonus(25, 45), apr=100, dammod={str=0.5, mag=0.5} },
summon = {{type="undead", subtype="ghost", name="dead", number=3, hasxp=false}, },
resolvers.talents{
[Talents.T_SUMMON]=1,
[Talents.T_PHASE_DOOR]=2,
[Talents.T_BLUR_SIGHT]=4,
[Talents.T_DISPERSE_MAGIC]=3,
[Talents.T_SILENCE]=2,
[Talents.T_MIND_DISRUPTION]=3,
[Talents.T_BURNING_HEX]=5,
},
}
newEntity{ base = "BASE_NPC_GHOST",
name = "banshee", color=colors.BLUE,
desc = [[It is a ghostly woman's form that wails mournfully.]],
level_range = {20, nil}, exp_worth = 1,
rarity = 8,
max_life = resolvers.rngavg(40,50), life_rating = 6,
combat_armor = 0, combat_def = resolvers.mbonus(10, 10),
invisibility = resolvers.mbonus(10, 30),
combat = { dam=5, atk=5, apr=100, dammod={str=0.5, mag=0.5} },
resolvers.talents{
[Talents.T_SHRIEK]=4,
[Talents.T_PHASE_DOOR]=2,
[Talents.T_BLUR_SIGHT]=3,
[Talents.T_SILENCE]=2,
[Talents.T_MIND_DISRUPTION]=3,
},
}
......@@ -43,6 +43,7 @@ load("/data/general/npcs/bone-giant.lua", rarity(10))
load("/data/general/npcs/vampire.lua", rarity(10))
load("/data/general/npcs/ghoul.lua", rarity(10))
load("/data/general/npcs/skeleton.lua", rarity(10))
load("/data/general/npcs/ghost.lua", rarity(4))
load("/data/general/npcs/all.lua", rarity(4, 35))
......
......@@ -21,6 +21,7 @@ load("/data/general/npcs/skeleton.lua", rarity(0))
load("/data/general/npcs/ghoul.lua", rarity(1))
load("/data/general/npcs/wight.lua", rarity(3))
load("/data/general/npcs/vampire.lua", rarity(3))
load("/data/general/npcs/ghost.lua", rarity(3))
load("/data/general/npcs/all.lua", rarity(4, 35))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment