mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
update ghost toggle darkness (#33171)
* update ghost toggle darkness * remove singleline switch
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user