From 943e7cd0e1f5923a76e3988f971c2e630549614c Mon Sep 17 00:00:00 2001 From: juliancoffee Date: Mon, 27 Sep 2021 11:18:25 +0300 Subject: [PATCH] Fix csv tools for loot tables --- common/src/bin/csv_export/main.rs | 2 +- common/src/bin/csv_import/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/bin/csv_export/main.rs b/common/src/bin/csv_export/main.rs index d1b8776864..f2e16a8e75 100644 --- a/common/src/bin/csv_export/main.rs +++ b/common/src/bin/csv_export/main.rs @@ -267,7 +267,7 @@ fn loot_table(loot_table: &str) -> Result<(), Box> { LootSpec::LootTable(table) => { wtr.write_record(&[&chance, "LootTable", table, "", ""])? }, - LootSpec::None => wtr.write_record(&[&chance, "None", "", ""])?, + LootSpec::Nothing => wtr.write_record(&[&chance, "Nothing", "", ""])?, } } diff --git a/common/src/bin/csv_import/main.rs b/common/src/bin/csv_import/main.rs index 671d8b766b..609c5059d4 100644 --- a/common/src/bin/csv_import/main.rs +++ b/common/src/bin/csv_import/main.rs @@ -468,9 +468,9 @@ fn loot_table(loot_table: &str) -> Result<(), Box> { .expect("No loot table") .to_string(), ), - "None" => LootSpec::None, + "Nothing" => LootSpec::Nothing, a => panic!( - "Loot specifier kind must be either \"Item\", \"LootTable\", or \"None\"\n{}", + "Loot specifier kind must be either \"Item\", \"LootTable\", or \"Nothing\"\n{}", a ), };