RimWorld

RimWorld

146 ratings
Quality Affects HP
5
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5, 1.6
File Size
Posted
Updated
177.752 KB
6 Dec, 2022 @ 11:41am
21 Aug @ 6:20am
7 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

You can change the Hp factors in the mod settings, but you must restart the game after changing, and it'll create some jank if you do it for an existing save.


Savegame Compatibility
Not good.

Will _technically_ 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.

Similar when removing from a savegame.
Max hp will be reset to Vanilla values, but current hp won't, so your higher quality things may have current hp > max hp. This shouldn't cause any serious 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://gtm.steamproxy.vip/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).
Popular Discussions View All (1)
8
13 Aug @ 12:57pm
Log console Yellow thing
Rovstam
120 Comments
xuelin 2 Oct @ 2:57am 
It has been resolved. I have created a localized compatible version, but this type of mod that modifies durability is not compatible with other mods that have an impact on it. I don't understand many things
dontshoot 28 Sep @ 1:44pm 
@SappyZoe figured it out, it wasn't your mod, sorry
xuelin 28 Sep @ 9:18am 
Can you make the two mods compatible? Here is a link to another mod that can adjust the durability of an item based on its raw materials. After using two mods at the same time, I created a new item and the durability panel displayed was not correct. Here is an example: durability value: 1250/780. Normally, it should be 1250/1250, but the durability limit displayed is 780
Please, I really want the two mods to work together.:steamhappy:
Current mod: Change durability according to quality HP: 2898409109: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2898409109
Change durability according to material HP: 3417700766: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3417700766
SappyZoe  [author] 22 Sep @ 2:52pm 
@dontshoot the only thing I could imagine is if the masterwork/legendary ones have low durability %, even if the actual hitpoints is still high (compared to normal gear). I think traders won't buy those? Otherwise I can't think how this mod would affect that.

@Staysan_V I couldn't reproduce your issue, and given people are still using the mod and no one else reported the same issue, I don't think it's something I can do anything about.
dontshoot 20 Sep @ 7:11am 
Faced an issue when I couldn't sell high quality clothing to orbital trader, thinking maybe this mod has something to do with that? Same trader bought capes made from same material of good/excellent quality but won't buy masterworks/legendary ones.
Stasyan_V 11 Sep @ 11:52pm 
Good day, after the last update the mod does not work correctly. everything that is made comes with basic durability. clothes, weapons and furniture. will there be an update of the mod?
epq1176 23 Aug @ 5:11am 
Even when no other mods are enabled, the code in this mod that adjusts item hit points executes twice when an item is created.
This is why, when used together with Infusion, an item's hit points can exceed its maximum limit.
SappyZoe  [author] 22 Aug @ 4:23am 
Yes, that's correct, I used it to implement mod settings.
HugsLib is linked on this mod page.
小米智能收割机 21 Aug @ 7:02pm 
After the update, an additional "HugsLib" is required as a prerequisite?
SappyZoe  [author] 21 Aug @ 1:25pm 
Alright, so that's fixed now?
Don't think there's anything I can do about the Infusion thing, but I'll see if they have a public repo so I can see what they're doing.