[MIRROR] next new to init (#10524)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-03-24 14:10:59 -07:00
committed by GitHub
parent 9156a08bf0
commit 55d696e503
165 changed files with 672 additions and 729 deletions

View File

@@ -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
. = ..()

View File

@@ -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