mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Renamed swiftness to retreating, changed model
This commit is contained in:
parent
73d7ff224d
commit
99b5571fd8
@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Swiftness potion
|
|
||||||
- Esperanto translation
|
- Esperanto translation
|
||||||
- Item quantity sort in player inventory.
|
- Item quantity sort in player inventory.
|
||||||
- Using Block('Alt' by default) in Defensive Stance now feels stronger
|
- Using Block('Alt' by default) in Defensive Stance now feels stronger
|
||||||
@ -39,6 +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
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
ItemDef(
|
ItemDef(
|
||||||
name: "Swiftness Potion",
|
name: "Potion of Retreat",
|
||||||
description: "Makes you faster.",
|
description: "Don't get caught fighting too fierce a foe.",
|
||||||
kind: Consumable(
|
kind: Consumable(
|
||||||
kind: Drink,
|
kind: Drink,
|
||||||
effects: All([
|
effects: All([
|
||||||
Buff((
|
Buff((
|
||||||
kind: Swiftness,
|
kind: Retreating,
|
||||||
data: (
|
data: (
|
||||||
strength: 0.55,
|
strength: 0.55,
|
||||||
duration: Some(25),
|
duration: Some(25),
|
@ -40,8 +40,8 @@
|
|||||||
],
|
],
|
||||||
craft_sprite: Some(Cauldron),
|
craft_sprite: Some(Cauldron),
|
||||||
),
|
),
|
||||||
"potion_swiftness": (
|
"potion_retreat": (
|
||||||
output: ("common.items.consumable.potion_swiftness", 1),
|
output: ("common.items.consumable.potion_retreat", 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),
|
||||||
|
@ -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...
|
||||||
## Swiftness
|
## Retreating
|
||||||
buff-title-swift = Swiftness
|
buff-title-retreat = Retreating
|
||||||
buff-desc-swift = Your movement is faster, but you deal less damage, and take more damage.
|
buff-desc-retreat = Your movement is faster, but you deal less damage, and take more damage.
|
||||||
buff-stat-swift =
|
buff-stat-retreat =
|
||||||
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
|
||||||
|
@ -3203,9 +3203,9 @@
|
|||||||
"voxel.object.potion_burning",
|
"voxel.object.potion_burning",
|
||||||
(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_swiftness"): VoxTrans(
|
Simple("common.items.consumable.potion_retreat"): VoxTrans(
|
||||||
"voxel.object.potion_swiftness",
|
"voxel.object.potion_retreat",
|
||||||
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.5,
|
(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(
|
||||||
"voxel.object.burning_charm",
|
"voxel.object.burning_charm",
|
||||||
|
@ -810,7 +810,7 @@
|
|||||||
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_burning"): "voxel.object.potion_burning",
|
||||||
Simple("common.items.consumable.potion_swiftness"): "voxel.object.potion_swiftness",
|
Simple("common.items.consumable.potion_retreat"): "voxel.object.potion_retreat",
|
||||||
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",
|
||||||
|
BIN
assets/voxygen/voxel/object/potion_retreat.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/object/potion_retreat.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/object/potion_swiftness.vox
(Stored with Git LFS)
BIN
assets/voxygen/voxel/object/potion_swiftness.vox
(Stored with Git LFS)
Binary file not shown.
@ -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::Swiftness => "swiftness",
|
BuffKind::Retreating => "retreating",
|
||||||
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",
|
||||||
|
@ -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%
|
||||||
Swiftness,
|
Retreating,
|
||||||
/// 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::Swiftness
|
| BuffKind::Retreating
|
||||||
| 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::Swiftness => vec![
|
BuffKind::Retreating => 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),
|
||||||
),
|
),
|
||||||
|
@ -109,7 +109,7 @@ pub fn localize_chat_message(
|
|||||||
BuffKind::Regeneration
|
BuffKind::Regeneration
|
||||||
| BuffKind::Saturation
|
| BuffKind::Saturation
|
||||||
| BuffKind::Potion
|
| BuffKind::Potion
|
||||||
| BuffKind::Swiftness
|
| BuffKind::Retreating
|
||||||
| BuffKind::CampfireHeal
|
| BuffKind::CampfireHeal
|
||||||
| BuffKind::EnergyRegen
|
| BuffKind::EnergyRegen
|
||||||
| BuffKind::IncreaseMaxEnergy
|
| BuffKind::IncreaseMaxEnergy
|
||||||
|
@ -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 Swiftness (uses same as regeneration atm)
|
// TODO: Need unique image for Retreating (uses same as regeneration atm)
|
||||||
BuffKind::Swiftness => imgs.buff_plus_0,
|
BuffKind::Retreating => 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::Swiftness => localized_strings.get_msg("buff-title-swift"),
|
BuffKind::Retreating => localized_strings.get_msg("buff-title-retreat"),
|
||||||
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::Swiftness => localized_strings.get_msg("buff-desc-swift"),
|
BuffKind::Retreating => localized_strings.get_msg("buff-desc-retreat"),
|
||||||
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
|
||||||
|
@ -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::Swiftness => {
|
BuffKind::Retreating => {
|
||||||
i18n.get_msg_ctx("buff-stat-swift", &i18n::fluent_args! {
|
i18n.get_msg_ctx("buff-stat-retreat", &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::Swiftness
|
| BuffKind::Retreating
|
||||||
| BuffKind::IncreaseMaxHealth
|
| BuffKind::IncreaseMaxHealth
|
||||||
| BuffKind::Invulnerability
|
| BuffKind::Invulnerability
|
||||||
| BuffKind::PotionSickness
|
| BuffKind::PotionSickness
|
||||||
|
Loading…
Reference in New Issue
Block a user