Reclassify Glowing Remains as Armor for econsim.

This commit is contained in:
Avi Weinstock 2021-03-28 10:29:40 -04:00
parent 05e93c3518
commit 40f2c59401
2 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Permission to build is no longer tied to being an admin - Permission to build is no longer tied to being an admin
- Separated character randomization buttons into appearance and name. - Separated character randomization buttons into appearance and name.
- Reworked mindflayer to have unique attacks - Reworked mindflayer to have unique attacks
- Glowing remains are now `Armor` instead of `Ingredients`.
### Removed ### Removed

View File

@ -104,6 +104,7 @@ impl TradePricing {
fn get_list_by_path(&self, name: &str) -> &Entries { fn get_list_by_path(&self, name: &str) -> &Entries {
match name { match name {
"common.items.crafting_ing.mindflayer_bag_damaged" => &self.armor,
_ if name.starts_with("common.items.crafting_ing.") => &self.ingredients, _ if name.starts_with("common.items.crafting_ing.") => &self.ingredients,
_ if name.starts_with("common.items.armor.") => &self.armor, _ if name.starts_with("common.items.armor.") => &self.armor,
_ if name.starts_with("common.items.glider.") => &self.other, _ if name.starts_with("common.items.glider.") => &self.other,
@ -126,6 +127,7 @@ impl TradePricing {
fn get_list_by_path_mut(&mut self, name: &str) -> &mut Entries { fn get_list_by_path_mut(&mut self, name: &str) -> &mut Entries {
match name { match name {
"common.items.crafting_ing.mindflayer_bag_damaged" => &mut self.armor,
_ if name.starts_with("common.items.crafting_ing.") => &mut self.ingredients, _ if name.starts_with("common.items.crafting_ing.") => &mut self.ingredients,
_ if name.starts_with("common.items.armor.") => &mut self.armor, _ if name.starts_with("common.items.armor.") => &mut self.armor,
_ if name.starts_with("common.items.glider.") => &mut self.other, _ if name.starts_with("common.items.glider.") => &mut self.other,