core.hacks module

DFHack management.

core.hacks.get_hack(title)[source]

Returns the hack titled <title>, or None if this does not exist.

Parameters

title – the title of the hack.

core.hacks.get_hacks()[source]

Returns dict of available hacks.

core.hacks.is_dfhack_enabled()[source]

Returns YES if DFHack should be used.

core.hacks.open_dfhack_readme()[source]

Open the DFHack Readme in the default browser.

core.hacks.read_hacks()[source]

Reads which hacks are enabled.

core.hacks.toggle_dfhack()[source]

Toggles the use of DFHack.

core.hacks.toggle_hack(name)[source]

Toggles the hack <name>.

Parameters

name – the name of the hack to toggle.

Returns

True if the hack is now enabled, False if the hack is now disabled, None on error (no change in status)