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
@@ -12,7 +12,7 @@
name = "circuit airlock"
autoclose = FALSE
/obj/machinery/door/airlock/shell/Initialize()
/obj/machinery/door/airlock/shell/Initialize(mapload)
. = ..()
AddComponent( \
/datum/component/shell, \
+1 -1
View File
@@ -12,7 +12,7 @@
light_system = MOVABLE_LIGHT
light_on = FALSE
/obj/structure/bot/Initialize()
/obj/structure/bot/Initialize(mapload)
. = ..()
AddComponent( \
/datum/component/shell, \
@@ -6,7 +6,7 @@
zone = BODY_ZONE_HEAD
w_class = WEIGHT_CLASS_TINY
/obj/item/organ/cyberimp/bci/Initialize()
/obj/item/organ/cyberimp/bci/Initialize(mapload)
. = ..()
var/obj/item/integrated_circuit/circuit = new(src)
@@ -335,7 +335,7 @@
COOLDOWN_DECLARE(message_cooldown)
/obj/machinery/bci_implanter/Initialize()
/obj/machinery/bci_implanter/Initialize(mapload)
. = ..()
occupant_typecache = typecacheof(/mob/living/carbon)
+1 -1
View File
@@ -14,7 +14,7 @@
light_system = MOVABLE_LIGHT_DIRECTIONAL
light_on = FALSE
/obj/item/compact_remote/Initialize()
/obj/item/compact_remote/Initialize(mapload)
. = ..()
AddComponent(/datum/component/shell, list(
new /obj/item/circuit_component/compact_remote()
+1 -1
View File
@@ -15,7 +15,7 @@
light_system = MOVABLE_LIGHT_DIRECTIONAL
light_on = FALSE
/obj/item/controller/Initialize()
/obj/item/controller/Initialize(mapload)
. = ..()
AddComponent(/datum/component/shell, list(
new /obj/item/circuit_component/controller()
+1 -1
View File
@@ -11,7 +11,7 @@
light_system = MOVABLE_LIGHT_DIRECTIONAL
light_on = FALSE
/mob/living/circuit_drone/Initialize()
/mob/living/circuit_drone/Initialize(mapload)
. = ..()
AddComponent(/datum/component/shell, list(
new /obj/item/circuit_component/bot_circuit()
+2 -2
View File
@@ -31,7 +31,7 @@
/obj/item/stock_parts/cell/emproof/wiremod_gun
maxcharge = 100
/obj/item/gun/energy/wiremod_gun/Initialize()
/obj/item/gun/energy/wiremod_gun/Initialize(mapload)
. = ..()
AddComponent(/datum/component/shell, list(
new /obj/item/circuit_component/wiremod_gun()
@@ -47,7 +47,7 @@
/// The entity being shot
var/datum/port/output/shot
/obj/item/circuit_component/wiremod_gun/Initialize()
/obj/item/circuit_component/wiremod_gun/Initialize(mapload)
. = ..()
shooter = add_output_port("Shooter", PORT_TYPE_ATOM)
shot = add_output_port("Shot Entity", PORT_TYPE_ATOM)
+1 -1
View File
@@ -23,7 +23,7 @@
stored_money += to_add
SEND_SIGNAL(src, COMSIG_MONEYBOT_ADD_MONEY, to_add)
/obj/structure/money_bot/Initialize()
/obj/structure/money_bot/Initialize(mapload)
. = ..()
AddComponent(/datum/component/shell, list(
new /obj/item/circuit_component/money_bot(),
+1 -1
View File
@@ -14,7 +14,7 @@
light_system = MOVABLE_LIGHT_DIRECTIONAL
light_on = FALSE
/obj/item/wiremod_scanner/Initialize()
/obj/item/wiremod_scanner/Initialize(mapload)
. = ..()
AddComponent(/datum/component/shell, list(
new /obj/item/circuit_component/wiremod_scanner()
+1 -1
View File
@@ -5,7 +5,7 @@
icon_state = "scangate_black"
var/locked = FALSE
/obj/structure/scanner_gate_shell/Initialize()
/obj/structure/scanner_gate_shell/Initialize(mapload)
. = ..()
set_scanline("passive")
var/static/list/loc_connections = list(
+1 -1
View File
@@ -13,7 +13,7 @@
light_system = MOVABLE_LIGHT
light_on = FALSE
/obj/structure/server/Initialize()
/obj/structure/server/Initialize(mapload)
. = ..()
AddComponent(/datum/component/shell, null, SHELL_CAPACITY_VERY_LARGE, SHELL_FLAG_REQUIRE_ANCHOR|SHELL_FLAG_USB_PORT)