Skip to content
Snippets Groups Projects
Commit af8dbcb7 authored by DarkGod's avatar DarkGod
Browse files

explain, explain

parent ad17001f
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ newAI("dumb_talented_simple", function(self)
local used_talent
if (not self.ai_state.no_talents or self.ai_state.no_talents == 0) and rng.chance(self.ai_state.talent_in or 6) and self:reactionToward(self.ai_target.actor) < 0 then
used_talent = self:runAI("dumb_talented")
print("dumb ai used talent", used_talent)
-- print("dumb ai used talent", used_talent)
end
if not self.energy.used then
self:runAI(self.ai_state.ai_move or "move_simple")
......
......@@ -536,6 +536,7 @@ function _M:getTextualDesc(compare_with, use_actor)
if self.material_level then desc:add(" ; tier ", tostring(self.material_level)) end
desc:add(true)
if self.slot_forbid == "OFFHAND" then desc:add("It must be held with both hands.", true) end
if self.double_weapon then desc:add("It can be used as a weapon and offhand.", true) end
desc:add(true)
if not self:isIdentified() then -- give limited information if the item is unidentified
......
......@@ -547,7 +547,7 @@ function _M:archeryShoot(targets, talent, tg, params)
game.logPlayer(self, "You are disarmed!")
return nil
end
print("[SHOOT WITH]", weapon.name, ammo.name)
print("[SHOOT WITH]", weapon.name, ammo.name, offweapon and offweapon.name)
local realweapon = weapon
weapon = weapon.combat
local realoffweapon = offweapon
......@@ -612,6 +612,8 @@ function _M:hasArcheryWeapon(type)
if not self:getInven("QUIVER") then return nil, "no ammo" end
local weapon = self:getInven("MAINHAND")[1]
local offweapon = self:getInven("OFFHAND") and self:getInven("OFFHAND")[1]
if not offweapon and weapon and weapon.double_weapon then offweapon = weapon end
local ammo = self:getInven("QUIVER")[1]
if self.inven[self.INVEN_PSIONIC_FOCUS] then
local pf_weapon = self:getInven("PSIONIC_FOCUS")[1]
......@@ -652,6 +654,8 @@ function _M:hasArcheryWeaponQS(type)
if not self:getInven("QS_QUIVER") then return nil, "no ammo" end
local weapon = self:getInven("QS_MAINHAND")[1]
local offweapon = self:getInven("QS_OFFHAND") and self:getInven("QS_OFFHAND")[1]
if not offweapon and weapon and weapon.double_weapon then offweapon = weapon end
local ammo = self:getInven("QS_QUIVER")[1]
if self.inven[self.INVEN_PSIONIC_FOCUS] then
local pf_weapon = self:getInven("QS_PSIONIC_FOCUS")[1]
......
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