Module:Monsters: Difference between revisions

Fixed monster.bones check
(fixed slayer tables i think)
(Fixed monster.bones check)
Line 594: Line 594:
   local result = ''
   local result = ''


   if monster.bones ~= nil then
   if monster.bones ~= nil and monster.bones >= 0 then
     local bones = Items.getItemByID(monster.bones)
     local bones = Items.getItemByID(monster.bones)
     --Show the bones only if either the monster shows up outside of dungeons _or_ the monster drops shards
     --Show the bones only if either the monster shows up outside of dungeons _or_ the monster drops shards
Line 900: Line 900:
   local totalGP = 0
   local totalGP = 0


   if monster.bones ~= nil then
   if monster.bones ~= nil and monster.bones >= 0 then
     local bones = Items.getItemByID(monster.bones)
     local bones = Items.getItemByID(monster.bones)
     --Show the bones only if either the monster shows up outside of dungeons _or_ the monster drops shards
     --Show the bones only if either the monster shows up outside of dungeons _or_ the monster drops shards
Line 1,062: Line 1,062:
     end
     end
     local boneTxt = 'None'
     local boneTxt = 'None'
     if monster.bones ~= nil then
     if monster.bones ~= nil and monster.bones >= 0 then
       local bones = Items.getItemByID(monster.bones)
       local bones = Items.getItemByID(monster.bones)
       boneTxt = Icons.Icon({bones.name, type='item', notext=true})
       boneTxt = Icons.Icon({bones.name, type='item', notext=true})