Add WeaponStats class and update damage calculations for ranged and melee attacks
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
using System;
|
||||
using Data;
|
||||
using Interfaces;
|
||||
using Sirenix.OdinInspector;
|
||||
using Sirenix.Serialization;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Weapons
|
||||
@@ -11,6 +13,7 @@ namespace Weapons
|
||||
|
||||
[SerializeField] private float cooldown = 1f;
|
||||
[SerializeField] protected Character character;
|
||||
[OdinSerialize, InlineProperty] public WeaponStats weaponStats = new();
|
||||
|
||||
private void Update()
|
||||
{
|
||||
|
Reference in New Issue
Block a user