Gives an initialize hint to stacks, boxes, closets and bots (#2256)
This commit is contained in:
committed by
kevinz000
parent
23ed5ba2a2
commit
9449004c36
@@ -22,7 +22,7 @@
|
||||
var/novariants = TRUE //Determines whether the item should update it's sprites based on amount.
|
||||
|
||||
/obj/item/stack/Initialize(mapload, new_amount=null , merge = TRUE)
|
||||
..()
|
||||
. = ..()
|
||||
if(new_amount)
|
||||
amount = new_amount
|
||||
if(!merge_type)
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
var/illustration = "writing"
|
||||
|
||||
/obj/item/weapon/storage/box/Initialize(mapload)
|
||||
..()
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
/obj/item/weapon/storage/box/update_icon()
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
/obj/structure/closet/Initialize(mapload)
|
||||
if(mapload && !opened) // if closed, any item at the crate's loc is put in the contents
|
||||
addtimer(CALLBACK(src, .proc/take_contents), 0)
|
||||
..()
|
||||
. = ..()
|
||||
update_icon()
|
||||
PopulateContents()
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
update_icon()
|
||||
|
||||
/mob/living/simple_animal/bot/Initialize()
|
||||
..()
|
||||
. = ..()
|
||||
access_card = new /obj/item/weapon/card/id(src)
|
||||
//This access is so bots can be immediately set to patrol and leave Robotics, instead of having to be let out first.
|
||||
access_card.access += ACCESS_ROBOTICS
|
||||
|
||||
Reference in New Issue
Block a user