Makes your current position clearer while jaunting (#90173)

## About The Pull Request

I was fucking around testing the Voidwalker earlier for a different
issue and didn't like that I couldn't see myself while in space.
This PR makes it so that Voidwalkers and also any variant of Ethereal
Jaunt place an icon visible only to you at your current position (it's
like your _soul_) so that you can see where you are going.
Nobody else can see it.


![dreamseeker_qCXrCwHaUW](https://github.com/user-attachments/assets/3d6d1136-1658-4701-af78-057b2cfeb059)

![dreamseeker_hqH73zu66P](https://github.com/user-attachments/assets/4f620711-9a1a-4f8e-be3b-1c3367b9f9dc)



There are almost certainly some other sources of being invisible which
could use this so let me know if you are aware of one.
Although if you do that I may need to make my code more generic.

## Why It's Good For The Game

It's nice to be able to see where you are precisely rather than just it
being the centre of the screen

## Changelog

🆑
qol: It is now easier to see where you currently are while jaunting
/🆑
This commit is contained in:
Jacquerel
2025-03-23 20:00:23 +01:00
committed by GitHub
parent c370a1a0fa
commit ce669c3924
8 changed files with 93 additions and 8 deletions
@@ -14,6 +14,8 @@
spell_requirements = NONE
jaunt_type = /obj/effect/dummy/phased_mob/blood
/// The time it takes to enter blood
var/enter_blood_time = 0 SECONDS
/// The time it takes to exit blood
@@ -375,3 +377,7 @@
/obj/item/bloodcrawl/Initialize(mapload)
. = ..()
ADD_TRAIT(src, TRAIT_NODROP, ABSTRACT_ITEM_TRAIT)
/// Different graphic for the position indicator
/obj/effect/dummy/phased_mob/blood
phased_mob_icon_state = "mini_leaper"
@@ -153,6 +153,7 @@
cast_on.setDir(holder.dir)
if(jaunt_in_time > 0)
cast_on.Immobilize(jaunt_in_time, ignore_canstun = TRUE)
addtimer(CALLBACK(src, PROC_REF(end_jaunt), cast_on, holder, final_point), jaunt_in_time)
else
end_jaunt(cast_on, holder, final_point)
@@ -219,6 +220,7 @@
jaunt_duration = 5 SECONDS
jaunt_in_time = 0.6 SECONDS
jaunt_out_time = 0.6 SECONDS
jaunt_type = /obj/effect/dummy/phased_mob/spell_jaunt/red
jaunt_in_type = /obj/effect/temp_visual/dir_setting/wraith
jaunt_out_type = /obj/effect/temp_visual/dir_setting/wraith/out
@@ -238,6 +240,7 @@
/datum/action/cooldown/spell/jaunt/ethereal_jaunt/shift/golem
name = "Runic Phase Shift"
cooldown_time = 80 SECONDS
jaunt_type = /obj/effect/dummy/phased_mob/spell_jaunt/red
jaunt_in_type = /obj/effect/temp_visual/dir_setting/cult/phase
jaunt_out_type = /obj/effect/temp_visual/dir_setting/cult/phase/out
@@ -257,3 +260,7 @@
if (locate(/obj/effect/blessing) in .)
to_chat(user, span_warning("Holy energies block your path!"))
return null
/// Red coloured variant
/obj/effect/dummy/phased_mob/spell_jaunt/red
phased_mob_icon_state = "red_1"
@@ -53,6 +53,7 @@
/obj/effect/dummy/phased_mob/shadow
name = "shadows"
phased_mob_icon_state = "purple_laser"
/// Max amount of light permitted before being kicked out
var/light_max = SHADOW_SPECIES_LIGHT_THRESHOLD
/// The amount that shadow heals us per SSobj tick (times seconds_per_tick)