ammo_box
Vars | |
ammo_band_color | If this and ammo_band_icon aren't null, run update_ammo_band(). Is the color of the band, such as blue on the detective's Iceblox. |
---|---|
ammo_band_icon | If this and ammo_band_color aren't null, run update_ammo_band() Is the greyscale icon used for the ammo band. |
ammo_band_icon_empty | Is the greyscale icon used for the ammo band when it's empty of bullets, only if it's not null. |
ammo_type | type that the magazine will be searching for, rejects if not a subtype of |
caliber | String, used for checking if ammo of different types but still fits can fit inside it; generally used for magazines |
casing_phrasing | wording used for individual units of ammo, e.g. cartridges (regular ammo), shells (shotgun shells) |
max_ammo | maximum amount of ammo in the magazine |
multiload | Allows multiple bullets to be loaded in from one click of another box/magazine |
multiple_sprite_use_base | For sprite updating, do we use initial(icon_state) or base_icon_state? |
multiple_sprites | Controls how sprites are updated for the ammo box; see defines in combat.dm: AMMO_BOX_ONE_SPRITE; AMMO_BOX_PER_BULLET; AMMO_BOX_FULL_EMPTY |
start_empty | Whether the magazine should start with nothing in it |
stored_ammo | list containing the actual ammo within the magazine |
Procs | |
ammo_list | list of every bullet in the box forces all bullets to lazyload |
can_load | Whether or not the box can be loaded, used in overrides |
get_and_shuffle_round | Gets a round from the magazine and puts it back at the bottom of the ammo list |
get_round | gets a round from the magazine |
give_round | puts a round into the magazine |
top_off | top_off is used to refill the magazine to max, in case you want to increase the size of a magazine with VV then refill it at once |
Var Details
ammo_band_color
If this and ammo_band_icon aren't null, run update_ammo_band(). Is the color of the band, such as blue on the detective's Iceblox.
ammo_band_icon
If this and ammo_band_color aren't null, run update_ammo_band() Is the greyscale icon used for the ammo band.
ammo_band_icon_empty
Is the greyscale icon used for the ammo band when it's empty of bullets, only if it's not null.
ammo_type
type that the magazine will be searching for, rejects if not a subtype of
caliber
String, used for checking if ammo of different types but still fits can fit inside it; generally used for magazines
casing_phrasing
wording used for individual units of ammo, e.g. cartridges (regular ammo), shells (shotgun shells)
max_ammo
maximum amount of ammo in the magazine
multiload
Allows multiple bullets to be loaded in from one click of another box/magazine
multiple_sprite_use_base
For sprite updating, do we use initial(icon_state) or base_icon_state?
multiple_sprites
Controls how sprites are updated for the ammo box; see defines in combat.dm: AMMO_BOX_ONE_SPRITE; AMMO_BOX_PER_BULLET; AMMO_BOX_FULL_EMPTY
start_empty
Whether the magazine should start with nothing in it
stored_ammo
list containing the actual ammo within the magazine
Proc Details
ammo_list
list of every bullet in the box forces all bullets to lazyload
can_load
Whether or not the box can be loaded, used in overrides
get_and_shuffle_round
Gets a round from the magazine and puts it back at the bottom of the ammo list
get_round
gets a round from the magazine
give_round
puts a round into the magazine
top_off
top_off is used to refill the magazine to max, in case you want to increase the size of a magazine with VV then refill it at once
Arguments:
- load_type - if you want to specify a specific ammo casing type to load, enter the path here, otherwise it'll use the basic /obj/item/ammo_box/var/ammo_type. Must be a compatible round
- starting - Relevant for revolver cylinders, if FALSE then we mind the nulls that represent the empty cylinders (since those nulls don't exist yet if we haven't initialized when this is TRUE)