Hopefully last commit

This commit is contained in:
2025-06-11 23:01:05 +02:00
parent 78bccd6c6f
commit 8bbe17491b
74 changed files with 1306 additions and 516 deletions

29
tiles/wiredrawer.c Normal file
View File

@@ -0,0 +1,29 @@
//
// Created by bruno on 11.6.2025.
//
#include "wiredrawer.h"
#include "tile.h"
#include "../util/audio.h"
const MachineRecipe WireDrawerRecipes[] = {
{IRON_INGOT, TYPE_AIR, IRON_PLATE, 120},
{SILVER_INGOT, TYPE_AIR, SILVER_PLATE, 140},
{GOLD_INGOT, TYPE_AIR, GOLD_PLATE, 160},
{PLATINUM_INGOT, TYPE_AIR, PLATINUM_PLATE, 180},
{IRON_PLATE, TYPE_AIR, IRON_ROD, 120},
{SILVER_PLATE, TYPE_AIR, SILVER_ROD, 140},
{GOLD_PLATE, TYPE_AIR, GOLD_ROD, 160},
{PLATINUM_PLATE, TYPE_AIR, PLATINUM_ROD, 180}
};
void initWireDrawerTile() {
initMachineTile(TYPE_WIRECRAFTER, WireDrawerRecipes, sizeof(WireDrawerRecipes) / sizeof(WireDrawerRecipes[0]),
1, /* start frame */
8 /* frame divisor */);
}
void updateWireDrawer(Tile *tile) {
updateMachine(tile, WireDrawerRecipes, sizeof(WireDrawerRecipes) / sizeof(WireDrawerRecipes[0]), WAVE_RAMP, 500, 1);
}