add wooden axe crafting recipe

This commit is contained in:
p2r3
2025-08-13 18:27:44 +03:00
parent 864ec760ea
commit 8066f4ad86

View File

@@ -88,6 +88,28 @@ void getCraftingOutput (PlayerData *player, uint8_t *count, uint16_t *item) {
*count = 1;
return;
}
if (
first < 2 &&
player->craft_items[first + 1] == I_oak_planks &&
player->craft_items[first + 3] == I_oak_planks &&
player->craft_items[first + 4] == I_stick &&
player->craft_items[first + 7] == I_stick
) {
*item = I_wooden_axe;
*count = 1;
return;
}
if (
first < 2 &&
player->craft_items[first + 1] == I_oak_planks &&
player->craft_items[first + 4] == I_oak_planks &&
player->craft_items[first + 3] == I_stick &&
player->craft_items[first + 6] == I_stick
) {
*item = I_wooden_axe;
*count = 1;
return;
}
break;
default: break;