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

undeads tii

git-svn-id: http://svn.net-core.org/repos/t-engine4@3028 51575b47-30f0-44d4-a5cc-537603b46e54
parent e9b565ba
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@ newEntity{
size_category = 3,
infravision = 20,
resolvers.racial(),
resolvers.tmasteries{ ["technique/other"]=1, },
open_door = true,
......
......@@ -39,6 +39,7 @@ newEntity{
energy = { mod=1 },
stats = { str=14, dex=12, mag=10, con=12 },
resolvers.racial(),
resolvers.tmasteries{ ["technique/other"]=0.3, ["technique/2hweapon-offense"]=0.3, ["technique/2hweapon-cripple"]=0.3 },
open_door = true,
......
......@@ -483,13 +483,25 @@ local racials = {
T_SKIRMISHER = {last=10, base=0, every=4, max=5},
T_PRIDE_OF_THE_ORCS = {last=30, base=0, every=4, max=5},
},
skeleton = {
T_BONE_ARMOUR = {last=30, base=0, every=4, max=5},
["T_RE-ASSEMBLE"] = {last=40, base=0, every=4, max=5},
T_SHARP_BONES = {last=20, base=0, every=4, max=5},
T_SKELETON = {last=10, base=0, every=4, max=5},
},
ghoul = {
T_GHOUL = {last=10, base=0, every=4, max=5},
T_GHOULISH_LEAP = {last=20, base=0, every=4, max=5},
T_GNAW = {last=40, base=0, every=4, max=5},
T_RETCH = {last=30, base=0, every=4, max=5},
},
}
function resolvers.racial(race)
return {__resolver="racial", race}
end
function resolvers.calc.racial(t, e)
if e.type ~= "humanoid" then return end
if e.type ~= "humanoid" and e.type ~= "undead" then return end
local race = t[1] or e.subtype
if not racials[race] then return end
......
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