Rename difficulty to dungeon_difficulty.

This commit is contained in:
Avi Weinstock 2021-06-25 18:18:27 -04:00
parent 524dd02f45
commit 0ac6305dfc
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ impl World {
civ::SiteKind::Settlement => world_msg::SiteKind::Town,
civ::SiteKind::Dungeon => world_msg::SiteKind::Dungeon {
difficulty: match site.site_tmp.map(|id| &index.sites[id].kind) {
Some(site::SiteKind::Dungeon(d)) => d.difficulty().unwrap_or(0),
Some(site::SiteKind::Dungeon(d)) => d.dungeon_difficulty().unwrap_or(0),
_ => 0,
},
},

View File

@ -278,7 +278,7 @@ impl Site {
pub fn name(&self) -> &str { &self.name }
pub fn difficulty(&self) -> Option<u32> {
pub fn dungeon_difficulty(&self) -> Option<u32> {
self.plots
.iter()
.filter_map(|(_, plot)| {