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

Brawler-Friendly

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: [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FZaljerem%2FBrawlerFriendly]https://github.com/Zaljerem/BrawlerFriendly[/url]