mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-08 00:21:43 +00:00
* Fixes reviver runtime * Confusion status effect * Dizzy status effect * Drowsiness status effect * decaying -> transient * Drunkenness status effect * why use timer when SSfastprocessing work good * stuns (mostly) * weaken and immobalise * stun/weaken times * update_flags redundancies. * Slowed() * Silence + fixes transient decay * Jittery * sleeping * Paralyze -> weaken * Cult sluring * paralyse * Stammer * slurring + projectile cleanups * losebreath * Hallucination * forgor this * eyeblurry * eye blind * Druggy * affected didn't like my spacing * review pass * second review pass * some cleanups * documentation and signal framework * confusion fix * Fixes spec_stun * rejuv fix * removes a TODO * conflicted myself * fixes * self review * review * removes TODOs * adminfreeze * TM fixes * hallucination fix + others * tones down alchol and runtime fixes * confusion overlay suggestion * more fixes * runtime fix * losebreath fix * clamp => directional bounded sum * steel review * oops Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> * reduces the dizziness cycle rate * borg hotfix * sanctified decursening Co-authored-by: mochi <1496804+dearmochi@users.noreply.github.com> Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
/mob/living
|
|
var/last_taste_time
|
|
var/last_taste_text
|
|
|
|
/mob/living/proc/get_taste_sensitivity()
|
|
return TASTE_SENSITIVITY_NORMAL
|
|
|
|
/mob/living/carbon/human/get_taste_sensitivity()
|
|
if(dna.species)
|
|
return dna.species.taste_sensitivity
|
|
else
|
|
return TASTE_SENSITIVITY_NORMAL
|
|
|
|
// non destructively tastes a reagent container
|
|
/mob/living/proc/taste(datum/reagents/from)
|
|
if(last_taste_time + 50 < world.time)
|
|
var/taste_sensitivity = get_taste_sensitivity()
|
|
var/text_output = from.generate_taste_message(taste_sensitivity)
|
|
// We dont want to spam the same message over and over again at the
|
|
// person. Give it a bit of a buffer.
|
|
if(AmountHallucinate() > 50 SECONDS && prob(25))
|
|
text_output = pick("spiders","dreams","nightmares","the future","the past","victory",\
|
|
"defeat","pain","bliss","revenge","poison","time","space","death","life","truth","lies","justice","memory",\
|
|
"regrets","your soul","suffering","music","noise","blood","hunger","the american way")
|
|
if(text_output != last_taste_text || last_taste_time + 100 < world.time)
|
|
to_chat(src, "<span class='notice'>You can taste [text_output].</span>")
|
|
// "something indescribable" -> too many tastes, not enough flavor.
|
|
|
|
last_taste_time = world.time
|
|
last_taste_text = text_output
|