mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix sword sfx
This commit is contained in:
parent
5fb74ea1d2
commit
87f5a3345d
@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Stat diff now displays correctly for armor
|
- Stat diff now displays correctly for armor
|
||||||
- Lamps, embers and campfires use glowing indices
|
- Lamps, embers and campfires use glowing indices
|
||||||
- Non-potion drinks no longer heal as much as potions.
|
- Non-potion drinks no longer heal as much as potions.
|
||||||
|
- Added SFX to the new sword abilities
|
||||||
|
|
||||||
## [0.14.0] - 2023-01-07
|
## [0.14.0] - 2023-01-07
|
||||||
|
|
||||||
|
@ -306,6 +306,54 @@
|
|||||||
],
|
],
|
||||||
threshold: 0.5,
|
threshold: 0.5,
|
||||||
),
|
),
|
||||||
|
Attack(ComboMelee2(Action), Sword): (
|
||||||
|
files: [
|
||||||
|
"voxygen.audio.sfx.abilities.swing_sword",
|
||||||
|
],
|
||||||
|
threshold: 0.7,
|
||||||
|
),
|
||||||
|
Attack(FinisherMelee(Action), Sword): (
|
||||||
|
files: [
|
||||||
|
"voxygen.audio.sfx.abilities.swing_sword",
|
||||||
|
],
|
||||||
|
threshold: 0.7,
|
||||||
|
),
|
||||||
|
Attack(DiveMelee(Action), Sword): (
|
||||||
|
files: [
|
||||||
|
"voxygen.audio.sfx.abilities.swing_sword",
|
||||||
|
],
|
||||||
|
threshold: 0.7,
|
||||||
|
),
|
||||||
|
Attack(RiposteMelee(Action), Sword): (
|
||||||
|
files: [
|
||||||
|
"voxygen.audio.sfx.abilities.swing_sword",
|
||||||
|
],
|
||||||
|
threshold: 0.7,
|
||||||
|
),
|
||||||
|
Attack(RapidMelee(Action), Sword): (
|
||||||
|
files: [
|
||||||
|
"voxygen.audio.sfx.abilities.swing_sword",
|
||||||
|
],
|
||||||
|
threshold: 0.7,
|
||||||
|
),
|
||||||
|
Attack(ChargedMelee(Action), Sword): (
|
||||||
|
files: [
|
||||||
|
"voxygen.audio.sfx.abilities.swing_sword",
|
||||||
|
],
|
||||||
|
threshold: 0.7,
|
||||||
|
),
|
||||||
|
Attack(DashMelee(Action), Sword): (
|
||||||
|
files: [
|
||||||
|
"voxygen.audio.sfx.abilities.sword_dash",
|
||||||
|
],
|
||||||
|
threshold: 0.8,
|
||||||
|
),
|
||||||
|
Attack(SpinMelee(Action), Sword): (
|
||||||
|
files: [
|
||||||
|
"voxygen.audio.sfx.abilities.swing_sword",
|
||||||
|
],
|
||||||
|
threshold: 0.7,
|
||||||
|
),
|
||||||
Attack(ComboMelee(Action, 1), Sword): (
|
Attack(ComboMelee(Action, 1), Sword): (
|
||||||
files: [
|
files: [
|
||||||
"voxygen.audio.sfx.abilities.swing_sword",
|
"voxygen.audio.sfx.abilities.swing_sword",
|
||||||
@ -324,18 +372,6 @@
|
|||||||
],
|
],
|
||||||
threshold: 0.7,
|
threshold: 0.7,
|
||||||
),
|
),
|
||||||
Attack(DashMelee(Action), Sword): (
|
|
||||||
files: [
|
|
||||||
"voxygen.audio.sfx.abilities.sword_dash",
|
|
||||||
],
|
|
||||||
threshold: 0.8,
|
|
||||||
),
|
|
||||||
Attack(SpinMelee(Action), Sword): (
|
|
||||||
files: [
|
|
||||||
"voxygen.audio.sfx.abilities.swing_sword",
|
|
||||||
],
|
|
||||||
threshold: 0.7,
|
|
||||||
),
|
|
||||||
Inventory(CollectedTool(Sword)): (
|
Inventory(CollectedTool(Sword)): (
|
||||||
files: [
|
files: [
|
||||||
"voxygen.audio.sfx.inventory.pickup_sword",
|
"voxygen.audio.sfx.inventory.pickup_sword",
|
||||||
|
@ -399,6 +399,11 @@ pub enum CharacterAbilityType {
|
|||||||
DashMelee(StageSection),
|
DashMelee(StageSection),
|
||||||
BasicBlock,
|
BasicBlock,
|
||||||
ComboMelee(StageSection, u32),
|
ComboMelee(StageSection, u32),
|
||||||
|
ComboMelee2(StageSection),
|
||||||
|
FinisherMelee(StageSection),
|
||||||
|
DiveMelee(StageSection),
|
||||||
|
RiposteMelee(StageSection),
|
||||||
|
RapidMelee(StageSection),
|
||||||
LeapMelee(StageSection),
|
LeapMelee(StageSection),
|
||||||
SpinMelee(StageSection),
|
SpinMelee(StageSection),
|
||||||
Music(StageSection),
|
Music(StageSection),
|
||||||
@ -420,6 +425,13 @@ impl From<&CharacterState> for CharacterAbilityType {
|
|||||||
CharacterState::BasicBlock(_) => Self::BasicBlock,
|
CharacterState::BasicBlock(_) => Self::BasicBlock,
|
||||||
CharacterState::LeapMelee(data) => Self::LeapMelee(data.stage_section),
|
CharacterState::LeapMelee(data) => Self::LeapMelee(data.stage_section),
|
||||||
CharacterState::ComboMelee(data) => Self::ComboMelee(data.stage_section, data.stage),
|
CharacterState::ComboMelee(data) => Self::ComboMelee(data.stage_section, data.stage),
|
||||||
|
CharacterState::ComboMelee2(data) => {
|
||||||
|
data.stage_section.map_or(Self::Other, Self::ComboMelee2)
|
||||||
|
},
|
||||||
|
CharacterState::FinisherMelee(data) => Self::FinisherMelee(data.stage_section),
|
||||||
|
CharacterState::DiveMelee(data) => Self::DiveMelee(data.stage_section),
|
||||||
|
CharacterState::RiposteMelee(data) => Self::RiposteMelee(data.stage_section),
|
||||||
|
CharacterState::RapidMelee(data) => Self::RapidMelee(data.stage_section),
|
||||||
CharacterState::SpinMelee(data) => Self::SpinMelee(data.stage_section),
|
CharacterState::SpinMelee(data) => Self::SpinMelee(data.stage_section),
|
||||||
CharacterState::ChargedMelee(data) => Self::ChargedMelee(data.stage_section),
|
CharacterState::ChargedMelee(data) => Self::ChargedMelee(data.stage_section),
|
||||||
CharacterState::ChargedRanged(_) => Self::ChargedRanged,
|
CharacterState::ChargedRanged(_) => Self::ChargedRanged,
|
||||||
@ -446,12 +458,7 @@ impl From<&CharacterState> for CharacterAbilityType {
|
|||||||
| CharacterState::UseItem(_)
|
| CharacterState::UseItem(_)
|
||||||
| CharacterState::SpriteInteract(_)
|
| CharacterState::SpriteInteract(_)
|
||||||
| CharacterState::Skate(_)
|
| CharacterState::Skate(_)
|
||||||
| CharacterState::Wallrun(_)
|
| CharacterState::Wallrun(_) => Self::Other,
|
||||||
| CharacterState::ComboMelee2(_)
|
|
||||||
| CharacterState::FinisherMelee(_)
|
|
||||||
| CharacterState::DiveMelee(_)
|
|
||||||
| CharacterState::RiposteMelee(_)
|
|
||||||
| CharacterState::RapidMelee(_) => Self::Other,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user