mindustry logic execution, map- and schematic- parsing and rendering
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! cores, vaults, containers
use crate::block::distribution::ItemBlock;
use crate::block::make_register;
use crate::block::simple::{cost, SimpleBlock};

make_register! {
  "core-shard" => SimpleBlock::new(3, true, cost!(Copper: 1000, Lead: 800));
  "core-foundation" => SimpleBlock::new(4, true, cost!(Copper: 3000, Lead: 3000, Silicon: 2000));
  "core-nucleus" => SimpleBlock::new(5, true, cost!(Copper: 8000, Lead: 8000, Thorium: 4000, Silicon: 5000));
  "core-bastion" => SimpleBlock::new(4, true, cost!(Graphite: 1000, Silicon: 1000, Beryllium: 800));
  "core-citadel" => SimpleBlock::new(5, true, cost!(Silicon: 4000, Beryllium: 4000, Tungsten: 3000, Oxide: 1000));
  "core-acropolis" => SimpleBlock::new(6, true, cost!(Beryllium: 6000, Silicon: 5000, Tungsten: 5000, Carbide: 3000, Oxide: 3000));
  "container" => SimpleBlock::new(2, true, cost!(Titanium: 100));
  "vault" => SimpleBlock::new(3, true, cost!(Titanium: 250, Thorium: 125));
  "unloader" => ItemBlock::new(1, true, cost!(Titanium: 25, Silicon: 30));
  "reinforced-container" => SimpleBlock::new(2, true, cost!(Tungsten: 30, Graphite: 40));
  "reinforced-vault" => SimpleBlock::new(3, true, cost!(Tungsten: 125, Thorium: 70, Beryllium: 100));
}