Skip to content

Commit

Permalink
frooit
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegoflores31 committed Sep 2, 2024
1 parent 13f70c3 commit b067ebc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion code/modules/cm_aliens/structures/fruit.dm
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,25 @@

// Xenos eating fruit
/obj/item/reagent_container/food/snacks/resin_fruit/attack(mob/living/carbon/xenomorph/affected_xeno, mob/user)
if(istype(user, /mob/living/carbon/xenomorph)) // Prevents xenos from feeding capped/dead marines fruit

if(istype(affected_xeno, /mob/living/carbon/human))
var/mob/living/carbon/human/humanus = affected_xeno
if(HAS_TRAIT(humanus, TRAIT_NESTED) && humanus.stat == !DEAD) // if they are not nested or dead they cant be feed.
user.visible_message(SPAN_BOLDWARNING("[user] starts forcefully feeding [humanus] with resin."))
if(!do_after(user, 3 SECONDS, INTERRUPT_ALL, BUSY_ICON_FRIENDLY, affected_xeno, INTERRUPT_MOVED, BUSY_ICON_MEDICAL))
return
playsound(src, 'sound/effects/alien_resinfeed.ogg', 25, 1)
to_chat(user, SPAN_HELPFUL("We forcefully feed [humanus] with fruit."))
to_chat(humanus, SPAN_BOLDWARNING("Your are forcefully fed with slimy resin. GROSS!"))
humanus.heal_limb_damage(30, 30)
humanus.reagents.add_reagent("fruit_resin", 10)
qdel(src)
return
if(humanus.stat == DEAD)
to_chat(user, SPAN_WARNING("[humanus] already is dead."))
return

if(istype(user, /mob/living/carbon/xenomorph))
var/mob/living/carbon/xenomorph/feeding_xeno = user
if(!feeding_xeno.can_not_harm(affected_xeno))
to_chat(feeding_xeno, SPAN_WARNING("[affected_xeno] refuses to eat [src]."))
Expand Down
Binary file added sound/effects/alien_resinfeed.ogg
Binary file not shown.

0 comments on commit b067ebc

Please sign in to comment.