Anonymous

Module:Sandbox/AuronTest: Difference between revisions

From Melvor Idle
m
no edit summary
mNo edit summary
mNo edit summary
Line 133: Line 133:
   -- Equipment stats first
   -- Equipment stats first
   if Shared.contains(ItemData.EquipmentStatKeys, StatName) and item.equipmentStats ~= nil then
   if Shared.contains(ItemData.EquipmentStatKeys, StatName) and item.equipmentStats ~= nil then
     for i, stat in pairs(item.equipmentStats) do
     local equipStats = p._processEquipmentStats(item.equipmentStats)
      if stat['key'] == StatName then
     result = equipStats[StatName]
        result = stat['value']
        break
      end
    end
    --local equipStats = p._processEquipmentStats(item.equipmentStats)
     --result = equipStats[StatName]
   elseif StatName == 'isTwoHanded' then
   elseif StatName == 'isTwoHanded' then
     if item.validSlots ~= nil and item.occupiesSlots ~= nil then
     if item.validSlots ~= nil and item.occupiesSlots ~= nil then