From 1600e8c13f162b1901c719df5da9511d5fd9fce7 Mon Sep 17 00:00:00 2001 From: "Yi Yang @ Anteros" Date: Tue, 14 Jan 2025 03:54:03 +0800 Subject: [PATCH] (station) Fix defaultstation 4450 handling --- agrf/lib/building/layout.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agrf/lib/building/layout.py b/agrf/lib/building/layout.py index 93cf4780..192ca56a 100644 --- a/agrf/lib/building/layout.py +++ b/agrf/lib/building/layout.py @@ -29,6 +29,8 @@ def graphics(self, scale, bpp, climate="temperate", subclimate="default"): # FIXME handle flags correctly if self.sprite_id in self.climate_independent_tiles: img = np.asarray(self.climate_independent_tiles[self.sprite_id]) + elif self.sprite == 3981: + img = np.asarray(self.climate_dependent_tiles[(climate, 4550 if subclimate != "default" else 3981)]) else: img = np.asarray( self.climate_dependent_tiles[(climate, self.sprite_id + (26 if subclimate != "default" else 0))] @@ -62,7 +64,7 @@ def get_resource_files(self): DEFAULT_GRAPHICS = {} -for x in [1420, 3872, 3981, 4550]: +for x in [1420, 3872, 3981]: DEFAULT_GRAPHICS[x] = BuildingCylindrical.create_variants([DefaultGraphics(x)]) for x in [1011, 1313]: DEFAULT_GRAPHICS[x] = BuildingSymmetrical.create_variants([DefaultGraphics(x), DefaultGraphics(x + 1)])