Skip to content

Commit

Permalink
Cosmic Fields now block projectiles (#3150)
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy authored Sep 8, 2024
1 parent c3a3594 commit 7887872
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions monkestation/code/game/objects/effects/forcefields.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/obj/effect/forcefield/cosmic_field/CanAllowThrough(atom/movable/mover, border_dir)
if(isprojectile(mover))
var/obj/projectile/projectile = mover
if(isliving(projectile.firer))
var/mob/living/living_firer = projectile.firer
if(living_firer.has_status_effect(/datum/status_effect/star_mark))
return FALSE
return ..()
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -5866,6 +5866,7 @@
#include "monkestation\code\game\machinery\trains\train_network.dm"
#include "monkestation\code\game\objects\items.dm"
#include "monkestation\code\game\objects\effects\countdown.dm"
#include "monkestation\code\game\objects\effects\forcefields.dm"
#include "monkestation\code\game\objects\effects\glowshroom.dm"
#include "monkestation\code\game\objects\effects\landmark.dm"
#include "monkestation\code\game\objects\effects\sprint_dust.dm"
Expand Down

0 comments on commit 7887872

Please sign in to comment.