Anonymous

Module:Items: Difference between revisions

From Melvor Idle
Added 'No Description' as a result if an item does not have a description
(getCreationTable now uses the Icons.SkillReq function)
(Added 'No Description' as a result if an item does not have a description)
Line 93: Line 93:
   elseif StatName == 'attackType' then
   elseif StatName == 'attackType' then
     result = p._getWeaponAttackType(item)
     result = p._getWeaponAttackType(item)
  elseif StatName == 'description' then
    result = item.description
    if result == nil or result == '' then result = 'No Description' end
   end
   end
   if result == nil and ZeroIfNil then result = 0 end
   if result == nil and ZeroIfNil then result = 0 end