This commit is contained in:
silicons
2020-12-26 20:41:21 -08:00
parent 3228435237
commit dafc6bf89f
5 changed files with 29 additions and 6 deletions
+2 -2
View File
@@ -107,7 +107,7 @@
/**
* Attempts to make the floor dirty.
*/
/mob/living/proc/dirt_buildup(strength)
/mob/living/proc/dirt_buildup(strength =)
var/turf/open/T = loc
if(!istype(T) || !T.dirt_buildup_allowed)
return
@@ -119,7 +119,7 @@
D.dirty(strength)
else
T.dirtyness += strength
if(T.dirtyness >= T.dirt_spawn_threshold)
if(T.dirtyness >= isnull(T.dirt_spawn_threshold)? CONFIG_GET(number/turf_dirt_threshold) : T.dirt_spawn_threshold)
D = new /obj/effect/decal/cleanable/dirt(T)
D.dirty(T.dirt_spawn_threshold - T.dirtyness)
T.dirtyness = 0 // reset.