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. - Some sprites can be sat on.
- Pet birds can now sit on the player's shoulder as they explore the world. - Pet birds can now sit on the player's shoulder as they explore the world.
- Adlet caves - Adlet caves
- Durability free areas (`/area_add <area_name> no_dura ...`) - Durability free areas (`/area_add <area_name> no_durability ...`)
### Changed ### Changed

View File

@ -114,7 +114,7 @@ lazy_static! {
souls 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 static ref OBJECTS: Vec<String> = comp::object::ALL_OBJECTS
.iter() .iter()
.map(|o| o.to_string().to_string()) .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 "build" => state
.mut_resource::<AreasContainer<BuildArea>>() .mut_resource::<AreasContainer<BuildArea>>()
.deref_mut(), .deref_mut(),
"no_dura" => state "no_durability" => state
.mut_resource::<AreasContainer<NoDurabilityArea>>() .mut_resource::<AreasContainer<NoDurabilityArea>>()
.deref_mut(), .deref_mut(),
_ => Err(format!("Invalid area type '{kind}'"))?, _ => Err(format!("Invalid area type '{kind}'"))?,