Module:Items: Difference between revisions

m
typo fix
(Added p.getItemModifier and a related p.getItemStat modifier so that pulling slayerBonusXP properly pulls the new modifier)
m (typo fix)
Line 137: Line 137:
     end
     end
   elseif StatName == 'slayerBonusXP' then
   elseif StatName == 'slayerBonusXP' then
     return p.getItemModifier(item, 'increasedSkillXP', 'Slayer', false)
     return p._getItemModifier(item, 'increasedSkillXP', 'Slayer', false)
   end
   end
   if result == nil and ZeroIfNil then result = 0 end
   if result == nil and ZeroIfNil then result = 0 end