mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-18 10:34:10 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user