边缘世界 RimWorld

边缘世界 RimWorld

Armor Is Uncomfortable 2 (Superseded, use AIU3 instead)
Nationality  [开发者] 2020 年 10 月 20 日 下午 7:55
Short Modding Guide
As of version 2.1, you can substitute your own uncomfortableness values in place of the mod's formula.

All you need to do is copy-paste this into your mod's patch XML, then adapt it to your needs. If the following means nothing to you, you should familiarize yourself with Rimworld Modding first. (I would link to the wiki, but Steam has that flagged as "suspicious" so I don't know what that's about. You know how to find it. You can use Google.)

<Operation Class="PatchOperationFindMod"> <mods> <li>Armor Is Uncomfortable 2</li> </mods> <match Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationAddModExtension"> <xpath>/Defs/ThingDef[defName="Apparel_WarMask"]</xpath> <value> <li Class="ArmorIsUncomfortable.ApparelDiscomfortOverride"> <baseDiscomfort>10</baseDiscomfort> </li> </value> </li> </operations> </match> </Operation>

The above sets the War Mask's base discomfort to 10. Note that an item's quality still can have an influence.

If in doubt, just leave it blank, the mod is pretty good at assigning reasonable values. It is only intended for weird apparel, like, I don't know, a cloth mask that jams stuff into your eye, or a mech that takes care of your every need so you can wear it forever.

Here's a rough guide that might help you assign appropriate values.

0.01 or less: socks, underwear, tuque or some other trivial piece of clothing.
0.01-0.10: shirt, pants, etc.
0.10-0.50: jackets, flak pants, parkas, light helmets
0.50-1: heavy helmets
1-3: kevlar vests and other minimal chestpieces
4-10: light full-bodied armor, certain clothes like whale-bone corsets
10-30: medium full bodied armor, or a mascot uniform
30-50: heavy armor, such as platemail
50+: something excruciating, like granite armor, or extreme training weights
最后由 Nationality 编辑于; 2021 年 6 月 2 日 下午 10:43
< >
正在显示第 1 - 6 条,共 6 条留言
Snowy Joe 2020 年 10 月 24 日 上午 4:30 
Yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay!
RutraNickers 2022 年 7 月 6 日 上午 10:05 
tried using this code to patch Jewery, but it didn't work. I changed "Apparel_WarMask" to "Jewery_Bracelet" and put 0 instead of 10, but it did not work. I tried putting 10 there and the game got stuck loading in a black screen.
最后由 RutraNickers 编辑于; 2022 年 7 月 6 日 上午 10:06
Nationality  [开发者] 2022 年 7 月 6 日 下午 3:16 
@Rutra Nickers
Did you spell it "Jewery_Bracelet"? It might be "Jewelry_Bracelet".
Nationality  [开发者] 2022 年 7 月 6 日 下午 3:23 
Also, if jewelry comes from a mod, there might be some other issue involving the other mod. It's hard to know without knowing the specific implementation.
RutraNickers 2022 年 7 月 6 日 下午 10:22 
It's from this mod here with the same name:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2020964421&searchtext=jewelry

Yeah, I misspelled here, but in the XML archive I copy-pasted from their own XML def file. I've probably done something dumb, but at least wasn't the spelling in this case.

I tried to add this code on their Patches_OtherMods.xml file where they patch some mods for compatibility sake. I got frustrated and redownloaded their mod to play the game though, so I don't have precisely what I typed there in hands unfortunately.
最后由 RutraNickers 编辑于; 2022 年 7 月 7 日 上午 8:23
Nationality  [开发者] 2022 年 7 月 7 日 上午 12:52 
It's been a while since I've done rimworld modding, but there are a lot of things it could be. I'm afraid I can't be of much help unless I see the exact XML you copy-pasted.
Another possibility is that mods are incompatible. That would surprise me because AIU is a very compatible mod, pretty much compatible with anything.
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50