Browse Source

Template added for player cities (0)

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
59190e33c9
  1. 14
      src/engine/db/handlers/dbZoneHandler.java

14
src/engine/db/handlers/dbZoneHandler.java

@ -82,6 +82,20 @@ public class dbZoneHandler extends dbHandlerBase {
// Add player city // 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) { } catch (SQLException e) {
Logger.error(e); Logger.error(e);
} }

Loading…
Cancel
Save