crafting stations

This commit is contained in:
jshipsey 2021-05-23 01:50:15 -04:00 committed by Marcel Märtens
parent 2a07fad802
commit 754b60d810
35 changed files with 265 additions and 92 deletions

View File

@ -4,11 +4,11 @@ ItemDef(
kind: Armor(( kind: Armor((
kind: Chest("Orichalcum"), kind: Chest("Orichalcum"),
stats: ( stats: (
protection: Normal(30.0), protection: Normal(250.0),
poise_resilience: Normal(1.0), poise_resilience: Normal(0.0),
energy_max: 0, energy_max: 1000,
energy_recovery: 0.0, energy_recovery: 3.0,
crit_power: 0.0, crit_power: 2.0,
stealth: 0.0, stealth: 0.0,
), ),
)), )),

View File

@ -1,9 +0,0 @@
ItemDef(
name: "Sharp Horn",
description: "A sharp horn from an animal.",
kind: Ingredient(
kind: "Horn",
),
quality: Common,
tags: [],
)

View File

@ -0,0 +1,9 @@
ItemDef(
name: "Large Horn",
description: "A huge sharp horn from an animal.",
kind: Ingredient(
kind: "LargeHorn",
),
quality: Common,
tags: [],
)

View File

@ -1,8 +1,8 @@
ItemDef( ItemDef(
name: "Predator Fang", name: "Sharp Fang",
description: "Incredibly sharp tooth from a predatory animal.", description: "Incredibly sharp tooth from a predatory animal.",
kind: Ingredient( kind: Ingredient(
kind: "Fang", kind: "SharpFang",
), ),
quality: Common, quality: Common,
tags: [], tags: [],

View File

@ -0,0 +1,9 @@
ItemDef(
name: "Cotton",
description: "Easy to work with and multi-functional.",
kind: Ingredient(
kind: "Cotton",
),
quality: Low,
tags: [],
)

View File

@ -0,0 +1,9 @@
ItemDef(
name: "Cotton Boll",
description: "Plucked from a common cotton plant.",
kind: Ingredient(
kind: "CottonBoll",
),
quality: Common,
tags: [],
)

View File

@ -189,14 +189,14 @@
inputs: [ inputs: [
(Item("common.items.mineral.ore.gold_ore"), 1), (Item("common.items.mineral.ore.gold_ore"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Forge),
), ),
"silver ingot": ( "silver ingot": (
output: ("common.items.mineral.ingot.silver", 1), output: ("common.items.mineral.ingot.silver", 1),
inputs: [ inputs: [
(Item("common.items.mineral.ore.silver_ore"), 1), (Item("common.items.mineral.ore.silver_ore"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Forge),
), ),
"iron ingot": ( "iron ingot": (
@ -204,21 +204,21 @@
inputs: [ inputs: [
(Item("common.items.mineral.ore.iron_ore"), 1), (Item("common.items.mineral.ore.iron_ore"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Forge),
), ),
"cobalt ingot": ( "cobalt ingot": (
output: ("common.items.mineral.ingot.cobalt", 1), output: ("common.items.mineral.ingot.cobalt", 1),
inputs: [ inputs: [
(Item("common.items.mineral.ore.cobalt_ore"), 1), (Item("common.items.mineral.ore.cobalt_ore"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Forge),
), ),
"tin ingot": ( "tin ingot": (
output: ("common.items.mineral.ingot.tin", 2), output: ("common.items.mineral.ingot.tin", 2),
inputs: [ inputs: [
(Item("common.items.mineral.ore.tin_ore"), 1), (Item("common.items.mineral.ore.tin_ore"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Forge),
), ),
"orichalcum ingot": ( "orichalcum ingot": (
output: ("common.items.mineral.ingot.orichalcum", 2), output: ("common.items.mineral.ingot.orichalcum", 2),
@ -226,14 +226,14 @@
(Item("common.items.mineral.ore.gold_ore"), 1), (Item("common.items.mineral.ore.gold_ore"), 1),
(Item("common.items.mineral.ore.silver_ore"), 1), (Item("common.items.mineral.ore.silver_ore"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Forge),
), ),
"copper ingot": ( "copper ingot": (
output: ("common.items.mineral.ingot.copper", 2), output: ("common.items.mineral.ingot.copper", 2),
inputs: [ inputs: [
(Item("common.items.mineral.ore.copper_ore"), 1), (Item("common.items.mineral.ore.copper_ore"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Forge),
), ),
"bloodsteel ingot": ( "bloodsteel ingot": (
output: ("common.items.mineral.ingot.bloodsteel", 2), output: ("common.items.mineral.ingot.bloodsteel", 2),
@ -242,7 +242,7 @@
(Item("common.items.mineral.ore.iron_ore"), 1), (Item("common.items.mineral.ore.iron_ore"), 1),
(Item("common.items.mineral.ore.coal"), 1), (Item("common.items.mineral.ore.coal"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Forge),
), ),
"steel ingot": ( "steel ingot": (
output: ("common.items.mineral.ingot.steel", 1), output: ("common.items.mineral.ingot.steel", 1),
@ -250,7 +250,7 @@
(Item("common.items.mineral.ore.iron_ore"), 1), (Item("common.items.mineral.ore.iron_ore"), 1),
(Item("common.items.mineral.ore.coal"), 1), (Item("common.items.mineral.ore.coal"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Forge),
), ),
"bronze ingot": ( "bronze ingot": (
output: ("common.items.mineral.ingot.bronze", 2), output: ("common.items.mineral.ingot.bronze", 2),
@ -258,42 +258,49 @@
(Item("common.items.mineral.ore.copper_ore"), 1), (Item("common.items.mineral.ore.copper_ore"), 1),
(Item("common.items.mineral.ore.tin_ore"), 1), (Item("common.items.mineral.ore.tin_ore"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Forge),
),
"cotton": (
output: ("common.items.crafting_ing.cloth.cotton", 1),
inputs: [
(Item("common.items.crafting_ing.cotton_boll"), 1),
],
craft_sprite: Some(SpinningWheel),
), ),
"linen": ( "linen": (
output: ("common.items.crafting_ing.cloth.linen", 1), output: ("common.items.crafting_ing.cloth.linen", 1),
inputs: [ inputs: [
(Item("common.items.crafting_ing.plant_fiber"), 1), (Item("common.items.flowers.plant_fiber"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(SpinningWheel),
), ),
"silk": ( "silk": (
output: ("common.items.crafting_ing.cloth.silk", 1), output: ("common.items.crafting_ing.cloth.silk", 1),
inputs: [ inputs: [
(Item("common.items.crafting_ing.sticky_thread"), 1), (Item("common.items.crafting_ing.sticky_thread"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(SpinningWheel),
), ),
"lifecloth": ( "lifecloth": (
output: ("common.items.crafting_ing.cloth.lifecloth", 1), output: ("common.items.crafting_ing.cloth.lifecloth", 1),
inputs: [ inputs: [
(Item("common.items.crafting_ing.cloth.lifecloth"), 1), (Item("common.items.crafting_ing.cloth.lifecloth"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(SpinningWheel),
), ),
"moonweave": ( "moonweave": (
output: ("common.items.crafting_ing.cloth.moonweave", 1), output: ("common.items.crafting_ing.cloth.moonweave", 1),
inputs: [ inputs: [
(Item("common.items.flowers.moonbell"), 1), (Item("common.items.flowers.moonbell"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(SpinningWheel),
), ),
"sunsilk": ( "sunsilk": (
output: ("common.items.crafting_ing.cloth.sunsilk", 1), output: ("common.items.crafting_ing.cloth.sunsilk", 1),
inputs: [ inputs: [
(Item("common.items.flowers.pyrebloom"), 1), (Item("common.items.flowers.pyrebloom"), 1),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(SpinningWheel),
), ),
"salad_plain": ( "salad_plain": (
output: ("common.items.food.plainsalad", 1), output: ("common.items.food.plainsalad", 1),
@ -785,7 +792,7 @@
(Item("common.items.crafting_ing.cloth.linen"), 4), (Item("common.items.crafting_ing.cloth.linen"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"linen belt": ( "linen belt": (
output: ("common.items.armor.cloth.linen.belt", 1), output: ("common.items.armor.cloth.linen.belt", 1),
@ -793,7 +800,7 @@
(Item("common.items.crafting_ing.cloth.linen"), 2), (Item("common.items.crafting_ing.cloth.linen"), 2),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"linen chest": ( "linen chest": (
output: ("common.items.armor.cloth.linen.chest", 1), output: ("common.items.armor.cloth.linen.chest", 1),
@ -801,7 +808,7 @@
(Item("common.items.crafting_ing.cloth.linen"), 10), (Item("common.items.crafting_ing.cloth.linen"), 10),
(Item("common.items.crafting_ing.leather.leather_strips"), 4), (Item("common.items.crafting_ing.leather.leather_strips"), 4),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"linen feet": ( "linen feet": (
output: ("common.items.armor.cloth.linen.foot", 1), output: ("common.items.armor.cloth.linen.foot", 1),
@ -809,7 +816,7 @@
(Item("common.items.crafting_ing.cloth.linen"), 4), (Item("common.items.crafting_ing.cloth.linen"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"linen hands": ( "linen hands": (
output: ("common.items.armor.cloth.linen.hand", 1), output: ("common.items.armor.cloth.linen.hand", 1),
@ -817,7 +824,7 @@
(Item("common.items.crafting_ing.cloth.linen"), 4), (Item("common.items.crafting_ing.cloth.linen"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"linen pants": ( "linen pants": (
output: ("common.items.armor.cloth.linen.pants", 1), output: ("common.items.armor.cloth.linen.pants", 1),
@ -825,7 +832,7 @@
(Item("common.items.crafting_ing.cloth.linen"), 8), (Item("common.items.crafting_ing.cloth.linen"), 8),
(Item("common.items.crafting_ing.leather.leather_strips"), 4), (Item("common.items.crafting_ing.leather.leather_strips"), 4),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"linen shoulder": ( "linen shoulder": (
output: ("common.items.armor.cloth.linen.shoulder", 1), output: ("common.items.armor.cloth.linen.shoulder", 1),
@ -833,7 +840,7 @@
(Item("common.items.crafting_ing.cloth.linen"), 10), (Item("common.items.crafting_ing.cloth.linen"), 10),
(Item("common.items.crafting_ing.leather.leather_strips"), 6), (Item("common.items.crafting_ing.leather.leather_strips"), 6),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
//ARMOR/CLOTH/WOOLEN //ARMOR/CLOTH/WOOLEN
"woolen back": ( "woolen back": (
@ -842,7 +849,7 @@
(Item("common.items.crafting_ing.cloth.wool"), 4), (Item("common.items.crafting_ing.cloth.wool"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"woolen belt": ( "woolen belt": (
output: ("common.items.armor.cloth.woolen.belt", 1), output: ("common.items.armor.cloth.woolen.belt", 1),
@ -850,7 +857,7 @@
(Item("common.items.crafting_ing.cloth.wool"), 2), (Item("common.items.crafting_ing.cloth.wool"), 2),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"woolen chest": ( "woolen chest": (
output: ("common.items.armor.cloth.woolen.chest", 1), output: ("common.items.armor.cloth.woolen.chest", 1),
@ -858,7 +865,7 @@
(Item("common.items.crafting_ing.cloth.wool"), 10), (Item("common.items.crafting_ing.cloth.wool"), 10),
(Item("common.items.crafting_ing.leather.leather_strips"), 4), (Item("common.items.crafting_ing.leather.leather_strips"), 4),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"woolen feet": ( "woolen feet": (
output: ("common.items.armor.cloth.woolen.foot", 1), output: ("common.items.armor.cloth.woolen.foot", 1),
@ -866,7 +873,7 @@
(Item("common.items.crafting_ing.cloth.wool"), 4), (Item("common.items.crafting_ing.cloth.wool"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"woolen hands": ( "woolen hands": (
output: ("common.items.armor.cloth.woolen.hand", 1), output: ("common.items.armor.cloth.woolen.hand", 1),
@ -874,7 +881,7 @@
(Item("common.items.crafting_ing.cloth.wool"), 4), (Item("common.items.crafting_ing.cloth.wool"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"woolen pants": ( "woolen pants": (
output: ("common.items.armor.cloth.woolen.pants", 1), output: ("common.items.armor.cloth.woolen.pants", 1),
@ -882,7 +889,7 @@
(Item("common.items.crafting_ing.cloth.wool"), 8), (Item("common.items.crafting_ing.cloth.wool"), 8),
(Item("common.items.crafting_ing.leather.leather_strips"), 4), (Item("common.items.crafting_ing.leather.leather_strips"), 4),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"woolen shoulder": ( "woolen shoulder": (
output: ("common.items.armor.cloth.woolen.shoulder", 1), output: ("common.items.armor.cloth.woolen.shoulder", 1),
@ -890,7 +897,7 @@
(Item("common.items.crafting_ing.cloth.wool"), 10), (Item("common.items.crafting_ing.cloth.wool"), 10),
(Item("common.items.crafting_ing.leather.leather_strips"), 6), (Item("common.items.crafting_ing.leather.leather_strips"), 6),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
//ARMOR/CLOTH/SILKEN //ARMOR/CLOTH/SILKEN
"silken back": ( "silken back": (
@ -899,7 +906,7 @@
(Item("common.items.crafting_ing.cloth.silk"), 4), (Item("common.items.crafting_ing.cloth.silk"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"silken belt": ( "silken belt": (
output: ("common.items.armor.cloth.silken.belt", 1), output: ("common.items.armor.cloth.silken.belt", 1),
@ -907,7 +914,7 @@
(Item("common.items.crafting_ing.cloth.silk"), 2), (Item("common.items.crafting_ing.cloth.silk"), 2),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"silken chest": ( "silken chest": (
output: ("common.items.armor.cloth.silken.chest", 1), output: ("common.items.armor.cloth.silken.chest", 1),
@ -915,7 +922,7 @@
(Item("common.items.crafting_ing.cloth.silk"), 10), (Item("common.items.crafting_ing.cloth.silk"), 10),
(Item("common.items.crafting_ing.leather.leather_strips"), 4), (Item("common.items.crafting_ing.leather.leather_strips"), 4),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"silken feet": ( "silken feet": (
output: ("common.items.armor.cloth.silken.foot", 1), output: ("common.items.armor.cloth.silken.foot", 1),
@ -923,7 +930,7 @@
(Item("common.items.crafting_ing.cloth.silk"), 4), (Item("common.items.crafting_ing.cloth.silk"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"silken hands": ( "silken hands": (
output: ("common.items.armor.cloth.silken.hand", 1), output: ("common.items.armor.cloth.silken.hand", 1),
@ -931,7 +938,7 @@
(Item("common.items.crafting_ing.cloth.silk"), 4), (Item("common.items.crafting_ing.cloth.silk"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"silken pants": ( "silken pants": (
output: ("common.items.armor.cloth.silken.pants", 1), output: ("common.items.armor.cloth.silken.pants", 1),
@ -939,7 +946,7 @@
(Item("common.items.crafting_ing.cloth.silk"), 8), (Item("common.items.crafting_ing.cloth.silk"), 8),
(Item("common.items.crafting_ing.leather.leather_strips"), 4), (Item("common.items.crafting_ing.leather.leather_strips"), 4),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"silken shoulder": ( "silken shoulder": (
output: ("common.items.armor.cloth.silken.shoulder", 1), output: ("common.items.armor.cloth.silken.shoulder", 1),
@ -947,7 +954,7 @@
(Item("common.items.crafting_ing.cloth.silk"), 10), (Item("common.items.crafting_ing.cloth.silk"), 10),
(Item("common.items.crafting_ing.leather.leather_strips"), 6), (Item("common.items.crafting_ing.leather.leather_strips"), 6),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
//ARMOR/CLOTH/DRUID //ARMOR/CLOTH/DRUID
"druid back": ( "druid back": (
@ -956,7 +963,7 @@
(Item("common.items.crafting_ing.cloth.lifecloth"), 4), (Item("common.items.crafting_ing.cloth.lifecloth"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"druid belt": ( "druid belt": (
output: ("common.items.armor.cloth.druid.belt", 1), output: ("common.items.armor.cloth.druid.belt", 1),
@ -964,7 +971,7 @@
(Item("common.items.crafting_ing.cloth.lifecloth"), 2), (Item("common.items.crafting_ing.cloth.lifecloth"), 2),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"druid chest": ( "druid chest": (
output: ("common.items.armor.cloth.druid.chest", 1), output: ("common.items.armor.cloth.druid.chest", 1),
@ -972,7 +979,7 @@
(Item("common.items.crafting_ing.cloth.lifecloth"), 10), (Item("common.items.crafting_ing.cloth.lifecloth"), 10),
(Item("common.items.crafting_ing.leather.leather_strips"), 4), (Item("common.items.crafting_ing.leather.leather_strips"), 4),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"druid feet": ( "druid feet": (
output: ("common.items.armor.cloth.druid.foot", 1), output: ("common.items.armor.cloth.druid.foot", 1),
@ -980,7 +987,7 @@
(Item("common.items.crafting_ing.cloth.lifecloth"), 4), (Item("common.items.crafting_ing.cloth.lifecloth"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"druid hands": ( "druid hands": (
output: ("common.items.armor.cloth.druid.hand", 1), output: ("common.items.armor.cloth.druid.hand", 1),
@ -988,7 +995,7 @@
(Item("common.items.crafting_ing.cloth.lifecloth"), 4), (Item("common.items.crafting_ing.cloth.lifecloth"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"druid pants": ( "druid pants": (
output: ("common.items.armor.cloth.druid.pants", 1), output: ("common.items.armor.cloth.druid.pants", 1),
@ -996,7 +1003,7 @@
(Item("common.items.crafting_ing.cloth.lifecloth"), 8), (Item("common.items.crafting_ing.cloth.lifecloth"), 8),
(Item("common.items.crafting_ing.leather.leather_strips"), 4), (Item("common.items.crafting_ing.leather.leather_strips"), 4),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"druid shoulder": ( "druid shoulder": (
output: ("common.items.armor.cloth.druid.shoulder", 1), output: ("common.items.armor.cloth.druid.shoulder", 1),
@ -1004,7 +1011,7 @@
(Item("common.items.crafting_ing.cloth.lifecloth"), 10), (Item("common.items.crafting_ing.cloth.lifecloth"), 10),
(Item("common.items.crafting_ing.leather.leather_strips"), 6), (Item("common.items.crafting_ing.leather.leather_strips"), 6),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
//ARMOR/CLOTH/MOONWEAVE //ARMOR/CLOTH/MOONWEAVE
"moonweave back": ( "moonweave back": (
@ -1013,7 +1020,7 @@
(Item("common.items.crafting_ing.cloth.moonweave"), 4), (Item("common.items.crafting_ing.cloth.moonweave"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"moonweave belt": ( "moonweave belt": (
output: ("common.items.armor.cloth.moonweave.belt", 1), output: ("common.items.armor.cloth.moonweave.belt", 1),
@ -1021,7 +1028,7 @@
(Item("common.items.crafting_ing.cloth.moonweave"), 2), (Item("common.items.crafting_ing.cloth.moonweave"), 2),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"moonweave chest": ( "moonweave chest": (
output: ("common.items.armor.cloth.moonweave.chest", 1), output: ("common.items.armor.cloth.moonweave.chest", 1),
@ -1029,7 +1036,7 @@
(Item("common.items.crafting_ing.cloth.moonweave"), 10), (Item("common.items.crafting_ing.cloth.moonweave"), 10),
(Item("common.items.crafting_ing.leather.leather_strips"), 4), (Item("common.items.crafting_ing.leather.leather_strips"), 4),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"moonweave feet": ( "moonweave feet": (
output: ("common.items.armor.cloth.moonweave.foot", 1), output: ("common.items.armor.cloth.moonweave.foot", 1),
@ -1037,7 +1044,7 @@
(Item("common.items.crafting_ing.cloth.moonweave"), 4), (Item("common.items.crafting_ing.cloth.moonweave"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"moonweave hands": ( "moonweave hands": (
output: ("common.items.armor.cloth.moonweave.hand", 1), output: ("common.items.armor.cloth.moonweave.hand", 1),
@ -1045,7 +1052,7 @@
(Item("common.items.crafting_ing.cloth.moonweave"), 4), (Item("common.items.crafting_ing.cloth.moonweave"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"moonweave pants": ( "moonweave pants": (
output: ("common.items.armor.cloth.moonweave.pants", 1), output: ("common.items.armor.cloth.moonweave.pants", 1),
@ -1053,7 +1060,7 @@
(Item("common.items.crafting_ing.cloth.moonweave"), 8), (Item("common.items.crafting_ing.cloth.moonweave"), 8),
(Item("common.items.crafting_ing.leather.leather_strips"), 4), (Item("common.items.crafting_ing.leather.leather_strips"), 4),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"moonweave shoulder": ( "moonweave shoulder": (
output: ("common.items.armor.cloth.moonweave.shoulder", 1), output: ("common.items.armor.cloth.moonweave.shoulder", 1),
@ -1061,7 +1068,7 @@
(Item("common.items.crafting_ing.cloth.moonweave"), 10), (Item("common.items.crafting_ing.cloth.moonweave"), 10),
(Item("common.items.crafting_ing.leather.leather_strips"), 6), (Item("common.items.crafting_ing.leather.leather_strips"), 6),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
//ARMOR/CLOTH/SUNSILK //ARMOR/CLOTH/SUNSILK
"sunsilk back": ( "sunsilk back": (
@ -1070,7 +1077,7 @@
(Item("common.items.crafting_ing.cloth.sunsilk"), 4), (Item("common.items.crafting_ing.cloth.sunsilk"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"sunsilk belt": ( "sunsilk belt": (
output: ("common.items.armor.cloth.sunsilk.belt", 1), output: ("common.items.armor.cloth.sunsilk.belt", 1),
@ -1078,7 +1085,7 @@
(Item("common.items.crafting_ing.cloth.sunsilk"), 2), (Item("common.items.crafting_ing.cloth.sunsilk"), 2),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"sunsilk chest": ( "sunsilk chest": (
output: ("common.items.armor.cloth.sunsilk.chest", 1), output: ("common.items.armor.cloth.sunsilk.chest", 1),
@ -1086,7 +1093,7 @@
(Item("common.items.crafting_ing.cloth.sunsilk"), 10), (Item("common.items.crafting_ing.cloth.sunsilk"), 10),
(Item("common.items.crafting_ing.leather.leather_strips"), 4), (Item("common.items.crafting_ing.leather.leather_strips"), 4),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"sunsilk feet": ( "sunsilk feet": (
output: ("common.items.armor.cloth.sunsilk.foot", 1), output: ("common.items.armor.cloth.sunsilk.foot", 1),
@ -1094,7 +1101,7 @@
(Item("common.items.crafting_ing.cloth.sunsilk"), 4), (Item("common.items.crafting_ing.cloth.sunsilk"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"sunsilk hands": ( "sunsilk hands": (
output: ("common.items.armor.cloth.sunsilk.hand", 1), output: ("common.items.armor.cloth.sunsilk.hand", 1),
@ -1102,7 +1109,7 @@
(Item("common.items.crafting_ing.cloth.sunsilk"), 4), (Item("common.items.crafting_ing.cloth.sunsilk"), 4),
(Item("common.items.crafting_ing.leather.leather_strips"), 2), (Item("common.items.crafting_ing.leather.leather_strips"), 2),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"sunsilk pants": ( "sunsilk pants": (
output: ("common.items.armor.cloth.sunsilk.pants", 1), output: ("common.items.armor.cloth.sunsilk.pants", 1),
@ -1110,7 +1117,7 @@
(Item("common.items.crafting_ing.cloth.sunsilk"), 8), (Item("common.items.crafting_ing.cloth.sunsilk"), 8),
(Item("common.items.crafting_ing.leather.leather_strips"), 4), (Item("common.items.crafting_ing.leather.leather_strips"), 4),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
"sunsilk shoulder": ( "sunsilk shoulder": (
output: ("common.items.armor.cloth.sunsilk.shoulder", 1), output: ("common.items.armor.cloth.sunsilk.shoulder", 1),
@ -1118,7 +1125,7 @@
(Item("common.items.crafting_ing.cloth.sunsilk"), 10), (Item("common.items.crafting_ing.cloth.sunsilk"), 10),
(Item("common.items.crafting_ing.leather.leather_strips"), 6), (Item("common.items.crafting_ing.leather.leather_strips"), 6),
], ],
craft_sprite: Some(CraftingBench), craft_sprite: Some(Loom),
), ),
//ARMOR/MAIL/BRONZE //ARMOR/MAIL/BRONZE
"bronze back": ( "bronze back": (

View File

@ -14,6 +14,9 @@
"hud.crafting.cauldron": "Cauldron", "hud.crafting.cauldron": "Cauldron",
"hud.crafting.cooking_pot": "Cooking Pot", "hud.crafting.cooking_pot": "Cooking Pot",
"hud.crafting.crafting_bench": "Crafting Bench", "hud.crafting.crafting_bench": "Crafting Bench",
"hud.crafting.forge": "Forge",
"hud.crafting.loom": "Loom",
"hud.crafting.spinning_wheel": "Spinning Wheel",
// Tabs // Tabs
"hud.crafting.tabs.all": "All", "hud.crafting.tabs.all": "All",
"hud.crafting.tabs.armor": "Armor", "hud.crafting.tabs.armor": "Armor",

View File

@ -19,6 +19,18 @@
"voxel.sprite.crafting_bench.crafting_bench-0", "voxel.sprite.crafting_bench.crafting_bench-0",
(0.0, 0.0, 0.0), (-50.0, 40.0, 20.0), 1.0, (0.0, 0.0, 0.0), (-50.0, 40.0, 20.0), 1.0,
), ),
Tool("Forge"): VoxTrans(
"voxel.object.forge",
(0.0, 0.0, 0.0), (-50.0, 40.0, 20.0), 1.0,
),
Tool("Loom"): VoxTrans(
"voxel.object.loom",
(0.0, 0.0, 0.0), (-50.0, 40.0, 20.0), 1.0,
),
Tool("SpinningWheel"): VoxTrans(
"voxel.object.spinning_wheel",
(0.0, 0.0, 0.0), (-50.0, 40.0, 20.0), 1.0,
),
// Weapons // Weapons
// Diary Example Images // Diary Example Images
Tool("example_utility"): VoxTrans( Tool("example_utility"): VoxTrans(
@ -2466,13 +2478,33 @@
(0.0, 0.0, 0.0), (-20.0, 10.0, 20.0), 0.9, (0.0, 0.0, 0.0), (-20.0, 10.0, 20.0), 0.9,
), ),
Ingredient("VenomSac"): VoxTrans( Ingredient("VenomSac"): VoxTrans(
"voxel.sprite.crafting_ing.venom_sac", "voxel.sprite.crafting_ing.animal_misc.venom_sac",
(0.0, 0.0, 0.0), (-20.0, 10.0, 20.0), 0.9, (0.0, 0.0, 0.0), (-20.0, 10.0, 20.0), 0.9,
), ),
Ingredient("SharpFang"): VoxTrans(
"voxel.sprite.crafting_ing.animal_misc.sharp_fang",
(0.0, 0.0, 0.0), (-20.0, 10.0, 20.0), 0.9,
),
Ingredient("LargeHorn"): VoxTrans(
"voxel.sprite.crafting_ing.animal_misc.large_horn",
(0.0, 0.0, 0.0), (-20.0, 10.0, 20.0), 0.9,
),
Ingredient("GrimEyeball"): VoxTrans(
"voxel.sprite.crafting_ing.animal_misc.grim_eyeball",
(0.0, 0.0, 0.0), (-60.0, 30.0, 20.0), 0.8,
),
Ingredient("PlantFiber"): VoxTrans( Ingredient("PlantFiber"): VoxTrans(
"voxel.sprite.crafting_ing.plant_fiber", "voxel.sprite.crafting_ing.plant_fiber",
(0.0, 0.0, 0.0), (-20.0, 10.0, 20.0), 0.9, (0.0, 0.0, 0.0), (-20.0, 10.0, 20.0), 0.9,
), ),
Ingredient("CottonBoll"): VoxTrans(
"voxel.sprite.crafting_ing.cotton_boll",
(0.0, 0.0, 0.0), (-65.0, 0.0, 20.0), 0.9,
),
Ingredient("Cotton"): VoxTrans(
"voxel.sprite.crafting_ing.cloth.cotton",
(0.0, 0.0, 0.0), (-65.0, 0.0, 20.0), 0.9,
),
Ingredient("Linen"): VoxTrans( Ingredient("Linen"): VoxTrans(
"voxel.sprite.crafting_ing.cloth.linen", "voxel.sprite.crafting_ing.cloth.linen",
(0.0, 0.0, 0.0), (-65.0, 0.0, 20.0), 0.9, (0.0, 0.0, 0.0), (-65.0, 0.0, 20.0), 0.9,
@ -2569,6 +2601,10 @@
"voxel.sprite.mineral.ore.tin", "voxel.sprite.mineral.ore.tin",
(0.0, 0.0, 0.0), (-60.0, 30.0, 20.0), 0.8, (0.0, 0.0, 0.0), (-60.0, 30.0, 20.0), 0.8,
), ),
Ingredient("Coal"): VoxTrans(
"voxel.sprite.mineral.ore.coal",
(0.0, 0.0, 0.0), (-60.0, 30.0, 20.0), 0.8,
),
Ingredient("Honey"): Png( Ingredient("Honey"): Png(
"element.items.item_honey", "element.items.item_honey",
), ),

BIN
assets/voxygen/voxel/object/forge.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/object/loom.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/object/spinning_wheel.vox (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -99,6 +99,36 @@
central: ("armor.empty"), central: ("armor.empty"),
) )
), ),
Forge: (
bone0: (
offset: (-6.5, -6.0, 0.0),
central: ("object.forge"),
),
bone1: (
offset: (0.0, 0.0, 0.0),
central: ("armor.empty"),
)
),
Loom: (
bone0: (
offset: (-6.0, -4.0, 0.0),
central: ("object.loom"),
),
bone1: (
offset: (0.0, 0.0, 0.0),
central: ("armor.empty"),
)
),
SpinningWheel: (
bone0: (
offset: (-7.5, -5.0, 0.0),
central: ("object.spinning_wheel"),
),
bone1: (
offset: (0.0, 0.0, 0.0),
central: ("armor.empty"),
)
),
ChestVines: ( ChestVines: (
bone0: ( bone0: (
offset: (-7.5, -6.0, 0.0), offset: (-7.5, -6.0, 0.0),

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/crafting_ing/cloth/cotton.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/crafting_ing/cotton_boll.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/flowers/cotton.vox (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/food/meat/bird_cooked.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/food/meat/bird_raw.vox (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -2940,8 +2940,28 @@ Cauldron: Some((
Forge: Some(( Forge: Some((
variations: [ variations: [
( (
model: "voxygen.voxel.sprite.forge.forge-0", model: "voxygen.voxel.object.forge",
offset: (-20.0, -20.0, 0.0), offset: (-6.5, -6.0, 0.0),
lod_axes: (0.0, 0.0, 0.0),
),
],
wind_sway: 0.0,
)),
Loom: Some((
variations: [
(
model: "voxygen.voxel.object.loom",
offset: (-6.0, -4.0, 0.0),
lod_axes: (0.0, 0.0, 0.0),
),
],
wind_sway: 0.0,
)),
SpinningWheel: Some((
variations: [
(
model: "voxygen.voxel.object.spinning_wheel",
offset: (-7.5, -5.0, 0.0),
lod_axes: (0.0, 0.0, 0.0), lod_axes: (0.0, 0.0, 0.0),
), ),
], ],

View File

@ -228,6 +228,9 @@ impl Body {
Body::CarpetHumanSquircle => "carpet_human_squircle", Body::CarpetHumanSquircle => "carpet_human_squircle",
Body::Pouch => "pouch", Body::Pouch => "pouch",
Body::CraftingBench => "crafting_bench", Body::CraftingBench => "crafting_bench",
Body::Forge => "forge",
Body::Loom => "loom",
Body::SpinningWheel => "spinning_wheel",
Body::BoltFire => "bolt_fire", Body::BoltFire => "bolt_fire",
Body::BoltFireBig => "bolt_fire_big", Body::BoltFireBig => "bolt_fire_big",
Body::ArrowSnake => "arrow_snake", Body::ArrowSnake => "arrow_snake",
@ -311,6 +314,9 @@ impl Body {
| Body::ChestVines => 100.0, | Body::ChestVines => 100.0,
Body::Coins => 1.0, Body::Coins => 1.0,
Body::CraftingBench => 100.0, Body::CraftingBench => 100.0,
Body::Forge => 100.0,
Body::Loom => 100.0,
Body::SpinningWheel => 100.0,
Body::Crate => 50.0, Body::Crate => 50.0,
Body::Crossbow => 200.0, Body::Crossbow => 200.0,
Body::DoorSpooky => 20.0, Body::DoorSpooky => 20.0,

View File

@ -154,6 +154,8 @@ make_case_elim!(
DungeonChest3 = 0x7F, DungeonChest3 = 0x7F,
DungeonChest4 = 0x80, DungeonChest4 = 0x80,
DungeonChest5 = 0x81, DungeonChest5 = 0x81,
Loom = 0x82,
SpinningWheel = 0x83,
} }
); );
@ -204,6 +206,8 @@ impl SpriteKind {
SpriteKind::CraftingBench => 1.18, SpriteKind::CraftingBench => 1.18,
SpriteKind::Forge => 2.7, SpriteKind::Forge => 2.7,
SpriteKind::Cauldron => 1.27, SpriteKind::Cauldron => 1.27,
SpriteKind::SpinningWheel => 1.6,
SpriteKind::Loom => 1.27,
SpriteKind::Anvil => 1.1, SpriteKind::Anvil => 1.1,
SpriteKind::CookingPot => 1.36, SpriteKind::CookingPot => 1.36,
// TODO: Find suitable heights. // TODO: Find suitable heights.
@ -357,6 +361,8 @@ impl SpriteKind {
| SpriteKind::Cauldron | SpriteKind::Cauldron
| SpriteKind::Anvil | SpriteKind::Anvil
| SpriteKind::CookingPot | SpriteKind::CookingPot
| SpriteKind::SpinningWheel
| SpriteKind::Loom
) )
} }
} }

View File

@ -688,6 +688,9 @@ impl<'a> Widget for Crafting<'a> {
Some(SpriteKind::Cauldron) => "Cauldron", Some(SpriteKind::Cauldron) => "Cauldron",
Some(SpriteKind::CookingPot) => "CookingPot", Some(SpriteKind::CookingPot) => "CookingPot",
Some(SpriteKind::CraftingBench) => "CraftingBench", Some(SpriteKind::CraftingBench) => "CraftingBench",
Some(SpriteKind::Forge) => "Forge",
Some(SpriteKind::Loom) => "Loom",
Some(SpriteKind::SpinningWheel) => "SpinningWheel",
None => "CraftsmanHammer", None => "CraftsmanHammer",
_ => "CraftsmanHammer", _ => "CraftsmanHammer",
}; };
@ -707,6 +710,9 @@ impl<'a> Widget for Crafting<'a> {
Some(SpriteKind::Cauldron) => "hud.crafting.cauldron", Some(SpriteKind::Cauldron) => "hud.crafting.cauldron",
Some(SpriteKind::CookingPot) => "hud.crafting.cooking_pot", Some(SpriteKind::CookingPot) => "hud.crafting.cooking_pot",
Some(SpriteKind::CraftingBench) => "hud.crafting.crafting_bench", Some(SpriteKind::CraftingBench) => "hud.crafting.crafting_bench",
Some(SpriteKind::Forge) => "hud.crafting.forge",
Some(SpriteKind::Loom) => "hud.crafting.loom",
Some(SpriteKind::SpinningWheel) => "hud.crafting.spinning_wheel",
_ => "", _ => "",
}; };
Text::new(&self.localized_strings.get(station_name)) Text::new(&self.localized_strings.get(station_name))

View File

@ -121,6 +121,12 @@ impl BlocksOfInterest {
Some(SpriteKind::Forge) => { Some(SpriteKind::Forge) => {
interactables.push((pos, Interaction::Craft(CraftingTab::Dismantle))) interactables.push((pos, Interaction::Craft(CraftingTab::Dismantle)))
}, },
Some(SpriteKind::SpinningWheel) => {
interactables.push((pos, Interaction::Craft(CraftingTab::All)))
},
Some(SpriteKind::Loom) => {
interactables.push((pos, Interaction::Craft(CraftingTab::All)))
},
Some(SpriteKind::Cauldron) => { Some(SpriteKind::Cauldron) => {
interactables.push((pos, Interaction::Craft(CraftingTab::Potion))) interactables.push((pos, Interaction::Craft(CraftingTab::Potion)))
}, },

View File

@ -530,7 +530,7 @@ impl Archetype for House {
center_offset.x, center_offset.x,
center_offset.y, center_offset.y,
z + 100, z + 100,
)) % 8 )) % 11
{ {
0..=1 => SpriteKind::Crate, 0..=1 => SpriteKind::Crate,
2 => SpriteKind::Bench, 2 => SpriteKind::Bench,
@ -539,7 +539,9 @@ impl Archetype for House {
5 => SpriteKind::CraftingBench, 5 => SpriteKind::CraftingBench,
6 => SpriteKind::FireBowlGround, 6 => SpriteKind::FireBowlGround,
7 => SpriteKind::Cauldron, 7 => SpriteKind::Cauldron,
//8 => SpriteKind::Forge, 8 => SpriteKind::Forge,
9 => SpriteKind::Loom,
10 => SpriteKind::SpinningWheel,
_ => unreachable!(), _ => unreachable!(),
}; };