Module:ModifierTables: Difference between revisions

m
Multiply building modifier values by max upgrades
(Add Ancient Relics, Summoning Synergies, Township Buildings and Township Seasons to ModifierTables)
m (Multiply building modifier values by max upgrades)
Line 578: Line 578:
row.type = Icons.Icon({'Township', 'Building', section='Buildings', type='Skill', noicon=true})
row.type = Icons.Icon({'Township', 'Building', section='Buildings', type='Skill', noicon=true})
row.typeText = 'Building'
row.typeText = 'Building'
local modList = {}
-- Multiply mod value by max upgrades to get the total modifier value
for modID, value in pairs(building.modifiers) do
modList[modID] = value * building.maxUpgrades
end


local objMods = nil
local objMods = nil
row.modifierText, row.otherModifiers, objMods = getModText(building.modifiers)
row.modifierText, row.otherModifiers, objMods = getModText(modList)
row.val = Modifiers.getModifierValue(objMods.matched)
row.val = Modifiers.getModifierValue(objMods.matched)