Anonymous

Module:Items: Difference between revisions

From Melvor Idle
Added option to getItemStat for getting whether an item is needed for 100% Item Completion
(Added double loot chance items category)
(Added option to getItemStat for getting whether an item is needed for 100% Item Completion)
Line 130: Line 130:
     result = item.description
     result = item.description
     if result == nil or result == '' then result = 'No Description' end
     if result == nil or result == '' then result = 'No Description' end
  elseif StatName == 'completionReq' then
    if item.ignoreCompletion == nil or not item.ignoreCompletion then
      return 'Yes'
    else
      return 'No'
    end
   end
   end
   if result == nil and ZeroIfNil then result = 0 end
   if result == nil and ZeroIfNil then result = 0 end