Add market transactions

This commit is contained in:
Nate Bowman
2026-11-07 19:56:09 -05:00
parent 4d9da78842
commit b6c95cff3b
6 changed files with 195 additions and 0 deletions

View File

@@ -37,6 +37,18 @@ class Gameplay():
villagers_to,)))
def market_buy(self, action_time, resource, amount):
self._check_time(action_time)
self.actions[action_time].append((self.world.market_buy,
(resource, amount)))
def market_sell(self, action_time, resource, amount):
self._check_time(action_time)
self.actions[action_time].append((self.world.market_sell,
(resource, amount)))
def queue_research(self, action_time, research):
self._check_time(action_time)
self.actions[action_time].append((self.world.queue_research,