RimWorld

RimWorld

132 ratings
Quality Affects HP
4
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5, 1.6
File Size
Posted
Updated
172.996 KB
6 Dec, 2022 @ 11:41am
20 Jul @ 6:12am
6 Change Notes ( view )

Subscribe to download
Quality Affects HP

In 1 collection by SappyZoe
Mods by Fluxilis / Logan76667
2 items
Description
Makes quality affects hitpoints of all things, so higher quality means that items like armor last longer.

To be clear, if something has Quality and Hitpoints, this mod will probably affect that. That includes apparel and weapons that have Quality, as well as furniture and art. If a mod adds quality to something that doesn't have it in the base game, it should apply to that too.

Hp factors are:
  • Awful: x0.5
  • Poor: x0.75
  • Normal: x1
  • Good: x1.75
  • Excellent: x3
  • Masterwork: x6
  • Legendary: x10

With 1.6, there may occasionally be small rounding errors. Meaning some items may have a few hit points more or fewer than the maxHP. I'll hopefully be able to fix this in an update soon.
Additionally, minified items will have their maxHP increased, but not their currentHP. This only applies to the minified version, once you install it, it will be back to normal, and sale value is not affected.

[Mod was previously called German Quality]

Savegame Compatibility
Will work with existing savegame, but requires some manual maintanance to make it work seamlessly※.
Adding this mod won't crash or break your save, but all existing things with quality will have their maxhp changed, but not their current hp. This means that, for example, all of your untouched legendary gear and furniture will now be at 10% hp.

Fine to remove from a savegame.
Max hp will be reset to Vanilla values, but current hp won't, so you'll have some things with current hp > max hp. This shouldn't cause any issues though.

※With my other mod, using the "Fix All Buildings" and "Fix Every Pawn's Gear" Actions, you'll be good to go without any of the issues or weirdness mentioned above. You can unsubscribe from that mod as soon as you're done.
If you feel like fixing everything to 100%HP is cheating, there are also debug actions to set stuff to x% of max HP as you wish.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2898787033


Mod Compatibility
Should be compatible with most mods.

Compatibility issues could exist if a mod:
  • Adds new Quality levels
  • Allows you to change the Quality of an already existing item.
  • Makes changes to the MaxHitPoints def or otherwise affects max hitpoints
  • Uses different functions to create new items. Those will have their max hp modified, but there's a chance they will spawn at incorrect current hp.


Feedback welcome.
Feel free to do whatever you want with this mod including editing and reposting (WTFPL License).
85 Comments
Serge 3 hours ago 
Can we tweak the multipliers or are they hardcoded? I tried lowering legendary multipliers from 10x to 3x, and that afffects only starting HP (not max HP) - is there a repo somewhere i can pull request to fix this?
Also having a similar issue, gear works fine but structures all default to their normal vanilla HP amount, and won't get repaired.
Rovstam 22 Jul @ 1:39pm 
Please make an option to have that building bug enablable. I have a legendary couch that's worth 98 silver lmao. Having buildings at low HP IS an inherently good thing You have good stuff for low wealth. it's a win-win (except if you plan on sell those things)
rocketralpho 22 Jul @ 9:01am 
I have been having the same issue. Did you guys manage to fix it? People seem to have it slightly different but my issue is that when ever I make a building, like a bed it's at normal health there was a similar problem was before the mod got updated to 1.6 but the differences is that now when making gear it is normal works fine. when before it had the same problem as the beds and chairs
SappyZoe  [author] 21 Jul @ 9:26am 
hmm has to be a compatibility issue too, it's working fine for me.
If you can get me a log I can have a look at that too, I want to fix the other minify issue too when I have some time, but I'm not confident that will fix your issue
Tony Stank 21 Jul @ 8:49am 
no, they have to repair it again
SappyZoe  [author] 21 Jul @ 8:44am 
When you install it after minify, does it go back to full health?
I know that minified items are not working full right now, but the inner thing should be working okay
Tony Stank 21 Jul @ 5:23am 
Negative, they get built like normal. When built they start at 100 health (even though their max is like 400) and pawns wont repair unless you move it to another spot. When you minify it then its current health goes down to vanilla levels even though it was at its max health before the minify.
SappyZoe  [author] 21 Jul @ 2:25am 
@Iopy the log says it's trimmed to 10k lines, the info I'm looking for is not there.
It should show up in the (hopefully shorter) in-game debug log window though (the left-most button in the dev-mode bar at the top). Can you get me that?

@Tony Stank are you using a mod that lets you directly create buildings like beds and chairs in minified (uninstalled) form, rather than building a bed, and then uninstalling them?

@Sisyphean the value is still percentage based same as before. so a modded piece of gear at 50% hp has the same value as an unmodded piece of gear at 50%hp.
What do you mean by weapon stats? Do you mean reducing the damage they deal when the weapon is damaged?
Iopy 20 Jul @ 10:15pm 
Hey SappyZoe, here is the log with Verbose Logging turned on, hope it helps identify the problem:

https://gist.github.com/HugsLibRecordKeeper/334175e2152b6987846fe913e24cdca6