RimWorld

RimWorld

776 ratings
Cleaning Speed
3
5
4
3
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4, 1.5
File Size
Posted
Updated
514.763 KB
9 Feb, 2022 @ 8:37am
14 Mar @ 8:36pm
4 Change Notes ( view )

Subscribe to download
Cleaning Speed

In 1 collection by Aelanna
The Eccentric's Angels [1.4]
148 items
Description
Updated for Rimworld v1.4: Cleaning Speed is now a vanilla StatDef! However, the vanilla implementation is not affected by pawn capacities, so Cleaning Speed now simply adds the appropriate pawn capacity modifiers as well as the two traits that affect it.

A simple mini-mod that implements a Cleaning Speed stat and adds two traits that affect it. Without it, vanilla cleaning occurs at a fixed rate, with nothing positively or negatively affecting it.

Mod Contents

Cleaning Speed is multiplied by Global Work Speed (100%) and relies on Manipulation (100%) and Sight (50%). This means that the speed at which a pawn cleans will be affected by traits that modify Global Work Speed (such as Industrious, Hard Worker, Lazy, and Slothful) and implants that affect Manipulation (such as prosthetic or bionic limbs). At 100% Cleaning Speed, a pawn will clean filth at the same rate as vanilla.

Fastidious is a new trait that increases a pawn's Cleaning Speed by 50% and decreases the rate at which they generate filth by 50%.

Slovenly is a new trait that decreases a pawn's Cleaning Speed by 50% and increases the rate at which they generate filth by 50%.

Note: If you use Ideology's slavery system, Cleaning Speed will cause slaves to clean slightly slower due to their penalty to Global Work Speed.

Mod Compatibility

Cleaning Speed should be compatible with all other work-related mods unless they also attempt to modify the speed at which cleaning happens. At the time of writing, I am not aware of any mods that do so; please let me know if you encounter any issues!

Safe to Add

Cleaning Speed should be safe to add or remove from an existing save, but as always, it's in your best interest to make an extra save file just in case!

Technical Details

Cleaning Speed modifies the rate at which work is done by postfixing JobDriver_CleanFilth.MakeNewToils and replacing the tickAction of the actual work-performing Toil. CleaningSpeed values for individual pawns are cached in a static Dictionary with a lifetime of 60 ticks.

As Cleaning Speed is a fully implemented StatDef, bonuses to Cleaning Speed can be applied anywhere StatModifiers are allowed, including weapons (tools), apparel, traits, and hediffs:

<statOffsets> <CleaningSpeed MayRequire="Aelanna.CleaningSpeed">0.50</CleaningSpeed> </statOffsets>

For an example of a mod that has Cleaning Speed support, Eccentric Tech - Angel Apparel's worker uniforms and worker aprons each grant a cumulative 50% bonus to Cleaning Speed.
63 Comments
Wzl 25 May @ 3:14pm 
@Aelanna - I've a quick question about the harmony patch you were using prior to 1.4 & have sent you a friend invite. Please of course feel free to reject it!
Aelanna  [author] 19 Mar @ 4:31pm 
@Stellar Harbour - Nothing has changed in 1.5: the vanilla StatDef is identical to 1.4, and this mod merely adds the appropriate StatParts, enables it for human colonists, and adds the two related traits.
Stellar Harbour 19 Mar @ 4:03pm 
What about 1.5? Any changes?
毫无干劲的芙琳 16 Mar @ 3:00am 
great
Aelanna  [author] 4 Jun, 2023 @ 7:21pm 
@happyBirthday - This seems highly unlikely, especially considering that Cleaning Speed is a vanilla StatDef in 1.4 and this mod merely adds two traits and modifies the way that that stat is calculated. Can you provide a log?
happyBirthday 4 Jun, 2023 @ 6:31pm 
I think this mod has incompatibility with CleaningArea
Amaychan ♥ 13 Feb, 2023 @ 1:33pm 
Does this apply to biotech's pollution cleaning?
Dr Jimothy 13 Nov, 2022 @ 5:04pm 
Awful idea:
Crossover between this and Vanilla Skills Expanded where characters with the fastidious trait get access to a special skill for increasing their cleaning speed over time.
T-Bone Shark 6 Oct, 2022 @ 3:42pm 
Had to remove and resubscribe, but seems to be solved now. Thank you!
Aelanna  [author] 6 Oct, 2022 @ 1:24pm 
I pushed an update that should hopefully fix this issue, please let me know if it continues to happen. Apologies for the inconvenience!