Introduces caseless ammo, and a caseless rifle

This commit is contained in:
Spades
2019-02-07 00:35:08 -05:00
committed by VirgoBot
parent 30ab44613d
commit 41e8615c4e
7 changed files with 63 additions and 8 deletions

View File

@@ -13,7 +13,7 @@
var/caliber = "" //Which kind of guns it can be loaded into
var/projectile_type //The bullet type to create when New() is called
var/obj/item/projectile/BB = null //The loaded bullet - make it so that the projectiles are created only when needed?
// var/spent_icon = null
var/caseless = null //Caseless ammo deletes its self once the projectile is fired.
/obj/item/ammo_casing/New()
..()
@@ -47,9 +47,7 @@
BB.name = "[initial(BB.name)] (\"[label_text]\")"
/obj/item/ammo_casing/update_icon()
/* if(spent_icon && !BB)
icon_state = spent_icon*/
if(!BB) // This is really just a much better way of doing this.
if(!BB)
icon_state = "[initial(icon_state)]-spent"
/obj/item/ammo_casing/examine(mob/user)