Hopefully last commit
This commit is contained in:
34
tiles/ammoCrafter.c
Normal file
34
tiles/ammoCrafter.c
Normal file
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// Created by bruno on 11.6.2025.
|
||||
//
|
||||
|
||||
#include "ammoCrafter.h"
|
||||
|
||||
|
||||
const MachineRecipe AmmoCrafterRecipes[] = {
|
||||
// INPUT1 INPUT2 OUTPUT TIME
|
||||
{IRON_PLATE, IRON_INGOT, IRON_BULLET, 120},
|
||||
{SILVER_PLATE, SILVER_INGOT, SILVER_BULLET, 140},
|
||||
{GOLD_PLATE, GOLD_INGOT, GOLD_BULLET, 160},
|
||||
{PLATINUM_PLATE, PLATINUM_INGOT, PLATINUM_BULLET, 180},
|
||||
|
||||
{IRON_ROD, IRON_INGOT, TYPE_BELT, 30},
|
||||
{IRON_PLATE, IRON_INGOT, TYPE_SPLITTER, 60},
|
||||
|
||||
{GOLD_PLATE, SILVER_INGOT, TYPE_AMMOCRAFTER, 240},
|
||||
{SILVER_PLATE, GOLD_INGOT, TYPE_WIRECRAFTER, 240},
|
||||
{PLATINUM_PLATE, GOLD_INGOT, TYPE_TURRET, 240},
|
||||
|
||||
{SILVER_ROD, SILVER_INGOT, TYPE_FURNACE, 240},
|
||||
{GOLD_ROD, IRON_INGOT, TYPE_BLOCK, 120},
|
||||
};
|
||||
|
||||
void initAmmoCrafterTile() {
|
||||
initMachineTile(TYPE_AMMOCRAFTER, AmmoCrafterRecipes, sizeof(AmmoCrafterRecipes) / sizeof(AmmoCrafterRecipes[0]),
|
||||
1, /* start frame */
|
||||
8 /* frame divisor */);
|
||||
}
|
||||
|
||||
void updateAmmoCrafter(Tile *tile) {
|
||||
updateMachine(tile, AmmoCrafterRecipes, sizeof(AmmoCrafterRecipes) / sizeof(AmmoCrafterRecipes[0]), WAVE_RAMP, 500, 1);
|
||||
}
|
Reference in New Issue
Block a user