mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 21:17:44 +01:00
Fixing sneezing symptom not spreading its virus airborne.
This commit is contained in:
@@ -97,8 +97,8 @@ var/list/diseases = typesof(/datum/disease) - /datum/disease
|
||||
break //One missing cure is enough to fail
|
||||
|
||||
|
||||
/datum/disease/proc/spread(var/atom/source)
|
||||
if(spread_flags & SPECIAL || spread_flags & NON_CONTAGIOUS || spread_flags & BLOOD)
|
||||
/datum/disease/proc/spread(var/atom/source, var/force_spread = 0)
|
||||
if((spread_flags & SPECIAL || spread_flags & NON_CONTAGIOUS || spread_flags & BLOOD) && !force_spread)
|
||||
return
|
||||
|
||||
if(affected_mob)
|
||||
@@ -107,6 +107,9 @@ var/list/diseases = typesof(/datum/disease) - /datum/disease
|
||||
|
||||
var/spread_range = 1
|
||||
|
||||
if(force_spread)
|
||||
spread_range = 5
|
||||
|
||||
if(spread_flags & AIRBORNE)
|
||||
spread_range++
|
||||
|
||||
|
||||
@@ -35,5 +35,5 @@ Bonus
|
||||
M.emote("sniff")
|
||||
else
|
||||
M.emote("sneeze")
|
||||
A.spread(A.holder, 5, AIRBORNE)
|
||||
A.spread(A.holder, AIRBORNE)
|
||||
return
|
||||
Reference in New Issue
Block a user