no_dura -> no_durability

This commit is contained in:
Maxicarlos08 2023-05-17 21:23:31 +02:00
parent 713f5afdfa
commit fbe32a9047
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Some sprites can be sat on.
- Pet birds can now sit on the player's shoulder as they explore the world.
- Adlet caves
- Durability free areas (`/area_add <area_name> no_dura ...`)
- Durability free areas (`/area_add <area_name> no_durability ...`)
### Changed

View File

@ -114,7 +114,7 @@ lazy_static! {
souls
};
static ref AREA_KINDS: Vec<String> = vec!["build".to_string(), "no_dura".to_string()];
static ref AREA_KINDS: Vec<String> = vec!["build".to_string(), "no_durability".to_string()];
static ref OBJECTS: Vec<String> = comp::object::ALL_OBJECTS
.iter()
.map(|o| o.to_string().to_string())

View File

@ -2009,7 +2009,7 @@ fn get_areas_mut<'l>(kind: &str, state: &'l mut State) -> CmdResult<&'l mut Area
"build" => state
.mut_resource::<AreasContainer<BuildArea>>()
.deref_mut(),
"no_dura" => state
"no_durability" => state
.mut_resource::<AreasContainer<NoDurabilityArea>>()
.deref_mut(),
_ => Err(format!("Invalid area type '{kind}'"))?,