Skip to content

Commit

Permalink
more tick triggers according to reverse engineering
Browse files Browse the repository at this point in the history
thank you, rome of oxtrot!
  • Loading branch information
myk002 committed Aug 3, 2024
1 parent 1b2988c commit 1c22ecd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Template for new versions:
- `open-legends`: don't intercept text bound for vanilla search widgets
- `gui/unit-info-viewer`: correctly display skill levels when rust is involved
- `timestream`: fix dwarves spending too long eating and drinking
- `timestream`: accelerate job creation in proportion to calendar time advancement
- `locate-ore`: fix sometimes selecting an incorrect tile when there are multiple mineral veins in a single map block
- `gui/settings-manager`: fix position of "settings restored" message on embark when the player has no saved embark profiles
- `build-now`: fix error when building buildings that (in previous DF versions) required the architecture labor
Expand Down
12 changes: 11 additions & 1 deletion timestream.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,17 @@ end

-- ensure we never skip over cur_year_tick values that match this list
local TICK_TRIGGERS = {
{mod=10, rem={0}}, -- season ticks and (mod=100) crop growth
{mod=10, rem={0}}, -- 0: season ticks (and lots of other stuff)
-- 0 mod 100: crop growth, strange mood, minimap update, rot
-- 20 mod 100: building updates
-- 40 mod 100: assign tombs to newly tomb-eligible corpses
-- 80 mod 100: incarceration updates
-- 40 mod 1000: remove excess seeds
{mod=50, rem={25, 35, 45}}, -- 25: stockpile updates
-- 35: check bags
-- 35 mod 100: job auction
-- 45: stockpile updates
{mod=100, rem={99}}, -- 99: new job creation
}

-- "owed" ticks we would like to skip at the next opportunity
Expand Down

0 comments on commit 1c22ecd

Please sign in to comment.