Stammering reworked a bit.

You now hear the ghosts again (as in sounds and flavour text), just not discern what they're saying.
People with aliens inside them can no longer suicide.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2112 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
uporotiy
2011-09-04 19:41:23 +00:00
parent f65668fae4
commit 5b26d70a5c
3 changed files with 14 additions and 8 deletions

View File

@@ -17,6 +17,10 @@
var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No") var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No")
if(alien_egg_flag)
src << "The alien inside you forces you to breathe, preventing you from suiciding."
return
if(confirm == "Yes") if(confirm == "Yes")
suiciding = 1 suiciding = 1
//instead of killing them instantly, just put them at -175 health and let 'em gasp for a while //instead of killing them instantly, just put them at -175 health and let 'em gasp for a while

View File

@@ -14,7 +14,7 @@
. = src.say_dead(message) . = src.say_dead(message)
/* for (var/mob/M in hearers(null, null)) for (var/mob/M in hearers(null, null))
if (!M.stat) if (!M.stat)
if(M.job == "Chaplain") if(M.job == "Chaplain")
if (prob (49)) if (prob (49))
@@ -22,7 +22,8 @@
if(prob(20)) if(prob(20))
playsound(src.loc, pick('ghost.ogg','ghost2.ogg'), 10, 1) playsound(src.loc, pick('ghost.ogg','ghost2.ogg'), 10, 1)
else else
M.show_message("<span class='game'><i>[stutter(message)]</i></span>", 2) M.show_message("<span class='game'><i>You hear muffled speech... you can almost make out some words...</i></span>", 2)
// M.show_message("<span class='game'><i>[stutter(message)]</i></span>", 2)
if(prob(30)) if(prob(30))
playsound(src.loc, pick('ghost.ogg','ghost2.ogg'), 10, 1) playsound(src.loc, pick('ghost.ogg','ghost2.ogg'), 10, 1)
else else
@@ -33,5 +34,6 @@
if(prob(20)) if(prob(20))
playsound(src.loc, pick('ghost.ogg','ghost2.ogg'), 10, 1) playsound(src.loc, pick('ghost.ogg','ghost2.ogg'), 10, 1)
else else
M.show_message("<span class='game'><i>[stutter(message)]</i></span>", 2) M.show_message("<span class='game'><i>You hear muffled speech... you can almost make out some words...</i></span>", 2)
playsound(src.loc, pick('ghost.ogg','ghost2.ogg'), 10, 1) */ // M.show_message("<span class='game'><i>[stutter(message)]</i></span>", 2)
playsound(src.loc, pick('ghost.ogg','ghost2.ogg'), 10, 1)

View File

@@ -268,17 +268,17 @@ proc/isobserver(A)
p = 1//1 is the start of any word p = 1//1 is the start of any word
while(p <= n)//while P, which starts at 1 is less or equal to N which is the length. while(p <= n)//while P, which starts at 1 is less or equal to N which is the length.
var/n_letter = copytext(te, p, p + 1)//copies text from a certain distance. In this case, only one letter at a time. var/n_letter = copytext(te, p, p + 1)//copies text from a certain distance. In this case, only one letter at a time.
if (prob(80)) if (prob(80) && !(n_letter in list("a","e","i","o","u","A","E","I","O","U")))
if (prob(10)) if (prob(10))
n_letter = text("[n_letter][n_letter][n_letter][n_letter]")//replaces the current letter with this instead. n_letter = text("[n_letter]-[n_letter]-[n_letter]-[n_letter]")//replaces the current letter with this instead.
else else
if (prob(20)) if (prob(20))
n_letter = text("[n_letter][n_letter][n_letter]") n_letter = text("[n_letter]-[n_letter]-[n_letter]")
else else
if (prob(5)) if (prob(5))
n_letter = null n_letter = null
else else
n_letter = text("[n_letter][n_letter]") n_letter = text("[n_letter]-[n_letter]")
t = text("[t][n_letter]")//since the above is ran through for each letter, the text just adds up back to the original word. t = text("[t][n_letter]")//since the above is ran through for each letter, the text just adds up back to the original word.
p++//for each letter p is increased to find where the next letter will be. p++//for each letter p is increased to find where the next letter will be.
return copytext(sanitize(t),1,MAX_MESSAGE_LEN) return copytext(sanitize(t),1,MAX_MESSAGE_LEN)