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

Tight grip round 2, thank you running game not reloading files.

parent 5d88e341
No related branches found
No related tags found
1 merge request!223Small fixes
......@@ -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,8 +76,12 @@ function resolvers.calc.equip(t, e)
end
end
if e:wearObject(o, true, false) == false then
e:addObject(e.INVEN_INVEN, o)
if e:wearObject(o, true, false, filter.force_inven or nil, filter.force_item or nil) == false then
if filter.force_inven then -- we just really want it
e:addObject(filter.force_inven, o, true, filter.force_item)
else
e:addObject(e.INVEN_INVEN, o)
end
end
-- Do not drop it unless it is an ego or better
......
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