Module:ItemData/nav: Difference between revisions

convert max souls to "<="
m Reverted edit by Gammaton32 (talk) to last revision by Monster Domosed
Tag: Rollback
Line 37: Line 37:
         local this_slot = item_data["Slot"]
         local this_slot = item_data["Slot"]
         if item_data["Name"] ~= nil and item_data["IsDisabled"] == false and this_cost ~= nil and this_slot ~= nil then
         if item_data["Name"] ~= nil and item_data["IsDisabled"] == false and this_cost ~= nil and this_slot ~= nil then
             if slot == this_slot and this_cost >= min_souls and this_cost <= max_souls then
             if slot == this_slot and this_cost >= min_souls and this_cost < max_souls then
                 local item_name_english = lang_module.get_string(item_key, "en") -- Get the English name
                 local item_name_english = lang_module.get_string(item_key, "en") -- Get the English name
                 local lang_code = lang_module.get_lang_code() -- Get the language code from the subpage
                 local lang_code = lang_module.get_lang_code() -- Get the language code from the subpage