From 9e45d182b07a7499789d2665965c3da480551fd7 Mon Sep 17 00:00:00 2001 From: Nate Bowman Date: Fri, 6 Nov 2026 19:08:39 -0500 Subject: [PATCH] Add missing function --- aoe/world.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aoe/world.py b/aoe/world.py index 39f5c3c..a1e299b 100644 --- a/aoe/world.py +++ b/aoe/world.py @@ -65,6 +65,10 @@ class World(): self.gather.spend_resources(cost) + def has_building(self, building): + return building in self.buildings + + def _remove_event_at_time(self, removed_event, scheduled_time): if not scheduled_time: return