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:
Giacomand
2014-01-08 18:50:38 +00:00
parent 7551dd38a8
commit ddb52452a1
2 changed files with 5 additions and 3 deletions
+4 -3
View File
@@ -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