diff options
Diffstat (limited to 'Thronefall_v1.0/Decompile/PerkCooldownModifyer.cs')
-rw-r--r-- | Thronefall_v1.0/Decompile/PerkCooldownModifyer.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Thronefall_v1.0/Decompile/PerkCooldownModifyer.cs b/Thronefall_v1.0/Decompile/PerkCooldownModifyer.cs new file mode 100644 index 0000000..e5b14f0 --- /dev/null +++ b/Thronefall_v1.0/Decompile/PerkCooldownModifyer.cs @@ -0,0 +1,20 @@ +using UnityEngine; + +public class PerkCooldownModifyer : MonoBehaviour +{ + public Equippable requiredPerk; + + public float hpCooldownMultiplyer; + + public AutoAttack autoAttack; + + private void Start() + { + if (PerkManager.IsEquipped(requiredPerk)) + { + autoAttack.cooldownDuration *= hpCooldownMultiplyer; + autoAttack.recheckTargetInterval *= hpCooldownMultiplyer; + } + Object.Destroy(this); + } +} |