Finish Machinery new to init (#17334)

* Finish Machinery new to init

* fix that

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Kashargul
2025-03-16 08:57:48 +01:00
committed by GitHub
parent f362f6585f
commit 4d36cfdaeb
116 changed files with 486 additions and 528 deletions
+1 -1
View File
@@ -172,11 +172,11 @@
var/closed_state
/obj/item/storage/box/fancy/chewables/tobacco/nico/Initialize(mapload)
. = ..()
if(!open_state)
open_state = "[initial(icon_state)]0"
if(!closed_state)
closed_state = "[initial(icon_state)]"
. = ..()
/obj/item/storage/box/fancy/chewables/tobacco/nico/update_icon()
cut_overlays()
@@ -373,8 +373,8 @@ Can only be loaded while still in its original case.<BR>
the implant may become unstable and either pre-maturely inject the subject or simply break."}
return dat
/obj/item/implant/chem/New()
..()
/obj/item/implant/chem/Initialize(mapload)
. = ..()
var/datum/reagents/R = new/datum/reagents(50)
reagents = R
R.my_atom = src
@@ -19,8 +19,8 @@
var/mob/living/carbon/occupant = null
var/injecting = 0
/obj/machinery/implantchair/New()
..()
/obj/machinery/implantchair/Initialize(mapload)
. = ..()
add_implants()
@@ -62,11 +62,11 @@
starts_with = list(/obj/item/reagent_containers/food/snacks/egg = 12)
/obj/item/storage/fancy/egg_box/Initialize(mapload)
. = ..()
if(!open_state)
open_state = "[initial(icon_state)]0"
if(!closed_state)
closed_state = "[initial(icon_state)]"
. = ..()
/obj/item/storage/fancy/egg_box/update_icon()
cut_overlays()
@@ -264,11 +264,11 @@
C.desc += " This one is \a [brand]."
/obj/item/storage/fancy/cigarettes/Initialize(mapload)
. = ..()
if(!open_state)
open_state = "[initial(icon_state)]_open"
if(!closed_state)
closed_state = "[initial(icon_state)]"
. = ..()
/obj/item/storage/fancy/cigarettes/update_icon()
cut_overlays()
@@ -411,11 +411,11 @@
return ..()
/obj/item/storage/fancy/cigar/Initialize(mapload)
. = ..()
if(!open_state)
open_state = "[initial(icon_state)]0"
if(!closed_state)
closed_state = "[initial(icon_state)]"
. = ..()
/obj/item/storage/fancy/cigar/update_icon()
cut_overlays()
@@ -813,11 +813,11 @@
icon_state = closed_state
/obj/item/storage/trinketbox/Initialize(mapload)
. = ..()
if(!open_state)
open_state = "[initial(icon_state)]_open"
if(!closed_state)
closed_state = "[initial(icon_state)]"
. = ..()
/obj/item/storage/trinketbox/attack_self()
open = !open