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

pull/28/head
sigonasr2 1 year ago
parent 694cb310f2
commit 8e46d7698e
  1. 2
      Crawler/Version.h
  2. 4
      Crawler/Warrior.cpp
  3. 2
      Crawler/assets/config/classes/Warrior.txt
  4. BIN
      x64/Release Desktop/Crawler.exe

@ -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

@ -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:{

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

Binary file not shown.
Loading…
Cancel
Save