mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-16 10:35:41 +01:00
a1ea7f13db
* Replaces ammo_casing/caseless and bullet/reusable with elements. * stupid --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> Co-authored-by: Jolly-66 <70232195+Jolly-66@users.noreply.github.com>
20 lines
630 B
Plaintext
20 lines
630 B
Plaintext
/obj/item/ammo_box/magazine/recharge
|
|
name = "power pack"
|
|
desc = "A rechargeable, detachable battery that serves as a magazine for laser rifles."
|
|
icon_state = "oldrifle-20"
|
|
base_icon_state = "oldrifle"
|
|
ammo_type = /obj/item/ammo_casing/laser
|
|
caliber = CALIBER_LASER
|
|
max_ammo = 20
|
|
|
|
/obj/item/ammo_box/magazine/recharge/update_desc()
|
|
. = ..()
|
|
desc = "[initial(desc)] It has [stored_ammo.len] shot\s left."
|
|
|
|
/obj/item/ammo_box/magazine/recharge/update_icon_state()
|
|
. = ..()
|
|
icon_state = "[base_icon_state]-[round(ammo_count(), 4)]"
|
|
|
|
/obj/item/ammo_box/magazine/recharge/attack_self() //No popping out the "bullets"
|
|
return
|