continuing with combat, sword combos working, not finished, blockign working, need to build blockpush and improving bow combat
This commit is contained in:
@@ -12,6 +12,11 @@ public class NPCData : ScriptableObject
|
||||
public float attackRadius = 2.0f;
|
||||
public float attackCooldown = 2.5f;
|
||||
|
||||
[Tooltip("Chance (0 to 1) the NPC will block an incoming attack if they see the player attacking.")]
|
||||
[Range(0f, 1f)] public float blockChance = 0.5f;
|
||||
[Tooltip("How much damage the NPC blocks (0 to 1).")]
|
||||
[Range(0f, 1f)] public float blockReductionPercentage = 0.5f;
|
||||
|
||||
[Header("Movement")]
|
||||
public float walkSpeed = 2.0f;
|
||||
public float runSpeed = 5.0f;
|
||||
|
||||
Reference in New Issue
Block a user