Fix csv tools for loot tables

This commit is contained in:
juliancoffee 2021-09-27 11:18:25 +03:00
parent 7576f632a8
commit 943e7cd0e1
2 changed files with 3 additions and 3 deletions

View File

@ -267,7 +267,7 @@ fn loot_table(loot_table: &str) -> Result<(), Box<dyn Error>> {
LootSpec::LootTable(table) => {
wtr.write_record(&[&chance, "LootTable", table, "", ""])?
},
LootSpec::None => wtr.write_record(&[&chance, "None", "", ""])?,
LootSpec::Nothing => wtr.write_record(&[&chance, "Nothing", "", ""])?,
}
}

View File

@ -468,9 +468,9 @@ fn loot_table(loot_table: &str) -> Result<(), Box<dyn Error>> {
.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
),
};