extends Node

const weapons = {
	"basic_sword": {
		"combo_weapon": true,
		"hits_to_finish": 3,
		"swing_time": 0.16,
		"combo_timeout": 0.35,
		"swing_time_combo_finish": 0.42,
		"damage": 15,
		"damage_mid_combo": 10,
		
		"knockback": 3.5,
		"knockback_mid_combo": 0.75,
		"stun_time": 0.4,
		
		"range": 1.2,
		"width": 1.3,
		
		"attack_swooshy": "slash",
	},
	"basic_knife": {
		"combo_weapon": true,
		"hits_to_finish": 10,
		"swing_time": 0.06,
		"combo_timeout": 0.25,
		"swing_time_combo_finish": 0.66,
		"damage": 20,
		"damage_mid_combo": 5,
		
		"knockback": 2.5,
		"knockback_mid_combo": 0.3,
		"stun_time": 0.4,
		
		"range": 1,
		"width": 1,
		
		"attack_swooshy": "slash",
		"attack_swooshy_scale": Vector3(0.8, 0.6, 1),
	},
	"basic_hammer": {
		"combo_weapon": true,
		"hits_to_finish": 2,
		"swing_time": 0.6,
		"combo_timeout": 1,
		"swing_time_combo_finish": 1,
		"damage": 35,
		"damage_mid_combo": 25,
		
		"knockback": 5.5,
		"knockback_mid_combo": 1.5,
		"stun_time": 0.6,
		
		"range": 1.2,
		"width": 1.3,
		
		"attack_swooshy": "pierce",
	},
	
	"basic_spear": {
		"combo_weapon": true,
		"hits_to_finish": 3,
		"swing_time": 0.16,
		"combo_timeout": 0.35,
		"swing_time_combo_finish": 0.55,
		"damage": 10,
		"damage_mid_combo": 7,
		
		"knockback": 3.5,
		"knockback_mid_combo": 0.75,
		"stun_time": 0.4,
		
		"range": 1.75,
		"width": 0.7,
		
		"attack_swooshy": "pierce",
		"attack_swooshy_scale": Vector3(1.5, 1, 1),
	},
	"basic_handcannon": {
		"ranged_weapon": true,
		"damage": 100,
		"max_pierces": 3,
		"knockback": 2.5,
		"recharge_time": 15,
		"bullet": preload("res://scenes/projectiles/bullet.tscn"),
		
		"attack_swooshy": "pierce",
		"attack_swooshy_scale": Vector3(1.5, 1, 1),
	}
}

const inhands = {
	"basic_sword": preload("res://scenes/inhands/basic_sword.tscn"),
	"basic_hammer": preload("res://scenes/inhands/basic_hammer.tscn"),
	"basic_knife": preload("res://scenes/inhands/basic_knife.tscn"),
	"basic_spear": preload("res://scenes/inhands/basic_spear.tscn"),
	"basic_handcannon": preload("res://scenes/inhands/basic_handcannon.tscn")
}

const effects = {
	"attack_swooshy": {
		"slash": preload("res://scenes/effects/attack_swooshy/slash.tscn"),
		"pierce": preload("res://scenes/effects/attack_swooshy/pierce.tscn")
	}
}
