mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] Shadekin and Xenochimera variable refactor (#10872)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
5b1679c8c7
commit
c6b9ab647c
@@ -46,15 +46,14 @@
|
||||
to_chat(L, span_danger("The more you move through this darkness, the more you can feel a throbbing, shooting ache in your bones."))
|
||||
if(prob(5))
|
||||
L.visible_message("[L]'s body gives off a faint, sparking, haze...", "Your body gives off a faint, sparking, haze...", runemessage = "gives off a faint, sparking haze")
|
||||
else if(istype(L.species, /datum/species/shadekin))
|
||||
var/obj/item/organ/internal/brain/shadekin/B = L.internal_organs_by_name["brain"]
|
||||
B.dark_energy += 10
|
||||
var/datum/component/shadekin/comp = L.GetComponent(/datum/component/shadekin)
|
||||
if(comp)
|
||||
comp.dark_energy += 10
|
||||
if(prob(10))
|
||||
to_chat(L, span_notice("You can feel the energy flowing into you!"))
|
||||
else
|
||||
if(prob(0.25))
|
||||
to_chat(L, span_danger("The darkness seethes under your feet..."))
|
||||
L.hallucination += 50
|
||||
else if(prob(0.25))
|
||||
to_chat(L, span_danger("The darkness seethes under your feet..."))
|
||||
L.hallucination += 50
|
||||
|
||||
/obj/effect/dark/proc/light_check()
|
||||
var/turf/T = get_turf(src)
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
var/datum/map_template/shelter/template
|
||||
|
||||
var/ability_cost = 100
|
||||
var/tunnel_time = 60 SECONDS
|
||||
|
||||
if(!shadekin_ability_check())
|
||||
return FALSE
|
||||
@@ -88,7 +89,7 @@
|
||||
smoke.start()
|
||||
|
||||
src.visible_message(span_notice("[src] begins pulling dark energies around themselves."))
|
||||
if(do_after(src, 600)) //60 seconds
|
||||
if(do_after(src, tunnel_time))
|
||||
playsound(src, 'sound/effects/phasein.ogg', 100, 1)
|
||||
src.visible_message(span_notice("[src] finishes pulling dark energies around themselves, creating a portal."))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user