mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'hotfix-loottables' into 'master'
Hotfix loottables See merge request veloren/veloren!1431
This commit is contained in:
commit
8bd1f763e0
@ -7,5 +7,5 @@
|
||||
// necks
|
||||
(0.25, "common.items.armor.neck.neck_0"),
|
||||
// misc
|
||||
(0.1, "common.items.glider.glider_blue"),
|
||||
(0.05, "common.items.glider.glider_blue"),
|
||||
]
|
@ -13,5 +13,5 @@
|
||||
(1, "common.items.weapons.sword.cultist_purp_2h-0"),
|
||||
// misc
|
||||
(1, "common.items.boss_drops.lantern"),
|
||||
(0.05, "common.items.glider.glider_purp"),
|
||||
(0.1, "common.items.glider.glider_purp"),
|
||||
]
|
@ -3,8 +3,7 @@
|
||||
(0.25, "common.items.armor.neck.neck_1"),
|
||||
(0.2, "common.items.crafting_ing.cloth_scraps"),
|
||||
(1.0, "common.items.crafting_ing.empty_vial"),
|
||||
(0.1, "common.items.glider.glider_blue"),
|
||||
(1, "common.items.crafting_ing.cloth_scraps"),
|
||||
(0.1, "common.items.glider.glider_blue"),
|
||||
// swords
|
||||
(0.07, "common.items.weapons.sword.greatsword_2h_fine-1"),
|
||||
(0.07, "common.items.weapons.sword.greatsword_2h_fine-2"),
|
||||
|
@ -1,6 +1,7 @@
|
||||
[
|
||||
// crafting ingredients
|
||||
(2, "common.items.crafting_ing.leather_scraps"),
|
||||
(2, "common.items.crafting_ing.cloth_scraps"),
|
||||
(1, "common.items.crafting_ing.empty_vial"),
|
||||
(0.10, "common.items.crafting_ing.shiny_gem"),
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
(3, "common.items.food.apple"),
|
||||
(3, "common.items.food.mushroom"),
|
||||
(3, "common.items.food.coconut"),
|
||||
(4, "common.items.crafting_ing.cloth_scraps"),
|
||||
(3, "common.items.crafting_ing.cloth_scraps"),
|
||||
// crafted
|
||||
(0.5, "common.items.food.apple_mushroom_curry"),
|
||||
(0.5, "common.items.food.apple_stick"),
|
||||
@ -14,7 +14,7 @@
|
||||
(4, "common.items.crafting_ing.empty_vial"),
|
||||
(0.25, "common.items.armor.neck.neck_1"),
|
||||
(0.001, "common.items.glider.glider_purp"),
|
||||
(0.5, "common.items.glider.glider_blue"),
|
||||
(0.1, "common.items.glider.glider_blue"),
|
||||
(0.5, "common.items.utility.firework_purple"),
|
||||
(0.5, "common.items.utility.bomb"),
|
||||
// Heavy Armour
|
||||
|
@ -7,7 +7,5 @@
|
||||
// crafted
|
||||
(0.05, "common.items.food.apple_mushroom_curry"),
|
||||
(0.10, "common.items.food.apple_stick"),
|
||||
(0.10, "common.items.food.mushroom_stick"),
|
||||
// misc
|
||||
(3, "common.items.crafting_ing.cloth_scraps"),
|
||||
(0.10, "common.items.food.mushroom_stick"),
|
||||
]
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Crafting Ingredients
|
||||
(1, "common.items.crafting_ing.empty_vial"),
|
||||
(0.10, "common.items.crafting_ing.shiny_gem"),
|
||||
(5, "common.items.crafting_ing.cloth_scraps"),
|
||||
(1, "common.items.crafting_ing.cloth_scraps"),
|
||||
// Consumables
|
||||
(0.2, "common.items.consumable.potion_minor"),
|
||||
// Armour
|
||||
|
@ -327,7 +327,10 @@ impl Item {
|
||||
chosen.choose()
|
||||
},
|
||||
SpriteKind::Crate => {
|
||||
chosen = Lottery::<String>::load_expect("common.loot_tables.loot_table_food");
|
||||
chosen = Lottery::<String>::load_expect(match rng.gen_range(0, 4) {
|
||||
0 => "common.loot_tables.loot_table_crafting",
|
||||
_ => "common.loot_tables.loot_table_food",
|
||||
});
|
||||
chosen.choose()
|
||||
},
|
||||
SpriteKind::Beehive => "common.items.crafting_ing.honey",
|
||||
|
Loading…
Reference in New Issue
Block a user