Difference between revisions of "Template:Secondary weapon"

From FreeSpace Wiki
Jump to: navigation, search
(Attempting to add provisions for EMP while trying to increase the readability of the "if" coding.)
m (Got rid of the line breaks since they appear regardless of flag usage.)
Line 84: Line 84:
  
 
'''Additional properties'''
 
'''Additional properties'''
*Weapon is a missile weapon [[Weapons.tbl|(Secondary weapon)]]
+
*Weapon is a missile weapon [[Weapons.tbl|(Secondary weapon)]]{{#if: {{{bomb|}}}|*Weapon is marked as a bomb [[Weapons.tbl#.22Bomb.22|(Bomb)]]}}{{#if: {{{huge|}}}|*Weapon is capable of easily damaging even larger vessels [[Weapons.tbl#.22Huge.22|(Huge)]]}}{{#if: {{{emp|}}}|*Weapon causes an EMP effect on any ship within the blast radius [[Weapons.tbl#.22EMP.22|(EMP)]]}}{{#if: {{{big_ship|}}}|*Weapon cannot be mounted on small ships [[Weapons.tbl#.22Big_Ship.22|(Big Ship)]]}}{{#if: {{{same_turret_cooldown|}}}|*Weapon refire rate is the same on all difficulty levels [[Weapons.tbl#.22same_turret_cooldown.22|(same turret cooldown)]]}}{{#if: {{{no_dumbfire|}}}|*Weapon must be locked onto the target in order to be fired [[Weapons.tbl#.22No Dumbfire.22|(No Dumbfire)]]}}{{#if: {{{shockwave|}}}|*The shockwave doubles the damage against any target that takes a direct hit}}<noinclude>
{{#if: {{{bomb|}}}|*Weapon is marked as a bomb [[Weapons.tbl#.22Bomb.22|(Bomb)]]}}
 
{{#if: {{{huge|}}}|*Weapon is capable of easily damaging even larger vessels [[Weapons.tbl#.22Huge.22|(Huge)]]}}
 
{{#if: {{{big_ship|}}}|*Weapon cannot be mounted on small ships [[Weapons.tbl#.22Big_Ship.22|(Big Ship)]]}}
 
{{#if: {{{same_turret_cooldown|}}}|*Weapon refire rate is the same on all difficulty levels [[Weapons.tbl#.22same_turret_cooldown.22|(same turret cooldown)]]}}
 
{{#if: {{{no_dumbfire|}}}|*Weapon must be locked onto the target in order to be fired [[Weapons.tbl#.22No Dumbfire.22|(No Dumbfire)]]}}
 
{{#if: {{{emp|}}}|*Weapon causes an EMP effect on any ship within the blast radius [[Weapons.tbl#.22EMP.22|(EMP)]]}}
 
{{#if: {{{shockwave|}}}|*The shockwave doubles the damage against any target that takes a direct hit}}<noinclude>
 
  
 
== Usage ==
 
== Usage ==

Revision as of 07:02, 4 July 2020

Name {{{name}}}

Additional properties

Usage

{{Secondary_weapon
|table_style = 
|name = 
|range = 
|reload = 
|velocity = 
|damage = 
|armor_damage =
|shield_damage = 
|subsystem_damage = 
|homing_type = 
|homing_cone = 
|homing_min_time = 
|homing_turn = 
|shockwave = 
|hitpoints = 
|bomb = 
|huge = 
|big_ship = 
|same_turret_cooldown = 
|no_dumbfire = 
}}

Entries in actual page do not have to follow the same order.