Module:ItemTables: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Update disclaimer to match AbilityTable style: dynamic list with code-styled name |
m move overrides back down under the lists. The lists are (supposedly) more important and more frequently edited. It's also especially important for new people editing the module to quickly understand how it works |
||
| Line 4: | Line 4: | ||
local commas = require("Module:Addcommas") | local commas = require("Module:Addcommas") | ||
local GameData = require("Module:GameData") | local GameData = require("Module:GameData") | ||
-- Translate internal attribute names to plain text for module calls | -- Translate internal attribute names to plain text for module calls | ||
| Line 63: | Line 53: | ||
friendly_to_internal["damage reduction"] = { "OutgoingDamagePenaltyPercent", "DeathImmunityDamageReduction" } | friendly_to_internal["damage reduction"] = { "OutgoingDamagePenaltyPercent", "DeathImmunityDamageReduction" } | ||
friendly_to_internal["gravity scale"] = { "GravityScale" } | friendly_to_internal["gravity scale"] = { "GravityScale" } | ||
-- Override dead/hidden stats that exist in data but don't actually work in‑game. | |||
-- Keys are item Names, values are tables of { [internalStatName] = replacementValue } | |||
local deadStatOverrides = { | |||
["Witchmail"] = { CooldownReduction = "0" }, | |||
["Refresher"] = { BulletResist = "0", TechResist = "0" }, | |||
["Glass Cannon"] = { SlowPercent = "0", MovementSpeedSlow = "0" }, | |||
["Majestic Leap"] = { SlowPercent = "0", MovementSpeedSlow = "0" }, | |||
["Improved Spirit"] = { BonusSprintSpeed = "0"}, | |||
} | |||
--- Copies original table with its children as deep as possible. Does not handle metatables. (Copy is needed because Lua passes by reference, not value) | --- Copies original table with its children as deep as possible. Does not handle metatables. (Copy is needed because Lua passes by reference, not value) | ||