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

The Master will not drop the staff of absorption in the ID

git-svn-id: http://svn.net-core.org/repos/t-engine4@4624 51575b47-30f0-44d4-a5cc-537603b46e54
parent 66afabb4
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ newEntity{ define_as = "THE_MASTER",
{type="jewelry", subtype="amulet", defined="AMULET_DREAD", random_art_replace={chance=75}, autoreq=true},
},
resolvers.drops{chance=100, nb=5, {tome_drops="boss"} },
resolvers.drops{chance=100, nb=1, {type="weapon", subtype="staff", defined="STAFF_ABSORPTION", special=function() return game.zone.is_dreadfell end} },
resolvers.drops{check=function() return game.zone.is_dreadfell end, chance=100, nb=1, {type="weapon", subtype="staff", defined="STAFF_ABSORPTION"} },
summon = {
{type="undead", number=2, hasxp=true},
......
......@@ -116,6 +116,7 @@ end
function resolvers.calc.drops(t, e)
t = t[1]
if not rng.percent(t.chance or 100) then return nil end
if t.check and not t.check(e) then return nil end
-- Iterate of object requests, try to create them and drops them
for i = 1, (t.nb or 1) do
......
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