From 59190e33c99aa734be918be78e35427fc07c252f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 20 Oct 2023 17:09:27 -0400 Subject: [PATCH] Template added for player cities (0) --- src/engine/db/handlers/dbZoneHandler.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/engine/db/handlers/dbZoneHandler.java b/src/engine/db/handlers/dbZoneHandler.java index 497c8917..136385f9 100644 --- a/src/engine/db/handlers/dbZoneHandler.java +++ b/src/engine/db/handlers/dbZoneHandler.java @@ -82,6 +82,20 @@ public class dbZoneHandler extends dbHandlerBase { // Add player city + ZoneTemplate zoneTemplate = new ZoneTemplate(); + + zoneTemplate.templateID = 0; + zoneTemplate.sea_level_type = "PARENT"; + zoneTemplate.sea_level = 0; + zoneTemplate.max_blend = 128; + zoneTemplate.min_blend = 128; + zoneTemplate.terrain_max_y = 5; + zoneTemplate.major_radius = (int) Enum.CityBoundsType.ZONE.halfExtents; + zoneTemplate.minor_radius = (int) Enum.CityBoundsType.ZONE.halfExtents; + zoneTemplate.terrain_type = "PLANAR"; + + ZoneManager._zone_templates.put(zoneTemplate.templateID, zoneTemplate); + } catch (SQLException e) { Logger.error(e); }