mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
Final whispers will use the Elipses proc for extra tension.
The Elipses proc got a new argument which disables replacing words with ..., and instead just adds them.
This commit is contained in:
@@ -62,7 +62,7 @@ proc/NewStutter(phrase,stunned)
|
||||
proc/Stagger(mob/M,d) //Technically not a filter, but it relates to drunkenness.
|
||||
step(M, pick(d,turn(d,90),turn(d,-90)))
|
||||
|
||||
proc/Ellipsis(original_msg, chance = 50)
|
||||
proc/Ellipsis(original_msg, chance = 50, keep_words)
|
||||
if(chance <= 0) return "..."
|
||||
if(chance >= 100) return original_msg
|
||||
|
||||
@@ -75,8 +75,9 @@ proc/Ellipsis(original_msg, chance = 50)
|
||||
for(var/w in words)
|
||||
if(prob(chance))
|
||||
new_words += "..."
|
||||
else
|
||||
new_words += w
|
||||
if(!keep_words)
|
||||
continue
|
||||
new_words += w
|
||||
|
||||
new_msg = dd_list2text(new_words," ")
|
||||
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
// If we cut our message short, abruptly end it with a-..
|
||||
var/message_len = length(message)
|
||||
message = copytext(message, 1, health_diff) + "[message_len > health_diff ? "-.." : "..."]"
|
||||
message = Ellipsis(message, 10, 1)
|
||||
whispers = "whispers in their final breath"
|
||||
|
||||
var/italics = 1
|
||||
|
||||
Reference in New Issue
Block a user