mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Make charm recipes accessible by putting them in the potion tab of the crafting menu
This commit is contained in:
parent
6214f9df5a
commit
3dcf9ab62e
@ -50,6 +50,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Image-export for wiki now produces correct images of items as they look like in-game.
|
- Image-export for wiki now produces correct images of items as they look like in-game.
|
||||||
- Limit the minimum vertical scaling value in the world generation UI to 0.1 to prevent an overflow
|
- Limit the minimum vertical scaling value in the world generation UI to 0.1 to prevent an overflow
|
||||||
- Wood log and worker/linen clothing pricing.
|
- Wood log and worker/linen clothing pricing.
|
||||||
|
- Charm recipes can now be found in the Potions tab of the crafting menu
|
||||||
|
|
||||||
## [0.16.0] - 2024-03-30
|
## [0.16.0] - 2024-03-30
|
||||||
|
|
||||||
|
@ -17,5 +17,5 @@ ItemDef(
|
|||||||
])
|
])
|
||||||
),
|
),
|
||||||
quality: Legendary,
|
quality: Legendary,
|
||||||
tags: [],
|
tags: [Charm],
|
||||||
)
|
)
|
||||||
|
@ -17,5 +17,5 @@ ItemDef(
|
|||||||
])
|
])
|
||||||
),
|
),
|
||||||
quality: Legendary,
|
quality: Legendary,
|
||||||
tags: [],
|
tags: [Charm],
|
||||||
)
|
)
|
||||||
|
@ -16,5 +16,5 @@ ItemDef(
|
|||||||
])
|
])
|
||||||
),
|
),
|
||||||
quality: Legendary,
|
quality: Legendary,
|
||||||
tags: [],
|
tags: [Charm],
|
||||||
)
|
)
|
||||||
|
@ -276,6 +276,7 @@ pub enum ItemTag {
|
|||||||
Cultist,
|
Cultist,
|
||||||
Gnarling,
|
Gnarling,
|
||||||
Potion,
|
Potion,
|
||||||
|
Charm,
|
||||||
Food,
|
Food,
|
||||||
BaseMaterial, // Cloth-scraps, Leather...
|
BaseMaterial, // Cloth-scraps, Leather...
|
||||||
CraftingTool, // Pickaxe, Craftsman-Hammer, Sewing-Set
|
CraftingTool, // Pickaxe, Craftsman-Hammer, Sewing-Set
|
||||||
@ -292,6 +293,7 @@ impl TagExampleInfo for ItemTag {
|
|||||||
ItemTag::Cultist => "cultist",
|
ItemTag::Cultist => "cultist",
|
||||||
ItemTag::Gnarling => "gnarling",
|
ItemTag::Gnarling => "gnarling",
|
||||||
ItemTag::Potion => "potion",
|
ItemTag::Potion => "potion",
|
||||||
|
ItemTag::Charm => "charm",
|
||||||
ItemTag::Food => "food",
|
ItemTag::Food => "food",
|
||||||
ItemTag::BaseMaterial => "basemat",
|
ItemTag::BaseMaterial => "basemat",
|
||||||
ItemTag::CraftingTool => "tool",
|
ItemTag::CraftingTool => "tool",
|
||||||
@ -305,16 +307,17 @@ impl TagExampleInfo for ItemTag {
|
|||||||
fn exemplar_identifier(&self) -> Option<&str> {
|
fn exemplar_identifier(&self) -> Option<&str> {
|
||||||
match self {
|
match self {
|
||||||
ItemTag::Material(material) => material.exemplar_identifier(),
|
ItemTag::Material(material) => material.exemplar_identifier(),
|
||||||
ItemTag::MaterialKind(_) => None,
|
|
||||||
ItemTag::Cultist => Some("common.items.tag_examples.cultist"),
|
ItemTag::Cultist => Some("common.items.tag_examples.cultist"),
|
||||||
ItemTag::Gnarling => Some("common.items.tag_examples.gnarling"),
|
ItemTag::Gnarling => Some("common.items.tag_examples.gnarling"),
|
||||||
ItemTag::Potion => None,
|
ItemTag::MaterialKind(_)
|
||||||
ItemTag::Food => None,
|
| ItemTag::Potion
|
||||||
ItemTag::BaseMaterial => None,
|
| ItemTag::Food
|
||||||
ItemTag::CraftingTool => None,
|
| ItemTag::Charm
|
||||||
ItemTag::Utility => None,
|
| ItemTag::BaseMaterial
|
||||||
ItemTag::Bag => None,
|
| ItemTag::CraftingTool
|
||||||
ItemTag::SalvageInto(_, _) => None,
|
| ItemTag::Utility
|
||||||
|
| ItemTag::Bag
|
||||||
|
| ItemTag::SalvageInto(_, _) => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -267,7 +267,10 @@ impl CraftingTab {
|
|||||||
_ => false,
|
_ => false,
|
||||||
},
|
},
|
||||||
CraftingTab::Glider => matches!(&*item.kind(), ItemKind::Glider),
|
CraftingTab::Glider => matches!(&*item.kind(), ItemKind::Glider),
|
||||||
CraftingTab::Potion => item.tags().contains(&ItemTag::Potion),
|
CraftingTab::Potion => item
|
||||||
|
.tags()
|
||||||
|
.iter()
|
||||||
|
.any(|tag| matches!(tag, &ItemTag::Potion | &ItemTag::Charm)),
|
||||||
CraftingTab::ProcessedMaterial => item
|
CraftingTab::ProcessedMaterial => item
|
||||||
.tags()
|
.tags()
|
||||||
.iter()
|
.iter()
|
||||||
|
Loading…
Reference in New Issue
Block a user