diff --git a/Crawler/Ability.cpp b/Crawler/Ability.cpp index a29f6a1a..2bf3d493 100644 --- a/Crawler/Ability.cpp +++ b/Crawler/Ability.cpp @@ -57,5 +57,5 @@ Ability::Ability(std::string name,std::string shortName,std::string description, :name(name),shortName(shortName),description(description),cooldown(0),COOLDOWN_TIME(cooldownTime),manaCost(manaCost),input(input),icon(icon),barColor1(barColor1),barColor2(barColor2),precastInfo(precastInfo),canCancelCast(canCancelCast){} const float Ability::GetCooldownTime()const{ - return COOLDOWN_TIME*std::max(0.f,(1-game->GetPlayer()->GetCooldownReductionPct())); + return COOLDOWN_TIME; } \ No newline at end of file diff --git a/Crawler/Player.cpp b/Crawler/Player.cpp index a8b0afae..54632736 100644 --- a/Crawler/Player.cpp +++ b/Crawler/Player.cpp @@ -362,11 +362,17 @@ void Player::Update(float fElapsedTime){ animation.UpdateState(internal_animState,fElapsedTime); } } - rightClickAbility.cooldown-=fElapsedTime; - ability.cooldown-=fElapsedTime; - ability2.cooldown-=fElapsedTime; - ability3.cooldown-=fElapsedTime; - ability4.cooldown-=fElapsedTime; + float cooldownMultiplier; + if(game->GetPlayer()->GetCooldownReductionPct()>=1.0f){ + cooldownMultiplier=999999; + }else{ + cooldownMultiplier=1/(1-game->GetPlayer()->GetCooldownReductionPct()); + } + rightClickAbility.cooldown-=fElapsedTime*cooldownMultiplier; + ability.cooldown-=fElapsedTime*cooldownMultiplier; + ability2.cooldown-=fElapsedTime*cooldownMultiplier; + ability3.cooldown-=fElapsedTime*cooldownMultiplier; + ability4.cooldown-=fElapsedTime*cooldownMultiplier; item1.cooldown-=fElapsedTime; item2.cooldown-=fElapsedTime; item3.cooldown-=fElapsedTime; diff --git a/Crawler/Version.h b/Crawler/Version.h index 3c901d10..18cfe999 100644 --- a/Crawler/Version.h +++ b/Crawler/Version.h @@ -39,7 +39,7 @@ All rights reserved. #define VERSION_MAJOR 0 #define VERSION_MINOR 2 #define VERSION_PATCH 1 -#define VERSION_BUILD 4854 +#define VERSION_BUILD 4857 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/Crawler/assets/config/items/ItemDatabase.txt b/Crawler/assets/config/items/ItemDatabase.txt index 9917be2c..f24e152d 100644 --- a/Crawler/assets/config/items/ItemDatabase.txt +++ b/Crawler/assets/config/items/ItemDatabase.txt @@ -47,7 +47,6 @@ ItemDatabase ItemScript = Buff Description = Increase your attack by 15% for 30 seconds. Attack % = 15%,30 - CDR = 50%,60 ItemCategory = Consumables Cooldown Time = 5.0 Cast Time = 0.0