From 13f96b9ac81f3ce41e78751fca678b8d935809f5 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Fri, 10 Feb 2023 08:20:11 -0800 Subject: [PATCH] increase frequency of nestbox scanning --- docs/changelog.txt | 6 +++--- plugins/nestboxes.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index c54d929a9..e876f7113 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -42,16 +42,16 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: - `channel-safely`: fixed bug resulting in marker mode never being set for any designation -@ `automelt`: fixed bug related to lua stack smashing behavior in returned stockpile configs -@ `autochop`: fixed bug related to lua stack smashing behavior in returned stockpile configs -- `nestboxes`: now cancels any in-progress hauling jobs when it protects a fertile egg +- `nestboxes`: now scans for eggs more frequently and cancels any in-progress hauling jobs when it protects a fertile egg ## Misc Improvements -- `automelt`: is now more resistent to savegame corruption +- `automelt`: is now more resistent to vanilla savegame corruption -@ `hotkeys`: DFHack logo is now hidden on screens where it covers important information when in the default position (e.g. when choosing an embark site) - `misery`: now persists state with the fort - `autodump`: reinstate ``autodump-destroy-item``, hotkey: Ctrl-K - `autodump`: new hotkey for ``autodump-destroy-here``: Ctrl-H - `dig`: new hotkeys for vein designation on z-level (Ctrl-V) and vein designation across z-levels (Ctrl-Shift-V) -- `clean`: new hotkey for `spotclean`: Ctrl-C +-@ `clean`: new hotkey for `spotclean`: Ctrl-C - `autobutcher`: changed defaults from 5 females / 1 male to 4 females / 2 males so a single unfortunate accident doesn't leave players without a mating pair - `autobutcher`: now immediately loads races available at game start into the watchlist -@ replaced DFHack logo used for the hover hotspot with a crisper image diff --git a/plugins/nestboxes.cpp b/plugins/nestboxes.cpp index 5ce894802..d723f8a5c 100644 --- a/plugins/nestboxes.cpp +++ b/plugins/nestboxes.cpp @@ -50,7 +50,7 @@ static void set_config_bool(PersistentDataItem &c, int index, bool value) { set_config_val(c, index, value ? 1 : 0); } -static const int32_t CYCLE_TICKS = 100; // need to react quickly if eggs are unforbidden +static const int32_t CYCLE_TICKS = 50; // need to react quickly when eggs are laid/unforbidden static int32_t cycle_timestamp = 0; // world->frame_counter at last cycle static void do_cycle(color_ostream &out);