7e9b96a00f
* Maps and things no code/icons * helpers defines globalvars * Onclick world.dm orphaned_procs * subsystems Round vote and shuttle autocall done here too * datums * Game folder * Admin - chatter modules * clothing - mining * modular computers - zambies * client * mob level 1 * mob stage 2 + simple_animal * silicons n brains * mob stage 3 + Alien/Monkey * human mobs * icons updated * some sounds * emitter y u no commit * update tgstation.dme * compile fixes * travis fixes Also removes Fast digest mode, because reasons. * tweaks for travis Mentors are broke again Also fixes Sizeray guns * oxygen loss fix for vore code. * removes unused code * some code updates * bulk fixes * further fixes * outside things * whoops. * Maint bar ported * GLOBs.
101 lines
2.9 KiB
Plaintext
101 lines
2.9 KiB
Plaintext
//Janitors! Janitors, janitors, janitors! -Sayu
|
|
|
|
|
|
//Conspicuously not-recent versions of suspicious cleanables
|
|
|
|
//This file was made not awful by Xhuis on September 13, 2016
|
|
|
|
//Making the station dirty, one tile at a time. Called by master controller's setup_objects
|
|
|
|
/turf/open/floor/proc/MakeDirty()
|
|
if(prob(66)) //fastest possible exit 2/3 of the time
|
|
return
|
|
|
|
if(!(flags & CAN_BE_DIRTY))
|
|
return
|
|
|
|
if(locate(/obj/structure/grille) in contents)
|
|
return
|
|
|
|
var/area/A = get_area(src)
|
|
|
|
if(A && !(A.flags & CAN_BE_DIRTY))
|
|
return
|
|
|
|
//The code below here isn't exactly optimal, but because of the individual decals that each area uses it's still applicable.
|
|
|
|
//high dirt - 1/3
|
|
if(istype(A, /area/toxins/test_area) || istype(A, /area/mine/production) || istype(A, /area/mine/living_quarters) || istype(A, /area/mine/north_outpost) || istype(A, /area/mine/west_outpost) || istype(A, /area/wreck) || istype(A, /area/derelict) || istype(A, /area/djstation))
|
|
new /obj/effect/decal/cleanable/dirt(src) //vanilla, but it works
|
|
return
|
|
|
|
if(prob(80)) //mid dirt - 1/15
|
|
return
|
|
|
|
if(istype(A, /area/engine) || istype(A,/area/assembly) || istype(A,/area/maintenance) || istype(A,/area/construction))
|
|
//Blood, sweat, and oil. Oh, and dirt.
|
|
if(prob(3))
|
|
new /obj/effect/decal/cleanable/blood/old(src)
|
|
else
|
|
if(prob(35))
|
|
if(prob(4))
|
|
new /obj/effect/decal/cleanable/robot_debris/old(src)
|
|
else
|
|
new /obj/effect/decal/cleanable/oil(src)
|
|
else
|
|
new /obj/effect/decal/cleanable/dirt(src)
|
|
return
|
|
|
|
if(istype(A, /area/crew_quarters/toilet) || istype(A, /area/crew_quarters/locker/locker_toilet))
|
|
if(prob(40))
|
|
if(prob(90))
|
|
new /obj/effect/decal/cleanable/vomit/old(src)
|
|
else
|
|
new /obj/effect/decal/cleanable/blood/old(src)
|
|
return
|
|
|
|
if(istype(A, /area/quartermaster))
|
|
if(prob(25))
|
|
new /obj/effect/decal/cleanable/oil(src)
|
|
return
|
|
|
|
if(prob(75)) //low dirt - 1/60
|
|
return
|
|
|
|
if(istype(A, /area/ai_monitored/turret_protected) || istype(A, /area/security)) //chance of incident
|
|
if(prob(20))
|
|
if(prob(5))
|
|
new /obj/effect/decal/cleanable/blood/gibs/old(src)
|
|
else
|
|
new /obj/effect/decal/cleanable/blood/old(src)
|
|
return
|
|
|
|
|
|
if(istype(A, /area/crew_quarters/kitchen)) //Kitchen messes
|
|
if(prob(60))
|
|
if(prob(50))
|
|
new /obj/effect/decal/cleanable/egg_smudge(src)
|
|
else
|
|
new /obj/effect/decal/cleanable/flour(src)
|
|
return
|
|
|
|
if(istype(A, /area/medical)) //Kept clean, but chance of blood
|
|
if(prob(66))
|
|
if(prob(5))
|
|
new /obj/effect/decal/cleanable/blood/gibs/old(src)
|
|
else
|
|
new /obj/effect/decal/cleanable/blood/old(src)
|
|
else if(prob(30))
|
|
if(istype(A, /area/medical/morgue))
|
|
new /obj/item/weapon/ectoplasm(src)
|
|
else
|
|
new /obj/effect/decal/cleanable/vomit/old(src)
|
|
return
|
|
|
|
if(istype(A, /area/toxins))
|
|
if(prob(20))
|
|
new /obj/effect/decal/cleanable/greenglow(src) //this cleans itself up but it might startle you when you see it.
|
|
return
|
|
|
|
return TRUE
|