Renamed to potion of agility, burning potion to combustion

This commit is contained in:
HEIEnthusiast 2023-12-05 14:15:54 -04:00
parent 99b5571fd8
commit 933c897450
14 changed files with 32 additions and 31 deletions

View File

@ -38,7 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- A way to target non-player entities with commands. With rtsim_id: `rtsim@<id>`, with uid: `uid@<id>`. - A way to target non-player entities with commands. With rtsim_id: `rtsim@<id>`, with uid: `uid@<id>`.
- Shorthand in voxygen for specific entities in commands, some examples `@target`, `@mount`, `@viewpoint`. - Shorthand in voxygen for specific entities in commands, some examples `@target`, `@mount`, `@viewpoint`.
- Added hit_timing to BasicMelee abilities - Added hit_timing to BasicMelee abilities
- Retreating Potion - Potion of Agility
### Changed ### Changed
@ -72,6 +72,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed offset of items carried on backs when wearing cloaks and backpacks - Fixed offset of items carried on backs when wearing cloaks and backpacks
- Linearize light colors on the CPU rather than in shaders on the GPU - Linearize light colors on the CPU rather than in shaders on the GPU
- You can no longer stack self buffs - You can no longer stack self buffs
- Renamed "Burning Potion" to "Potion of Combustion"
### Removed ### Removed
- Medium and large potions from all loot tables - Medium and large potions from all loot tables

View File

@ -1,11 +1,11 @@
ItemDef( ItemDef(
name: "Potion of Retreat", name: "Potion of Agility",
description: "Don't get caught fighting too fierce a foe.", description: "Fly, you fools!",
kind: Consumable( kind: Consumable(
kind: Drink, kind: Drink,
effects: All([ effects: All([
Buff(( Buff((
kind: Retreating, kind: Agility,
data: ( data: (
strength: 0.55, strength: 0.55,
duration: Some(25), duration: Some(25),

View File

@ -1,5 +1,5 @@
ItemDef( ItemDef(
name: "Burning Potion", name: "Potion of Combustion",
description: "Sets the user ablaze", description: "Sets the user ablaze",
kind: Consumable( kind: Consumable(
kind: Drink, kind: Drink,

View File

@ -31,8 +31,8 @@
], ],
craft_sprite: Some(Anvil), craft_sprite: Some(Anvil),
), ),
"potion_burning": ( "potion_combustion": (
output: ("common.items.consumable.potion_burning", 1), output: ("common.items.consumable.potion_combustion", 1),
inputs: [ inputs: [
(Item("common.items.crafting_ing.empty_vial"), 1, false), (Item("common.items.crafting_ing.empty_vial"), 1, false),
(Item("common.items.crafting_ing.living_embers"), 3, false), (Item("common.items.crafting_ing.living_embers"), 3, false),
@ -40,8 +40,8 @@
], ],
craft_sprite: Some(Cauldron), craft_sprite: Some(Cauldron),
), ),
"potion_retreat": ( "potion_agility": (
output: ("common.items.consumable.potion_retreat", 1), output: ("common.items.consumable.potion_agility", 1),
inputs: [ inputs: [
(Item("common.items.crafting_ing.empty_vial"), 1, false), (Item("common.items.crafting_ing.empty_vial"), 1, false),
(Item("common.items.mineral.ore.veloritefrag"), 2, false), (Item("common.items.mineral.ore.veloritefrag"), 2, false),

View File

@ -5,10 +5,10 @@ buff-stat-health = Restores { $str_total } Health
## Potion ## Potion
buff-title-potion = Potion buff-title-potion = Potion
buff-desc-potion = Drinking... buff-desc-potion = Drinking...
## Retreating ## Agility
buff-title-retreat = Retreating buff-title-agility = Agility
buff-desc-retreat = Your movement is faster, but you deal less damage, and take more damage. buff-desc-agility = Your movement is faster, but you deal less damage, and take more damage.
buff-stat-retreat = buff-stat-agility =
Increases movement speed by { $strength }%. Increases movement speed by { $strength }%.
but decreases your damage by 100%, but decreases your damage by 100%,
and increases your damage vulnerability and increases your damage vulnerability

View File

@ -3199,12 +3199,12 @@
"voxel.object.curious_potion", "voxel.object.curious_potion",
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.7, (0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.7,
), ),
Simple("common.items.consumable.potion_burning"): VoxTrans( Simple("common.items.consumable.potion_combustion"): VoxTrans(
"voxel.object.potion_burning", "voxel.object.potion_combustion",
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.7, (0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.7,
), ),
Simple("common.items.consumable.potion_retreat"): VoxTrans( Simple("common.items.consumable.potion_agility"): VoxTrans(
"voxel.object.potion_retreat", "voxel.object.potion_agility",
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.7, (0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.7,
), ),
Simple("common.items.charms.burning_charm"): VoxTrans( Simple("common.items.charms.burning_charm"): VoxTrans(

View File

@ -809,8 +809,8 @@
Simple("common.items.consumable.potion_minor"): "voxel.object.potion_red", Simple("common.items.consumable.potion_minor"): "voxel.object.potion_red",
Simple("common.items.consumable.potion_big"): "voxel.object.potion_red", Simple("common.items.consumable.potion_big"): "voxel.object.potion_red",
Simple("common.items.consumable.curious_potion"): "voxel.object.curious_potion", Simple("common.items.consumable.curious_potion"): "voxel.object.curious_potion",
Simple("common.items.consumable.potion_burning"): "voxel.object.potion_burning", Simple("common.items.consumable.potion_combustion"): "voxel.object.potion_combustion",
Simple("common.items.consumable.potion_retreat"): "voxel.object.potion_retreat", Simple("common.items.consumable.potion_agility"): "voxel.object.potion_agility",
Simple("common.items.charms.burning_charm"): "voxel.object.burning_charm", Simple("common.items.charms.burning_charm"): "voxel.object.burning_charm",
Simple("common.items.charms.frozen_charm"): "voxel.object.frozen_charm", Simple("common.items.charms.frozen_charm"): "voxel.object.frozen_charm",
Simple("common.items.charms.lifesteal_charm"): "voxel.object.lifesteal_charm", Simple("common.items.charms.lifesteal_charm"): "voxel.object.lifesteal_charm",

View File

@ -155,7 +155,7 @@ lazy_static! {
BuffKind::Bleeding => "bleeding", BuffKind::Bleeding => "bleeding",
BuffKind::Cursed => "cursed", BuffKind::Cursed => "cursed",
BuffKind::Potion => "potion", BuffKind::Potion => "potion",
BuffKind::Retreating => "retreating", BuffKind::Agility => "agility",
BuffKind::CampfireHeal => "campfire_heal", BuffKind::CampfireHeal => "campfire_heal",
BuffKind::EnergyRegen => "energy_regen", BuffKind::EnergyRegen => "energy_regen",
BuffKind::IncreaseMaxEnergy => "increase_max_energy", BuffKind::IncreaseMaxEnergy => "increase_max_energy",

View File

@ -41,7 +41,7 @@ pub enum BuffKind {
/// decreases the amount of damage dealt. /// decreases the amount of damage dealt.
/// Movement speed increases linearly with strength 1.0 is an 100% increase /// Movement speed increases linearly with strength 1.0 is an 100% increase
/// Damage vulnerability and damage reduction are both hard set to 100% /// Damage vulnerability and damage reduction are both hard set to 100%
Retreating, Agility,
/// Applied when sitting at a campfire. /// Applied when sitting at a campfire.
/// Strength is fraction of health restored per second. /// Strength is fraction of health restored per second.
CampfireHeal, CampfireHeal,
@ -182,7 +182,7 @@ impl BuffKind {
BuffKind::Regeneration BuffKind::Regeneration
| BuffKind::Saturation | BuffKind::Saturation
| BuffKind::Potion | BuffKind::Potion
| BuffKind::Retreating | BuffKind::Agility
| BuffKind::CampfireHeal | BuffKind::CampfireHeal
| BuffKind::Frenzied | BuffKind::Frenzied
| BuffKind::EnergyRegen | BuffKind::EnergyRegen
@ -270,7 +270,7 @@ impl BuffKind {
tick_dur: Secs(0.1), tick_dur: Secs(0.1),
}] }]
}, },
BuffKind::Retreating => vec![ BuffKind::Agility => vec![
BuffEffect::MovementSpeed( BuffEffect::MovementSpeed(
1.0 + data.strength * stats.map_or(1.0, |s| s.move_speed_multiplier), 1.0 + data.strength * stats.map_or(1.0, |s| s.move_speed_multiplier),
), ),

View File

@ -109,7 +109,7 @@ pub fn localize_chat_message(
BuffKind::Regeneration BuffKind::Regeneration
| BuffKind::Saturation | BuffKind::Saturation
| BuffKind::Potion | BuffKind::Potion
| BuffKind::Retreating | BuffKind::Agility
| BuffKind::CampfireHeal | BuffKind::CampfireHeal
| BuffKind::EnergyRegen | BuffKind::EnergyRegen
| BuffKind::IncreaseMaxEnergy | BuffKind::IncreaseMaxEnergy

View File

@ -5160,8 +5160,8 @@ pub fn get_buff_image(buff: BuffKind, imgs: &Imgs) -> conrod_core::image::Id {
BuffKind::Regeneration => imgs.buff_plus_0, BuffKind::Regeneration => imgs.buff_plus_0,
BuffKind::Saturation => imgs.buff_saturation_0, BuffKind::Saturation => imgs.buff_saturation_0,
BuffKind::Potion => imgs.buff_potion_0, BuffKind::Potion => imgs.buff_potion_0,
// TODO: Need unique image for Retreating (uses same as regeneration atm) // TODO: Need unique image for Agility (uses same as regeneration atm)
BuffKind::Retreating => imgs.buff_plus_0, BuffKind::Agility => imgs.buff_plus_0,
BuffKind::CampfireHeal => imgs.buff_campfire_heal_0, BuffKind::CampfireHeal => imgs.buff_campfire_heal_0,
BuffKind::EnergyRegen => imgs.buff_energyplus_0, BuffKind::EnergyRegen => imgs.buff_energyplus_0,
BuffKind::IncreaseMaxEnergy => imgs.buff_energyplus_0, BuffKind::IncreaseMaxEnergy => imgs.buff_energyplus_0,
@ -5205,7 +5205,7 @@ pub fn get_buff_title(buff: BuffKind, localized_strings: &Localization) -> Cow<s
BuffKind::Regeneration => localized_strings.get_msg("buff-title-heal"), BuffKind::Regeneration => localized_strings.get_msg("buff-title-heal"),
BuffKind::Saturation => localized_strings.get_msg("buff-title-saturation"), BuffKind::Saturation => localized_strings.get_msg("buff-title-saturation"),
BuffKind::Potion => localized_strings.get_msg("buff-title-potion"), BuffKind::Potion => localized_strings.get_msg("buff-title-potion"),
BuffKind::Retreating => localized_strings.get_msg("buff-title-retreat"), BuffKind::Agility => localized_strings.get_msg("buff-title-agility"),
BuffKind::CampfireHeal => localized_strings.get_msg("buff-title-campfire_heal"), BuffKind::CampfireHeal => localized_strings.get_msg("buff-title-campfire_heal"),
BuffKind::EnergyRegen => localized_strings.get_msg("buff-title-energy_regen"), BuffKind::EnergyRegen => localized_strings.get_msg("buff-title-energy_regen"),
BuffKind::IncreaseMaxHealth => localized_strings.get_msg("buff-title-increase_max_health"), BuffKind::IncreaseMaxHealth => localized_strings.get_msg("buff-title-increase_max_health"),
@ -5248,7 +5248,7 @@ pub fn get_buff_desc(buff: BuffKind, data: BuffData, localized_strings: &Localiz
BuffKind::Regeneration => localized_strings.get_msg("buff-desc-heal"), BuffKind::Regeneration => localized_strings.get_msg("buff-desc-heal"),
BuffKind::Saturation => localized_strings.get_msg("buff-desc-saturation"), BuffKind::Saturation => localized_strings.get_msg("buff-desc-saturation"),
BuffKind::Potion => localized_strings.get_msg("buff-desc-potion"), BuffKind::Potion => localized_strings.get_msg("buff-desc-potion"),
BuffKind::Retreating => localized_strings.get_msg("buff-desc-retreat"), BuffKind::Agility => localized_strings.get_msg("buff-desc-agility"),
BuffKind::CampfireHeal => { BuffKind::CampfireHeal => {
localized_strings.get_msg_ctx("buff-desc-campfire_heal", &i18n::fluent_args! { localized_strings.get_msg_ctx("buff-desc-campfire_heal", &i18n::fluent_args! {
"rate" => data.strength * 100.0 "rate" => data.strength * 100.0

View File

@ -189,8 +189,8 @@ pub fn consumable_desc(effects: &Effects, i18n: &Localization) -> Vec<String> {
"strength" => format_float(strength * 100.0), "strength" => format_float(strength * 100.0),
}) })
}, },
BuffKind::Retreating => { BuffKind::Agility => {
i18n.get_msg_ctx("buff-stat-retreat", &i18n::fluent_args! { i18n.get_msg_ctx("buff-stat-agility", &i18n::fluent_args! {
"strength" => format_float(strength * 100.0), "strength" => format_float(strength * 100.0),
}) })
}, },
@ -236,7 +236,7 @@ pub fn consumable_desc(effects: &Effects, i18n: &Localization) -> Vec<String> {
}) })
}, },
BuffKind::IncreaseMaxEnergy BuffKind::IncreaseMaxEnergy
| BuffKind::Retreating | BuffKind::Agility
| BuffKind::IncreaseMaxHealth | BuffKind::IncreaseMaxHealth
| BuffKind::Invulnerability | BuffKind::Invulnerability
| BuffKind::PotionSickness | BuffKind::PotionSickness