mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-27 07:08:55 +01:00
[MIRROR] Initialize fixing (#10335)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
2e725a0727
commit
ce2446922e
@@ -17,7 +17,7 @@
|
||||
var/detail_color = COLOR_ASSEMBLY_BLACK
|
||||
|
||||
|
||||
/obj/item/electronic_assembly/Initialize()
|
||||
/obj/item/electronic_assembly/Initialize(mapload)
|
||||
battery = new(src)
|
||||
START_PROCESSING(SSobj, src)
|
||||
return ..()
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
icon_state = "circuitry"
|
||||
worn_state = "circuitry"
|
||||
|
||||
/obj/item/clothing/under/circuitry/Initialize()
|
||||
/obj/item/clothing/under/circuitry/Initialize(mapload)
|
||||
setup_integrated_circuit(/obj/item/electronic_assembly/clothing)
|
||||
return ..()
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
icon_state = "circuitry"
|
||||
item_state = "circuitry"
|
||||
|
||||
/obj/item/clothing/gloves/circuitry/Initialize()
|
||||
/obj/item/clothing/gloves/circuitry/Initialize(mapload)
|
||||
setup_integrated_circuit(/obj/item/electronic_assembly/clothing/small)
|
||||
return ..()
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
icon_state = "circuitry"
|
||||
item_state = "night" // The on-mob sprite would be identical anyways.
|
||||
|
||||
/obj/item/clothing/glasses/circuitry/Initialize()
|
||||
/obj/item/clothing/glasses/circuitry/Initialize(mapload)
|
||||
setup_integrated_circuit(/obj/item/electronic_assembly/clothing/small)
|
||||
return ..()
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
icon_state = "circuitry"
|
||||
item_state = "circuitry"
|
||||
|
||||
/obj/item/clothing/shoes/circuitry/Initialize()
|
||||
/obj/item/clothing/shoes/circuitry/Initialize(mapload)
|
||||
setup_integrated_circuit(/obj/item/electronic_assembly/clothing/small)
|
||||
return ..()
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
icon_state = "circuitry"
|
||||
item_state = "circuitry"
|
||||
|
||||
/obj/item/clothing/head/circuitry/Initialize()
|
||||
/obj/item/clothing/head/circuitry/Initialize(mapload)
|
||||
setup_integrated_circuit(/obj/item/electronic_assembly/clothing/small)
|
||||
return ..()
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
icon_state = "circuitry"
|
||||
item_state = "circuitry"
|
||||
|
||||
/obj/item/clothing/ears/circuitry/Initialize()
|
||||
/obj/item/clothing/ears/circuitry/Initialize(mapload)
|
||||
setup_integrated_circuit(/obj/item/electronic_assembly/clothing/small)
|
||||
return ..()
|
||||
|
||||
@@ -169,6 +169,6 @@
|
||||
icon_state = "circuitry"
|
||||
item_state = "circuitry"
|
||||
|
||||
/obj/item/clothing/suit/circuitry/Initialize()
|
||||
/obj/item/clothing/suit/circuitry/Initialize(mapload)
|
||||
setup_integrated_circuit(/obj/item/electronic_assembly/clothing/large)
|
||||
return ..()
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"hot pink" = COLOR_ASSEMBLY_HOT_PINK
|
||||
)
|
||||
|
||||
/obj/item/integrated_electronics/detailer/Initialize()
|
||||
/obj/item/integrated_electronics/detailer/Initialize(mapload)
|
||||
update_icon()
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -307,7 +307,7 @@
|
||||
make_exact_fit()
|
||||
. = ..()
|
||||
|
||||
/obj/item/storage/bag/circuits/all/Initialize()
|
||||
/obj/item/storage/bag/circuits/all/Initialize(mapload)
|
||||
new /obj/item/storage/bag/circuits/mini/arithmetic/all(src)
|
||||
new /obj/item/storage/bag/circuits/mini/trig/all(src)
|
||||
new /obj/item/storage/bag/circuits/mini/input/all(src)
|
||||
@@ -349,7 +349,7 @@
|
||||
/obj/item/storage/bag/circuits/mini/arithmetic/all // Don't believe this will ever be needed.
|
||||
spawn_flags_to_use = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
|
||||
/obj/item/storage/bag/circuits/mini/arithmetic/Initialize()
|
||||
/obj/item/storage/bag/circuits/mini/arithmetic/Initialize(mapload)
|
||||
for(var/obj/item/integrated_circuit/arithmetic/IC in all_integrated_circuits)
|
||||
if(IC.spawn_flags & spawn_flags_to_use)
|
||||
for(var/i = 1 to 4)
|
||||
@@ -366,7 +366,7 @@
|
||||
/obj/item/storage/bag/circuits/mini/trig/all // Ditto
|
||||
spawn_flags_to_use = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
|
||||
/obj/item/storage/bag/circuits/mini/trig/Initialize()
|
||||
/obj/item/storage/bag/circuits/mini/trig/Initialize(mapload)
|
||||
for(var/obj/item/integrated_circuit/trig/IC in all_integrated_circuits)
|
||||
if(IC.spawn_flags & spawn_flags_to_use)
|
||||
for(var/i = 1 to 4)
|
||||
@@ -383,7 +383,7 @@
|
||||
/obj/item/storage/bag/circuits/mini/input/all
|
||||
spawn_flags_to_use = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
|
||||
/obj/item/storage/bag/circuits/mini/input/Initialize()
|
||||
/obj/item/storage/bag/circuits/mini/input/Initialize(mapload)
|
||||
for(var/obj/item/integrated_circuit/input/IC in all_integrated_circuits)
|
||||
if(IC.spawn_flags & spawn_flags_to_use)
|
||||
for(var/i = 1 to 4)
|
||||
@@ -400,7 +400,7 @@
|
||||
/obj/item/storage/bag/circuits/mini/output/all
|
||||
spawn_flags_to_use = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
|
||||
/obj/item/storage/bag/circuits/mini/output/Initialize()
|
||||
/obj/item/storage/bag/circuits/mini/output/Initialize(mapload)
|
||||
for(var/obj/item/integrated_circuit/output/IC in all_integrated_circuits)
|
||||
if(IC.spawn_flags & spawn_flags_to_use)
|
||||
for(var/i = 1 to 4)
|
||||
@@ -417,7 +417,7 @@
|
||||
/obj/item/storage/bag/circuits/mini/memory/all
|
||||
spawn_flags_to_use = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
|
||||
/obj/item/storage/bag/circuits/mini/memory/Initialize()
|
||||
/obj/item/storage/bag/circuits/mini/memory/Initialize(mapload)
|
||||
for(var/obj/item/integrated_circuit/memory/IC in all_integrated_circuits)
|
||||
if(IC.spawn_flags & spawn_flags_to_use)
|
||||
for(var/i = 1 to 4)
|
||||
@@ -434,7 +434,7 @@
|
||||
/obj/item/storage/bag/circuits/mini/logic/all
|
||||
spawn_flags_to_use = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
|
||||
/obj/item/storage/bag/circuits/mini/logic/Initialize()
|
||||
/obj/item/storage/bag/circuits/mini/logic/Initialize(mapload)
|
||||
for(var/obj/item/integrated_circuit/logic/IC in all_integrated_circuits)
|
||||
if(IC.spawn_flags & spawn_flags_to_use)
|
||||
for(var/i = 1 to 4)
|
||||
@@ -451,7 +451,7 @@
|
||||
/obj/item/storage/bag/circuits/mini/time/all
|
||||
spawn_flags_to_use = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
|
||||
/obj/item/storage/bag/circuits/mini/time/Initialize()
|
||||
/obj/item/storage/bag/circuits/mini/time/Initialize(mapload)
|
||||
for(var/obj/item/integrated_circuit/time/IC in all_integrated_circuits)
|
||||
if(IC.spawn_flags & spawn_flags_to_use)
|
||||
for(var/i = 1 to 4)
|
||||
@@ -468,7 +468,7 @@
|
||||
/obj/item/storage/bag/circuits/mini/reagents/all
|
||||
spawn_flags_to_use = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
|
||||
/obj/item/storage/bag/circuits/mini/reagents/Initialize()
|
||||
/obj/item/storage/bag/circuits/mini/reagents/Initialize(mapload)
|
||||
for(var/obj/item/integrated_circuit/reagent/IC in all_integrated_circuits)
|
||||
if(IC.spawn_flags & spawn_flags_to_use)
|
||||
for(var/i = 1 to 4)
|
||||
@@ -485,7 +485,7 @@
|
||||
/obj/item/storage/bag/circuits/mini/transfer/all
|
||||
spawn_flags_to_use = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
|
||||
/obj/item/storage/bag/circuits/mini/transfer/Initialize()
|
||||
/obj/item/storage/bag/circuits/mini/transfer/Initialize(mapload)
|
||||
for(var/obj/item/integrated_circuit/transfer/IC in all_integrated_circuits)
|
||||
if(IC.spawn_flags & spawn_flags_to_use)
|
||||
for(var/i = 1 to 4)
|
||||
@@ -502,7 +502,7 @@
|
||||
/obj/item/storage/bag/circuits/mini/converter/all
|
||||
spawn_flags_to_use = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
|
||||
/obj/item/storage/bag/circuits/mini/converter/Initialize()
|
||||
/obj/item/storage/bag/circuits/mini/converter/Initialize(mapload)
|
||||
for(var/obj/item/integrated_circuit/converter/IC in all_integrated_circuits)
|
||||
if(IC.spawn_flags & spawn_flags_to_use)
|
||||
for(var/i = 1 to 4)
|
||||
@@ -518,7 +518,7 @@
|
||||
/obj/item/storage/bag/circuits/mini/smart/all
|
||||
spawn_flags_to_use = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
|
||||
/obj/item/storage/bag/circuits/mini/smart/Initialize()
|
||||
/obj/item/storage/bag/circuits/mini/smart/Initialize(mapload)
|
||||
for(var/obj/item/integrated_circuit/smart/IC in all_integrated_circuits)
|
||||
if(IC.spawn_flags & spawn_flags_to_use)
|
||||
for(var/i = 1 to 4)
|
||||
@@ -534,7 +534,7 @@
|
||||
/obj/item/storage/bag/circuits/mini/manipulation/all
|
||||
spawn_flags_to_use = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
|
||||
/obj/item/storage/bag/circuits/mini/manipulation/Initialize()
|
||||
/obj/item/storage/bag/circuits/mini/manipulation/Initialize(mapload)
|
||||
for(var/obj/item/integrated_circuit/manipulation/IC in all_integrated_circuits)
|
||||
if(IC.spawn_flags & spawn_flags_to_use)
|
||||
for(var/i = 1 to 4)
|
||||
@@ -551,7 +551,7 @@
|
||||
/obj/item/storage/bag/circuits/mini/power/all
|
||||
spawn_flags_to_use = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
|
||||
/obj/item/storage/bag/circuits/mini/power/Initialize()
|
||||
/obj/item/storage/bag/circuits/mini/power/Initialize(mapload)
|
||||
for(var/obj/item/integrated_circuit/passive/power/IC in all_integrated_circuits)
|
||||
if(IC.spawn_flags & spawn_flags_to_use)
|
||||
for(var/i = 1 to 4)
|
||||
|
||||
@@ -213,7 +213,7 @@
|
||||
var/obj/machinery/power/circuit_io/IO = null // Dummy power machine to move energy in/out without a bunch of code duplication.
|
||||
var/throughput = 10000 // Give/take up to 10kW.
|
||||
|
||||
/obj/item/integrated_circuit/passive/power/powernet/Initialize()
|
||||
/obj/item/integrated_circuit/passive/power/powernet/Initialize(mapload)
|
||||
IO = new(src)
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -361,7 +361,7 @@
|
||||
var/code = 30
|
||||
var/datum/radio_frequency/radio_connection
|
||||
|
||||
/obj/item/integrated_circuit/input/signaler/Initialize()
|
||||
/obj/item/integrated_circuit/input/signaler/Initialize(mapload)
|
||||
. = ..()
|
||||
set_pin_data(IC_INPUT, 1, frequency)
|
||||
set_pin_data(IC_INPUT, 2, code)
|
||||
@@ -596,7 +596,7 @@
|
||||
LANGUAGE_SIGN
|
||||
)
|
||||
|
||||
/obj/item/integrated_circuit/input/microphone/sign/Initialize()
|
||||
/obj/item/integrated_circuit/input/microphone/sign/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/lang in readable_langs)
|
||||
var/datum/language/newlang = GLOB.all_languages[lang]
|
||||
|
||||
@@ -153,7 +153,7 @@
|
||||
|
||||
var/mob/living/voice/my_voice
|
||||
|
||||
/obj/item/integrated_circuit/output/text_to_speech/advanced/Initialize()
|
||||
/obj/item/integrated_circuit/output/text_to_speech/advanced/Initialize(mapload)
|
||||
. = ..()
|
||||
my_voice = new (src)
|
||||
mob_list -= my_voice // no life() ticks
|
||||
@@ -446,7 +446,7 @@
|
||||
// var/datum/beam/holo_beam = null // A visual effect, to make it easy to know where a hologram is coming from.
|
||||
// It is commented out due to picking up the assembly killing the beam.
|
||||
|
||||
/obj/item/integrated_circuit/output/holographic_projector/Initialize()
|
||||
/obj/item/integrated_circuit/output/holographic_projector/Initialize(mapload)
|
||||
. = ..()
|
||||
AddComponent(/datum/component/recursive_move)
|
||||
RegisterSignal(src, COMSIG_OBSERVER_MOVED, PROC_REF(on_moved))
|
||||
|
||||
Reference in New Issue
Block a user