Add boar luring
No decay accounted for yet
This commit is contained in:
@@ -141,7 +141,11 @@ class Gather():
|
||||
|
||||
|
||||
def check_gather(self, world, task, count=1):
|
||||
if task in [Tasks.IDLE, Tasks.BUILD]:
|
||||
if task in [
|
||||
Tasks.IDLE,
|
||||
Tasks.BUILD,
|
||||
Tasks.LURE,
|
||||
]:
|
||||
return
|
||||
|
||||
required = self.required_gather_buildings[task]
|
||||
@@ -266,10 +270,18 @@ class Gather():
|
||||
return len(self.farms)
|
||||
|
||||
|
||||
def add_huntable(self):
|
||||
self.improve_gather_rate_by_building(Tasks.LURE, None)
|
||||
|
||||
|
||||
def gather_resources_for_duration(self, villager_tasks, duration):
|
||||
# assumes there are sufficient resources in gatherable_amounts
|
||||
for task, count in villager_tasks.items():
|
||||
if task in [Tasks.BUILD, Tasks.IDLE]:
|
||||
if task in [
|
||||
Tasks.BUILD,
|
||||
Tasks.LURE,
|
||||
Tasks.IDLE,
|
||||
]:
|
||||
continue
|
||||
|
||||
rate = self.gather_rates[task]
|
||||
@@ -372,7 +384,7 @@ class Gather():
|
||||
# 4 deer
|
||||
Tasks.BERRIES: 6*125,
|
||||
Tasks.SHEEP: 8*100,
|
||||
Tasks.BOAR: 2*340,
|
||||
Tasks.BOAR: 0,
|
||||
Tasks.HUNT: 4*140,
|
||||
Tasks.FARM: 0,
|
||||
# TODO next two should be shared
|
||||
@@ -401,8 +413,9 @@ class Gather():
|
||||
Tasks.GOLD: 4*800,
|
||||
Tasks.STONE: 4*350,
|
||||
Tasks.BERRIES: 6*125,
|
||||
Tasks.HUNT: 4*140}
|
||||
Tasks.HUNT: 4*140},
|
||||
#Buildings.FISHTRAP: {Tasks.WOOD: 100},
|
||||
Tasks.LURE: {Tasks.BOAR: 340},
|
||||
}
|
||||
|
||||
self.gather_decrease_rates = {
|
||||
|
||||
Reference in New Issue
Block a user