mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
Adds teleportation sickness to bluespace gene plants and bluespace crystals (#18218)
* Adds teleportsick to bluespace genes and bluespace crystals * Update code/datums/status_effects/debuffs.dm Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com> * named stuff * changes order * Update code/datums/status_effects/debuffs.dm Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com> Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
co-authored by
Charlie
SteelSlayer
parent
1d0e3dde0f
commit
c0802f2b90
@@ -307,10 +307,12 @@
|
||||
|
||||
/datum/plant_gene/trait/teleport/on_squash(obj/item/reagent_containers/food/snacks/grown/G, atom/target)
|
||||
if(isliving(target))
|
||||
var/mob/living/L = target
|
||||
var/teleport_radius = max(round(G.seed.potency / 10), 1)
|
||||
var/turf/T = get_turf(target)
|
||||
var/turf/T = get_turf(L)
|
||||
new /obj/effect/decal/cleanable/molten_object(T) //Leave a pile of goo behind for dramatic effect...
|
||||
do_teleport(target, T, teleport_radius)
|
||||
do_teleport(L, T, teleport_radius)
|
||||
L.apply_status_effect(STATUS_EFFECT_TELEPORTSICK)
|
||||
|
||||
/datum/plant_gene/trait/teleport/on_slip(obj/item/reagent_containers/food/snacks/grown/G, mob/living/carbon/C)
|
||||
var/teleport_radius = max(round(G.seed.potency / 10), 1)
|
||||
@@ -319,6 +321,7 @@
|
||||
to_chat(C, "<span class='warning'>You slip through spacetime!</span>")
|
||||
if(prob(50))
|
||||
do_teleport(G, T, teleport_radius)
|
||||
C.apply_status_effect(STATUS_EFFECT_TELEPORTSICK)
|
||||
else
|
||||
new /obj/effect/decal/cleanable/molten_object(T) //Leave a pile of goo behind for dramatic effect...
|
||||
qdel(G)
|
||||
|
||||
Reference in New Issue
Block a user