mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Created weapon loot tables.
This commit is contained in:
parent
833f1f3309
commit
2e37cefce5
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
5
assets/common/loot_tables/weapons/axe/bloodsteel.ron
Normal file
5
assets/common/loot_tables/weapons/axe/bloodsteel.ron
Normal 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")),
|
||||
]
|
5
assets/common/loot_tables/weapons/axe/bronze.ron
Normal file
5
assets/common/loot_tables/weapons/axe/bronze.ron
Normal 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")),
|
||||
]
|
4
assets/common/loot_tables/weapons/axe/cobalt.ron
Normal file
4
assets/common/loot_tables/weapons/axe/cobalt.ron
Normal 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")),
|
||||
]
|
12
assets/common/loot_tables/weapons/axe/iron.ron
Normal file
12
assets/common/loot_tables/weapons/axe/iron.ron
Normal 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")),
|
||||
]
|
9
assets/common/loot_tables/weapons/axe/steel.ron
Normal file
9
assets/common/loot_tables/weapons/axe/steel.ron
Normal 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")),
|
||||
]
|
7
assets/common/loot_tables/weapons/axe/worn-iron.ron
Normal file
7
assets/common/loot_tables/weapons/axe/worn-iron.ron
Normal 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")),
|
||||
]
|
6
assets/common/loot_tables/weapons/bow/bone.ron
Normal file
6
assets/common/loot_tables/weapons/bow/bone.ron
Normal 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")),
|
||||
]
|
5
assets/common/loot_tables/weapons/bow/eldwood.ron
Normal file
5
assets/common/loot_tables/weapons/bow/eldwood.ron
Normal 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")),
|
||||
]
|
5
assets/common/loot_tables/weapons/bow/frostwood.ron
Normal file
5
assets/common/loot_tables/weapons/bow/frostwood.ron
Normal 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")),
|
||||
]
|
8
assets/common/loot_tables/weapons/bow/hardwood.ron
Normal file
8
assets/common/loot_tables/weapons/bow/hardwood.ron
Normal 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")),
|
||||
]
|
7
assets/common/loot_tables/weapons/bow/metal.ron
Normal file
7
assets/common/loot_tables/weapons/bow/metal.ron
Normal 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")),
|
||||
]
|
4
assets/common/loot_tables/weapons/bow/rawwood.ron
Normal file
4
assets/common/loot_tables/weapons/bow/rawwood.ron
Normal file
@ -0,0 +1,4 @@
|
||||
[
|
||||
(1.0, Item("common.items.weapons.bow.rawwood-0")),
|
||||
(1.0, Item("common.items.weapons.bow.rawwood-1")),
|
||||
]
|
7
assets/common/loot_tables/weapons/bow/wood.ron
Normal file
7
assets/common/loot_tables/weapons/bow/wood.ron
Normal 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")),
|
||||
]
|
5
assets/common/loot_tables/weapons/cultist.ron
Normal file
5
assets/common/loot_tables/weapons/cultist.ron
Normal 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")),
|
||||
]
|
4
assets/common/loot_tables/weapons/hammer/bloodsteel.ron
Normal file
4
assets/common/loot_tables/weapons/hammer/bloodsteel.ron
Normal file
@ -0,0 +1,4 @@
|
||||
[
|
||||
(1.0, Item("common.items.weapons.hammer.runic_hammer")),
|
||||
(1.0, Item("common.items.weapons.hammer.ramshead_hammer")),
|
||||
]
|
4
assets/common/loot_tables/weapons/hammer/cobalt.ron
Normal file
4
assets/common/loot_tables/weapons/hammer/cobalt.ron
Normal 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")),
|
||||
]
|
11
assets/common/loot_tables/weapons/hammer/iron.ron
Normal file
11
assets/common/loot_tables/weapons/hammer/iron.ron
Normal 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")),
|
||||
]
|
8
assets/common/loot_tables/weapons/hammer/steel.ron
Normal file
8
assets/common/loot_tables/weapons/hammer/steel.ron
Normal 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")),
|
||||
]
|
6
assets/common/loot_tables/weapons/hammer/stone.ron
Normal file
6
assets/common/loot_tables/weapons/hammer/stone.ron
Normal 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")),
|
||||
]
|
3
assets/common/loot_tables/weapons/hammer/wood.ron
Normal file
3
assets/common/loot_tables/weapons/hammer/wood.ron
Normal file
@ -0,0 +1,3 @@
|
||||
[
|
||||
(1.0, Item("common.items.weapons.hammer.wood_hammer-0")),
|
||||
]
|
6
assets/common/loot_tables/weapons/hammer/worn-iron.ron
Normal file
6
assets/common/loot_tables/weapons/hammer/worn-iron.ron
Normal 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")),
|
||||
]
|
10
assets/common/loot_tables/weapons/legendary.ron
Normal file
10
assets/common/loot_tables/weapons/legendary.ron
Normal 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")),
|
||||
]
|
8
assets/common/loot_tables/weapons/starter.ron
Normal file
8
assets/common/loot_tables/weapons/starter.ron
Normal 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")),
|
||||
]
|
5
assets/common/loot_tables/weapons/sword/bloodsteel.ron
Normal file
5
assets/common/loot_tables/weapons/sword/bloodsteel.ron
Normal 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")),
|
||||
]
|
5
assets/common/loot_tables/weapons/sword/bronze.ron
Normal file
5
assets/common/loot_tables/weapons/sword/bronze.ron
Normal 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")),
|
||||
]
|
6
assets/common/loot_tables/weapons/sword/cobalt.ron
Normal file
6
assets/common/loot_tables/weapons/sword/cobalt.ron
Normal 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")),
|
||||
]
|
13
assets/common/loot_tables/weapons/sword/iron.ron
Normal file
13
assets/common/loot_tables/weapons/sword/iron.ron
Normal 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")),
|
||||
]
|
11
assets/common/loot_tables/weapons/sword/steel.ron
Normal file
11
assets/common/loot_tables/weapons/sword/steel.ron
Normal 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")),
|
||||
]
|
5
assets/common/loot_tables/weapons/sword/stone.ron
Normal file
5
assets/common/loot_tables/weapons/sword/stone.ron
Normal 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")),
|
||||
]
|
5
assets/common/loot_tables/weapons/sword/wood.ron
Normal file
5
assets/common/loot_tables/weapons/sword/wood.ron
Normal 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")),
|
||||
]
|
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user