Module:DropsLine: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "-- <nowiki> local p = {} local params = require('Module:Paramtest') local lang = mw.language.getContentLanguage() local coins_image = require('Module:Coins image') local curr_image = require('Module:Currency Image') local exchange = require('Module:Exchange') local yesno = require('Module:Yesno') local var = mw.ext.VariablesLua -- precalculated cached data local droppeditem_data = mw.loadJsonData('Module:DropsLine/itemData.json') local geprices_data = mw.loadJsonData...")
 
No edit summary
Tag: Reverted
Line 366:
-- rarity cell contents
local rare_class, rare_sort
--if rarity_value == undefined then
-- rare_class, rare_sort = unpack(rarities[rarity:lower()] or rarities._default)
--elseif rarity_value == false then
-- rare_class, rare_sort = unpack(rarities._default)
--else
-- rare_sort = 1/rarity_value
-- rare_class = get_rarity_class(rarity_value)
if rarity_value ~= nil then
-- If rarity_value is provided, calculate rare_sort and fetch rare_class
rare_sort = 1 / rarity_value
rare_class = get_rarity_class(rarity_value)
else
-- If rarity_value is not provided, fallback to rarity string
rare_class, rare_sort = unpack(rarities[rarity:lower()] or rarities._default)
end
local rollstext = ''

Navigation menu