make Attribute a struct again

This commit is contained in:
2023-07-30 10:16:12 -05:00
parent d8d3a69c36
commit 3b1b4a90b7
2 changed files with 7 additions and 4 deletions

View File

@@ -1,10 +1,14 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Attribute : ScriptableObject
[Serializable]
public struct Attribute
{
public long Base { get; set; }
public long Base;
public Attribute(long stat) { Base = stat; }
/// <summary>
/// Calculates the stat value with accumulated buff and debuff modifiers.