diff options
Diffstat (limited to 'Thronefall_1_57/Thronefall/Thronefall/WeaponEquipper.cs')
| -rw-r--r-- | Thronefall_1_57/Thronefall/Thronefall/WeaponEquipper.cs | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/Thronefall_1_57/Thronefall/Thronefall/WeaponEquipper.cs b/Thronefall_1_57/Thronefall/Thronefall/WeaponEquipper.cs deleted file mode 100644 index cbaff00..0000000 --- a/Thronefall_1_57/Thronefall/Thronefall/WeaponEquipper.cs +++ /dev/null @@ -1,37 +0,0 @@ -using UnityEngine; - -public class WeaponEquipper : MonoBehaviour -{ - public Equippable requiredWeapon; - - public ManualAttack activeWeapon; - - public ManualAttack passiveWeapon; - - public GameObject visuals; - - public PlayerAttackTargetFacer facer; - - private void Start() - { - if (!PerkManager.IsEquipped(requiredWeapon)) - { - Object.Destroy(base.gameObject); - return; - } - GetComponentInParent<PlayerInteraction>().EquipWeapon(activeWeapon, passiveWeapon); - GetComponentInParent<PlayerUpgradeManager>(); - GetComponentInParent<PlayerAttack>().AssignManualAttack(activeWeapon); - base.gameObject.AddComponent<PlayerWeaponVisuals>().Init(visuals, passiveWeapon); - facer.AssignAttack(passiveWeapon); - Object.Destroy(this); - if (PerkManager.instance.LightMaterialsEquipped) - { - RoyalForgeUpgrade.AutoAttackMulti(PerkManager.instance.lightMaterialsCooldownMulti); - } - if (PerkManager.instance.SpellScrollActive) - { - RoyalForgeUpgrade.ManualAttackMulti(PerkManager.instance.spellScrollActiveCooldownMulti); - } - } -} |
