summaryrefslogtreecommitdiff
path: root/Thronefall_v1.0/Decompile/PerkWeaponModifyer.cs
blob: ab8d4bce308ab0c5b1f66160c1eeb9eeea1842d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using UnityEngine;

public class PerkWeaponModifyer : MonoBehaviour
{
	public Equippable requiredPerk;

	public Weapon weaponToInsert;

	public AutoAttack autoAttack;

	private void Start()
	{
		if (PerkManager.IsEquipped(requiredPerk))
		{
			autoAttack.weapon = weaponToInsert;
		}
		Object.Destroy(this);
	}
}