mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #1887 from Yoshax/cratestuff
Large crates now insert items on initialization.
This commit is contained in:
@@ -5,6 +5,13 @@
|
|||||||
icon_state = "densecrate"
|
icon_state = "densecrate"
|
||||||
density = 1
|
density = 1
|
||||||
|
|
||||||
|
/obj/structure/largecrate/initialize()
|
||||||
|
..()
|
||||||
|
for(var/obj/I in src.loc)
|
||||||
|
if(I.density || I.anchored || I == src || !I.simulated)
|
||||||
|
continue
|
||||||
|
I.forceMove(src)
|
||||||
|
|
||||||
/obj/structure/largecrate/attack_hand(mob/user as mob)
|
/obj/structure/largecrate/attack_hand(mob/user as mob)
|
||||||
user << "<span class='notice'>You need a crowbar to pry this open!</span>"
|
user << "<span class='notice'>You need a crowbar to pry this open!</span>"
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user