Template:Missile weapon data store: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Define MissileWeaponData table)
 
(add penetratingammo)
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
|MaxAmmo=Integer
|MaxAmmo=Integer
|AmmoDamageTypes=String
|AmmoDamageTypes=String
|PenetratingAmmo=Boolean
|JoinKey=String
|JoinKey=String
}}
}}
Line 17: Line 18:
! parameter
! parameter
! type
! type
! required?
! default
! default
! description
! description
Line 23: Line 23:
| ammo
| ammo
| string
| string
| yes
| NULL
|
| name of the ammo used by this weapon, such as "energy" or "lead slug"
| name of the ammo used by this weapon, such as "energy" or "lead slug"
|-
|-
| accuracy
| accuracy
| integer
| integer
| no
| 0
| 0
| accuracy value of the missile weapon
| accuracy value of the missile weapon
Line 35: Line 33:
| shots
| shots
| integer
| integer
| no
| 1
| 1
| number of projectiles fired per action
| number of projectiles fired per action
Line 41: Line 38:
| ammoperaction
| ammoperaction
| integer
| integer
| no
| 1
| 1
| amount of ammo consumed per action
| amount of ammo consumed per action
Line 47: Line 43:
| maxammo
| maxammo
| integer
| integer
| no
| NULL
| NULL
| max ammo that can be loaded into the weapon magazine, only for magazine-loaded firearms
| max ammo that can be loaded into the weapon magazine, only for magazine-loaded firearms
Line 53: Line 48:
| ammodamagetypes
| ammodamagetypes
| string
| string
| no
| NULL
| NULL
| damage attribute(s) associated with the weapon's projectiles
| damage attribute(s) associated with the weapon's projectiles
|-
| penetratingammo
| boolean
| NULL
| true if the weapon's projectiles pierce through targets (ex: Eigenrifle)
|}
|}
</noinclude><includeonly>{{#cargo_store:_table=MissileWeaponData
</noinclude><includeonly>{{#cargo_store:_table=MissileWeaponData
|Ammo={{{ammo|}}}
|Ammo={{{ammo|}}}
|AmmoName={{{ammo|}}}
|AmmoName={{{ammo|}}}
|Accuracy={{{accuracy|}}}
|Accuracy={{{accuracy|0}}}
|Shots={{{shots|}}}
|Shots={{{shots|1}}}
|AmmoPerAction={{{ammoperaction|}}}
|AmmoPerAction={{{ammoperaction|1}}}
|MaxAmmo={{{maxammo|}}}
|MaxAmmo={{{maxammo|}}}
|AmmoDamageTypes={{{ammodamagetypes|}}}
|AmmoDamageTypes={{{ammodamagetypes|}}}
|PenetratingAmmo={{{penetratingammo|}}}
|JoinKey={{FULLPAGENAME}}
|JoinKey={{FULLPAGENAME}}
}}</includeonly>
}}</includeonly>

Latest revision as of 20:00, 5 October 2021

This template defines the table "MissileWeaponData". View table.

This template should be called exclusively from the Template:Item page. The template has no actual output, it simply stores the data in cargo.

parameter type default description
ammo string NULL name of the ammo used by this weapon, such as "energy" or "lead slug"
accuracy integer 0 accuracy value of the missile weapon
shots integer 1 number of projectiles fired per action
ammoperaction integer 1 amount of ammo consumed per action
maxammo integer NULL max ammo that can be loaded into the weapon magazine, only for magazine-loaded firearms
ammodamagetypes string NULL damage attribute(s) associated with the weapon's projectiles
penetratingammo boolean NULL true if the weapon's projectiles pierce through targets (ex: Eigenrifle)