From 52c92ba0d434ac5450a08415b65e1aa6db44e402 Mon Sep 17 00:00:00 2001 From: InfRandomness Date: Wed, 26 Jan 2022 11:42:35 +0000 Subject: [PATCH] Give names to site2 sites --- CHANGELOG.md | 1 + world/src/site2/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c40cc1d9f2..9c36389662 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Keybinding customization to set waypoint on Map - Added arthropods - A 'point light glow' effect, making lanterns and other point lights more visually pronounced +- Generate random name for site2 sites ### Changed diff --git a/world/src/site2/mod.rs b/world/src/site2/mod.rs index de2c8beba3..ae1be53dc9 100644 --- a/world/src/site2/mod.rs +++ b/world/src/site2/mod.rs @@ -9,7 +9,7 @@ pub use self::{ plot::{Plot, PlotKind}, }; use crate::{ - site::SpawnRules, + site::{namegen::NameGen, SpawnRules}, util::{attempt, DHashSet, Grid, CARDINALS, SQUARE_4, SQUARE_9}, Canvas, Land, }; @@ -353,7 +353,7 @@ impl Site { let mut site = Site { origin, - name: "Town".into(), + name: NameGen::location(&mut rng).generate(), ..Site::default() };