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