diff --git a/game/addons/world_generator/resources/continent.gd b/game/addons/world_generator/resources/continent.gd index 4ad5910d..27cb6f55 100644 --- a/game/addons/world_generator/resources/continent.gd +++ b/game/addons/world_generator/resources/continent.gd @@ -14,6 +14,12 @@ func add_content(item_name : String = "") -> void: var zone : Zone = Zone.new() zone.resource_name = item_name + var r : Rect2 = get_rect() + r.size.x /= 10.0 + r.size.y /= 10.0 + + zone.set_rect(r) + zones.append(zone) emit_changed() diff --git a/game/addons/world_generator/resources/zone.gd b/game/addons/world_generator/resources/zone.gd index 7e79ff7a..14ca4839 100644 --- a/game/addons/world_generator/resources/zone.gd +++ b/game/addons/world_generator/resources/zone.gd @@ -14,6 +14,12 @@ func add_content(item_name : String = "") -> void: var subzone : SubZone = SubZone.new() subzone.resource_name = item_name + var r : Rect2 = get_rect() + r.size.x /= 10.0 + r.size.y /= 10.0 + + subzone.set_rect(r) + subzones.append(subzone) emit_changed()