ammo_magazine
Procs | |
can_load_casing | Checks if the casing can be loaded into this magazine. Provides user feedback messages on failure. |
---|---|
dump_all_casings | Attempts to dump all casings into target . Provides user feedback on failure. |
load_casing | |
remove_casing | Removes the last casing from the magazine. Provides user feedback on failure. |
Proc Details
can_load_casing
Checks if the casing can be loaded into this magazine. Provides user feedback messages on failure.
Does not include unequip checks by default, as this is intended to be usable in cases those checks would be invalid.
Parameters:
ammo_casing
- The ammo casing to check.user
- The mob performing the action. If not set, feedback messages are skipped.
Returns boolean.
dump_all_casings
Attempts to dump all casings into target
. Provides user feedback on failure.
Parameters:
user
- The mob performing the action.target
(Defaultget_turf(src)
) - The target atom to move the casings to.
Returns a list of the removed casings, or FALSE
.
load_casing
-
Attempts to load the ammo casing into this magazine. Provides user feedback on failure.
-
Checks
can_load_casing()
. -
Parameters:
-
ammo_casing
- The ammo casing to load.
-
user
- The mob performing the action. If not set, feedback messages are skipped.
-
unequip_check
(Boolean, defaultFALSE
) - If set, includes auser.unEquip(ammo_casing, src)
check.
-
Returns boolean. Indicates whether the casing was loaded or not.
remove_casing
Removes the last casing from the magazine. Provides user feedback on failure.
Either user
or target
can be provided, the proc will function either way.
Parameters:
user
- The mob performing the action.target
(Defaultuser
, if set) - The target atom to move the casing to. If a mob, attempts to place it in hands.
Returns the removed casing.