mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-30 03:53:33 +00:00
Phasing.
This commit is contained in:
@@ -949,6 +949,20 @@
|
||||
else
|
||||
step(obstacle,src.dir)
|
||||
|
||||
else if(istype(obstacle, /turf))
|
||||
if(phasing && get_charge()>=phasing_energy_drain)
|
||||
spawn()
|
||||
if(can_phase)
|
||||
can_phase = FALSE
|
||||
flick("[initial_icon]-phase", src)
|
||||
src.loc = get_step(src,src.dir)
|
||||
src.use_power(phasing_energy_drain)
|
||||
sleep(get_step_delay() * 3)
|
||||
can_phase = TRUE
|
||||
occupant_message("Phazed.")
|
||||
. = ..(obstacle)
|
||||
return
|
||||
|
||||
else//No idea when this triggers, so i won't touch it.
|
||||
. = ..(obstacle)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user