refactor/ci: enforce mapload in Initialize args (#26878)

* refactor/ci: enforce mapload in Initialize args

* add new missing mapload arg

* add yet another missing mapload arg

* Update code/modules/power/engines/singularity/particle_accelerator/particle.dm

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

---------

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
warriorstar-orion
2024-10-23 19:07:46 +00:00
committed by GitHub
co-authored by DGamerL
parent 766816954d
commit 9465b565b8
111 changed files with 168 additions and 160 deletions
@@ -101,7 +101,7 @@
var/can_move = TRUE
var/obj/item/chameleon/master = null
/obj/effect/dummy/chameleon/Initialize()
/obj/effect/dummy/chameleon/Initialize(mapload)
. = ..()
ADD_TRAIT(src, TRAIT_EFFECT_CAN_TELEPORT, ROUNDSTART_TRAIT)
@@ -13,7 +13,7 @@
var/brightness_on = 4 //luminosity when on
var/togglesound = 'sound/weapons/empty.ogg'
/obj/item/flashlight/Initialize()
/obj/item/flashlight/Initialize(mapload)
. = ..()
update_brightness()
@@ -228,14 +228,14 @@
/obj/item/flashlight/flare/used
/obj/item/flashlight/flare/used/Initialize()
/obj/item/flashlight/flare/used/Initialize(mapload)
. = ..()
// fuel gets set on New which is annoying so these can't just be vars
fuel = 0
on = 0
update_icon()
/obj/item/flashlight/flare/glowstick/used/Initialize()
/obj/item/flashlight/flare/glowstick/used/Initialize(mapload)
. = ..()
// fuel gets set on New which is annoying so these can't just be vars
fuel = 0
@@ -268,7 +268,7 @@
fuel_upp = 2000
blocks_emissive = FALSE
/obj/item/flashlight/flare/glowstick/Initialize()
/obj/item/flashlight/flare/glowstick/Initialize(mapload)
. = ..()
light_color = color
@@ -315,7 +315,7 @@
icon_state = "random_glowstick"
color = null
/obj/item/flashlight/flare/glowstick/random/Initialize()
/obj/item/flashlight/flare/glowstick/random/Initialize(mapload)
. = ..()
var/T = pick(typesof(/obj/item/flashlight/flare/glowstick) - /obj/item/flashlight/flare/glowstick/random - /obj/item/flashlight/flare/glowstick/emergency)
new T(loc)
@@ -17,7 +17,7 @@
var/cc_beacon = FALSE //set if allowed to teleport to even if on zlevel2
var/wormhole_weaver = FALSE // special beacons for wormwhole weaver
/obj/item/beacon/Initialize()
/obj/item/beacon/Initialize(mapload)
. = ..()
GLOB.beacons |= src
@@ -23,7 +23,7 @@
var/fake_name = "Agent ALERT_A_CODER"
var/static/list/fakename_list
/obj/item/encryptionkey/syndicate/Initialize()
/obj/item/encryptionkey/syndicate/Initialize(mapload)
if(!LAZYLEN(fakename_list))
fakename_list = GLOB.html_colors.Copy()
. = ..()
@@ -90,7 +90,7 @@
instant = TRUE
freqlock = TRUE
/obj/item/radio/headset/alt/deathsquad/Initialize()
/obj/item/radio/headset/alt/deathsquad/Initialize(mapload)
. = ..()
set_frequency(DTH_FREQ)
@@ -67,7 +67,7 @@
GLOB.global_intercoms.Add(src)
update_icon(UPDATE_ICON_STATE | UPDATE_OVERLAYS)
/obj/item/radio/intercom/Initialize()
/obj/item/radio/intercom/Initialize(mapload)
. = ..()
if(!custom_name)
name = "station intercom (General)"
@@ -534,7 +534,7 @@ GLOBAL_LIST_INIT(soil_recipes, list (
resistance_flags = FIRE_PROOF
merge_type = /obj/item/stack/sheet/soil
/obj/item/stack/sheet/soil/Initialize(loc, amt)
/obj/item/stack/sheet/soil/Initialize(mapload, loc, amt)
recipes = GLOB.soil_recipes
return ..()
+2 -2
View File
@@ -15,7 +15,7 @@
var/cooldown = 0
var/pulseicon = "plutonium_core_pulse"
/obj/item/nuke_core/Initialize()
/obj/item/nuke_core/Initialize(mapload)
. = ..()
START_PROCESSING(SSobj, src)
@@ -328,7 +328,7 @@
usesound = 'sound/weapons/bladeslice.ogg'
var/uses_left
/obj/item/scalpel/supermatter/Initialize()
/obj/item/scalpel/supermatter/Initialize(mapload)
. = ..()
uses_left = rand(2, 4)
+5 -5
View File
@@ -269,7 +269,7 @@
/// The list of potential RCD actions.
var/static/list/possible_actions
/obj/item/rcd/Initialize()
/obj/item/rcd/Initialize(mapload)
. = ..()
if(!length(possible_actions))
possible_actions = list()
@@ -358,13 +358,13 @@
user.visible_message("<span class='suicide'>[user] puts the barrel of [src] into [user.p_their()] mouth and pulls the trigger. It looks like [user.p_theyre()] trying to commit suicide!</span>")
if(!afterattack(suicide_tile, user, TRUE))
flags &= ~NODROP
flags &= ~NODROP
return SHAME
user.visible_message("<span class='suicide'>[user] explodes as [src] builds a structure inside [user.p_them()]!</span>")
flags &= ~NODROP
flags &= ~NODROP
user.gib()
return OBLITERATION
return OBLITERATION
/**
* Creates and returns a base64 icon of the given `airlock_type`.
*
@@ -23,7 +23,7 @@
throw_range = 15
attack_verb = list("HONKED")
/obj/item/bikehorn/Initialize()
/obj/item/bikehorn/Initialize(mapload)
. = ..()
AddComponent(/datum/component/squeak, honk_sounds, 50, falloff_exponent = 20) //die off quick please
+2 -2
View File
@@ -834,7 +834,7 @@
///The Article title of the wiki page being opened in the <iframe>, must use underscores '_' and not whitespace for spaces in title
var/wiki_article_title = "Space_Law"
/obj/item/book/manual/wiki/Initialize()
/obj/item/book/manual/wiki/Initialize(mapload)
. = ..()
pages = list({"
<html><meta charset='utf-8'><head></head><body bgcolor='[book_bgcolor]'>
@@ -1010,7 +1010,7 @@
icon_state = "random_book"
var/static/list/banned_books = list(/obj/item/book/manual/random, /obj/item/book/manual/nuclear, /obj/item/book/manual/wiki)
/obj/item/book/manual/random/Initialize()
/obj/item/book/manual/random/Initialize(mapload)
..()
var/newtype = pick(subtypesof(/obj/item/book/manual) - banned_books)
new newtype(loc)
+1 -1
View File
@@ -40,7 +40,7 @@
if(icon_prefix)
icon_state = "[icon_prefix][icon_state]"
/obj/item/shard/Initialize()
/obj/item/shard/Initialize(mapload)
. = ..()
AddComponent(/datum/component/caltrop, force)
set_initial_icon_state()