mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
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:
committed by
GitHub
parent
766816954d
commit
9465b565b8
@@ -38,7 +38,7 @@
|
||||
icon_state = "mustard"
|
||||
anchored = FALSE
|
||||
|
||||
/obj/effect/decal/cleanable/liquid_fuel/flamethrower_fuel/Initialize(newLoc, amt = 1, d = 0)
|
||||
/obj/effect/decal/cleanable/liquid_fuel/flamethrower_fuel/Initialize(mapload, newLoc, amt = 1, d = 0)
|
||||
dir = d //Setting this direction means you won't get torched by your own flamethrower.
|
||||
. = ..()
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
canSmoothWith = list(SMOOTH_GROUP_CLEANABLE_DIRT, SMOOTH_GROUP_WALLS)
|
||||
mouse_opacity = FALSE
|
||||
|
||||
/obj/effect/decal/cleanable/dirt/Initialize()
|
||||
/obj/effect/decal/cleanable/dirt/Initialize(mapload)
|
||||
. = ..()
|
||||
QUEUE_SMOOTH_NEIGHBORS(src)
|
||||
if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK))
|
||||
|
||||
@@ -252,7 +252,7 @@
|
||||
max_integrity = 20
|
||||
var/metal = METAL_FOAM_ALUMINUM
|
||||
|
||||
/obj/structure/foamedmetal/Initialize()
|
||||
/obj/structure/foamedmetal/Initialize(mapload)
|
||||
. = ..()
|
||||
recalculate_atmos_connectivity()
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ This spawner places pipe leading up to the interior door, you will need to finis
|
||||
var/one_door_interior //For square airlocks, if you set this then a) only one door will spawn, and b) you can choose if the door should go opposite to how it normally goes. Please use the define
|
||||
var/one_door_exterior //See above
|
||||
|
||||
/obj/effect/spawner/airlock/Initialize()
|
||||
/obj/effect/spawner/airlock/Initialize(mapload)
|
||||
..()
|
||||
forceMove(locate(x + 1, y + 1, z)) //Needs to move because our icon_state implies we are one turf to the northeast, when we're not
|
||||
opposite_interior_direction = turn(interior_direction, 180) //Do it this way (instead of setting it directly) to avoid code mishaps
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
)
|
||||
record_spawn = TRUE
|
||||
|
||||
/obj/effect/spawner/random/dice/Initialize()
|
||||
/obj/effect/spawner/random/dice/Initialize(mapload)
|
||||
. = ..()
|
||||
spawn_loot_count = rand(1, 2)
|
||||
|
||||
|
||||
@@ -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 ..()
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -433,7 +433,7 @@
|
||||
var/node_range = NODERANGE
|
||||
|
||||
|
||||
/obj/structure/alien/weeds/node/Initialize()
|
||||
/obj/structure/alien/weeds/node/Initialize(mapload)
|
||||
add_overlay("weednode")
|
||||
return ..(loc, src)
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
var/invulnerable = FALSE
|
||||
var/shock_cooldown = FALSE
|
||||
|
||||
/obj/structure/fence/Initialize()
|
||||
/obj/structure/fence/Initialize(mapload)
|
||||
. = ..()
|
||||
update_cut_status()
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
cuttable = FALSE
|
||||
var/open = FALSE
|
||||
|
||||
/obj/structure/fence/door/Initialize()
|
||||
/obj/structure/fence/door/Initialize(mapload)
|
||||
. = ..()
|
||||
update_door_status()
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
. = ..()
|
||||
. += "<span class='notice'><b>Alt-Click</b> to deflate [src].</span>"
|
||||
|
||||
/obj/structure/inflatable/Initialize(location)
|
||||
/obj/structure/inflatable/Initialize(mapload, location)
|
||||
. = ..()
|
||||
recalculate_atmos_connectivity()
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
blocks_emissive = FALSE
|
||||
var/static/list/billboard_overlay = list("chasmland", "incompatible", "feed", "warm", "adventure", "plasmaland", "gate", "gate2", "ufo", "notfriendly", "gps", "service", "protection", "diamonds", "step", "paradise", "hell")
|
||||
|
||||
/obj/structure/lavaland_billboard/Initialize()
|
||||
/obj/structure/lavaland_billboard/Initialize(mapload)
|
||||
. = ..()
|
||||
add_overlay(mutable_appearance(/obj/structure/lavaland_billboard, pick(billboard_overlay)))
|
||||
underlays += emissive_appearance(icon, "billboard_lightmask")
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
/// How much foam is on the door. Max 5 levels.
|
||||
var/foam_level = 0
|
||||
|
||||
/obj/structure/mineral_door/Initialize()
|
||||
/obj/structure/mineral_door/Initialize(mapload)
|
||||
. = ..()
|
||||
initial_state = icon_state
|
||||
recalculate_atmos_connectivity()
|
||||
@@ -217,7 +217,7 @@
|
||||
max_integrity = 200
|
||||
rad_insulation = RAD_VERY_LIGHT_INSULATION
|
||||
|
||||
/obj/structure/mineral_door/wood/Initialize()
|
||||
/obj/structure/mineral_door/wood/Initialize(mapload)
|
||||
. = ..()
|
||||
AddComponent(/datum/component/debris, DEBRIS_WOOD, -20, 10)
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
var/atom/attack_atom
|
||||
|
||||
|
||||
/obj/structure/ghost_beacon/Initialize()
|
||||
/obj/structure/ghost_beacon/Initialize(mapload)
|
||||
. = ..()
|
||||
last_ghost_alert = world.time
|
||||
attack_atom = src
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
var/open_sound = 'sound/items/deconstruct.ogg'
|
||||
var/status
|
||||
|
||||
/obj/structure/morgue/Initialize()
|
||||
/obj/structure/morgue/Initialize(mapload)
|
||||
. = ..()
|
||||
update_icon(update_state())
|
||||
set_light(1, LIGHTING_MINIMUM_POWER)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
resistance_flags = LAVA_PROOF | FIRE_PROOF
|
||||
armor = list(MELEE = 30, BULLET = 80, LASER = 90, ENERGY = 90, BOMB = 80, RAD = 100, FIRE = 100, ACID = 100)
|
||||
|
||||
/obj/structures/plasmageyser/Initialize()
|
||||
/obj/structures/plasmageyser/Initialize(mapload)
|
||||
. = ..()
|
||||
START_PROCESSING(SSprocessing, src)
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
name = "airtight plastic flaps"
|
||||
desc = "Heavy duty, airtight, plastic flaps."
|
||||
|
||||
/obj/structure/plasticflaps/mining/Initialize()
|
||||
/obj/structure/plasticflaps/mining/Initialize(mapload)
|
||||
. = ..()
|
||||
recalculate_atmos_connectivity()
|
||||
|
||||
|
||||
@@ -441,7 +441,7 @@ GLOBAL_LIST_EMPTY(safes)
|
||||
drill_x_offset = -1
|
||||
drill_y_offset = 20
|
||||
|
||||
/obj/structure/safe/floor/Initialize()
|
||||
/obj/structure/safe/floor/Initialize(mapload)
|
||||
. = ..()
|
||||
var/turf/T = loc
|
||||
if(!T.transparent_floor)
|
||||
|
||||
@@ -693,7 +693,7 @@
|
||||
/obj/structure/table/wood/fancy/flip(direction)
|
||||
return FALSE
|
||||
|
||||
/obj/structure/table/wood/fancy/Initialize()
|
||||
/obj/structure/table/wood/fancy/Initialize(mapload)
|
||||
. = ..()
|
||||
QUEUE_SMOOTH(src)
|
||||
|
||||
@@ -828,7 +828,7 @@
|
||||
var/list/typecache_can_hold = list(/mob, /obj/item)
|
||||
var/list/held_items = list()
|
||||
|
||||
/obj/structure/table/tray/Initialize()
|
||||
/obj/structure/table/tray/Initialize(mapload)
|
||||
. = ..()
|
||||
typecache_can_hold = typecacheof(typecache_can_hold)
|
||||
for(var/atom/movable/held in get_turf(src))
|
||||
|
||||
Reference in New Issue
Block a user