Fix Warrior Auto attack damage multiplier config value not being adjustable.

This commit is contained in:
sigonasr2 2023-07-28 18:10:55 -05:00
parent 13546015ce
commit f1ddf94871
4 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,7 @@
#define VERSION_MAJOR 0
#define VERSION_MINOR 2
#define VERSION_PATCH 0
#define VERSION_BUILD 913
#define VERSION_BUILD 914
#define stringify(a) stringify_(a)
#define stringify_(a) #a

View File

@ -42,9 +42,9 @@ bool Warrior::AutoAttack(){
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;
swordSwingTimer=0.2;
swordSwingTimer="Warrior.Auto Attack.SwordSwingTime"_F;
SetState(State::SWING_SWORD);
switch(facingDirection){
case DOWN:{

View File

@ -7,6 +7,8 @@ Warrior
DamageMult = 1
Range = 150
Cooldown = 0.35
SwordSwingTime = 0.2
}
Right Click Ability
{

Binary file not shown.