From Arms of God Wiki

Revision as of 08:30, 10 June 2026 by Ta1ha (talk | contribs) (bot: render-time derivation refactor (phase 2))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:DamageType/doc

-- Module:DamageType — damage-type hub lookups (Arms of God).
-- Render-time aliases over Module:StatIndex's source-data scans, for the
-- Holy / Fire / Electric Damage hub pages:
--   {{#invoke:DamageType|dealtBy|<element>}}    == StatIndex|weapons
--   {{#invoke:DamageType|boostedBy|<element>}}  == 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