update ghost toggle darkness (#33171)

* update ghost toggle darkness

* remove singleline switch
This commit is contained in:
samo priimek
2022-09-02 04:31:58 +02:00
committed by GitHub
parent 144f9fb01a
commit 3fe766fcfa

View File

@@ -245,10 +245,16 @@
set name = "Toggle Darkness"
set category = "Ghost"
if (see_invisible == SEE_INVISIBLE_OBSERVER_NOLIGHTING)
see_invisible = SEE_INVISIBLE_OBSERVER
else
see_invisible = SEE_INVISIBLE_OBSERVER_NOLIGHTING
if (client && client.darkness_planemaster)
switch(client.darkness_planemaster.alpha)
if(255)
client.darkness_planemaster.alpha = 230
if(230)
client.darkness_planemaster.alpha = 180
if(180)
client.darkness_planemaster.alpha = 0
else
client.darkness_planemaster.alpha = 255
/mob/dead/observer/verb/analyze_air()