mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-21 04:07:52 +01:00
+5



![github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>](/assets/img/avatar_default.png)





CHOMPStation2
GitHub
Heroman3003
Kashargul
Guti
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
CHOMPStation2
Raeschen
Changelogs
Aroliacue
Eli
tacoguy7765093
Nadyr
TheGreatKitsune
Missile597
aab270c74f
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com> Co-authored-by: Raeschen <rycoop29@gmail.com> Co-authored-by: Changelogs <action@github.com> Co-authored-by: Aroliacue <96730930+Aroliacue@users.noreply.github.com> Co-authored-by: Eli <fracshun@gmail.com> Co-authored-by: tacoguy7765093 <karokaromaro@gmail.com> Co-authored-by: Nadyr <41974248+Darlantanis@users.noreply.github.com> Co-authored-by: TheGreatKitsune <88862343+TheGreatKitsune@users.noreply.github.com> Co-authored-by: Missile597 <150307788+Missile597@users.noreply.github.com>
64 lines
2.0 KiB
Plaintext
64 lines
2.0 KiB
Plaintext
/datum/artifact_effect/teleport
|
|
name = "teleport"
|
|
effect_type = EFFECT_BLUESPACE
|
|
effect_state = "pulsing"
|
|
effect_color = "#88ffdb"
|
|
|
|
/datum/artifact_effect/teleport/DoEffectTouch(var/mob/user)
|
|
var/atom/holder = get_master_holder()
|
|
var/weakness = GetAnomalySusceptibility(user)
|
|
if(prob(100 * weakness))
|
|
to_chat(user, span_red("You are suddenly zapped away elsewhere!"))
|
|
if (user.buckled)
|
|
user.buckled.unbuckle_mob()
|
|
|
|
var/datum/effect/effect/system/spark_spread/sparks = new /datum/effect/effect/system/spark_spread()
|
|
sparks.set_up(3, 0, get_turf(user))
|
|
sparks.start()
|
|
|
|
user.Move(pick(trange(50, get_turf(holder))))
|
|
|
|
sparks = new /datum/effect/effect/system/spark_spread()
|
|
sparks.set_up(3, 0, user.loc)
|
|
sparks.start()
|
|
|
|
/datum/artifact_effect/teleport/DoEffectAura()
|
|
var/atom/holder = get_master_holder()
|
|
if(holder)
|
|
var/turf/T = get_turf(holder)
|
|
for (var/mob/living/M in range(src.effectrange,T))
|
|
var/weakness = GetAnomalySusceptibility(M)
|
|
if(prob(100 * weakness))
|
|
to_chat(M, span_red("You are displaced by a strange force!"))
|
|
if(M.buckled)
|
|
M.buckled.unbuckle_mob(M)
|
|
|
|
var/datum/effect/effect/system/spark_spread/sparks = new /datum/effect/effect/system/spark_spread()
|
|
sparks.set_up(3, 0, get_turf(M))
|
|
sparks.start()
|
|
|
|
M.Move(pick(trange(50, T)))
|
|
sparks = new /datum/effect/effect/system/spark_spread()
|
|
sparks.set_up(3, 0, M.loc)
|
|
sparks.start()
|
|
|
|
/datum/artifact_effect/teleport/DoEffectPulse()
|
|
var/atom/holder = get_master_holder()
|
|
if(holder)
|
|
var/turf/T = get_turf(holder)
|
|
for (var/mob/living/M in range(src.effectrange, T))
|
|
var/weakness = GetAnomalySusceptibility(M)
|
|
if(prob(100 * weakness))
|
|
to_chat(M, span_red("You are displaced by a strange force!"))
|
|
if(M.buckled)
|
|
M.buckled.unbuckle_mob()
|
|
|
|
var/datum/effect/effect/system/spark_spread/sparks = new /datum/effect/effect/system/spark_spread()
|
|
sparks.set_up(3, 0, get_turf(M))
|
|
sparks.start()
|
|
|
|
M.Move(pick(trange(50, T)))
|
|
sparks = new /datum/effect/effect/system/spark_spread()
|
|
sparks.set_up(3, 0, M.loc)
|
|
sparks.start()
|