mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Give rolls full power only during movement stage
+ Make roll only give hitbox reduction during movement + Make roll only give iframes during movement + Move slowly while in roll-buildup
This commit is contained in:
parent
9528564b71
commit
6e0dec847f
@ -405,7 +405,13 @@ impl CharacterState {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_dodge(&self) -> bool { matches!(self, CharacterState::Roll(_)) }
|
||||
pub fn is_dodge(&self) -> bool {
|
||||
if let CharacterState::Roll(c) = self {
|
||||
c.stage_section == StageSection::Movement
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_glide(&self) -> bool { matches!(self, CharacterState::Glide(_)) }
|
||||
|
||||
@ -415,7 +421,7 @@ impl CharacterState {
|
||||
|
||||
pub fn attack_immunities(&self) -> Option<AttackFilters> {
|
||||
if let CharacterState::Roll(c) = self {
|
||||
Some(c.static_data.attack_immunities)
|
||||
(c.stage_section == StageSection::Movement).then_some(c.static_data.attack_immunities)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ impl CharacterBehavior for Data {
|
||||
|
||||
match self.stage_section {
|
||||
StageSection::Buildup => {
|
||||
handle_move(data, &mut update, 1.0);
|
||||
handle_move(data, &mut update, 0.3);
|
||||
if self.timer < self.static_data.buildup_duration {
|
||||
// Build up
|
||||
update.character = CharacterState::Roll(Data {
|
||||
|
Loading…
x
Reference in New Issue
Block a user