/tg/ Station 13 - Modules - TypesVar Details - Proc Details

ammo_box

Vars

ammo_band_colorIf 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_iconIf this and ammo_band_color aren't null, run update_ammo_band() Is the greyscale icon used for the ammo band.
ammo_band_icon_emptyIs the greyscale icon used for the ammo band when it's empty of bullets, only if it's not null.
ammo_typetype that the magazine will be searching for, rejects if not a subtype of
caliberString, used for checking if ammo of different types but still fits can fit inside it; generally used for magazines
casing_phrasingwording used for individual units of ammo, e.g. cartridges (regular ammo), shells (shotgun shells)
max_ammomaximum amount of ammo in the magazine
multiloadAllows multiple bullets to be loaded in from one click of another box/magazine
multiple_sprite_use_baseFor sprite updating, do we use initial(icon_state) or base_icon_state?
multiple_spritesControls 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_emptyWhether the magazine should start with nothing in it
stored_ammolist containing the actual ammo within the magazine

Procs

ammo_listlist of every bullet in the box forces all bullets to lazyload
can_loadWhether or not the box can be loaded, used in overrides
get_and_shuffle_roundGets a round from the magazine and puts it back at the bottom of the ammo list
get_roundgets a round from the magazine
give_roundputs a round into the magazine
top_offtop_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: