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

Pawn Compatibility Editor

Pawn Compatibility Editor Have you ever wanted two pawns to like each other more, but can't 'cause of their negative compatibility? Now you can change it! Just select the pair of pawns you want and change their compatibility like the omniscient puppetmaster you are! This mod adds a window accessible from the main button bar or as a debug action. You can override the pawn-pair's compatibility using the slider up to +/- 5. Changes are saved and persist on load. The button bar option can be disabled in the mod options, leaving just the dev option. You can also change the min and max up to +/- 20 (I have no idea how the game will handle that so use at your own risk) Should be able to add and remove from a save, although removing will remove the overrides. The UI and general idea is inspired by [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3287188444]Pawn Compatibility[/url] by eth0net. It is also fully compatible with their mod, so you can generate naturally-compatible pawns on game start. What is Compatibility Compatibility is a hidden stat in RimWorld that influences the romantic and social dynamics between two pawns. It affects romance attempt chances, deep talk outcomes, and the likelihood of negative social interactions like insults and social fights. Higher compatibility means pawns get along better romantically and socially; lower values mean more friction. The game calculates compatibility from two factors: how close the pawns are in age, and a random value unique to each pair that is determined when pawns are created. This random element means two pawns may just never get on no matter how hard they (or you) try. Compatibility (The Mod Kind) The mod is designed to have the final say. If other mods modify compatibility values through their own patches, your manual override should take priority. Tested and working with: [list] [*] Big and Small Framework [*] Way Better Romance [*] Romance on the Rim [*] Vanilla Social Interactions Expanded [/list] Technical Details The base game computes compatibility on the fly using [b]Pawn_RelationsTracker.CompatibilityWith[/b]. The result is not stored anywhere — it is derived from an age difference factor (clamped between -0.45 and +0.45) and a deterministic random offset seeded by both pawns' thingIDNumber values. Because the seed is fixed, the same pair always produces the same value. This mod stores your overrides in a [b]GameComponent[/b] dictionary keyed by ordered pawn ID pairs. A Harmony patch on [b]CompatibilityWith[/b] intercepts the calculation and returns your stored value when one exists. When no override is set, the original method and any other mods' patches run as normal. This mod is licensed under the [url=https%3A%2F%2Fopensource.org%2Flicenses%2FMIT]MIT License[/url][opensource.org]. Feel free to edit, but give credit :) Icon from [url=https%3A%2F%2Fwww.svgrepo.com%2Fsvg%2F322896%2Fopposite-hearts]SVG Repo[/url][www.svgrepo.com], licensed under [url=https%3A%2F%2Fcreativecommons.org%2Flicenses%2Fby%2F4.0%2F]CC BY 4.0[/url][creativecommons.org].