Changes eggtype to not mess with simple_mobs

This commit is contained in:
Sebbe9123
2019-02-25 11:58:14 +01:00
committed by GitHub
parent f1e9a1c7b8
commit 628ae84c15
+4 -4
View File
@@ -252,13 +252,13 @@
var/egg_path = /obj/structure/closet/secure_closet/egg
var/egg_name = "odd egg"
if(O.egg_type in tf_egg_types)
egg_path = tf_egg_types[O.egg_type]
egg_name = "[O.egg_type] egg"
if(O.vore_egg_type in tf_vore_egg_types)
egg_path = tf_vore_egg_types[O.vore_egg_type]
egg_name = "[O.vore_egg_type] egg"
var/obj/structure/closet/secure_closet/egg/egg = new egg_path(src)
M.forceMove(egg)
egg.name = egg_name
if(message)
to_chat(M, "<span class='notice'>You lose sensation of your body, feeling only the warmth around you as you're encased in an egg.</span>")
to_chat(O, "<span class='notice'>Your body shifts as you encase [M] in an egg.</span>")
to_chat(O, "<span class='notice'>Your body shifts as you encase [M] in an egg.</span>")