mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
[MIRROR] next new to init (#10524)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9156a08bf0
commit
55d696e503
@@ -1,9 +1,10 @@
|
||||
//Replace old magazine with new
|
||||
/obj/item/ammo_magazine/New(loc)
|
||||
/obj/item/ammo_magazine/Initialize(mapload)
|
||||
. = ..()
|
||||
var/replacement_type = magazine_overrides[type]
|
||||
if(replacement_type)
|
||||
qdel(src)
|
||||
return new replacement_type(loc)
|
||||
new replacement_type(loc)
|
||||
return INITIALIZE_HINT_QDEL
|
||||
. = ..()
|
||||
|
||||
|
||||
|
||||
@@ -62,8 +62,8 @@
|
||||
projectile_type = /obj/item/projectile/simple_bullet
|
||||
var/ammo_flags = 0
|
||||
|
||||
/obj/item/ammo_casing/simple/New()
|
||||
..()
|
||||
/obj/item/ammo_casing/simple/Initialize(mapload)
|
||||
. = ..()
|
||||
var/obj/item/projectile/simple_bullet/P = BB
|
||||
if(istype(P))
|
||||
P.ammo_flags = ammo_flags
|
||||
|
||||
Reference in New Issue
Block a user