Template:Missile weapon data store: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 17: Line 17:
! parameter
! parameter
! type
! type
! required?
! default
! default
! description
! description
Line 23: Line 22:
| 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 32:
| shots
| shots
| integer
| integer
| no
| 1
| 1
| number of projectiles fired per action
| number of projectiles fired per action
Line 41: Line 37:
| ammoperaction
| ammoperaction
| integer
| integer
| no
| 1
| 1
| amount of ammo consumed per action
| amount of ammo consumed per action
Line 47: Line 42:
| 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 47:
| 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

Revision as of 19:32, 12 September 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