Post by sekira on Mar 25, 2008 9:58:46 GMT -5
I was playing a new martial artist last night and I think the martial arts skill bonus to damage is not correct.
I'm not at that computer so I can't say for certain, but I'm pretty sure that with a martial arts skill of 30, no weapon or shield or torso armor being used, my to damage bonus was 10, and it should be 150 just from martial arts alone, not including my other bonus.
I looked in passive.lua, and I think I found the error...
should actually be
Variaz, could you confirm that I did find an error, or is the help file out of date? If I did find an error, could you confirm my fix?
I'm not at that computer so I can't say for certain, but I'm pretty sure that with a martial arts skill of 30, no weapon or shield or torso armor being used, my to damage bonus was 10, and it should be 150 just from martial arts alone, not including my other bonus.
I looked in passive.lua, and I think I found the error...
-- When fighting bare handed, use the martial arts skill to boost
-- the damages. Note that claws are NOT considered martial arts!!
if (unarmed()) then
if (p_ptr.body_monster > 0) then
if (inven(INVEN_ARM).tval == 0 or inven(INVEN_ARM).tval == TV_ARM_BAND) then
if (inven(INVEN_BODY).tval == TV_SOFT_ARMOR or inven(INVEN_BODY).tval == TV_HARD_ARMOR or inven(INVEN_BODY).tval == TV_DRAG_ARMOR) then
p_ptr.to_h = p_ptr.to_h + p_ptr.skill[19]
p_ptr.dis_to_h = p_ptr.dis_to_h + p_ptr.skill[19]
else
p_ptr.to_h = p_ptr.to_h + (2 * p_ptr.skill[19])
p_ptr.dis_to_h = p_ptr.dis_to_h + (2 * p_ptr.skill[19])
end
end
else
p_ptr.to_h = p_ptr.to_h + (2 * p_ptr.skill[19])
p_ptr.dis_to_h = p_ptr.dis_to_h + (2 * p_ptr.skill[19])
end
end
should actually be
-- When fighting bare handed, use the martial arts skill to boost
-- the damages. Note that claws are NOT considered martial arts!!
if (unarmed()) then
if (p_ptr.body_monster > 0) then
if (inven(INVEN_ARM).tval == 0 or inven(INVEN_ARM).tval == TV_ARM_BAND) then
if (inven(INVEN_BODY).tval == TV_SOFT_ARMOR or inven(INVEN_BODY).tval == TV_HARD_ARMOR or inven(INVEN_BODY).tval == TV_DRAG_ARMOR) then
p_ptr.to_h = p_ptr.to_h + p_ptr.skill[19]
p_ptr.dis_to_h = p_ptr.dis_to_h + p_ptr.skill[19]
p_ptr.to_d = p_ptr.to_d + (2 * p_ptr.skill[19])
p_ptr.dis_to_d = p_ptr.dis_to_d + (2 * p_ptr.skill[19])
else
p_ptr.to_h = p_ptr.to_h + (2 * p_ptr.skill[19])
p_ptr.dis_to_h = p_ptr.dis_to_h + (2 * p_ptr.skill[19])
p_ptr.to_d = p_ptr.to_d + (5 * p_ptr.skill[19])
p_ptr.dis_to_d = p_ptr.dis_to_d + (5 * p_ptr.skill[19])
end
end
else
p_ptr.to_h = p_ptr.to_h + (2 * p_ptr.skill[19])
p_ptr.dis_to_h = p_ptr.dis_to_h + (2 * p_ptr.skill[19])
p_ptr.to_d = p_ptr.to_d + (5 * p_ptr.skill[19])
p_ptr.dis_to_d = p_ptr.dis_to_d + (5 * p_ptr.skill[19])
end
end
Variaz, could you confirm that I did find an error, or is the help file out of date? If I did find an error, could you confirm my fix?