July 5th TG sync (#1883)

July 5th TG sync
This commit is contained in:
Poojawa
2017-07-05 22:14:19 -05:00
committed by GitHub
parent 454b9c3d68
commit b1b4826c0c
1264 changed files with 149689 additions and 570309 deletions
+8 -8
View File
@@ -1,6 +1,6 @@
/mob/living/carbon/proc/dream()
set waitfor = 0
dreaming = 1
dreaming = TRUE
var/list/dreams = list(
"an ID card","a bottle","a familiar face","a crewmember","a toolbox","a security officer","the captain",
"voices from all around","deep space","a doctor","the engine","a traitor","an ally","darkness",
@@ -9,18 +9,18 @@
"a blue light","an abandoned laboratory","Nanotrasen","The Syndicate","blood","healing","power","respect",
"riches","space","a crash","happiness","pride","a fall","water","flames","ice","melons","flying"
)
for(var/i = rand(1,4),i > 0, i--)
for(var/i in 1 to rand(1, rand(3, 7)))
var/dream_image = pick(dreams)
dreams -= dream_image
to_chat(src, "<span class='notice'><i>... [dream_image] ...</i></span>")
sleep(rand(40,70))
if(paralysis <= 0)
dreaming = 0
return 0
dreaming = 0
if(stat != UNCONSCIOUS || InCritical())
break
dreaming = FALSE
return 1
/mob/living/carbon/proc/handle_dreams()
if(prob(5) && !dreaming) dream()
if(prob(5) && !dreaming)
dream()
/mob/living/carbon/var/dreaming = 0
/mob/living/carbon/var/dreaming = FALSE