Merge branch 'master' of git://github.com/Baystation12/Baystation12

This commit is contained in:
SkyMarshal
2011-12-27 13:45:15 -07:00
7 changed files with 50 additions and 19 deletions
+30 -13
View File
@@ -6,8 +6,9 @@
New()
..()
step_rand(src)
step_rand(src)
step(src, pick(cardinal))
step(src, pick(cardinal))
step(src, pick(cardinal))
anchored = 1
spawn(300) del(src)
@@ -503,12 +504,6 @@
activate(var/mob/living/carbon/mob,var/multiplier)
mob.say("*groan")
/datum/disease2/effect/lesser/scream
name = "Loudness Syndrome"
stage = 4
activate(var/mob/living/carbon/mob,var/multiplier)
mob.say("*scream")
/datum/disease2/effect/lesser/drool
name = "Saliva Effect"
stage = 1
@@ -527,6 +522,31 @@
activate(var/mob/living/carbon/mob,var/multiplier)
mob.say("*twitch")
/datum/disease2/effect/lesser/pale
name = "Ghost Effect"
stage = 1
activate(var/mob/living/carbon/mob,var/multiplier)
if(prob(10))
mob.emote("me",1,"looks very pale.")
/datum/disease2/effect/lesser/stumble
name = "Poor Balance Syndrome"
stage = 3
activate(var/mob/living/carbon/mob,var/multiplier)
if(!mob.client) return
// little trick, this way you only stumble while moving
if(world.time < mob.client.move_delay + 10)
step(mob, pick(cardinal))
mob.emote("me",1,"stumbles over their own feet.")
/datum/disease2/effect/lesser/hoarse
name = "Hoarse Throat"
stage = 1
activate(var/mob/living/carbon/mob,var/multiplier)
mob.disease_symptoms |= DISEASE_HOARSE
/*Removed on request by Spaceman, due to it being detrimental to RP. -CN
/datum/disease2/effect/lesser/deathgasp
name = "Zombie Syndrome"
@@ -534,11 +554,8 @@
activate(var/mob/living/carbon/mob,var/multiplier)
mob.say("*deathgasp")*/
/datum/disease2/effect/lesser/giggle
name = "Uncontrolled Laughter Effect"
stage = 3
activate(var/mob/living/carbon/mob,var/multiplier)
mob.say("*giggle")
var/global/const/DISEASE_HOARSE = 2
var/global/const/DISEASE_WHISPER = 4
/datum/disease2/effect/lesser
+4 -1
View File
@@ -8,4 +8,7 @@
var/datum/disease2/disease/virus2 = null
var/list/datum/disease2/disease/resistances2 = list()
var/antibodies = 0
var/antibodies = 0
mob
var/list/disease_symptoms = 0 // a list of disease-incurred symptoms
+4 -2
View File
@@ -51,8 +51,10 @@
for(var/datum/disease/D in patient.viruses)
if(!D.hidden[SCANNER])
foundVirus++
if(patient.virus2)
foundVirus++
// jesus fuck, no, don't display vira by just looking at them
/*if(patient.virus2)
foundVirus++*/
C.images += image(tempHud,patient,"hud[RoundHealth(patient.health)]")
if(patient.stat == 2)
C.images += image(tempHud,patient,"huddead")
+6 -2
View File
@@ -992,6 +992,8 @@
for(var/datum/disease/D in viruses)
D.cure()
// clean all the symptoms incurred by the virus
src.disease_symptoms = 0
if(!virus2)
// the following is silly since it lets you infect people through glass
@@ -1013,8 +1015,10 @@
// check if we're immune
if(virus2.antigen & src.antibodies) virus2.dead = 1
if(src.get_infection_chance())
var/obj/virus/V = new(src.loc)
V.disease = src.virus2
// need more pathogens
for(var/i=0, i<3, i++)
var/obj/virus/V = new(src.loc)
V.disease = src.virus2
+3
View File
@@ -132,6 +132,9 @@
if (!message)
return
if( !message_mode && (disease_symptoms & DISEASE_WHISPER))
message_mode = "whisper"
message = capitalize(message) //capitalize the first letter of what they actually say
// :downs:
+2
View File
@@ -54,6 +54,8 @@
/mob/proc/say_quote(var/text)
var/ending = copytext(text, length(text))
if (src.disease_symptoms & DISEASE_HOARSE)
return "rasps, \"[text]\"";
if (src.stuttering)
return "stammers, \"[text]\"";
if (src.slurring)