every case of initialize that should have mapload, does (#61623)

## About The Pull Request

stop forgetting to include mapload, if you don't include it then every single subtype past it by default doesn't include it

for example, `obj/item` didn't include mapload so every single item by default didn't fill in mapload

![](https://media.discordapp.net/attachments/823293417186000909/875122648605147146/image0.gif)

## Regex used:

procs without args, not even regex

`/Initialize()`

procs with args
`\/Initialize\((?!mapload)((.)*\w)?`

cleanup of things i didn't want to mapload:
`\/datum\/(.)*\/Initialize\(mapload`
This commit is contained in:
tralezab
2021-09-24 17:56:50 -04:00
committed by GitHub
parent 02acd28602
commit 6c01cc2c01
843 changed files with 1566 additions and 1566 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
// Stop people from "diving into" the crate accidentally, and then detonating it.
divable = FALSE
/obj/structure/closet/crate/secure/loot/Initialize()
/obj/structure/closet/crate/secure/loot/Initialize(mapload)
. = ..()
var/list/digits = list("1", "2", "3", "4", "5", "6", "7", "8", "9", "0")
code = ""
+1 -1
View File
@@ -50,7 +50,7 @@
dir = EAST
pixel_x = -32
/obj/machinery/computer/auxiliary_base/Initialize()
/obj/machinery/computer/auxiliary_base/Initialize(mapload)
. = ..()
AddComponent(/datum/component/gps, "NT_AUX")
@@ -27,11 +27,11 @@
armor = list(MELEE = 30, BULLET = 10, LASER = 10, ENERGY = 20, BOMB = 50, BIO = 100, RAD = 50, FIRE = 50, ACID = 50, WOUND = 10)
resistance_flags = FIRE_PROOF
/obj/item/clothing/suit/hooded/explorer/Initialize()
/obj/item/clothing/suit/hooded/explorer/Initialize(mapload)
. = ..()
AddComponent(/datum/component/armor_plate)
/obj/item/clothing/head/hooded/explorer/Initialize()
/obj/item/clothing/head/hooded/explorer/Initialize(mapload)
. = ..()
AddComponent(/datum/component/armor_plate)
@@ -53,6 +53,6 @@
..()
w_class = mask_adjusted ? WEIGHT_CLASS_NORMAL : WEIGHT_CLASS_SMALL
/obj/item/clothing/mask/gas/explorer/folded/Initialize()
/obj/item/clothing/mask/gas/explorer/folded/Initialize(mapload)
. = ..()
adjustmask()
@@ -31,7 +31,7 @@
var/backstab_bonus = 30
var/wielded = FALSE // track wielded status on item
/obj/item/kinetic_crusher/Initialize()
/obj/item/kinetic_crusher/Initialize(mapload)
. = ..()
RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield)
RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield)
@@ -44,7 +44,7 @@
var/current_cooldown = 0
var/range = 7
/obj/item/t_scanner/adv_mining_scanner/cyborg/Initialize()
/obj/item/t_scanner/adv_mining_scanner/cyborg/Initialize(mapload)
. = ..()
toggle_on()
@@ -82,6 +82,6 @@
pixel_x = -224
pixel_y = -224
/obj/effect/temp_visual/mining_overlay/Initialize()
/obj/effect/temp_visual/mining_overlay/Initialize(mapload)
. = ..()
animate(src, alpha = 0, time = duration, easing = EASE_IN)
@@ -79,7 +79,7 @@
desc = "An integrated electric mining drill."
flags_1 = NONE
/obj/item/pickaxe/drill/cyborg/Initialize()
/obj/item/pickaxe/drill/cyborg/Initialize(mapload)
. = ..()
ADD_TRAIT(src, TRAIT_NODROP, CYBORG_ITEM_TRAIT)
@@ -139,7 +139,7 @@
attack_verb_simple = list("bash", "bludgeon", "thrash", "whack")
sharpness = SHARP_EDGED
/obj/item/shovel/Initialize()
/obj/item/shovel/Initialize(mapload)
. = ..()
AddComponent(/datum/component/butchering, 150, 40) //it's sharp, so it works, but barely.
@@ -32,7 +32,7 @@
var/inert = 0
var/preserved = 0
/obj/item/organ/regenerative_core/Initialize()
/obj/item/organ/regenerative_core/Initialize(mapload)
. = ..()
addtimer(CALLBACK(src, .proc/inert_check), 2400)
@@ -116,7 +116,7 @@
desc = "A strange rock that crackles with power. It can be used to heal completely, but it will rapidly decay into uselessness."
icon_state = "legion_soul"
/obj/item/organ/regenerative_core/legion/Initialize()
/obj/item/organ/regenerative_core/legion/Initialize(mapload)
. = ..()
update_appearance()
+1 -1
View File
@@ -127,7 +127,7 @@
layer = ABOVE_ALL_MOB_LAYER
duration = 4
/obj/effect/temp_visual/resonance_crush/Initialize()
/obj/effect/temp_visual/resonance_crush/Initialize(mapload)
. = ..()
transform = matrix()*1.5
animate(src, transform = matrix()*0.1, alpha = 50, time = 4)
@@ -302,7 +302,7 @@
/obj/item/phylactery,
/obj/item/banhammer)
/obj/item/fakeartefact/Initialize()
/obj/item/fakeartefact/Initialize(mapload)
. = ..()
var/obj/item/I = pick(possible)
name = initial(I.name)
+1 -1
View File
@@ -163,7 +163,7 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons)
density = FALSE
var/beacon_network = "station"
/obj/structure/extraction_point/Initialize()
/obj/structure/extraction_point/Initialize(mapload)
. = ..()
name += " ([rand(100,999)]) ([get_area_name(src, TRUE)])"
GLOB.total_extraction_beacons += src
@@ -15,7 +15,7 @@ GLOBAL_LIST(labor_sheet_values)
/// Needed to send messages to sec radio
var/obj/item/radio/Radio
/obj/machinery/mineral/labor_claim_console/Initialize()
/obj/machinery/mineral/labor_claim_console/Initialize(mapload)
. = ..()
Radio = new /obj/item/radio(src)
Radio.listening = FALSE
+2 -2
View File
@@ -24,7 +24,7 @@
var/regrowth_time_high = 16 MINUTES
var/number_of_variants = 4
/obj/structure/flora/ash/Initialize()
/obj/structure/flora/ash/Initialize(mapload)
. = ..()
base_icon = "[icon_state][rand(1, number_of_variants)]"
icon_state = base_icon
@@ -194,7 +194,7 @@
seed = /obj/item/seeds/lavaland/polypore
wine_power = 20
/obj/item/food/grown/ash_flora/Initialize()
/obj/item/food/grown/ash_flora/Initialize(mapload)
. = ..()
pixel_x = base_pixel_x + rand(-4, 4)
pixel_y = base_pixel_y + rand(-4, 4)
@@ -77,7 +77,7 @@
/// Whether the blink is charged. Set and unset by the blink action. Used as part of setting the appropriate icon states.
var/blink_charged = TRUE
/obj/item/hierophant_club/Initialize()
/obj/item/hierophant_club/Initialize(mapload)
. = ..()
blink = new(src)
@@ -294,7 +294,7 @@
resistance_flags = FIRE_PROOF | LAVA_PROOF | ACID_PROOF
actions_types = list()
/obj/item/clothing/head/helmet/space/hardsuit/hostile_environment/Initialize()
/obj/item/clothing/head/helmet/space/hardsuit/hostile_environment/Initialize(mapload)
. = ..()
update_appearance()
AddComponent(/datum/component/butchering, 5, 150, null, null, null, TRUE, CALLBACK(src, .proc/consume))
@@ -373,7 +373,7 @@
/// Cooldown between attacks
COOLDOWN_DECLARE(attack_cooldown)
/obj/item/soulscythe/Initialize()
/obj/item/soulscythe/Initialize(mapload)
. = ..()
soul = new(src)
RegisterSignal(soul, COMSIG_LIVING_RESIST, .proc/on_resist)
@@ -626,7 +626,7 @@
var/summon_cooldown = 0
var/list/mob/dead/observer/spirits
/obj/item/melee/ghost_sword/Initialize()
/obj/item/melee/ghost_sword/Initialize(mapload)
. = ..()
spirits = list()
START_PROCESSING(SSobj, src)
@@ -832,7 +832,7 @@
/// Throwforce when the saw is opened.
var/open_throwforce = 20
/obj/item/melee/cleaving_saw/Initialize()
/obj/item/melee/cleaving_saw/Initialize(mapload)
. = ..()
AddComponent(/datum/component/transforming, \
transform_cooldown_time = (CLICK_CD_MELEE * 0.25), \
@@ -12,7 +12,7 @@
/// var to check if it got opened by a key
var/spawned_loot = FALSE
/obj/structure/closet/crate/necropolis/tendril/Initialize()
/obj/structure/closet/crate/necropolis/tendril/Initialize(mapload)
. = ..()
RegisterSignal(src, COMSIG_PARENT_ATTACKBY, .proc/try_spawn_loot)
+9 -9
View File
@@ -7,7 +7,7 @@
icon_state = "datadisk1"
var/modkit_design = /datum/design/unique_modkit
/obj/item/disk/design_disk/modkit_disc/Initialize()
/obj/item/disk/design_disk/modkit_disc/Initialize(mapload)
. = ..()
blueprints[1] = new modkit_design
@@ -236,7 +236,7 @@
wisp.forceMove(src)
SSblackbox.record_feedback("tally", "wisp_lantern", 1, "Returned")
/obj/item/wisp_lantern/Initialize()
/obj/item/wisp_lantern/Initialize(mapload)
. = ..()
wisp = new(src)
@@ -337,7 +337,7 @@
icon_state = "red_cube"
teleport_color = "#FD3F48"
/obj/item/warp_cube/red/Initialize()
/obj/item/warp_cube/red/Initialize(mapload)
. = ..()
if(!linked)
var/obj/item/warp_cube/blue = new(src.loc)
@@ -358,7 +358,7 @@
actions_types = list(/datum/action/item_action/immortality)
var/cooldown = 0
/obj/item/immortality_talisman/Initialize()
/obj/item/immortality_talisman/Initialize(mapload)
. = ..()
AddComponent(/datum/component/anti_magic, TRUE, TRUE, TRUE)
@@ -439,7 +439,7 @@
name = "paradox bag"
desc = "Somehow, it's in two places at once."
/obj/item/shared_storage/red/Initialize()
/obj/item/shared_storage/red/Initialize(mapload)
. = ..()
var/datum/component/storage/STR = AddComponent(/datum/component/storage/concrete)
STR.max_w_class = WEIGHT_CLASS_NORMAL
@@ -594,7 +594,7 @@
allowed = list(/obj/item/flashlight, /obj/item/tank/internals, /obj/item/pickaxe, /obj/item/spear, /obj/item/organ/regenerative_core/legion, /obj/item/kitchen/knife, /obj/item/kinetic_crusher, /obj/item/resonator, /obj/item/melee/cleaving_saw)
/obj/item/clothing/suit/space/hardsuit/berserker/Initialize()
/obj/item/clothing/suit/space/hardsuit/berserker/Initialize(mapload)
. = ..()
AddComponent(/datum/component/anti_magic, TRUE, TRUE, TRUE, ITEM_SLOT_OCLOTHING)
@@ -626,7 +626,7 @@
/// Status of berserk
var/berserk_active = FALSE
/obj/item/clothing/head/helmet/space/hardsuit/berserker/Initialize()
/obj/item/clothing/head/helmet/space/hardsuit/berserker/Initialize(mapload)
. = ..()
ADD_TRAIT(src, TRAIT_NODROP, LOCKED_HELMET_TRAIT)
@@ -706,7 +706,7 @@
custom_materials = null
var/obj/effect/proc_holder/scan/scan
/obj/item/clothing/glasses/godeye/Initialize()
/obj/item/clothing/glasses/godeye/Initialize(mapload)
. = ..()
scan = new(src)
@@ -879,7 +879,7 @@
ATTACK_SHATTER = list(COMBO_STEPS = list(RIGHT_SLASH, LEFT_SLASH, RIGHT_SLASH, LEFT_SLASH), COMBO_PROC = .proc/shatter),
)
/obj/item/cursed_katana/Initialize()
/obj/item/cursed_katana/Initialize(mapload)
. = ..()
for(var/combo in combo_list)
var/list/combo_specifics = combo_list[combo]
+2 -2
View File
@@ -68,7 +68,7 @@
var/obj/machinery/mineral/processing_unit/machine = null
var/machinedir = EAST
/obj/machinery/mineral/processing_unit_console/Initialize()
/obj/machinery/mineral/processing_unit_console/Initialize(mapload)
. = ..()
machine = locate(/obj/machinery/mineral/processing_unit, get_step(src, machinedir))
if (machine)
@@ -130,7 +130,7 @@
var/selected_alloy = null
var/datum/techweb/stored_research
/obj/machinery/mineral/processing_unit/Initialize()
/obj/machinery/mineral/processing_unit/Initialize(mapload)
. = ..()
proximity_monitor = new(src, 1)
var/list/allowed_materials = list(/datum/material/iron,
+1 -1
View File
@@ -12,7 +12,7 @@
/// Direction for which console looks for stacking machine to connect to
var/machinedir = SOUTHEAST
/obj/machinery/mineral/stacking_unit_console/Initialize()
/obj/machinery/mineral/stacking_unit_console/Initialize(mapload)
. = ..()
machine = locate(/obj/machinery/mineral/stacking_machine, get_step(src, machinedir))
if (machine)
+2 -2
View File
@@ -75,7 +75,7 @@
src.equipment_path = path
src.cost = cost
/obj/machinery/mineral/equipment_vendor/Initialize()
/obj/machinery/mineral/equipment_vendor/Initialize(mapload)
. = ..()
build_inventory()
@@ -209,7 +209,7 @@
name = "golem ship equipment vendor"
circuit = /obj/item/circuitboard/machine/mining_equipment_vendor/golem
/obj/machinery/mineral/equipment_vendor/golem/Initialize()
/obj/machinery/mineral/equipment_vendor/golem/Initialize(mapload)
desc += "\nIt seems a few selections have been added."
prize_list += list(
new /datum/data/mining_equipment("Extra Id", /obj/item/card/id/advanced/mining, 250),
+1 -1
View File
@@ -8,7 +8,7 @@
var/set_luminosity = 8
var/set_cap = 0
/obj/effect/light_emitter/Initialize()
/obj/effect/light_emitter/Initialize(mapload)
. = ..()
set_light(set_luminosity, set_cap)
+1 -1
View File
@@ -41,7 +41,7 @@
var/mode = MINEDRONE_COLLECT
var/obj/item/gun/energy/kinetic_accelerator/minebot/stored_gun
/mob/living/simple_animal/hostile/mining_drone/Initialize()
/mob/living/simple_animal/hostile/mining_drone/Initialize(mapload)
. = ..()
AddElement(/datum/element/footstep, FOOTSTEP_OBJ_ROBOT, 1, -6, sound_vary = TRUE)
+1 -1
View File
@@ -10,7 +10,7 @@
max_integrity = 100
w_class = WEIGHT_CLASS_BULKY
/obj/item/storage/bag/money/Initialize()
/obj/item/storage/bag/money/Initialize(mapload)
. = ..()
if(prob(20))
icon_state = "moneybagalt"
+1 -1
View File
@@ -361,7 +361,7 @@ GLOBAL_LIST_INIT(sand_recipes, list(\
var/coinflip
item_flags = NO_MAT_REDEMPTION //You know, it's kind of a problem that money is worth more extrinsicly than intrinsically in this universe.
/obj/item/coin/Initialize()
/obj/item/coin/Initialize(mapload)
. = ..()
coinflip = pick(sideslist)
icon_state = "coin_[coinflip]"