Prototype/AmmoItem: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Added AmmoItem prototype based off of observed values in base ammo.lua file)
 
(Copied over from reload_time LuaItemPrototype description)
Line 17: Line 17:


Number of shots before ammo item is consumed.
Number of shots before ammo item is consumed.
=== reload_time ===
'''Type''': [[Types/float]]
'''Default''': 0
Amount of extra time (in ticks) it takes to reload the weapon after depleting the magazine.

Revision as of 22:41, 28 June 2019

Basics

Prototype type: ammo

Ammo used for a gun.

Mandatory properties

Inherits all properties from Prototype/Item.

ammo_type

Type: Types/AmmoType

Optional properties

magazine_size

Type: Types/uint32

Default: 1

Number of shots before ammo item is consumed.

reload_time

Type: Types/float

Default: 0

Amount of extra time (in ticks) it takes to reload the weapon after depleting the magazine.