Module:ItemTables: Difference between revisionsGive feedback
Jump to navigation
Jump to search
add fortitude to max health regen |
add move speed and sprint speed, fix signPrefix for 0 values and for values with "m" |
||
| Line 76: | Line 76: | ||
friendly_to_internal["spirit power"] = { "TechPower", "BonusSpirit", "SpiritPower", "BonusSpiritWithMagicShield", "ImbuedTechPower", "AmbushBonusTechPower" } | friendly_to_internal["spirit power"] = { "TechPower", "BonusSpirit", "SpiritPower", "BonusSpiritWithMagicShield", "ImbuedTechPower", "AmbushBonusTechPower" } | ||
friendly_to_internal["bullet lifesteal"] = { "BulletLifestealPercent", "ActiveBonusLifesteal" } | friendly_to_internal["bullet lifesteal"] = { "BulletLifestealPercent", "ActiveBonusLifesteal" } | ||
friendly_to_internal["move speed"] = { "BonusMoveSpeed", "ActiveBonusMoveSpeed" } | |||
friendly_to_internal["sprint speed"] = { "BonusSprintSpeed" } | |||
friendly_to_internal["stamina"] = { "Stamina" } | friendly_to_internal["stamina"] = { "Stamina" } | ||
friendly_to_internal["stamina recovery"] = { "StaminaCooldownReduction" } | friendly_to_internal["stamina recovery"] = { "StaminaCooldownReduction" } | ||
| Line 103: | Line 105: | ||
"HealLifePercentOutOfCombat", | "HealLifePercentOutOfCombat", | ||
"StaminaCooldownReduction" }, | "StaminaCooldownReduction" }, | ||
["m/s"] = { "BonusMoveSpeed" } | ["m/s"] = { "BonusMoveSpeed", "ActiveBonusMoveSpeed", "BonusSprintSpeed" } | ||
} | } | ||
| Line 136: | Line 138: | ||
local function signPrefix(value) | local function signPrefix(value) | ||
local signString = "" | local signString = "" | ||
value = value:gsub( "m", "" ) | |||
value = tonumber(value) | value = tonumber(value) | ||
if (value > 0) then | if (value >= 0) then | ||
return "+<b>" .. value .. "</b>" | return "+<b>" .. value .. "</b>" | ||
elseif (value < 0) then | elseif (value < 0) then | ||
| Line 214: | Line 217: | ||
end | end | ||
return tostring(createTable) | return tostring(createTable) --, listofItems -- this is just a string list, same thing as createTable. delete this when line when finished | ||
end | end | ||
return p | return p | ||