forked from MagicBane/Server
Template added for player cities (0)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user