mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'swilliams/craft-leather-scraps' into 'master'
Added leather scraps recipe See merge request veloren/veloren!2000
This commit is contained in:
commit
b4840ce48d
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Common,
|
||||
tags: [],
|
||||
tags: [LeatherItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Moderate,
|
||||
tags: [],
|
||||
tags: [LeatherItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Moderate,
|
||||
tags: [],
|
||||
tags: [LeatherItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Moderate,
|
||||
tags: [],
|
||||
tags: [LeatherItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Moderate,
|
||||
tags: [],
|
||||
tags: [LeatherItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Moderate,
|
||||
tags: [],
|
||||
tags: [LeatherItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Moderate,
|
||||
tags: [],
|
||||
tags: [LeatherItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Low,
|
||||
tags: [],
|
||||
tags: [ClothItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Low,
|
||||
tags: [],
|
||||
tags: [ClothItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Common,
|
||||
tags: [],
|
||||
tags: [LeatherItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Moderate,
|
||||
tags: [],
|
||||
tags: [LeatherItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Common,
|
||||
tags: [],
|
||||
tags: [LeatherItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Common,
|
||||
tags: [],
|
||||
tags: [LeatherItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Common,
|
||||
tags: [],
|
||||
tags: [LeatherItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Common,
|
||||
tags: [],
|
||||
tags: [LeatherItem],
|
||||
)
|
@ -9,5 +9,5 @@ ItemDef(
|
||||
),
|
||||
)),
|
||||
quality: Common,
|
||||
tags: [],
|
||||
tags: [LeatherItem],
|
||||
)
|
@ -3,6 +3,8 @@ ItemDef(
|
||||
description: "Various colored fabric armors.",
|
||||
kind: TagExamples(
|
||||
item_ids: [
|
||||
"common.items.armor.rugged.chest",
|
||||
"common.items.armor.rugged.pants",
|
||||
"common.items.armor.cloth_blue.foot",
|
||||
"common.items.armor.cloth_blue.hand",
|
||||
"common.items.armor.cloth_blue.pants",
|
||||
|
23
assets/common/items/tag_examples/leather_item.ron
Normal file
23
assets/common/items/tag_examples/leather_item.ron
Normal file
@ -0,0 +1,23 @@
|
||||
ItemDef(
|
||||
name: "Any leather item",
|
||||
description: "Various leather armors.",
|
||||
kind: TagExamples(
|
||||
item_ids: [
|
||||
"common.items.armor.agile.back",
|
||||
"common.items.armor.agile.belt",
|
||||
"common.items.armor.agile.chest",
|
||||
"common.items.armor.agile.foot",
|
||||
"common.items.armor.agile.hand",
|
||||
"common.items.armor.agile.pants",
|
||||
"common.items.armor.agile.shoulder",
|
||||
"common.items.armor.swift.belt",
|
||||
"common.items.armor.swift.chest",
|
||||
"common.items.armor.swift.foot",
|
||||
"common.items.armor.swift.hand",
|
||||
"common.items.armor.swift.pants",
|
||||
|
||||
],
|
||||
),
|
||||
quality: Common,
|
||||
tags: [],
|
||||
)
|
@ -391,6 +391,13 @@
|
||||
(Item("common.items.crafting_tools.sewing_set"), 0),
|
||||
],
|
||||
),
|
||||
"leather_scraps": (
|
||||
("common.items.crafting_ing.leather_scraps", 1),
|
||||
[
|
||||
(Tag(LeatherItem), 1),
|
||||
(Item("common.items.crafting_tools.sewing_set"), 0),
|
||||
],
|
||||
),
|
||||
//"metal_blade": (
|
||||
// ("common.items.crafting_ing.modular.damage.sword.metal_blade", 1),
|
||||
// [
|
||||
|
@ -93,6 +93,7 @@ pub trait TagExampleInfo {
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub enum ItemTag {
|
||||
ClothItem,
|
||||
LeatherItem,
|
||||
ModularComponent(ModularComponentTag),
|
||||
MetalIngot,
|
||||
Cultist,
|
||||
@ -102,6 +103,7 @@ impl TagExampleInfo for ItemTag {
|
||||
fn name(&self) -> &'static str {
|
||||
match self {
|
||||
ItemTag::ClothItem => "cloth item",
|
||||
ItemTag::LeatherItem => "leather item",
|
||||
ItemTag::ModularComponent(kind) => kind.name(),
|
||||
ItemTag::MetalIngot => "metal ingot",
|
||||
ItemTag::Cultist => "cultist",
|
||||
@ -111,6 +113,7 @@ impl TagExampleInfo for ItemTag {
|
||||
fn exemplar_identifier(&self) -> &'static str {
|
||||
match self {
|
||||
ItemTag::ClothItem => "common.items.tag_examples.cloth_item",
|
||||
ItemTag::LeatherItem => "common.items.tag_examples.leather_item",
|
||||
ItemTag::ModularComponent(tag) => tag.exemplar_identifier(),
|
||||
ItemTag::MetalIngot => "common.items.tag_examples.metal_ingot",
|
||||
ItemTag::Cultist => "common.items.tag_examples.cultist",
|
||||
|
Loading…
Reference in New Issue
Block a user