RimWorld

RimWorld

Nedostatek hodnocení
Brawler-Friendly
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
Mod, 1.6
Velikost souboru
Přidáno
49.250 KB
28. čvn. v 7.42
Poznámky ke změnám (1) – zobrazit

Klikněte na „Odebírat“ pro stažení položky
Brawler-Friendly

V 1 kolekci od uživatele Zaljerem
Zal's Original Mods
106 položek
Popis
This mod allows you to add a modExtension to a ranged weapon so brawlers can use it without penalty.

It's really made for modders who were using VEF's (entirely different) implementation that has been removed for 1.6, but it's certainly usable by anyone who wants to add a modExtension to a ThingDef. :)

Feel free to put the assembly directly into your mod rather than using this as a dependency.
MIT License

modExtension:
<modExtensions> <li Class="BrawlerFriendly.DefModExtension_BrawlerFriendly" /> </modExtensions>

Background and technical info:

Vanilla Expanded Framework had this functionality until 1.6. When, at Taranchuk's suggestion, I went to examine the code to hopefully get it working and back into the Framework, I realized that it is overly-convoluted and complex. I fell back to my standard mode: "What's the simplest possible thing that can work?" ... so I rolled my own:

- modExtension for the weapon ThingDef - for detection
- Harmony postfix to Alert_BrawlerHasRangedWeapon.GetReport - addresses the alert message
- Harmony prefix to ThingDef.IsRangedWeapon (getter) - addresses the right-click equip warning
- Harmony prefix to ThoughtWorker_IsCarryingRangedWeapon.CurrentStateInternal - addresses the bad thought

Source code included.
Github:
https://github.com/Zaljerem/BrawlerFriendly
Počet komentářů: 2
Cyber Witch ~ 29. čvn. v 11.17 
Hey thanks a lot. I have a lot of gun mods with meele attachements so thats nice
Kimo' 28. čvn. v 8.06 
Thank you Zal, This will definitely be useful!