边缘世界 RimWorld

边缘世界 RimWorld

146 个评价
Quality Affects HP
5
   
奖励
收藏
已收藏
取消收藏
Mod, 1.4, 1.5, 1.6
文件大小
发表于
更新日期
177.752 KB
2022 年 12 月 6 日 上午 11:41
8 月 21 日 上午 6:20
7 项改动说明 ( 查看 )

订阅以下载
Quality Affects HP

在 SappyZoe 的 1 个合集中
Mods by Fluxilis / Logan76667
2 件物品
描述
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://psteamcommunity.yuanyoumao.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).
热门讨论 查看全部(1)
8
8 月 13 日 下午 12:57
Log console Yellow thing
Rovstam
120 条留言
xuelin 10 月 2 日 上午 2:57 
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 9 月 28 日 下午 1:44 
@SappyZoe figured it out, it wasn't your mod, sorry
xuelin 9 月 28 日 上午 9:18 
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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2898409109
Change durability according to material HP: 3417700766: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3417700766
SappyZoe  [作者] 9 月 22 日 下午 2:52 
@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 9 月 20 日 上午 7:11 
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 9 月 11 日 下午 11:52 
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 8 月 23 日 上午 5:11 
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  [作者] 8 月 22 日 上午 4:23 
Yes, that's correct, I used it to implement mod settings.
HugsLib is linked on this mod page.
小米智能收割机 8 月 21 日 下午 7:02 
After the update, an additional "HugsLib" is required as a prerequisite?
SappyZoe  [作者] 8 月 21 日 下午 1:25 
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.