From Arms of God Wiki
bot: render-time derivation refactor (phase 2) |
bot: documentation pass — editor-facing docs (data descriptions, module comments, template usage, Help rewrite) |
||
| Line 1: | Line 1: | ||
-- Module:DamageType — damage-type hub | -- Module:DamageType — readable aliases for the damage-type hub pages. | ||
-- | -- | ||
-- WHAT IT DOES | |||
-- {{#invoke:DamageType|dealtBy| | -- Thin wrappers over Module:StatIndex so the Holy / Fire / Electric | ||
-- {{#invoke:DamageType|boostedBy| | -- Damage hub pages read naturally. No logic of its own; see | ||
-- Module:StatIndex for behavior and source data. | |||
-- | |||
-- HOW TO INVOKE | |||
-- {{#invoke:DamageType|dealtBy|Fire Damage}} == StatIndex|weapons | |||
-- {{#invoke:DamageType|boostedBy|Fire Damage}} == StatIndex|boosters | |||
local StatIndex = require('Module:StatIndex') | local StatIndex = require('Module:StatIndex') | ||
local p = {} | local p = {} | ||
Latest revision as of 16:04, 10 June 2026
Documentation for this module may be created at Module:DamageType/doc
-- Module:DamageType — readable aliases for the damage-type hub pages.
--
-- WHAT IT DOES
-- Thin wrappers over Module:StatIndex so the Holy / Fire / Electric
-- Damage hub pages read naturally. No logic of its own; see
-- Module:StatIndex for behavior and source data.
--
-- HOW TO INVOKE
-- {{#invoke:DamageType|dealtBy|Fire Damage}} == StatIndex|weapons
-- {{#invoke:DamageType|boostedBy|Fire Damage}} == StatIndex|boosters
local StatIndex = require('Module:StatIndex')
local p = {}
function p.dealtBy(frame)
return StatIndex.weapons(frame)
end
function p.boostedBy(frame)
return StatIndex.boosters(frame)
end
return p