|
@ -1023,9 +1023,6 @@ impl Mag { |
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
pub fn feed(&mut self, tool: ToolType) {
|
|
|
pub fn feed(&mut self, tool: ToolType) {
|
|
|
if tool.is_mag_cell() {
|
|
|
|
|
|
//do_mag_cell_thing()
|
|
|
|
|
|
}
|
|
|
|
|
|
let previous_level = self.level();
|
|
|
let previous_level = self.level();
|
|
|
MAG_STATS.get(&self.mag).map(|stats| {
|
|
|
MAG_STATS.get(&self.mag).map(|stats| {
|
|
|
MAG_FEEDING_TABLES.get(stats.feed_table).map(|feeding_table| {
|
|
|
MAG_FEEDING_TABLES.get(stats.feed_table).map(|feeding_table| {
|
|
@ -1156,7 +1153,6 @@ mod test { |
|
|
for _ in 0..284 {
|
|
|
for _ in 0..284 {
|
|
|
mag.feed(ToolType::Dimate);
|
|
|
mag.feed(ToolType::Dimate);
|
|
|
}
|
|
|
}
|
|
|
//println!("mag! {:?}", mag);
|
|
|
|
|
|
assert!(mag == Mag {
|
|
|
assert!(mag == Mag {
|
|
|
mag: MagType::Sato,
|
|
|
mag: MagType::Sato,
|
|
|
def: 507,
|
|
|
def: 507,
|
|
|