Block maybe

This commit is contained in:
Twirpytherobot
2025-11-15 17:07:28 +00:00
parent 6da70f9bfe
commit 61446a0bcd
6 changed files with 68 additions and 3 deletions
+4
View File
@@ -17,6 +17,10 @@ enum Hand { MAIN_HAND, OFF_HAND, TWO_HAND }
@export var attack_cooldown: float = 0.5
@export var attack_animation: String = "Attack1" # Animation to play when attacking
@export_category("Defense Stats")
@export var can_block: bool = false
@export_range(0.0, 1.0) var block_reduction: float = 0.5 # Percentage of damage blocked (0.5 = 50%)
@export_category("Visual")
@export var mesh_scene: PackedScene # The 3D mesh for this weapon
@export var icon: Texture2D # Optional icon for UI