Module:Sandbox/Sorbasi/Effects

From Monumenta Wiki
Jump to navigation Jump to search

Documentation for this module may be created at Module:Sandbox/Sorbasi/Effects/doc

local p = {}
-- this being its own file, and only conditionally included by things that
-- need it, should mean changes here only cause page regeneration for items
-- with effects, instead of all items

-- lowercase version of api name paired with display name and formatting type
-- single - things like water breathing, hides the strength of 1
-- percent -- default for decimals, but explicit since some effects are +100%
-- roman -- default for whole numbers
p.effects = {
    ["speed"] = {l="Speed", t=""},
    ["resistance"] = {l="Resistance", t=""},
    ["absorption"] = {l="Absorption", t=""},
    ["nightvision"] = {l="Night Vision", t="single"},
    ["haste"] = {l="Haste", t=""},
    ["meleedamage"] = {l="Melee Damage", t="percent"},
    ["instanthealthpercent"] = {l="Instant Health", t="percent"},
    ["knockbackresist"] = {l="Knockback Resistance", t=""},
    ["vanillafireres"] = {l="Fire Resistance", t="single"},
    ["blastresistance"] = {l="Blast Resistance", t="percent"},
    ["fallresistance"] = {l="Fall Resistance", t="percent"},
    ["meleeresistance"] = {l="Melee Resistance", t="percent"},
    ["projectileresistance"] = {l="Projectile Resistance", t="percent"},
    ["magicresistance"] = {l="Magic Resistance", t="percent"},
    ["meleevulnerability"] = {l="Melee Vulnerability", t=""},
    ["magicvulnerability"] = {l="Magic Vulnerability", t=""},
    ["projectilevulnerability"] = {l="Projectile Vulnerability", t=""},
    ["blastvulnerability"] = {l="Blast Vulnerability", t=""},
    ["vulnerability"] = {l="Vulnerability", t="percent"},
    ["maxhealthincrease"] = {l="Max Health", t="percent"},
    ["maxhealthdecrease"] = {l="Max Health", t="percent"},
    ["projectiledamage"] = {l="Projectile Damage", t="percent"},
    ["magicdamage"] = {l="Magic Damage", t="percent"},
    ["attackspeed"] = {l="Attack Speed", t="percent"},
    ["meleeweakness"] = {l="Melee Weakness", t=""},
    ["regeneration"] = {l="Regeneration", t=""},
    ["heal"] = {l="Heal", t=""},
    ["poison"] = {l="Poison", t=""},
    ["jumpboost"] = {l="Jump Boost", t=""},
    ["antiheal"] = {l="AntiHeal", t=""},
    ["nausea"] = {l="Nausea", t=""},
    ["slow"] = {l="Slow", t=""},
    ["damage"] = {l="damage", t=""},
    ["glowing"] = {l="Glowing", t=""},
    ["expbonus"] = {l="Experience", t="percent"},
    ["soulthreadbonus"] = {l="SoulThreadBonus", t=""},
    ["fireresistance"] = {l="Fire Resistance", t=""},
    ["abilitycooldowndecrease"] = {l="Ability Cooldown", t="percent"},
    ["blindness"] = {l="Blindness", t=""},
    ["durabilitysave"] = {l="Durability", t="percent"},
    ["durabilityloss"] = {l="Durability", t="percent"},
    ["arrowsaving"] = {l="Arrow Saving", t="percent"},
    ["waterbreath"] = {l="Water Breathing", t="single"},
    ["conduitpower"] = {l="Conduit Power", t=""},
    ["instantdamagepercent"] = {l="Instant Damage", t="percent"},
    ["badluck"] = {l="Bad Luck", t=""},
    ["miningfatigue"] = {l="Mining Fatigue", t=""},
    ["weakness"] = {l="Weakness", t="percent"},
    ["hunger"] = {l="Hunger", t=""},
    ["wither"] = {l="Wither", t=""},
    ["clucking"] = {l="Clucking", t="single"},
}

--specifically, effects which are colored red instead of default
p.negative = {
    ["weakness"] = true,
    ["meleeweakness"] = true,
    ["vulnerability"] = true,
    ["slow"] = true,
    ["meleevulnerability"] = true,
    ["magicvulnerability"] = true,
    ["projectilevulnerability"] = true,
    ["blastvulnerability"] = true,
    ["maxhealthdecrease"] = true,
    ["antiheal"] = true,
    ["durabilityloss"] = true,
    ["instantdamagepercent"] = true,
}

p.mirror = {
	["weakness"] = "Strength",
    ["meleeweakness"] = "Melee Damage",
    ["vulnerability"] = "Resistance",
    ["slow"] = "Speed",
    ["meleevulnerability"] = "Melee Resistance",
    ["projectilevulnerability"] = "Projectile Resistance",
    ["magicvulnerability"] = "Magic Resistance",
    ["blastvulnerability"] = "Blast Resistance",
    ["maxhealthdecrease"] = "Max Health",
    ["antiheal"] = "Healing Rate",
    ["durabilityloss"] = "Durability",
}

return p