started building NPC combat
This commit is contained in:
28
Assets/Scripts/NPCData.cs
Normal file
28
Assets/Scripts/NPCData.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName = "New NPC Data", menuName = "RPG/NPC Data")]
|
||||
public class NPCData : ScriptableObject
|
||||
{
|
||||
[Header("Stats")]
|
||||
public float maxHealth = 100f;
|
||||
|
||||
[Header("Combat Settings")]
|
||||
public NPCFaction defaultFaction = NPCFaction.Enemy;
|
||||
public float aggroRadius = 15f;
|
||||
public float attackRadius = 2.0f;
|
||||
public float attackCooldown = 2.5f;
|
||||
|
||||
[Header("Movement")]
|
||||
public float walkSpeed = 2.0f;
|
||||
public float runSpeed = 5.0f;
|
||||
|
||||
[Header("Equipment")]
|
||||
[Tooltip("Base damage dealt if no weapon is equipped.")]
|
||||
public float baseDamage = 15f;
|
||||
|
||||
[Tooltip("The weapon data for damage calculations and hit shape.")]
|
||||
public Weapon weaponData;
|
||||
|
||||
[Tooltip("The visual weapon prefab to spawn in the NPC's hand.")]
|
||||
public GameObject weaponPrefab;
|
||||
}
|
||||
Reference in New Issue
Block a user