Template:Spells: Difference between revisions
Created page with "{{#cargo_declare:_table=Spells |name=String |sprite=String |type=String |magic=Integer |ability=Integer |cost=String |hp_cast=String |cooldown=String |description=Text |formula=String }}<noinclude> This template declares the Cargo table structure for spells. == Fields == {| class="wikitable" |- ! Field !! Type !! Description |- | name || String || The spell's name |- | sprite || String || Custom sprite override (defaults to type-based spellbook) |- | type || String || S..." |
No edit summary |
||
| Line 9: | Line 9: | ||
|cooldown=String | |cooldown=String | ||
|description=Text | |description=Text | ||
| | |base_damage=String | ||
|magic_scaling=String | |||
|damage_scaling=String | |||
|attack_speed=String | |||
}}<noinclude> | }}<noinclude> | ||
This template declares the Cargo table structure for spells. | This template declares the Cargo table structure for spells. | ||
| Line 16: | Line 19: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Field !! Type !! Description | ! Field !! Type !! Description !! Color | ||
|- | |- | ||
| name || String || The spell's name | | name || String || The spell's name || | ||
|- | |- | ||
| sprite || String || | | sprite || String || Sprite name (e.g., "Red Book", "Blue Book") || | ||
|- | |- | ||
| type || String || Spell type (Light, Blade, Physical, Death, Fire, | | type || String || Spell type (Light, Blade, Physical, Death, Fire, etc.) || | ||
|- | |- | ||
| magic || Integer || Magic stat requirement | | magic || Integer || Magic stat requirement || | ||
|- | |- | ||
| ability || Integer || Ability stat requirement | | ability || Integer || Ability stat requirement || | ||
|- | |- | ||
| cost || String || Mana or health cost | | cost || String || Mana or health cost || | ||
|- | |- | ||
| hp_cast || String || Whether spell can be cast using health ("yes" or "no") | | hp_cast || String || Whether spell can be cast using health ("yes" or "no") || | ||
|- | |- | ||
| cooldown || String || Cooldown in seconds | | cooldown || String || Cooldown in seconds || | ||
|- | |- | ||
| description || Text || Spell description | | description || Text || Spell description || | ||
|- | |- | ||
| | | base_damage || String || Base damage (e.g., "20 Base Damage") || Gold | ||
|- | |||
| magic_scaling || String || Magic scaling (e.g., "75% Magic") || Purple | |||
|- | |||
| damage_scaling || String || Damage scaling (e.g., "65% Damage") || Purple | |||
|- | |||
| attack_speed || String || Attack speed bonus (e.g., "+10 Attack Speed") || Gold | |||
|} | |} | ||
== Example == | |||
<pre> | |||
{{SpellEntry | |||
|name=Crying Arrow | |||
|sprite=Red Book | |||
|type=Arrow | |||
|magic=10 | |||
|ability=35 | |||
|cost=175 | |||
|description=Casts multiple arrows towards direction. | |||
|base_damage=35 Base Damage | |||
|magic_scaling=25% Magic | |||
|damage_scaling=65% Damage | |||
}} | |||
</pre> | |||
[[Category:Cargo declarations]] | [[Category:Cargo declarations]] | ||
</noinclude> | </noinclude> | ||
Revision as of 23:01, 30 January 2026
This template defines the table "Spells". View table. This template declares the Cargo table structure for spells.
Fields
| Field | Type | Description | Color |
|---|---|---|---|
| name | String | The spell's name | |
| sprite | String | Sprite name (e.g., "Red Book", "Blue Book") | |
| type | String | Spell type (Light, Blade, Physical, Death, Fire, etc.) | |
| magic | Integer | Magic stat requirement | |
| ability | Integer | Ability stat requirement | |
| cost | String | Mana or health cost | |
| hp_cast | String | Whether spell can be cast using health ("yes" or "no") | |
| cooldown | String | Cooldown in seconds | |
| description | Text | Spell description | |
| base_damage | String | Base damage (e.g., "20 Base Damage") | Gold |
| magic_scaling | String | Magic scaling (e.g., "75% Magic") | Purple |
| damage_scaling | String | Damage scaling (e.g., "65% Damage") | Purple |
| attack_speed | String | Attack speed bonus (e.g., "+10 Attack Speed") | Gold |
Example
{{SpellEntry
|name=Crying Arrow
|sprite=Red Book
|type=Arrow
|magic=10
|ability=35
|cost=175
|description=Casts multiple arrows towards direction.
|base_damage=35 Base Damage
|magic_scaling=25% Magic
|damage_scaling=65% Damage
}}