mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
VS: Implement shadekin as a legit big deal
This commit is contained in:
20
code/_onclick/hud/screen_objects_vr.dm
Normal file
20
code/_onclick/hud/screen_objects_vr.dm
Normal file
@@ -0,0 +1,20 @@
|
||||
/obj/screen/proc/Click_vr(location, control, params)
|
||||
if(!usr) return 1
|
||||
switch(name)
|
||||
|
||||
//Shadekin
|
||||
if("darkness")
|
||||
var/mob/living/simple_animal/shadekin/sk = usr
|
||||
var/turf/T = get_turf(sk)
|
||||
var/darkness = round(1 - T.get_lumcount(),0.1)
|
||||
to_chat(usr,"<span class='notice'><b>Darkness:</b> [darkness]</span>")
|
||||
if("energy")
|
||||
var/mob/living/simple_animal/shadekin/sk = usr
|
||||
to_chat(usr,"<span class='notice'><b>Energy:</b> [sk.energy] ([sk.dark_gains])</span>")
|
||||
|
||||
|
||||
|
||||
else
|
||||
return 0
|
||||
|
||||
return 1
|
||||
Reference in New Issue
Block a user