mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
76 lines
2.1 KiB
Plaintext
76 lines
2.1 KiB
Plaintext
/obj/structure/largecrate
|
|
name = "large crate"
|
|
desc = "A hefty wooden crate."
|
|
icon = 'icons/obj/storage.dmi'
|
|
icon_state = "densecrate"
|
|
density = 1
|
|
flags = FPRINT
|
|
|
|
/obj/structure/largecrate/attack_hand(mob/user as mob)
|
|
to_chat(user, "<span class='notice'>You need a crowbar to pry this open!</span>")
|
|
return
|
|
|
|
/obj/structure/largecrate/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
if(iscrowbar(W))
|
|
new /obj/item/stack/sheet/wood(src)
|
|
var/turf/T = get_turf(src)
|
|
for(var/obj/O in contents)
|
|
O.loc = T
|
|
user.visible_message("<span class='notice'>[user] pries \the [src] open.</span>", \
|
|
"<span class='notice'>You pry open \the [src].</span>", \
|
|
"<span class='notice'>You hear splitting wood.</span>")
|
|
qdel(src)
|
|
else
|
|
return attack_hand(user)
|
|
|
|
/obj/structure/largecrate/mule
|
|
icon_state = "mulecrate"
|
|
|
|
/obj/structure/largecrate/lisa
|
|
icon_state = "lisacrate"
|
|
|
|
/obj/structure/largecrate/porcelain
|
|
..()
|
|
|
|
/obj/structure/largecrate/lisa/attackby(obj/item/weapon/W as obj, mob/user as mob) //ugly but oh well
|
|
if(iscrowbar(W))
|
|
new /mob/living/simple_animal/corgi/Lisa(loc)
|
|
..()
|
|
|
|
/obj/structure/largecrate/cow
|
|
name = "cow crate"
|
|
icon_state = "lisacrate"
|
|
|
|
/obj/structure/largecrate/cow/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
if(iscrowbar(W))
|
|
new /mob/living/simple_animal/cow(loc)
|
|
..()
|
|
|
|
/obj/structure/largecrate/goat
|
|
name = "goat crate"
|
|
icon_state = "lisacrate"
|
|
|
|
/obj/structure/largecrate/goat/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
if(iscrowbar(W))
|
|
new /mob/living/simple_animal/hostile/retaliate/goat(loc)
|
|
..()
|
|
|
|
/obj/structure/largecrate/chick
|
|
name = "chicken crate"
|
|
icon_state = "lisacrate"
|
|
|
|
/obj/structure/largecrate/chick/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
if(iscrowbar(W))
|
|
var/num = rand(4, 6)
|
|
for(var/i = 0, i < num, i++)
|
|
new /mob/living/simple_animal/chick(loc)
|
|
..()
|
|
|
|
/obj/structure/largecrate/porcelain/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
if(iscrowbar(W))
|
|
var/obj/structure/toilet/T = new (loc)
|
|
T.anchored = 0
|
|
var/obj/structure/sink/S = new (loc)
|
|
S.anchored = 0
|
|
..()
|