mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix csv tools for loot tables
This commit is contained in:
parent
7576f632a8
commit
943e7cd0e1
@ -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", "", ""])?,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user