Hopefully last commit
This commit is contained in:
29
tiles/wiredrawer.c
Normal file
29
tiles/wiredrawer.c
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user