add a method of limiting areas shadekin can phase in/out of

This commit is contained in:
TheGreatKitsune
2021-09-27 19:36:57 -05:00
parent 7737c7ccf1
commit 84068c791c
4 changed files with 11 additions and 0 deletions

View File

@@ -1819,6 +1819,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
name = "\improper Vault"
icon_state = "nuke_storage"
ambience = AMBIENCE_HIGHSEC
limit_shadekin_phasing = TRUE // CHOMPEdit
/area/security/checkpoint
name = "\improper Security Checkpoint"

View File

@@ -0,0 +1,2 @@
/area
var/limit_shadekin_phasing = FALSE //Allows setting areas where shadekin cannot phase in/out

View File

@@ -67,6 +67,13 @@
to_chat(src, "<span class='warning'>Not enough energy for that ability!</span>")
return FALSE
//CHOMPEdit begin - restricting areas where you can phase shift
var/area/A = T.loc
if(A?.limit_shadekin_phasing)
to_chat(src, "<span class='warning'>You can't use that here!</span>")
return FALSE
//CHOMPEdit end
if(!(ability_flags & AB_PHASE_SHIFTED))
shadekin_adjust_energy(-ability_cost)
playsound(src, 'sound/effects/stealthoff.ogg', 75, 1)

View File

@@ -599,6 +599,7 @@
#include "code\game\antagonist\station\traitor.dm"
#include "code\game\area\ai_monitored.dm"
#include "code\game\area\areas.dm"
#include "code\game\area\areas_ch.dm"
#include "code\game\area\areas_vr.dm"
#include "code\game\area\asteroid_areas.dm"
#include "code\game\area\Away Mission areas.dm"