Module:Abilities-test/card: Difference between revisionsGive feedback
mNo edit summary |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
local p = {} | local p = {} | ||
local data = mw.loadJsonData(" | local data = mw.loadJsonData("Data:AbilityCards.json") | ||
-- Maps attr type to an appropriate image and page link | -- Maps attr type to an appropriate image and page link | ||
| Line 466: | Line 466: | ||
title = "User:Saag/Sandbox/Ability_card_v2/Card/UpgradeBox", | title = "User:Saag/Sandbox/Ability_card_v2/Card/UpgradeBox", | ||
args = { | args = { | ||
index = k, | |||
cost = UPGRADE_COST_MAP[k], | |||
description = frame:preprocess(description), | |||
scale_value = upgrade.Scale and commonutils.round_to_sig_fig(upgrade.Scale.Value, 3), | |||
scale_type = upgrade.Scale and upgrade.Scale.Type, | |||
fontsize = fontsize | |||
} | } | ||
} | } | ||