Skip to content

Harmony patches

dninemfive edited this page Nov 16, 2020 · 21 revisions

Overview

My Harmony patches are useful hooks designed to extend certain methods without needing further patching of the same method. Each can be individually disabled in the mod settings if you enable debug mode.

CompFromStuff

Added in 0.0.1source

Allows modders to make Stuff which applies comps to any Things made with that Stuff. An example implementation is creating a self-repairing material using CompSelfRepair.

Simply apply the CompsToAddWhenStuff ModExtension to any Stuff.

Deconstruct Return Fix

Added in 0.0.1source

REMOVED in 1.3.2, as this change was integrated into vanilla as of RimWorld version 1.2.

Fixes the bug where vanilla is incapable of returning 100% of items when deconstructing a building, even if the building is set to return 100%.

Orbital Trade Hook

Added in 0.0.1source

Thanks to lbmaian for the new, more elegant, implementation.

Allows modders to easily add custom trade beacons by extending D9Framework.Building_CustomTradeBeacon. Simply implement TradeableCells() and you're good to go!

Carry Mass Framework

Added in 1.2.0source

Generously contributed by ElminsterAU.

Provides a framework for modifying the mass a pawn can carry and the mass different items have depending if they are carried as gear or inventory. For more details see the stats page and the example page.

Negative Fertility Patch

Added in 1.3.0source

Allows modders to use the UseNegativeFertility ModExtension to create plants which grow faster on poorer soil.