Potions fixes

This commit is contained in:
Michal Sroczynski 2023-07-25 17:28:21 +02:00
parent 3ad6517aa1
commit 1a52c4d24d
15 changed files with 20 additions and 50 deletions

View File

@ -7,8 +7,8 @@
(0.1, Item("common.items.utility.firework_white")), (0.1, Item("common.items.utility.firework_white")),
(0.1, Item("common.items.utility.firework_yellow")), (0.1, Item("common.items.utility.firework_yellow")),
// Potions // Potions
(10.0, MultiDrop(Item("common.items.consumable.potion_minor"), 2, 5)), (3.0, MultiDrop(Item("common.items.consumable.potion_minor"), 2, 5)),
// Misc // Misc
(2.0, Item("common.items.utility.collar")), (0.2, Item("common.items.utility.collar")),
(2.0, Item("common.items.utility.bomb")), (0.2, Item("common.items.utility.bomb")),
] ]

View File

@ -1,14 +0,0 @@
[
// Fireworks
(0.1, Item("common.items.utility.firework_blue")),
(0.1, Item("common.items.utility.firework_green")),
(0.1, Item("common.items.utility.firework_purple")),
(0.1, Item("common.items.utility.firework_red")),
(0.1, Item("common.items.utility.firework_white")),
(0.1, Item("common.items.utility.firework_yellow")),
// Potions
(10.0, MultiDrop(Item("common.items.consumable.potion_big"), 2, 5)),
// Misc
(2.0, MultiDrop(Item("common.items.utility.collar"), 2, 3)),
(2.0, MultiDrop(Item("common.items.utility.bomb"), 8, 10)),
]

View File

@ -1,14 +0,0 @@
[
// Fireworks
(0.1, Item("common.items.utility.firework_blue")),
(0.1, Item("common.items.utility.firework_green")),
(0.1, Item("common.items.utility.firework_purple")),
(0.1, Item("common.items.utility.firework_red")),
(0.1, Item("common.items.utility.firework_white")),
(0.1, Item("common.items.utility.firework_yellow")),
// Potions
(10.0, MultiDrop(Item("common.items.consumable.potion_med"), 2, 5)),
// Misc
(2.0, MultiDrop(Item("common.items.utility.collar"), 1, 2)),
(2.0, MultiDrop(Item("common.items.utility.bomb"), 3, 5)),
]

View File

@ -13,7 +13,7 @@
(1.0, MultiDrop(Item("common.items.mineral.ingot.iron"), 3, 10)), (1.0, MultiDrop(Item("common.items.mineral.ingot.iron"), 3, 10)),
(1.0, MultiDrop(Item("common.items.log.bamboo"), 3, 10)), (1.0, MultiDrop(Item("common.items.log.bamboo"), 3, 10)),
// Consumables // Consumables
(2.0, LootTable("common.loot_tables.consumable.poor")), (2.0, LootTable("common.loot_tables.consumable")),
// Food // Food
(1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 1, 3)), (1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 1, 3)),
] ]

View File

@ -15,7 +15,7 @@
(0.1, Item("common.items.mineral.gem.emerald")), (0.1, Item("common.items.mineral.gem.emerald")),
(0.1, Item("common.items.mineral.gem.ruby")), (0.1, Item("common.items.mineral.gem.ruby")),
// Consumables // Consumables
(2.0, LootTable("common.loot_tables.consumable.poor")), (2.0, LootTable("common.loot_tables.consumable")),
// Food // Food
(1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 1, 2)), (1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 1, 2)),
] ]

View File

@ -2,7 +2,7 @@
// Food // Food
(1.0, LootTable("common.loot_tables.food.wild_ingredients")), (1.0, LootTable("common.loot_tables.food.wild_ingredients")),
// Consumables // Consumables
(2.0, LootTable("common.loot_tables.consumable.poor")), (2.0, LootTable("common.loot_tables.consumable")),
// Crafting ingredients // Crafting ingredients
(1.0, MultiDrop(Item("common.items.log.wood"), 5, 10)), (1.0, MultiDrop(Item("common.items.log.wood"), 5, 10)),
(0.1, MultiDrop(Item("common.items.log.hardwood"), 1, 2)), (0.1, MultiDrop(Item("common.items.log.hardwood"), 1, 2)),

View File

@ -11,7 +11,7 @@
(1.0, MultiDrop(Item("common.items.mineral.ingot.steel"), 3, 10)), (1.0, MultiDrop(Item("common.items.mineral.ingot.steel"), 3, 10)),
(1.0, MultiDrop(Item("common.items.log.hardwood"), 3, 10)), (1.0, MultiDrop(Item("common.items.log.hardwood"), 3, 10)),
// Consumables // Consumables
(2.0, LootTable("common.loot_tables.consumable.moderate")), (2.0, LootTable("common.loot_tables.consumable")),
// Food // Food
(1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 1, 4)), (1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 1, 4)),
] ]

View File

@ -1,11 +1,10 @@
[ [
// Consumables // Consumables
(1.0, LootTable("common.loot_tables.consumable.moderate")), (0.5, LootTable("common.loot_tables.consumable")),
// Food // Food
(1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 1, 2)), (1.5, MultiDrop(LootTable("common.loot_tables.food.prepared"), 1, 2)),
(1.0, MultiDrop(LootTable("common.loot_tables.food.wild_ingredients"), 1, 2)),
// Materials // Materials
(1.0, MultiDrop(Item("common.items.crafting_ing.hide.scales"), 1, 3)), (0.5, MultiDrop(Item("common.items.crafting_ing.hide.scales"), 0, 2)),
// Nothing // Nothing
(0.75, Nothing), (1.5, Nothing),
] ]

View File

@ -13,7 +13,7 @@
(1.0, MultiDrop(Item("common.items.log.ironwood"), 3, 7)), (1.0, MultiDrop(Item("common.items.log.ironwood"), 3, 7)),
(2.0, MultiDrop(Item("common.items.mineral.ore.velorite"), 3, 10)), (2.0, MultiDrop(Item("common.items.mineral.ore.velorite"), 3, 10)),
// Consumables // Consumables
(2.0, LootTable("common.loot_tables.consumable.moderate")), (2.0, LootTable("common.loot_tables.consumable")),
// Food // Food
(1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 2, 4)), (1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 2, 4)),
] ]

View File

@ -1,9 +1,8 @@
[ [
// Consumables // Consumables
(1.0, LootTable("common.loot_tables.consumable.moderate")), (0.5, LootTable("common.loot_tables.consumable")),
// Food // Food
(1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 2, 4)), (1.5, MultiDrop(LootTable("common.loot_tables.food.prepared"), 2, 4)),
(1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 2, 4)),
// Nothing // Nothing
(0.75, Nothing), (2.0, Nothing),
] ]

View File

@ -13,7 +13,7 @@
(1.0, MultiDrop(Item("common.items.mineral.ingot.bloodsteel"), 1, 5)), (1.0, MultiDrop(Item("common.items.mineral.ingot.bloodsteel"), 1, 5)),
(1.0, MultiDrop(Item("common.items.log.frostwood"), 3, 6)), (1.0, MultiDrop(Item("common.items.log.frostwood"), 3, 6)),
// Consumables // Consumables
(2.0, LootTable("common.loot_tables.consumable.good")), (2.0, MultiDrop(LootTable("common.loot_tables.consumable"), 1, 2)),
// Food // Food
(1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 2, 5)), (1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 2, 5)),
] ]

View File

@ -5,7 +5,7 @@
// Food // Food
(5.0, LootTable("common.loot_tables.food.prepared")), (5.0, LootTable("common.loot_tables.food.prepared")),
// Consumables // Consumables
(5.0, LootTable("common.loot_tables.consumable.good")), (5.0, MultiDrop(LootTable("common.loot_tables.consumable"), 1, 2)),
// lantern // lantern
(1.0, Item("common.items.lantern.blue_0")), (1.0, Item("common.items.lantern.blue_0")),
// Gear // Gear

View File

@ -12,7 +12,7 @@
(1.0, MultiDrop(Item("common.items.mineral.ingot.bloodsteel"), 1, 5)), (1.0, MultiDrop(Item("common.items.mineral.ingot.bloodsteel"), 1, 5)),
(1.0, MultiDrop(Item("common.items.log.frostwood"), 1, 5)), (1.0, MultiDrop(Item("common.items.log.frostwood"), 1, 5)),
// Consumables // Consumables
(2.0, LootTable("common.loot_tables.consumable.good")), (2.0, MultiDrop(LootTable("common.loot_tables.consumable"), 1, 2)),
(0.1, MultiDrop(Item("common.items.food.spore_corruption"), 1, 3)), (0.1, MultiDrop(Item("common.items.food.spore_corruption"), 1, 3)),
// Food // Food
(1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 3, 6)), (1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 3, 6)),

View File

@ -4,7 +4,7 @@
// Food // Food
(5.0, LootTable("common.loot_tables.food.prepared")), (5.0, LootTable("common.loot_tables.food.prepared")),
// Consumables // Consumables
(5.0, LootTable("common.loot_tables.consumable.good")), (5.0, MultiDrop(LootTable("common.loot_tables.consumable"), 1, 2)),
// Back // Back
(1.0, Item("common.items.armor.misc.back.dungeon_purple")), (1.0, Item("common.items.armor.misc.back.dungeon_purple")),
// Ring // Ring

View File

@ -92,7 +92,7 @@ impl CharacterBehavior for Data {
if self.timer < self.charge_end_timer if self.timer < self.charge_end_timer
&& (input_is_pressed(data, self.static_data.ability_info.input) && (input_is_pressed(data, self.static_data.ability_info.input)
|| (self.auto_charge && self.timer < self.static_data.charge_duration)) || (self.auto_charge && self.timer < self.static_data.charge_duration))
&& update.energy.current() > 0.0 && update.energy.current() >= 0.0
{ {
// Forward movement // Forward movement
let charge_frac = (self.timer.as_secs_f32() let charge_frac = (self.timer.as_secs_f32()