Module:Sandbox/AuronTest: Difference between revisions

_getOtherItemBoxText: Correct equipment slot code
(Updated everything for 0.21 (we hope))
(_getOtherItemBoxText: Correct equipment slot code)
Line 278: Line 278:
   result = ''
   result = ''
   --For equipment, show the slot they go in
   --For equipment, show the slot they go in
   if item.equipmentSlot ~= nil then
   if item.validSlots ~= nil then
     result = result.."\r\n|-\r\n|'''Equipment Slot:''' "..Constants.getEquipmentSlotName(item.equipmentSlot)
     result = result.."\r\n|-\r\n|'''Equipment Slot:''' "..table.concat(item.validSlots, ', ')
    if item.isPassiveItem then
      result = result..', Passive'
    end
   end
   end
   --For weapons with a special attack, show the details
   --For weapons with a special attack, show the details