Skip to content
Snippets Groups Projects
Commit 9cd04252 authored by Alex Ksandra's avatar Alex Ksandra
Browse files

Mindslayer rares should get their swords in the tight grip now.

parent 294738e2
No related branches found
No related tags found
No related merge requests found
......@@ -103,23 +103,13 @@ newBirthDescriptor{
resolvers.equipbirth{ id=true,
{type="armor", subtype="cloth", name="linen robe", autoreq=true, ego_chance=-1000},
{type="weapon", subtype="greatsword", name="iron greatsword", autoreq=true, ego_chance=-1000},
{type="weapon", subtype="greatsword", name="iron greatsword", autoreq=true, ego_chance=-1000, force_inven = "PSIONIC_FOCUS"}
},
resolvers.inventorybirth{ id=true,
{type="weapon", subtype="mindstar", name="mossy mindstar", autoreq=true, ego_chance=-1000},
{type="weapon", subtype="mindstar", name="mossy mindstar", autoreq=true, ego_chance=-1000},
{type="gem",},
},
resolvers.generic(function(self)
-- Make and wield some alchemist gems
local gs = game.zone:makeEntity(game.level, "object", {type="weapon", subtype="greatsword", name="iron greatsword", ego_chance=-1000}, nil, true)
if gs then
local pf = self:getInven("PSIONIC_FOCUS")
if pf then
self:addObject(pf, gs)
gs:identify(true)
end
end
end),
},
copy_add = {
life_rating = -2,
......
......@@ -76,7 +76,7 @@ function resolvers.calc.equip(t, e)
end
end
if e:wearObject(o, true, false) == false then
if e:wearObject(o, true, false, filter.force_inven or nil, filter.force_item or nil) == false then
e:addObject(e.INVEN_INVEN, o)
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