Created weapon loot tables.

This commit is contained in:
Sam 2021-03-31 11:40:31 -04:00
parent 833f1f3309
commit 2e37cefce5
36 changed files with 205 additions and 6 deletions

View File

@ -6,7 +6,7 @@ ItemDef(
hands: Two,
stats: Direct((
equip_time_secs: 0.4,
power: 1.6,
power: 1.8,
poise_strength: 1.4,
speed: 1.0,
crit_chance: 0.1421875,

View File

@ -6,7 +6,7 @@ ItemDef(
hands: Two,
stats: Direct((
equip_time_secs: 0.4,
power: 1.6,
power: 1.8,
poise_strength: 1.8,
speed: 1.0,
crit_chance: 0.1421875,

View File

@ -6,7 +6,7 @@ ItemDef(
hands: Two,
stats: Direct((
equip_time_secs: 0.4,
power: 1.6,
power: 1.8,
poise_strength: 1.8,
speed: 1.0,
crit_chance: 0.1421875,

View File

@ -6,7 +6,7 @@ ItemDef(
hands: Two,
stats: Direct((
equip_time_secs: 0.4,
power: 1.8,
power: 1.6,
poise_strength: 1.0,
speed: 1.0,
crit_chance: 0.13611111,

View File

@ -6,7 +6,7 @@ ItemDef(
hands: Two,
stats: Direct((
equip_time_secs: 0.4,
power: 1.8,
power: 1.6,
poise_strength: 1.0,
speed: 1.0,
crit_chance: 0.13611111,

View File

@ -0,0 +1,5 @@
[
(1.0, Item("common.items.weapons.axe.bloodsteel_axe-0")),
(1.0, Item("common.items.weapons.axe.bloodsteel_axe-1")),
(1.0, Item("common.items.weapons.axe.bloodsteel_axe-2")),
]

View File

@ -0,0 +1,5 @@
[
(1.0, Item("common.items.weapons.axe.bronze_axe-0")),
(1.0, Item("common.items.weapons.axe.bronze_axe-1")),
(1.0, Item("common.items.weapons.axe.bronze_axe-2")),
]

View File

@ -0,0 +1,4 @@
[
(1.0, Item("common.items.weapons.axe.cobalt_axe-0")),
(1.0, Item("common.items.weapons.axe.cobalt_axe-1")),
]

View File

@ -0,0 +1,12 @@
[
(1.0, Item("common.items.weapons.axe.iron_axe-0")),
(1.0, Item("common.items.weapons.axe.iron_axe-1")),
(1.0, Item("common.items.weapons.axe.iron_axe-2")),
(1.0, Item("common.items.weapons.axe.iron_axe-3")),
(1.0, Item("common.items.weapons.axe.iron_axe-4")),
(1.0, Item("common.items.weapons.axe.iron_axe-5")),
(1.0, Item("common.items.weapons.axe.iron_axe-6")),
(1.0, Item("common.items.weapons.axe.iron_axe-7")),
(1.0, Item("common.items.weapons.axe.iron_axe-8")),
(1.0, Item("common.items.weapons.axe.iron_axe-9")),
]

View File

@ -0,0 +1,9 @@
[
(1.0, Item("common.items.weapons.axe.steel_axe-0")),
(1.0, Item("common.items.weapons.axe.steel_axe-1")),
(1.0, Item("common.items.weapons.axe.steel_axe-2")),
(1.0, Item("common.items.weapons.axe.steel_axe-3")),
(1.0, Item("common.items.weapons.axe.steel_axe-4")),
(1.0, Item("common.items.weapons.axe.steel_axe-5")),
(1.0, Item("common.items.weapons.axe.steel_axe-6")),
]

View File

@ -0,0 +1,7 @@
[
(1.0, Item("common.items.weapons.axe.worn_iron_axe-0")),
(1.0, Item("common.items.weapons.axe.worn_iron_axe-1")),
(1.0, Item("common.items.weapons.axe.worn_iron_axe-2")),
(1.0, Item("common.items.weapons.axe.worn_iron_axe-3")),
(1.0, Item("common.items.weapons.axe.worn_iron_axe-4")),
]

View File

@ -0,0 +1,6 @@
[
(1.0, Item("common.items.weapons.bow.bone-0")),
(1.0, Item("common.items.weapons.bow.bone-1")),
(1.0, Item("common.items.weapons.bow.bone-2")),
(1.0, Item("common.items.weapons.bow.bone-3")),
]

View File

@ -0,0 +1,5 @@
[
(1.0, Item("common.items.weapons.bow.eldwood-0")),
(1.0, Item("common.items.weapons.bow.eldwood-1")),
(1.0, Item("common.items.weapons.bow.eldwood-2")),
]

View File

@ -0,0 +1,5 @@
[
(1.0, Item("common.items.weapons.bow.frostwood-0")),
(1.0, Item("common.items.weapons.bow.frostwood-1")),
(1.0, Item("common.items.weapons.bow.frostwood-2")),
]

View File

@ -0,0 +1,8 @@
[
(1.0, Item("common.items.weapons.bow.hardwood-0")),
(1.0, Item("common.items.weapons.bow.hardwood-1")),
(1.0, Item("common.items.weapons.bow.hardwood-2")),
(1.0, Item("common.items.weapons.bow.hardwood-3")),
(1.0, Item("common.items.weapons.bow.hardwood-4")),
(1.0, Item("common.items.weapons.bow.hardwood-5")),
]

View File

@ -0,0 +1,7 @@
[
(1.0, Item("common.items.weapons.bow.rawwood-0")),
(1.0, Item("common.items.weapons.bow.rawwood-1")),
(1.0, Item("common.items.weapons.bow.rawwood-2")),
(1.0, Item("common.items.weapons.bow.rawwood-3")),
(1.0, Item("common.items.weapons.bow.rawwood-4")),
]

View File

@ -0,0 +1,4 @@
[
(1.0, Item("common.items.weapons.bow.rawwood-0")),
(1.0, Item("common.items.weapons.bow.rawwood-1")),
]

View File

@ -0,0 +1,7 @@
[
(1.0, Item("common.items.weapons.bow.wood-0")),
(1.0, Item("common.items.weapons.bow.wood-1")),
(1.0, Item("common.items.weapons.bow.wood-2")),
(1.0, Item("common.items.weapons.bow.wood-3")),
(1.0, Item("common.items.weapons.bow.wood-4")),
]

View File

@ -0,0 +1,5 @@
[
(1.0, Item("common.items.weapons.sword.cultist")),
(1.0, Item("common.items.weapons.hammer.cultist_purp_2h-0")),
(1.0, Item("common.items.weapons.staff.cultist_staff")),
]

View File

@ -0,0 +1,4 @@
[
(1.0, Item("common.items.weapons.hammer.runic_hammer")),
(1.0, Item("common.items.weapons.hammer.ramshead_hammer")),
]

View File

@ -0,0 +1,4 @@
[
(1.0, Item("common.items.weapons.hammer.cobalt_hammer-0")),
(1.0, Item("common.items.weapons.hammer.cobalt_hammer-1")),
]

View File

@ -0,0 +1,11 @@
[
(1.0, Item("common.items.weapons.hammer.iron_hammer-0")),
(1.0, Item("common.items.weapons.hammer.iron_hammer-1")),
(1.0, Item("common.items.weapons.hammer.iron_hammer-2")),
(1.0, Item("common.items.weapons.hammer.iron_hammer-3")),
(1.0, Item("common.items.weapons.hammer.iron_hammer-4")),
(1.0, Item("common.items.weapons.hammer.iron_hammer-5")),
(1.0, Item("common.items.weapons.hammer.iron_hammer-6")),
(1.0, Item("common.items.weapons.hammer.iron_hammer-7")),
(1.0, Item("common.items.weapons.hammer.iron_hammer-8")),
]

View File

@ -0,0 +1,8 @@
[
(1.0, Item("common.items.weapons.hammer.steel_hammer-0")),
(1.0, Item("common.items.weapons.hammer.steel_hammer-1")),
(1.0, Item("common.items.weapons.hammer.steel_hammer-2")),
(1.0, Item("common.items.weapons.hammer.steel_hammer-3")),
(1.0, Item("common.items.weapons.hammer.steel_hammer-4")),
(1.0, Item("common.items.weapons.hammer.steel_hammer-5")),
]

View File

@ -0,0 +1,6 @@
[
(1.0, Item("common.items.weapons.hammer.stone_hammer-0")),
(1.0, Item("common.items.weapons.hammer.stone_hammer-1")),
(1.0, Item("common.items.weapons.hammer.stone_hammer-2")),
(1.0, Item("common.items.weapons.hammer.stone_hammer-3")),
]

View File

@ -0,0 +1,3 @@
[
(1.0, Item("common.items.weapons.hammer.wood_hammer-0")),
]

View File

@ -0,0 +1,6 @@
[
(1.0, Item("common.items.weapons.hammer.worn_iron_hammer-0")),
(1.0, Item("common.items.weapons.hammer.worn_iron_hammer-1")),
(1.0, Item("common.items.weapons.hammer.worn_iron_hammer-2")),
(1.0, Item("common.items.weapons.hammer.worn_iron_hammer-3")),
]

View File

@ -0,0 +1,10 @@
[
(1.0, Item("common.items.weapons.sword.caladbolg")),
(1.0, Item("common.items.weapons.hammer.mjolnir")),
(1.0, Item("common.items.weapons.axe.parashu")),
(1.0, Item("common.items.weapons.bow.sagitta")),
(0.5, Item("common.items.weapons.staff.phoenix")),
(0.5, Item("common.items.weapons.staff.laevateinn")),
(0.5, Item("common.items.weapons.sceptre.root_evil")),
(0.5, Item("common.items.weapons.sceptre.caduceus")),
]

View File

@ -0,0 +1,8 @@
[
(1.0, Item("common.items.weapons.sword.starter")),
(1.0, Item("common.items.weapons.hammer.starter_hammer")),
(1.0, Item("common.items.weapons.bow.starter")),
(1.0, Item("common.items.weapons.axe.starter_axe")),
(1.0, Item("common.items.weapons.staff.starter_staff")),
(1.0, Item("common.items.weapons.sceptre.starter_sceptre")),
]

View File

@ -0,0 +1,5 @@
[
(1.0, Item("common.items.weapons.sword.bloodsteel-0")),
(1.0, Item("common.items.weapons.sword.bloodsteel-1")),
(1.0, Item("common.items.weapons.sword.bloodsteel-2")),
]

View File

@ -0,0 +1,5 @@
[
(1.0, Item("common.items.weapons.sword.bronze-0")),
(1.0, Item("common.items.weapons.sword.bronze-1")),
(1.0, Item("common.items.weapons.sword.bronze-2")),
]

View File

@ -0,0 +1,6 @@
[
(1.0, Item("common.items.weapons.sword.cobalt-0")),
(1.0, Item("common.items.weapons.sword.cobalt-1")),
(1.0, Item("common.items.weapons.sword.cobalt-2")),
(1.0, Item("common.items.weapons.sword.cobalt-3")),
]

View File

@ -0,0 +1,13 @@
[
(1.0, Item("common.items.weapons.sword.iron-0")),
(1.0, Item("common.items.weapons.sword.iron-1")),
(1.0, Item("common.items.weapons.sword.iron-2")),
(1.0, Item("common.items.weapons.sword.iron-3")),
(1.0, Item("common.items.weapons.sword.iron-4")),
(1.0, Item("common.items.weapons.sword.iron-5")),
(1.0, Item("common.items.weapons.sword.iron-6")),
(1.0, Item("common.items.weapons.sword.iron-7")),
(1.0, Item("common.items.weapons.sword.iron-8")),
(1.0, Item("common.items.weapons.sword.iron-9")),
(1.0, Item("common.items.weapons.sword.iron-10")),
]

View File

@ -0,0 +1,11 @@
[
(1.0, Item("common.items.weapons.sword.steel-0")),
(1.0, Item("common.items.weapons.sword.steel-1")),
(1.0, Item("common.items.weapons.sword.steel-2")),
(1.0, Item("common.items.weapons.sword.steel-3")),
(1.0, Item("common.items.weapons.sword.steel-4")),
(1.0, Item("common.items.weapons.sword.steel-5")),
(1.0, Item("common.items.weapons.sword.steel-6")),
(1.0, Item("common.items.weapons.sword.steel-7")),
(1.0, Item("common.items.weapons.sword.steel-8")),
]

View File

@ -0,0 +1,5 @@
[
(1.0, Item("common.items.weapons.sword.stone-0")),
(1.0, Item("common.items.weapons.sword.stone-1")),
(1.0, Item("common.items.weapons.sword.stone-2")),
]

View File

@ -0,0 +1,5 @@
[
(1.0, Item("common.items.weapons.sword.wood-0")),
(1.0, Item("common.items.weapons.sword.wood-1")),
(1.0, Item("common.items.weapons.sword.wood-2")),
]

View File

@ -404,7 +404,7 @@ fn loot_table(loot_table: &str) -> Result<(), Box<dyn Error>> {
.to_string(),
),
"CreatureMaterial" => LootSpec::CreatureMaterial,
_ => panic!("Loot specifier kind must be either \"Item\" or \"LootTable\""),
a => panic!("Loot specifier kind must be either \"Item\" or \"LootTable\"\n{}", a),
};
let chance: f32 = record
.get(headers["Relative Chance"])