Commit Graph

19 Commits

Author SHA1 Message Date
Nate Bowman
3b07e6b3c5 Allow queuing villagers with more complex tasks
For instance, queuing a villager to build several buildings in a row is
now possible. Also adds a task queue for villagers. Any idle villager
will automatically grab the first task in the queue. The task queue is
used to implement the more complex initial villager tasks, so it is
possible that a different villager will do later tasks in the queued
villager's chain of tasks, but only if there are already idle villagers.
As long as the user does not wish to leave villagers idle for a long
time, this should not affect accuracy too badly.
2026-11-15 20:11:07 -05:00
Nate Bowman
24a0e9e16b Allow hunting and building as initial tasks in a better way 2026-11-15 17:11:27 -05:00
Nate Bowman
7ce4b4a150 Revert "Allow hunting and building as initial villager tasks"
This reverts commit 8a8effe3d1.
I did not like adding kwargs in so many places, so there will be an
upcoming commit that implements the same change in a different way.
2026-11-15 16:58:49 -05:00
Nate Bowman
8a8effe3d1 Allow hunting and building as initial villager tasks 2026-11-15 16:53:13 -05:00
Nate Bowman
e4aaba0320 Add routine to play until last action 2026-11-15 16:18:29 -05:00
Nate Bowman
8865950678 Allow user to choose whether getting housed is an error
Previously, the simulation would automatically end whenever it
determined you were housed.  That is still the default, but the user can
now choose to have the simulation continue instead.  Also, this likely
fixes a bug whereby an error could have been thrown for an unavailable
production building when searching the production queue.
2026-11-12 00:51:32 -05:00
Nate Bowman
20d4f5bd6c Generate better error messages 2026-11-11 23:57:14 -05:00
Nate Bowman
e94af31828 Remove old comments 2026-11-08 21:01:38 -05:00
Nate Bowman
ec8b33ac00 Add ability to automatically queue villagers 2026-11-08 21:00:32 -05:00
Nate Bowman
5f1999caac Add market transactions 2026-11-07 20:00:07 -05:00
Nate Bowman
4d9da78842 Add trade 2026-11-07 19:59:11 -05:00
Nate Bowman
d5c0d928b6 Add fishing ships 2026-11-06 19:22:15 -05:00
Nate Bowman
5d2178cd9c Add monks and relics 2026-11-06 19:21:32 -05:00
Nate Bowman
54050235f0 Add functions to gameplay class 2026-11-06 19:16:22 -05:00
Nate Bowman
e67085aab7 Add boar luring
No decay accounted for yet
2026-11-06 19:13:57 -05:00
Nate Bowman
d51980290b Move functionality into gather file 2026-11-05 21:46:31 -05:00
Nate Bowman
9ff2613579 Add research and finish most buildings 2026-07-27 22:20:29 -04:00
Nate Bowman
013468d34e Deal with farms and varying gather rates 2026-07-26 23:15:46 -04:00
Nate Bowman
4a014aeb50 Initial commit 2026-07-26 20:26:36 -04:00