continuing with combat, sword combos working, not finished, blockign working, need to build blockpush and improving bow combat

This commit is contained in:
2026-09-30 16:39:18 +01:00
parent 7486c8d310
commit 4980fb8128
2095 changed files with 1069655 additions and 652 deletions

View File

@@ -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;