Files
factorygame/tiles/wiredrawer.c

29 lines
1004 B
C

//
// 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);
}