Fix accidental removal of knockback reduction for Warriors while blocking. Also add in knockup reduction for Warrior block. Release Build 9484.

pull/57/head
sigonasr2 6 months ago
parent 1f8c62188b
commit 35bcdb3ec2
  1. 2
      Adventures in Lestoria/Player.cpp
  2. 2
      Adventures in Lestoria/Version.h
  3. 4
      Adventures in Lestoria/assets/config/classes/Warrior.txt
  4. BIN
      x64/Release/Adventures in Lestoria.exe

@ -309,6 +309,7 @@ void Player::Knockback(vf2d vel){
//A new angle will be applied, but will be constrained by whichever applied velocity is strongest (either the current velocity, or the new one). This prevents continuous uncapped velocities to knockbacks applied.
if(vel==vf2d{})return;
float maxVelThreshold;
if(GetState()==State::BLOCK)vel*=1-("Warrior.Right Click Ability.Knockback Reduction"_I/100.f);
if(this->vel==vf2d{})maxVelThreshold=vel.mag();
else maxVelThreshold=std::max(vel.mag(),this->vel.mag());
this->vel+=vel;
@ -1452,6 +1453,7 @@ geom2d::circle<float>Player::Hitbox(){
}
void Player::Knockup(float duration){
if(GetState()==State::BLOCK)duration*=1-("Warrior.Right Click Ability.Knockup Reduction"_I/100.f);
knockUpTimer+=duration;
totalKnockupTime+=duration;
knockUpZAmt+=32*pow(duration,2);

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1
#define VERSION_MINOR 2
#define VERSION_PATCH 3
#define VERSION_BUILD 9483
#define VERSION_BUILD 9484
#define stringify(a) stringify_(a)
#define stringify_(a) #a

@ -49,6 +49,10 @@ Warrior
# Percentage of player's normal movement speed while block is active.
SlowAmt = 0.3
# Percentage of knockback that gets reduced while blocking.
Knockback Reduction = 60%
Knockup Reduction = 60%
}
Ability 1
{

Loading…
Cancel
Save