[MIRROR] Makes alt cookies a var on species [MDB IGNORE] (#12874)

* makes alt cookies a var on species (#66245)

* Makes alt cookies a var on species

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-04-18 16:30:44 -07:00
committed by GitHub
co-authored by John Willard
parent 3b2e0daed2
commit 5af8bb9759
6 changed files with 8 additions and 12 deletions
+1 -12
View File
@@ -989,18 +989,7 @@
if(!ishuman(H))
to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human.", confidential = TRUE)
return
//let's keep it simple
//milk to plasmemes and skeletons, meat to lizards, electricity bars to ethereals, cookies to everyone else
var/cookiealt = /obj/item/food/cookie
if(isskeleton(H))
cookiealt = /obj/item/reagent_containers/food/condiment/milk
else if(isplasmaman(H))
cookiealt = /obj/item/reagent_containers/food/condiment/milk
else if(isethereal(H))
cookiealt = /obj/item/food/energybar
else if(islizard(H))
cookiealt = /obj/item/food/meat/slab
var/obj/item/new_item = new cookiealt(H)
var/obj/item/new_item = new H.dna.species.species_cookie(H)
if(H.put_in_hands(new_item))
H.update_inv_hands()
else