边缘世界 RimWorld

边缘世界 RimWorld

野战医生 [1.0-1.6]
Linking third party items
Hello. Is it possible to link the feature of medic bag to another item in the game(for example, another piece of apparel, or regular medicine)? Ive looked into xml and the only unusual (to me, i dont know much, if anything, about moding, so i could be horribly wrong) thing about medic bag was custom thingClass. So, maybe i can add it to another item via adding this property to another item? I would really appreciate you answering this question!
< >
正在显示第 1 - 2 条,共 2 条留言
flyfire2002  [开发者] 2020 年 9 月 16 日 上午 4:41 
You need to do some coding to transplant the functionality to another apparel.

In Harmony-FloatMenuMakerMap.cs we added a function that adds a stablize option to a pawn when right-clicked. Inside the function the source pawn's apparels are checked, whether it has a medic bag.
In JobDriver_Stabilize.cs also has code directly reference to the medic bag that needs to be changed. These are two starting point. You may come across other references that you need to change (then compile the source code to generate Rimworld-linkable computer code) in order to fully enable another apparel to function as the MedicBag.
левый с рынка 2020 年 9 月 16 日 上午 6:27 
Thanks a lot! Will try to look into it
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50