mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] Sideports a couple of init unit tests from Neb.
This commit is contained in:
@@ -87,11 +87,11 @@
|
||||
/obj/machinery/mineral/stacking_machine/New()
|
||||
..()
|
||||
|
||||
for(var/stacktype in typesof(/obj/item/stack/material)-/obj/item/stack/material)
|
||||
var/obj/item/stack/S = new stacktype(src)
|
||||
stack_storage[S.name] = 0
|
||||
stack_paths[S.name] = stacktype
|
||||
qdel(S)
|
||||
for(var/stacktype in subtypesof(/obj/item/stack/material))
|
||||
var/obj/item/stack/S = stacktype
|
||||
var/s_name = initial(S.name)
|
||||
stack_storage[s_name] = 0
|
||||
stack_paths[s_name] = stacktype
|
||||
|
||||
stack_storage["glass"] = 0
|
||||
stack_paths["glass"] = /obj/item/stack/material/glass
|
||||
|
||||
@@ -158,9 +158,10 @@
|
||||
var/upright = 0
|
||||
var/base_state
|
||||
|
||||
/obj/item/stack/flag/New()
|
||||
..()
|
||||
/obj/item/stack/flag/Initialize()
|
||||
. = ..()
|
||||
base_state = icon_state
|
||||
update_icon()
|
||||
|
||||
/obj/item/stack/flag/blue
|
||||
name = "blue flags"
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
material = null
|
||||
|
||||
/obj/item/weapon/ore/Initialize()
|
||||
..()
|
||||
. = ..()
|
||||
randpixel_xy()
|
||||
|
||||
/obj/item/weapon/ore/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
|
||||
Reference in New Issue
Block a user