Skip to content

Commit

Permalink
add snowflake ignore check for projectiles and nests
Browse files Browse the repository at this point in the history
  • Loading branch information
fira committed Nov 7, 2023
1 parent e14781f commit 152d696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@

current_mob.pixel_y = initial(buckled_mob.pixel_y)
current_mob.pixel_x = initial(buckled_mob.pixel_x)
//current_mob.density = !(current_mob.lying || current_mob.stat == DEAD)
REMOVE_TRAIT(current_mob, TRAIT_UNDENSE, XENO_NEST_TRAIT)

if(dir == SOUTH)
Expand Down
4 changes: 2 additions & 2 deletions code/modules/projectiles/projectile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,8 @@
//mobs use get_projectile_hit_chance instead of get_projectile_hit_boolean

/mob/living/proc/get_projectile_hit_chance(obj/projectile/P)
if(body_position == LYING_DOWN && src != P.original)
return FALSE
if((body_position == LYING_DOWN || HAS_TARIT(TRAIT_NESTED)) && src != P.original)

Check failure on line 769 in code/modules/projectiles/projectile.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined proc: "HAS_TARIT" on /mob/living
return FALSE // Snowflake check for xeno nests, because we want bullets to fly through even though they're standing in it
var/ammo_flags = P.ammo.flags_ammo_behavior | P.projectile_override_flags
if(ammo_flags & AMMO_XENO)
if((status_flags & XENO_HOST) && HAS_TRAIT(src, TRAIT_NESTED))
Expand Down

0 comments on commit 152d696

Please sign in to comment.