Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

Apparel Ownership

Intro I created this mod to give apparel an ownership property since I was too frustrated by pawns stealing each others' stuff. Description With this mod pawns who are not the owner won't be allowed to wear that specific apparel (forcing is still possible, the ownership is retained but bypassed). This is particularly useful if you are utilizing a repair/mending mod, so your pawns' apparel won't get shuffled every time it gets repaired (it can come in handy also for other reasons). Added in the 1.5 version of this mod - Mod option "Prefer owned apparel over non-owned (even if worse)", which allows preference of owned apparel over better non-owned one. - Mod option "Allow owned-by-pawn-only filter in built storage", which adds a button in furniture storage (shelves-like) to allow only apparel owned by that specific pawn. Higher priority storage would still snatch the item out of this one, as it should. If an item is already stored somewhere with this filter non-active, but then the filter is activated, the items not allowed would be removed only if they've a "better" storage to go (higher priority) - they wouldn't be allowed back though, as it should. [b]CAUTION[/b]: To handle the new "Allow owned-by-pawn-only filter in built storage" I had to override the method involved in checking for a better storage during hauling. It had to be done, the vanilla logic is too entangled to just patch (it would override itself in the next tick). Because of this, make sure to have the mod quite high in the list, so all the other mods can patch. Except what's needed, the override retains the vanilla logic. [b]If a mod conflicts with this function and the higher position doesn't help, just disable this option in the mod and the vanilla method will be used as usual![/b] How to To assign ownership, select a pawn and right-click on the apparel you want to assign. Select "Assign Ownership". Ownership can be swapped to another colonist (click "Reassign Ownership") or reset so anyone can wear it again (click "Reset Ownership"). Apparel's ownership can be checked both in the quick panel (bottom left) when is selected and in the detailed info under the category "Apparel". For 1.5 quick search function, you can search the owner's name and the apparel will be listed in the results. The ownership doesn't override the policies, so if, for example, a duster is assigned to the pawn "Djinn," he won't wear it if his policies don't allow dusters. One thing is sure, no one else will since it's his duster! F.A.Q. I'm not new to programming in C#, but I'm new to Rimworld modding, so be kind and feel free to leave comments and feedback. I'll try to address any issue and keep the mod smooth. [b]Where should I put the mod?[/b] I suggest at the end of the list, since it attaches a property to all apparel. [b]Can I add/remove it mid-save?[/b] Yes, in my tests it didn't cause any problem. [b]Does it have multilingual support?[/b] Yes now it has. I added some languages (of course with AI support for translation), but feel free to add more. [b]Is it compatible with XXX?[/b] I don't know, you can try and tell me. I have tested with 150+ mods that are currently on my mods list and there was no conflict. But you never know ~ [b]Can you do this/that to make it better?[/b] I don't know. I published it just cause it was a very frustrating problem for me and I didn't find any other mod that would address this in a simple way (without complex bio-coding or apparel management). The comment area is open for suggestions and I might do improvements if I have time and I like the ideas. [b]Why did you attach the function to the right-click of a pawn?[/b] I found it convenient, like simulating that pawn attaching a tag on the apparel. Final remarks I hope that someone will find it useful and will improve their game experience. Enjoy!

Зависимости мода

Логотип мода

Harmony

Загрузить 217.5 KB