RimWorld

RimWorld

62 ratings
Rimbody - Stat Module
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
154.951 KB
28 Nov, 2024 @ 5:17am
10 Sep @ 8:03am
10 Change Notes ( view )

Subscribe to download
Rimbody - Stat Module

Description
Rimbody StatModule
This is a module for Rimbody mod. This module integrates Rimbody’s Muscle Mass and Body Fat into pawns' stats.

Features
  • Muscle is mostly beneficial to the stats, as most work needs muscle, and you don't gain muscle easily.
  • Fat is not so beneficial, but high fat will come in handy when you are starving, and having low fat can be deadly when you have no food.
  • Rimbody is also designed so that Fat helps pawns keep their muscle (bodyfat lowers muscle loss), so having a moderate, healthy amount of fat can be beneficial.


Detailed Stats

Vanilla
Stat
Relevant Info
Number
Mass
Muscle, Fat
40kg~110kg
Meat Amount
Muscle, Fat
x 0.5 ~ 1.375
Leather Amount
Muscle, Fat
x 0.5 ~ 1.375
Nutrition
Muscle, Fat
x 0.5 ~ 1.375
Max Nutrition
Muscle, Fat
x 0.8 ~ 1.2
Food Need
Muscle, Fat
x 0.8 ~ 1.2
Inventory Mass*
Muscle
x 0.75 ~ 1.25
Arrest Success Chance
2*Muscle, Fat
x 0.7 ~ 1.3
ComfyTemperatureMin
-Muscle, -2*Fat
-6 ~ +6
ComfyTemperatureMax
-Muscle, -2*Fat
-3 ~ 3
MoveSpeed
-Fat
x 0.85 ~ 1.15
Crawl Speed
-Fat
x 0.85 ~ 1.15
Melee Damage Factor
Muscle
x 0.85 ~ 1.15
Stagger Duration
-2*Muscle, -Fat
x 0.85 ~ 1.15
Mining Speed
Muscle
x 0.85 ~ 1.15
Smoothing Speed
Muscle
x 0.85 ~ 1.15
Planting Speed
Muscle
x 0.85 ~ 1.15
Construction Speed
Muscle
x 0.85 ~ 1.15
Deepdrill Speed
Muscle
x 0.85 ~ 1.15
Malnutrition progress
-Fat
x0.5 ~ x1.2
*If CE is active, this will not be applied as CE uses its own inventory mass system. Instead, Stat module will apply to the CE's inventory mass system.

Combat Extended
Stat
Relevant Info
Number
CarryWeight
Muscle
x 0.75 ~ 1.25
CarryBulk
Muscle
x 0.75 ~ 1.25
UnarmedDamage
Muscle
x 0.75 ~ 1.25
MeleeParryChance
Muscle
x 0.75 ~ 1.25

The source code is available on GitHub[github.com]
35 Comments
Woodsaber 10 hours ago 
Thanks for the response Maux. Sounds like another reason for me to figure out how Rimworld modding works. It's also pretty cool to hear how performance is taken into account.
As for stats, it was mainly to add a slight modifier to body size for the Big and Small mod and also make some of the other stats more dramatic. Purely just for personal preference, and nothing I could really ask to change from this mod.
Maux  [author] 12 hours ago 
@Woodsaber If you are familiar with C#, you can make a statpart that utilizes Rimbody values. Otherwise, no. This mod uses statpart to influence stats, not hediff, for performance reasons and to accommodate continuous values. And statpart is not exposed to xml. Are there some more stats you want to see modified?
Woodsaber 24 Oct @ 11:51am 
Is there a way I would be able to customise which stats are affected or by how much?
Mainly I'm hoping to try and emulate the mod Body Type Matters redux by adding a few more stats.
CTH2004 8 Oct @ 5:42am 
cool! (or, depending on circumstances, warm)
Maux  [author] 4 Oct @ 10:25am 
@CTH2004 Yes. Fat influences ComfyTemperatureMin and ComfyTemperatureMax already as can be seen in the table.
CTH2004 4 Oct @ 9:46am 
As someone with a low (nearly unhealthy) amount of bodyfat, I can tell you that it effects tempature. I get cold much easier, but also prefer warm tempatures

That's because, fat is an insulater. There is a reason many artic animals have blubber
Maux  [author] 10 Sep @ 8:00am 
@Noxilie Thank you! merged into master. Will upload the fix now
Noxilie 10 Sep @ 5:38am 
@Maux there is a typo in the 1.6/Patches/StatWorkersPatch/StatParts.xml

check my pullrequest in your github repo please
Maux  [author] 29 Aug @ 5:40pm 
@Bez. There's no way to change it currently I can expose some of the values to settings. However I am extremely busy at the moment so it might not get implemented soon.
Bez. 29 Aug @ 5:06am 
@Maux