Fix Warrior Auto attack damage multiplier config value not being adjustable.
This commit is contained in:
parent
694cb310f2
commit
8e46d7698e
@ -2,7 +2,7 @@
|
|||||||
#define VERSION_MAJOR 0
|
#define VERSION_MAJOR 0
|
||||||
#define VERSION_MINOR 2
|
#define VERSION_MINOR 2
|
||||||
#define VERSION_PATCH 0
|
#define VERSION_PATCH 0
|
||||||
#define VERSION_BUILD 913
|
#define VERSION_BUILD 914
|
||||||
|
|
||||||
#define stringify(a) stringify_(a)
|
#define stringify(a) stringify_(a)
|
||||||
#define stringify_(a) #a
|
#define stringify_(a) #a
|
||||||
|
@ -42,9 +42,9 @@ bool Warrior::AutoAttack(){
|
|||||||
closest=&m;
|
closest=&m;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(closest!=nullptr&&closest->Hurt(GetAttack(),OnUpperLevel())){
|
if(closest!=nullptr&&closest->Hurt(GetAttack()*"Warrior.Auto Attack.DamageMult"_F,OnUpperLevel())){
|
||||||
attack_cooldown_timer=ATTACK_COOLDOWN;
|
attack_cooldown_timer=ATTACK_COOLDOWN;
|
||||||
swordSwingTimer=0.2;
|
swordSwingTimer="Warrior.Auto Attack.SwordSwingTime"_F;
|
||||||
SetState(State::SWING_SWORD);
|
SetState(State::SWING_SWORD);
|
||||||
switch(facingDirection){
|
switch(facingDirection){
|
||||||
case DOWN:{
|
case DOWN:{
|
||||||
|
@ -7,6 +7,8 @@ Warrior
|
|||||||
DamageMult = 1
|
DamageMult = 1
|
||||||
Range = 150
|
Range = 150
|
||||||
Cooldown = 0.35
|
Cooldown = 0.35
|
||||||
|
|
||||||
|
SwordSwingTime = 0.2
|
||||||
}
|
}
|
||||||
Right Click Ability
|
Right Click Ability
|
||||||
{
|
{
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user