Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions code/modules/cm_aliens/structures/egg.dm
Original file line number Diff line number Diff line change
Expand Up @@ -310,15 +310,17 @@
if(health <= 0)
Burst(TRUE)

/obj/effect/alien/egg/Crossed(atom/movable/AM)
/obj/effect/alien/egg/Crossed(atom/movable/victim)
..()
HasProximity(AM)
HasProximity(victim)

/obj/effect/alien/egg/HasProximity(atom/movable/AM)
/obj/effect/alien/egg/HasProximity(atom/movable/victim)
if(status == EGG_GROWN)
if(!can_hug(AM, hivenumber) || isyautja(AM) || issynth(AM)) //Predators are too stealthy to trigger eggs to burst. Maybe the huggers are afraid of them.
if(!can_hug(victim, hivenumber) || isyautja(victim) || issynth(victim)) //Predators are too stealthy to trigger eggs to burst. Maybe the huggers are afraid of them.
return
Burst(FALSE, TRUE, null)
var/list/possible_victims = hearers(1, src)
if(possible_victims.Find(victim))
Burst(FALSE, TRUE, null)

/obj/effect/alien/egg/flamer_fire_act() // gotta kill the egg + hugger
Burst(TRUE)
Expand Down
3 changes: 3 additions & 0 deletions code/modules/cm_aliens/structures/trap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
victim_mob.apply_effect(1, WEAKEN)
trigger_trap()
if(RESIN_TRAP_GAS, RESIN_TRAP_ACID1, RESIN_TRAP_ACID2, RESIN_TRAP_ACID3)
var/list/possible_victims = hearers(1, src)
if(!possible_victims.Find(victim))
return
if(ishuman_strict(victim))
var/mob/living/carbon/human/victim_human = victim
if(victim_human.stat == DEAD || victim_human.body_position == LYING_DOWN)
Expand Down