Skip to content

Commit d8e7410

Browse files
committed
v0.8.4.1
1 parent 92e77da commit d8e7410

File tree

4 files changed

+4
-38
lines changed

4 files changed

+4
-38
lines changed

CHANGELOG.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v0.8.4.1
2+
3+
- ci crash fixed
4+
15
# v0.8.4.0
26

37
- added utility to view sprites for structures, items, entities, and their moods

crates/client/src/bin/demo_crafting.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ impl Item {
2121
match self {
2222
Item::Wood => "Wood",
2323
Item::Stone => "Stone",
24-
Item::IronOre => "Iron Ore",
2524
Item::String => "String",
2625
Item::Stick => "Stick",
2726
Item::Torch => "Torch",
@@ -53,7 +52,6 @@ impl App {
5352
let items = [
5453
Item::Wood,
5554
Item::Stone,
56-
Item::IronOre,
5755
Item::String,
5856
Item::Stick,
5957
Item::Torch,

crates/core/src/components.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ pub enum ItemKind {
169169
Stick,
170170
Nail,
171171
Stone,
172-
IronOre,
173172
String,
174173
Torch,
175174
WoodenShavings,
@@ -187,7 +186,6 @@ pub fn itemkind_name(kind: ItemKind) -> &'static str {
187186
ItemKind::Stick => "Stick",
188187
ItemKind::Nail => "Nail",
189188
ItemKind::Stone => "Stone",
190-
ItemKind::IronOre => "Iron Ore",
191189
ItemKind::String => "String",
192190
ItemKind::Torch => "Torch",
193191
ItemKind::WoodenShavings => "Wooden Shavings",
@@ -206,7 +204,6 @@ pub fn itemkind_sprite_name(kind: ItemKind) -> &'static str {
206204
ItemKind::Stick => "stick",
207205
ItemKind::Nail => "nail",
208206
ItemKind::Stone => "stone",
209-
ItemKind::IronOre => "iron_ore",
210207
ItemKind::String => "string",
211208
ItemKind::Torch => "torch",
212209
ItemKind::WoodenShavings => "wooden_shavings",

crates/core/src/recipe_handler.rs

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -102,36 +102,3 @@ impl RecipeHandler {
102102
}
103103
}
104104
}
105-
106-
#[cfg(test)]
107-
mod tests {
108-
use super::*;
109-
110-
#[test]
111-
fn test_crafting() {
112-
let handler = RecipeHandler::new();
113-
let mut inventory = HashMap::new();
114-
115-
// Add items to inventory
116-
inventory.insert(ItemKind::Stone, 3);
117-
inventory.insert(ItemKind::Stick, 2);
118-
inventory.insert(ItemKind::String, 1);
119-
120-
// Find Stone Axe recipe by name
121-
let stone_axe_recipe = handler
122-
.find_recipe_by_name("Stone Axe")
123-
.expect("Stone Axe recipe should exist");
124-
125-
// Should be able to craft Stone Axe
126-
assert!(handler.can_craft(stone_axe_recipe, &inventory));
127-
128-
// Craft Stone Axe
129-
assert!(handler.craft(stone_axe_recipe, &mut inventory));
130-
assert_eq!(inventory[&ItemKind::Stone], 1);
131-
assert_eq!(inventory[&ItemKind::Stick], 1);
132-
assert_eq!(inventory[&ItemKind::StoneAxe], 1);
133-
134-
// Not enough materials for another Stone Axe
135-
assert!(!handler.can_craft(stone_axe_recipe, &inventory));
136-
}
137-
}

0 commit comments

Comments
 (0)