diff options
Diffstat (limited to 'Thronefall_1_57/Decompile/Thronefall/PerkRangeModifyer.cs')
| -rw-r--r-- | Thronefall_1_57/Decompile/Thronefall/PerkRangeModifyer.cs | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/Thronefall_1_57/Decompile/Thronefall/PerkRangeModifyer.cs b/Thronefall_1_57/Decompile/Thronefall/PerkRangeModifyer.cs deleted file mode 100644 index 5e685fa..0000000 --- a/Thronefall_1_57/Decompile/Thronefall/PerkRangeModifyer.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine; - -public class PerkRangeModifyer : MonoBehaviour -{ - public Equippable requiredPerk; - - [BalancingParameter(BalancingParameter.EType.PercentageModifyer)] - public float rangeMultiplyer; - - public AutoAttack autoAttack; - - public PathfindMovementPlayerunit pathfindMovement; - - public bool IsActive => PerkManager.IsEquipped(requiredPerk); - - private void Start() - { - if (PerkManager.IsEquipped(requiredPerk)) - { - foreach (TargetPriority targetPriority in autoAttack.targetPriorities) - { - targetPriority.range *= rangeMultiplyer; - } - if ((bool)pathfindMovement) - { - pathfindMovement.keepDistanceOf *= rangeMultiplyer; - } - } - Object.Destroy(this); - } -} |
