mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 06:58:30 +01:00
Initialize fixing (#17279)
* Initialoize fixing * diff fix * add init grep test * fixed missed ones * . * some more * ,
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
var/obj/item/toppaper //The topmost piece of paper.
|
||||
slot_flags = SLOT_BELT
|
||||
|
||||
/obj/item/clipboard/New()
|
||||
/obj/item/clipboard/Initialize(mapload)
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
/obj/item/clipboard/MouseDrop(obj/over_object as obj) //Quick clipboard fix. -Agouri
|
||||
|
||||
@@ -28,12 +28,12 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins
|
||||
var/destination = null // the department we're sending to
|
||||
var/talon = 0 // So that the talon can access their own crew roles for the request
|
||||
|
||||
/obj/machinery/photocopier/faxmachine/New()
|
||||
/obj/machinery/photocopier/faxmachine/Initialize(mapload)
|
||||
. = ..()
|
||||
allfaxes += src
|
||||
if(!destination) destination = "[using_map.boss_name]"
|
||||
if( !(("[department]" in alldepartments) || ("[department]" in admin_departments)) )
|
||||
alldepartments |= department
|
||||
..()
|
||||
|
||||
/obj/machinery/photocopier/faxmachine/attack_hand(mob/user as mob)
|
||||
user.set_machine(src)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
icon_state = "tallcabinet"
|
||||
|
||||
|
||||
/obj/structure/filingcabinet/Initialize()
|
||||
/obj/structure/filingcabinet/Initialize(mapload)
|
||||
for(var/obj/item/I in loc)
|
||||
if(istype(I, /obj/item/paper) || istype(I, /obj/item/folder) || istype(I, /obj/item/photo) || istype(I, /obj/item/paper_bundle))
|
||||
I.loc = src
|
||||
|
||||
@@ -41,7 +41,8 @@
|
||||
desc = "A white folder with RD markings."
|
||||
icon_state = "folder_rd"
|
||||
|
||||
/obj/item/folder/white_rd/New()
|
||||
/obj/item/folder/white_rd/Initialize(mapload)
|
||||
. = ..()
|
||||
//add some memos
|
||||
var/obj/item/paper/P = new()
|
||||
P.name = "Memo RE: proper analysis procedure"
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
|
||||
return
|
||||
|
||||
/obj/item/sticky_pad/random/Initialize()
|
||||
/obj/item/sticky_pad/random/Initialize(mapload)
|
||||
. = ..()
|
||||
color = pick(COLOR_YELLOW, COLOR_LIME, COLOR_CYAN, COLOR_ORANGE, COLOR_PINK)
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
color = COLOR_YELLOW
|
||||
slot_flags = 0
|
||||
|
||||
/obj/item/paper/sticky/Initialize()
|
||||
/obj/item/paper/sticky/Initialize(mapload)
|
||||
. = ..()
|
||||
AddComponent(/datum/component/recursive_move)
|
||||
RegisterSignal(src, COMSIG_OBSERVER_MOVED, /obj/item/paper/sticky/proc/reset_persistence_tracking)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
/obj/item/paper_bundle = 3,
|
||||
)
|
||||
|
||||
/obj/machinery/papershredder/Initialize()
|
||||
/obj/machinery/papershredder/Initialize(mapload)
|
||||
. = ..()
|
||||
default_apply_parts()
|
||||
update_icon()
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
var/active_icon_state
|
||||
var/default_icon_state
|
||||
|
||||
/obj/item/pen/blade/Initialize()
|
||||
/obj/item/pen/blade/Initialize(mapload)
|
||||
. = ..()
|
||||
active_icon_state = "[icon_state]-x"
|
||||
default_icon_state = icon_state
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
var/maxcopies = 10 //how many copies can be copied at once- idea shamelessly stolen from bs12's copier!
|
||||
var/copying = FALSE // Is the printer busy with something? Sanity check variable.
|
||||
|
||||
/obj/machinery/photocopier/Initialize()
|
||||
/obj/machinery/photocopier/Initialize(mapload)
|
||||
. = ..()
|
||||
default_apply_parts()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user