Initialize fixing (#17279)

* Initialoize fixing

* diff fix

* add init grep test

* fixed missed ones

* .

* some more

* ,
This commit is contained in:
Kashargul
2025-03-08 13:59:29 -05:00
committed by GitHub
parent 76183beaa5
commit 46bea7cfa2
755 changed files with 1905 additions and 1904 deletions
@@ -404,7 +404,7 @@
desc = "A 14.5mm sabot shell."
projectile_type = /obj/item/projectile/bullet/rifle/a145
/obj/item/ammo_casing/a145/spent/Initialize()
/obj/item/ammo_casing/a145/spent/Initialize(mapload)
. = ..()
expend()
+1 -1
View File
@@ -17,7 +17,7 @@
return
setup_repair_needs()
/obj/item/broken_gun/Initialize()
/obj/item/broken_gun/Initialize(mapload)
. = ..()
spawn(30 SECONDS)
if(!my_guntype && !QDELETED(src))
@@ -20,7 +20,7 @@
var/obj/item/stock_parts/scanning_module/scanmod
var/dropnoms_active = TRUE
/obj/item/bluespace_harpoon/Initialize()
/obj/item/bluespace_harpoon/Initialize(mapload)
. = ..()
scanmod = new(src)
update_fail_chance()
@@ -221,7 +221,7 @@
var/type_name = null
projectile_type = /obj/item/projectile/beam
/obj/item/ammo_casing/microbattery/Initialize()
/obj/item/ammo_casing/microbattery/Initialize(mapload)
. = ..()
pixel_x = rand(-10, 10)
pixel_y = rand(-10, 10)
@@ -170,7 +170,7 @@
holds_charge = TRUE
unique_frequency = TRUE
/obj/item/gun/energy/kinetic_accelerator/Initialize()
/obj/item/gun/energy/kinetic_accelerator/Initialize(mapload)
. = ..()
if(!holds_charge)
empty()
@@ -160,7 +160,7 @@
var/remainingshots = 0 //you may get a limited number of shots regardless of the charge
var/failurechance = 0 //chance per shot of something going awry
/obj/item/gun/energy/captain/Initialize()
/obj/item/gun/energy/captain/Initialize(mapload)
//it's an antique and it's been sitting in a case, unmaintained, for who the hell knows how long - who knows what'll happen when you pull it out?
..()
//first, we decide, does it have a different type of beam? 75% of just being a 40-damage laser, 15% of being less or 0, 10% of being better
@@ -59,7 +59,7 @@
list(mode_name="prune reagents", projectile_type=/obj/item/projectile/energy/floraprune, modifystate="floramut"),
)
/obj/item/gun/energy/floragun/Initialize()
/obj/item/gun/energy/floragun/Initialize(mapload)
. = ..()
emitter = new(src)
+1 -1
View File
@@ -30,7 +30,7 @@
return new projectile_type(src)
/obj/item/gun/magic/Initialize()
/obj/item/gun/magic/Initialize(mapload)
. = ..()
charges = max_charges
if(can_charge)
@@ -15,7 +15,7 @@
else
rating_modifier = FALSE
/obj/item/gun/magnetic/matfed/Initialize()
/obj/item/gun/magnetic/matfed/Initialize(mapload)
. = ..()
if(ispath(manipulator))
manipulator = new manipulator(src)
@@ -196,7 +196,7 @@
else // rating_mod 0 = something's not right
. += span_warning("A display on the side slowly scrolls the text \"ERR: MISSING COMPONENT - EFFICIENCY MODIFICATION INCOMPLETE\".")
/obj/item/gun/magnetic/matfed/phoronbore/Initialize()
/obj/item/gun/magnetic/matfed/phoronbore/Initialize(mapload)
. = ..()
soundloop = new(list(src), 0)
@@ -29,7 +29,7 @@
var/state = 0
/obj/item/gun/magnetic/Initialize()
/obj/item/gun/magnetic/Initialize(mapload)
. = ..()
// So you can have some spawn with components
if(ispath(cell))
@@ -39,7 +39,7 @@
/obj/item/gun/projectile/smartgun/loaded
magazine_type = /obj/item/ammo_magazine/smartgun
/obj/item/gun/projectile/smartgun/Initialize()
/obj/item/gun/projectile/smartgun/Initialize(mapload)
. = ..()
if(!mag_underlay)
mag_underlay = mutable_appearance(icon, icon_state = "smartgun_mag")
+1 -1
View File
@@ -21,7 +21,7 @@
/obj/item/projectile/arc/Bump()
return
/obj/item/projectile/arc/Initialize()
/obj/item/projectile/arc/Initialize(mapload)
shadow = new(get_turf(src))
return ..()
@@ -173,7 +173,7 @@
range = 6
hud_state = "plasma_rifle_blast"
/obj/item/projectile/bullet/magnetic/bore/Initialize(loc, range_mod) // i'm gonna be real honest i dunno how this works but it does
/obj/item/projectile/bullet/magnetic/bore/Initialize(mapload, range_mod) // i'm gonna be real honest i dunno how this works but it does
. = ..()
range += range_mod