Please note that some information on this wiki is still based on the demo version.
If you notice any errors, feel free to correct them.
Template:Kingdom bonus: Difference between revisions
From Super Fantasy Kingdom Official Wiki
casing, probably often used as single statement |
casing fix |
||
| Line 22: | Line 22: | ||
| undead = Holy | | undead = Holy | ||
}}}}}}{{#if:{{{3|}}} | }}}}}}{{#if:{{{3|}}} | ||
| {{#ifeq:{{#var:element}}|water | | {{#ifeq:{{lc:{{#var:element}}}}|water | ||
| {{ItemLink| | | {{ItemLink|{{#var:element}} (element)|text={{#var:element}}}} | ||
| {{ItemLink|{{#var:element}}}} | | {{ItemLink|{{#var:element}}}} | ||
}} | }} | ||
Revision as of 22:50, 12 November 2025
Returns the resistance or weakness of a unit depending on the according kingdom.
Parameters
1- name of the kingdom2-resistanceorweakness3- optional, if not empty the result will be displayed using itemLink
Example
{{kingdom bonus|human|resistance}}
Holy
{{kingdom bonus|human|weakness|1}}
{{kingdom bonus|demon|weakness|1}}
other elements
Plant
File:Earth.png Earth
Fire
Ice
Electric
Dark
File:Holy.png Holy


