Merge pull request #15585 from SandPoot/Initialize(mapload)

Every case of initialize that should have mapload, does
This commit is contained in:
silicons
2022-04-15 17:41:57 -07:00
committed by GitHub
881 changed files with 1588 additions and 1588 deletions
+1 -1
View File
@@ -168,7 +168,7 @@
/obj/item/radio/mech //this has to go somewhere
/obj/vehicle/sealed/mecha/Initialize()
/obj/vehicle/sealed/mecha/Initialize(mapload)
. = ..()
add_radio()
add_cabin()
+1 -1
View File
@@ -13,7 +13,7 @@
var/obj/durand_shield/shield
/obj/vehicle/sealed/mecha/combat/durand/Initialize()
/obj/vehicle/sealed/mecha/combat/durand/Initialize(mapload)
. = ..()
shield = new /obj/durand_shield(loc, src, layer, dir)
RegisterSignal(src, COMSIG_MECHA_ACTION_TRIGGER, .proc/relay)
@@ -10,7 +10,7 @@
pixel_x = -32
pixel_y = -32
/obj/vehicle/sealed/mecha/combat/five_stars/Initialize()
/obj/vehicle/sealed/mecha/combat/five_stars/Initialize(mapload)
. = ..()
var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack/spacecops(src)
ME.attach(src)
+1 -1
View File
@@ -32,7 +32,7 @@
max_equip = 5
destruction_sleep_duration = 20
/obj/vehicle/sealed/mecha/combat/gygax/dark/loaded/Initialize()
/obj/vehicle/sealed/mecha/combat/gygax/dark/loaded/Initialize(mapload)
. = ..()
var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/thrusters/ion(src)
ME.attach(src)
@@ -22,7 +22,7 @@
initialize_passenger_action_type(/datum/action/vehicle/sealed/mecha/mech_smoke)
initialize_passenger_action_type(/datum/action/vehicle/sealed/mecha/mech_zoom)
/obj/vehicle/sealed/mecha/combat/marauder/loaded/Initialize()
/obj/vehicle/sealed/mecha/combat/marauder/loaded/Initialize(mapload)
. = ..()
var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/thrusters/ion(src)
ME.attach(src)
@@ -49,7 +49,7 @@
force = 55
max_equip = 6
/obj/vehicle/sealed/mecha/combat/marauder/seraph/Initialize()
/obj/vehicle/sealed/mecha/combat/marauder/seraph/Initialize(mapload)
. = ..()
var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/thrusters/ion(src)
ME.attach(src)
@@ -75,12 +75,12 @@
max_equip = 6
destruction_sleep_duration = 20
/obj/vehicle/sealed/mecha/combat/marauder/mauler/Initialize()
/obj/vehicle/sealed/mecha/combat/marauder/mauler/Initialize(mapload)
. = ..()
var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/thrusters/ion(src)
ME.attach(src)
/obj/vehicle/sealed/mecha/combat/marauder/mauler/loaded/Initialize()
/obj/vehicle/sealed/mecha/combat/marauder/mauler/loaded/Initialize(mapload)
. = ..()
var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/lmg(src)
ME.attach(src)
@@ -77,7 +77,7 @@
if(obj_integrity < max_integrity && istype(loc, /turf/open/floor/clockwork))
obj_integrity += min(max_integrity - obj_integrity, max_integrity / 200)
/obj/vehicle/sealed/mecha/combat/neovgre/Initialize()
/obj/vehicle/sealed/mecha/combat/neovgre/Initialize(mapload)
.=..()
GLOB.neovgre_exists ++
var/obj/item/mecha_parts/mecha_equipment/weapon/energy/laser/heavy/neovgre/N = new
@@ -19,7 +19,7 @@
stepsound = null
turnsound = null
/obj/vehicle/sealed/mecha/combat/reticence/loaded/Initialize()
/obj/vehicle/sealed/mecha/combat/reticence/loaded/Initialize(mapload)
. = ..()
var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/silenced
ME.attach(src)
@@ -3,7 +3,7 @@
/obj/item/mecha_parts/mecha_equipment/medical
mech_flags = EXOSUIT_MODULE_MEDICAL
/obj/item/mecha_parts/mecha_equipment/medical/Initialize()
/obj/item/mecha_parts/mecha_equipment/medical/Initialize(mapload)
. = ..()
START_PROCESSING(SSobj, src)
@@ -264,7 +264,7 @@
range = MECHA_MELEE|MECHA_RANGED
equip_cooldown = 10
/obj/item/mecha_parts/mecha_equipment/medical/syringe_gun/Initialize()
/obj/item/mecha_parts/mecha_equipment/medical/syringe_gun/Initialize(mapload)
. = ..()
create_reagents(max_volume, NO_REACT)
syringes = new
@@ -532,7 +532,7 @@
var/obj/item/gun/medbeam/mech/medigun
custom_materials = list(/datum/material/iron = 15000, /datum/material/glass = 8000, /datum/material/plasma = 3000, /datum/material/gold = 8000, /datum/material/diamond = 2000)
/obj/item/mecha_parts/mecha_equipment/medical/mechmedbeam/Initialize()
/obj/item/mecha_parts/mecha_equipment/medical/mechmedbeam/Initialize(mapload)
. = ..()
medigun = new(src)
@@ -20,7 +20,7 @@
var/drill_level = DRILL_BASIC
mech_flags = EXOSUIT_MODULE_WORKING | EXOSUIT_MODULE_COMBAT
/obj/item/mecha_parts/mecha_equipment/drill/Initialize()
/obj/item/mecha_parts/mecha_equipment/drill/Initialize(mapload)
. = ..()
AddComponent(/datum/component/butchering, 50, 100, null, null, TRUE)
@@ -131,7 +131,7 @@
if(ishuman(target))
var/mob/living/carbon/human/H = target
new /obj/effect/temp_visual/dir_setting/bloodsplatter(target.drop_location(), splatter_dir, H.dna.species.exotic_blood_color)
else
else
new /obj/effect/temp_visual/dir_setting/bloodsplatter(target.drop_location(), splatter_dir)
//organs go everywhere
@@ -158,7 +158,7 @@
var/scanning_time = 0
mech_flags = EXOSUIT_MODULE_WORKING
/obj/item/mecha_parts/mecha_equipment/mining_scanner/Initialize()
/obj/item/mecha_parts/mecha_equipment/mining_scanner/Initialize(mapload)
. = ..()
START_PROCESSING(SSfastprocess, src)
@@ -363,7 +363,7 @@
var/fuel_per_cycle_active = 200
var/power_per_cycle = 20
/obj/item/mecha_parts/mecha_equipment/generator/Initialize()
/obj/item/mecha_parts/mecha_equipment/generator/Initialize(mapload)
. = ..()
generator_init()
@@ -193,7 +193,7 @@
range = MECHA_MELEE|MECHA_RANGED
mech_flags = EXOSUIT_MODULE_WORKING
/obj/item/mecha_parts/mecha_equipment/extinguisher/Initialize()
/obj/item/mecha_parts/mecha_equipment/extinguisher/Initialize(mapload)
. = ..()
create_reagents(1000)
reagents.add_reagent(/datum/reagent/water, 1000)
@@ -262,7 +262,7 @@
item_flags = NO_MAT_REDEMPTION
var/mode = 0 //0 - deconstruct, 1 - wall or floor, 2 - airlock.
/obj/item/mecha_parts/mecha_equipment/rcd/Initialize()
/obj/item/mecha_parts/mecha_equipment/rcd/Initialize(mapload)
. = ..()
GLOB.rcd_list += src
+2 -2
View File
@@ -25,7 +25,7 @@
var/on = FALSE
var/turf/recharging_turf = null
/obj/machinery/mech_bay_recharge_port/Initialize()
/obj/machinery/mech_bay_recharge_port/Initialize(mapload)
. = ..()
recharging_turf = get_step(loc, dir)
@@ -141,7 +141,7 @@
return
. += "recharge_comp_on"
/obj/machinery/computer/mech_bay_power_console/Initialize()
/obj/machinery/computer/mech_bay_power_console/Initialize(mapload)
. = ..()
reconnect()
+1 -1
View File
@@ -25,7 +25,7 @@
interaction_flags_item = NONE //Don't pick us up!!
var/construct_type
/obj/item/mecha_parts/chassis/Initialize()
/obj/item/mecha_parts/chassis/Initialize(mapload)
. = ..()
if(construct_type)
AddComponent(construct_type)
@@ -35,7 +35,7 @@
possible_int_damage -= (MECHA_INT_TEMP_CONTROL + MECHA_INT_TANK_BREACH) //if we don't even have an air tank, these two doesn't make a ton of sense.
. = ..()
/obj/vehicle/sealed/mecha/working/ripley/Initialize()
/obj/vehicle/sealed/mecha/working/ripley/Initialize(mapload)
. = ..()
AddComponent(/datum/component/armor_plate,3,/obj/item/stack/sheet/animalhide/goliath_hide,list(MELEE = 10, BULLET = 5, LASER = 5))
@@ -101,7 +101,7 @@
enter_delay = 40
silicon_icon_state = null
/obj/vehicle/sealed/mecha/working/ripley/deathripley/Initialize()
/obj/vehicle/sealed/mecha/working/ripley/deathripley/Initialize(mapload)
. = ..()
var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/hydraulic_clamp/kill
ME.attach(src)
@@ -109,7 +109,7 @@
/obj/vehicle/sealed/mecha/working/ripley/deathripley/real
desc = "OH SHIT IT'S THE DEATHSQUAD WE'RE ALL GONNA DIE. FOR REAL"
/obj/vehicle/sealed/mecha/working/ripley/deathripley/real/Initialize()
/obj/vehicle/sealed/mecha/working/ripley/deathripley/real/Initialize(mapload)
. = ..()
for(var/obj/item/mecha_parts/mecha_equipment/E in equipment)
E.detach()
@@ -123,7 +123,7 @@
name = "\improper APLU \"Miner\""
obj_integrity = 75 //Low starting health
/obj/vehicle/sealed/mecha/working/ripley/mining/Initialize()
/obj/vehicle/sealed/mecha/working/ripley/mining/Initialize(mapload)
. = ..()
if(cell)
cell.charge = FLOOR(cell.charge * 0.25, 1) //Starts at very low charge