mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 03:49:10 +01:00
Animal Cafe Holodeck (#19493)
 --------- Co-authored-by: Ben10083 <Ben10083@users.noreply.github.com>
This commit is contained in:
@@ -203,6 +203,14 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont
|
||||
if (get_area(P.loc) != linkedholodeck)
|
||||
holographic_mobs -= P
|
||||
P.derez()
|
||||
for(var/mob/living/simple_animal/corgi/puppy/holodeck/S in holographic_mobs)
|
||||
if (get_area(S.loc) != linkedholodeck)
|
||||
holographic_mobs -= S
|
||||
S.derez()
|
||||
for(var/mob/living/simple_animal/cat/kitten/holodeck/K in holographic_mobs)
|
||||
if (get_area(K.loc) != linkedholodeck)
|
||||
holographic_mobs -= K
|
||||
K.derez()
|
||||
|
||||
if(!operable())
|
||||
return
|
||||
@@ -293,6 +301,14 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont
|
||||
holographic_mobs -= P
|
||||
P.derez()
|
||||
|
||||
for(var/mob/living/simple_animal/corgi/puppy/holodeck/S in holographic_mobs)
|
||||
holographic_mobs -= S
|
||||
S.derez()
|
||||
|
||||
for(var/mob/living/simple_animal/cat/kitten/holodeck/K in holographic_mobs)
|
||||
holographic_mobs -= K
|
||||
K.derez()
|
||||
|
||||
for(var/obj/effect/decal/cleanable/blood/B in linkedholodeck)
|
||||
qdel(B)
|
||||
|
||||
@@ -332,6 +348,12 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont
|
||||
if(L.name=="Penguin Spawn Emperor")
|
||||
holographic_mobs += new /mob/living/simple_animal/penguin/holodeck/emperor(L.loc)
|
||||
|
||||
if(L.name=="Animal Baby Spawn Random")
|
||||
if (prob(50))
|
||||
holographic_mobs += new /mob/living/simple_animal/corgi/puppy/holodeck(L.loc)
|
||||
else
|
||||
holographic_mobs += new /mob/living/simple_animal/cat/kitten/holodeck(L.loc)
|
||||
|
||||
if(L.name=="Holocarp Spawn Random")
|
||||
if (prob(4)) //With 4 spawn points, carp should only appear 15% of the time.
|
||||
holographic_mobs += new /mob/living/simple_animal/hostile/carp/holodeck(L.loc)
|
||||
|
||||
@@ -507,3 +507,47 @@
|
||||
/mob/living/simple_animal/penguin/holodeck/proc/derez()
|
||||
visible_message(SPAN_NOTICE("\The [src] fades away!"))
|
||||
qdel(src)
|
||||
|
||||
//Holo Animal babies
|
||||
|
||||
/mob/living/simple_animal/corgi/puppy/holodeck
|
||||
icon_gib = null
|
||||
meat_amount = 0
|
||||
meat_type = null
|
||||
light_range = 2
|
||||
hunger_enabled = FALSE
|
||||
|
||||
/mob/living/simple_animal/corgi/puppy/holodeck/can_name(var/mob/living/M)
|
||||
return FALSE
|
||||
|
||||
/mob/living/simple_animal/corgi/puppy/holodeck/gib()
|
||||
derez() //holograms can't gib
|
||||
|
||||
/mob/living/simple_animal/corgi/puppy/holodeck/death()
|
||||
..()
|
||||
derez()
|
||||
|
||||
/mob/living/simple_animal/corgi/puppy/holodeck/proc/derez()
|
||||
visible_message(SPAN_NOTICE("\The [src] fades away!"))
|
||||
qdel(src)
|
||||
|
||||
/mob/living/simple_animal/cat/kitten/holodeck
|
||||
icon_gib = null
|
||||
meat_amount = 0
|
||||
meat_type = null
|
||||
light_range = 2
|
||||
hunger_enabled = FALSE
|
||||
|
||||
/mob/living/simple_animal/cat/kitten/holodeck/can_name(var/mob/living/M)
|
||||
return FALSE
|
||||
|
||||
/mob/living/simple_animal/cat/kitten/holodeck/gib()
|
||||
derez() //holograms can't gib
|
||||
|
||||
/mob/living/simple_animal/cat/kitten/holodeck/death()
|
||||
..()
|
||||
derez()
|
||||
|
||||
/mob/living/simple_animal/cat/kitten/holodeck/proc/derez()
|
||||
visible_message(SPAN_NOTICE("\The [src] fades away!"))
|
||||
qdel(src)
|
||||
|
||||
Reference in New Issue
Block a user