mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +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
@@ -137,6 +137,35 @@
|
||||
else
|
||||
new /obj/effect/temp_visual/bleed(get_turf(owner))
|
||||
|
||||
/datum/status_effect/teleport_sickness
|
||||
id = "teleportation sickness"
|
||||
duration = 30 SECONDS
|
||||
status_type = STATUS_EFFECT_REFRESH
|
||||
alert_type = /obj/screen/alert/status_effect/teleport_sickness
|
||||
var/teleports = 1
|
||||
|
||||
/obj/screen/alert/status_effect/teleport_sickness
|
||||
name = "Teleportation sickness"
|
||||
desc = "You feel like you are going to throw up with all this teleporting."
|
||||
icon_state = "bluespace"
|
||||
|
||||
/datum/status_effect/teleport_sickness/refresh()
|
||||
. = ..()
|
||||
if(ishuman(owner))
|
||||
var/mob/living/carbon/human/M = owner
|
||||
teleports++
|
||||
if(teleports < 3)
|
||||
return
|
||||
if(teleports < 6)
|
||||
to_chat(M, "<span class='warning'>You feel a bit sick!</span>")
|
||||
M.vomit(lost_nutrition = 15, blood = 0, stun = 0, distance = 0, message = 1)
|
||||
M.Weaken(2 SECONDS)
|
||||
else
|
||||
to_chat(M, "<span class='danger'>You feel really sick!</span>")
|
||||
M.adjustBruteLoss(rand(0, teleports * 2))
|
||||
M.vomit(lost_nutrition = 30, blood = 0, stun = 0, distance = 0, message = 1)
|
||||
M.Weaken(6 SECONDS)
|
||||
|
||||
/datum/status_effect/pacifism
|
||||
id = "pacifism_debuff"
|
||||
alert_type = null
|
||||
|
||||
Reference in New Issue
Block a user