mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Rename difficulty to dungeon_difficulty.
This commit is contained in:
parent
524dd02f45
commit
0ac6305dfc
@ -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,
|
||||
},
|
||||
},
|
||||
|
@ -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)| {
|
||||
|
Loading…
Reference in New Issue
Block a user