mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-17 00:57:28 +01:00
* goril * goril2 * arms * goril3 * goril4 * rampaging * emote * trait * more gorilla * ooga * Magillitis Serum Autoinjector, crates * return to monke * remove unused trait * oops * sirryan * earth * Update code/modules/mob/living/simple_animal/hostile/gorilla/gorilla.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Update code/modules/reagents/chemistry/reagents/misc_reagents.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * fixes and stuff * gorilla text clarification * tweak probs, stop if dead * volume * gorilla sleeping attack * Apply suggestions from code review Co-authored-by: Nathan Winters <100448493+CinnamonSnowball@users.noreply.github.com> --------- Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Co-authored-by: Nathan Winters <100448493+CinnamonSnowball@users.noreply.github.com>
127 lines
3.5 KiB
Plaintext
127 lines
3.5 KiB
Plaintext
/obj/structure/closet/critter
|
|
name = "critter crate"
|
|
desc = "A crate designed for safe transport of animals. Only openable from the the outside."
|
|
icon_state = "critter"
|
|
icon_opened = "critter_open"
|
|
icon_closed = "critter"
|
|
open_door_sprite = null
|
|
var/already_opened = FALSE
|
|
var/content_mob = null
|
|
var/amount = 1
|
|
open_sound = 'sound/machines/wooden_closet_open.ogg'
|
|
close_sound = 'sound/machines/wooden_closet_close.ogg'
|
|
open_sound_volume = 25
|
|
close_sound_volume = 50
|
|
|
|
/obj/structure/closet/critter/can_open()
|
|
if(welded)
|
|
return
|
|
return TRUE
|
|
|
|
/obj/structure/closet/critter/open()
|
|
if(!can_open())
|
|
return
|
|
|
|
if(content_mob == null) //making sure we don't spawn anything too eldritch
|
|
already_opened = TRUE
|
|
return ..()
|
|
|
|
if(content_mob != null && already_opened == 0)
|
|
for(var/i = 1, i <= amount, i++)
|
|
new content_mob(loc)
|
|
already_opened = TRUE
|
|
. = ..()
|
|
|
|
/obj/structure/closet/critter/close()
|
|
..()
|
|
return TRUE
|
|
|
|
|
|
/obj/structure/closet/critter/shove_impact(mob/living/target, mob/living/attacker)
|
|
return FALSE
|
|
|
|
/obj/structure/closet/critter/random
|
|
name = "unmarked crate"
|
|
desc = "A crate designed for safe transport of animals. The contents are a mystery."
|
|
|
|
/obj/structure/closet/critter/random/populate_contents()
|
|
content_mob = pick(/mob/living/simple_animal/pet/dog/corgi,
|
|
/mob/living/simple_animal/pet/dog/corgi/Lisa,
|
|
/mob/living/simple_animal/cow,
|
|
/mob/living/simple_animal/pig,
|
|
/mob/living/simple_animal/hostile/retaliate/goat,
|
|
/mob/living/simple_animal/turkey,
|
|
/mob/living/simple_animal/chick,
|
|
/mob/living/simple_animal/pet/cat,
|
|
/mob/living/simple_animal/pet/dog/pug,
|
|
/mob/living/simple_animal/pet/dog/fox,
|
|
/mob/living/simple_animal/deer,
|
|
/mob/living/simple_animal/bunny)
|
|
|
|
/obj/structure/closet/critter/corgi
|
|
name = "corgi crate"
|
|
content_mob = /mob/living/simple_animal/pet/dog/corgi
|
|
|
|
/obj/structure/closet/critter/corgi/populate_contents()
|
|
if(prob(50))
|
|
content_mob = /mob/living/simple_animal/pet/dog/corgi/Lisa
|
|
|
|
/obj/structure/closet/critter/cow
|
|
name = "cow crate"
|
|
content_mob = /mob/living/simple_animal/cow
|
|
|
|
/obj/structure/closet/critter/pig
|
|
name = "pig crate"
|
|
content_mob = /mob/living/simple_animal/pig
|
|
|
|
/obj/structure/closet/critter/goat
|
|
name = "goat crate"
|
|
content_mob = /mob/living/simple_animal/hostile/retaliate/goat
|
|
|
|
/obj/structure/closet/critter/turkey
|
|
name = "turkey crate"
|
|
content_mob = /mob/living/simple_animal/turkey
|
|
|
|
/obj/structure/closet/critter/chick
|
|
name = "chicken crate"
|
|
content_mob = /mob/living/simple_animal/chick
|
|
|
|
/obj/structure/closet/critter/chick/populate_contents()
|
|
amount = rand(1, 3)
|
|
|
|
/obj/structure/closet/critter/cat
|
|
name = "cat crate"
|
|
content_mob = /mob/living/simple_animal/pet/cat
|
|
|
|
/obj/structure/closet/critter/cat/populate_contents()
|
|
if(prob(50))
|
|
content_mob = /mob/living/simple_animal/pet/cat/Proc
|
|
|
|
/obj/structure/closet/critter/pug
|
|
name = "pug crate"
|
|
content_mob = /mob/living/simple_animal/pet/dog/pug
|
|
|
|
/obj/structure/closet/critter/fox
|
|
name = "fox crate"
|
|
content_mob = /mob/living/simple_animal/pet/dog/fox
|
|
|
|
/obj/structure/closet/critter/butterfly
|
|
name = "butterfly crate"
|
|
content_mob = /mob/living/simple_animal/butterfly
|
|
|
|
/obj/structure/closet/critter/deer
|
|
name = "deer crate"
|
|
content_mob = /mob/living/simple_animal/deer
|
|
|
|
/obj/structure/closet/critter/bunny
|
|
name = "bunny crate"
|
|
content_mob = /mob/living/simple_animal/bunny
|
|
|
|
/obj/structure/closet/critter/gorilla
|
|
name = "gorilla crate"
|
|
content_mob = /mob/living/simple_animal/hostile/gorilla
|
|
|
|
/obj/structure/closet/critter/gorilla/cargo
|
|
name = "cargorilla crate"
|
|
content_mob = /mob/living/simple_animal/hostile/gorilla/cargo_domestic
|