mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 20:23:26 +00:00
Hoverpods are a subtype of mecha/working again, but drills are now ripley specific. Hoverpods have increased cargo and can carry 3 tools. Hoverpod crates now come with a clamp and passenger compartment pre-installed. Brings back the combatpod, can equip weapons.
80 lines
2.6 KiB
Plaintext
80 lines
2.6 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)
|
|
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(istype(W, /obj/item/weapon/crowbar))
|
|
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>")
|
|
del(src)
|
|
else
|
|
return attack_hand(user)
|
|
|
|
/obj/structure/largecrate/mule
|
|
icon_state = "mulecrate"
|
|
|
|
/obj/structure/largecrate/lisa
|
|
icon_state = "lisacrate"
|
|
|
|
/obj/structure/largecrate/lisa/attackby(obj/item/weapon/W as obj, mob/user as mob) //ugly but oh well
|
|
if(istype(W, /obj/item/weapon/crowbar))
|
|
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(istype(W, /obj/item/weapon/crowbar))
|
|
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(istype(W, /obj/item/weapon/crowbar))
|
|
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(istype(W, /obj/item/weapon/crowbar))
|
|
var/num = rand(4, 6)
|
|
for(var/i = 0, i < num, i++)
|
|
new /mob/living/simple_animal/chick(loc)
|
|
..()
|
|
|
|
/obj/structure/largecrate/hoverpod
|
|
name = "Hoverpod assembly crate"
|
|
desc = "It comes in a box for the fabricator's sake. Where does the wood come from? ... And why is it lighter?"
|
|
icon_state = "mulecrate"
|
|
|
|
/obj/structure/largecrate/hoverpod/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
if(istype(W, /obj/item/weapon/crowbar))
|
|
var/obj/item/mecha_parts/mecha_equipment/ME
|
|
var/obj/mecha/working/hoverpod/H = new (loc)
|
|
|
|
ME = new /obj/item/mecha_parts/mecha_equipment/tool/hydraulic_clamp
|
|
ME.attach(H)
|
|
ME = new /obj/item/mecha_parts/mecha_equipment/tool/passenger
|
|
ME.attach(H)
|
|
..() |