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

Psi-wielding a twohanded weapon does not prevent dual-wielding

git-svn-id: http://svn.net-core.org/repos/t-engine4@6638 51575b47-30f0-44d4-a5cc-537603b46e54
parent d213124c
No related branches found
No related tags found
No related merge requests found
......@@ -324,7 +324,7 @@ function _M:canWearObject(o, try_slot)
-- Check that we are not the forbidden slot of any other worn objects
for id, inven in pairs(self.inven) do
if self.inven_def[id].is_worn then
if self.inven_def[id].is_worn and (not self.inven_def[id].infos or not self.inven_def[id].infos.etheral) then
for i, wo in ipairs(inven) do
print("fight: ", o.name, wo.name, "::", wo.slot_forbid, try_slot or o.slot)
if wo.slot_forbid and wo.slot_forbid == (try_slot or o.slot) then
......
......@@ -157,7 +157,7 @@ dofile("/mod/resolvers.lua")
-- Body parts
ActorInventory:defineInventory("MAINHAND", "In main hand", true, "Most weapons are wielded in the main hand.", nil, {equipdoll_back="ui/equipdoll/mainhand_inv.png"})
ActorInventory:defineInventory("OFFHAND", "In off hand", true, "You can use shields or a second weapon in your off-hand, if you have the talents for it.", nil, {equipdoll_back="ui/equipdoll/offhand_inv.png"})
ActorInventory:defineInventory("PSIONIC_FOCUS", "Psionic focus", true, "Object held in your telekinetic grasp. It can be a weapon or some other item to provide a benefit to your psionic powers.", nil, {equipdoll_back="ui/equipdoll/psionic_inv.png"})
ActorInventory:defineInventory("PSIONIC_FOCUS", "Psionic focus", true, "Object held in your telekinetic grasp. It can be a weapon or some other item to provide a benefit to your psionic powers.", nil, {equipdoll_back="ui/equipdoll/psionic_inv.png", etheral=true})
ActorInventory:defineInventory("FINGER", "On fingers", true, "Rings are worn on fingers.", nil, {equipdoll_back="ui/equipdoll/ring_inv.png"})
ActorInventory:defineInventory("NECK", "Around neck", true, "Amulets are worn around the neck.", nil, {equipdoll_back="ui/equipdoll/amulet_inv.png"})
ActorInventory:defineInventory("LITE", "Light source", true, "A light source allows you to see in the dark places of the world.", nil, {equipdoll_back="ui/equipdoll/light_inv.png"})
......
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