边缘世界 RimWorld

边缘世界 RimWorld

62 个评价
Rimbody - Stat Module
2
   
奖励
收藏
已收藏
取消收藏
Mod, 1.5, 1.6
文件大小
发表于
更新日期
154.951 KB
2024 年 11 月 28 日 上午 5:17
9 月 10 日 上午 8:03
10 项改动说明 ( 查看 )

订阅以下载
Rimbody - Stat Module

描述
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]
39 条留言
Woodsaber 10 月 27 日 上午 4:14 
Don't worry about it, I am not confident enough to make any use of those coefficients. Thanks for offering though.
And yeah, those changes were just some spit-balled personal use cases. They probably shouldn't be considered unless they had an actual reason to be modified by fat or muscle.
In any case it's genuinely awesome you would discuss to this technical level and be open to ideas.
Maux  [作者] 10 月 27 日 上午 1:25 
@Woodsaber This is my interpretation of bodysize in Rimworld, which makes me hesitant to link muslce/fat to size-related stats.
Another reason I am hesitant is that the stat offsets takes bodysize effect from vanilla into account, so making the muscle/fat adjust bodysize would mean muscle/fat is affecting all the stats twice.
If you think I should still consider making a patch for bodysize, feel free to tell me. If I think it is reasonable, I'd be glad to integrate the stats in the mod.
Maux  [作者] 10 月 27 日 上午 1:25 
@Woodsaber As for the bodysize, I can make a integration patch for Big and Small if you request. However I believe the bodysize is more about physical size, rather than body composition. Below is a reply I gave to someone who asked about bodysize:

"Body size determines how big or small a pawn is. RimBody defines their body composition. Fat and muscle values in RimBody are relative to a pawn's size, not absolute values. For example, a baby could be very fat or muscular for their size, but their overall body size would still be small. Similarly, you could have a very skinny giant. You can roughly think of body size like "height". How fat or muscular a pawn is doesn’t affect how tall they are, and vice versa."
Maux  [作者] 10 月 27 日 上午 1:23 
@Woodsaber I can expose the coefficient used in this mod so that you can adjust them. However some of them are connected, like meat amount and leather amount, so their coefficient will be tied, but it should still give you some freedom to do what you want. I am currently working on Rimbody Core and Rimpsyche's new module though, so it would have to wait till next week at least.
Woodsaber 10 月 25 日 上午 5:22 
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  [作者] 10 月 25 日 上午 2:55 
@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 10 月 24 日 上午 11:51 
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 10 月 8 日 上午 5:42 
cool! (or, depending on circumstances, warm)
Maux  [作者] 10 月 4 日 上午 10:25 
@CTH2004 Yes. Fat influences ComfyTemperatureMin and ComfyTemperatureMax already as can be seen in the table.
CTH2004 10 月 4 日 上午 9:46 
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