25 lines
No EOL
605 B
GDScript
25 lines
No EOL
605 B
GDScript
@icon("res://assets/editor/64x64/fc1515.png")
|
|
extends WeaponComponent
|
|
class_name RangedWeaponComponent
|
|
|
|
var stats = {
|
|
"projectile_speed": 500.0,
|
|
"projectile_size": 1.0,
|
|
"projectile_lifetime": 1.0,
|
|
"projectile_quantity": 1,
|
|
"projectile_spread": 33,
|
|
"max_pierce": 0
|
|
}
|
|
var combined_stats = {}
|
|
|
|
func _init() -> void:
|
|
Log.pr("RangedWeaponComponent initialized")
|
|
super._init()
|
|
|
|
# Combine the base stats with the stats from the parent class
|
|
combined_stats = base_stats.duplicate()
|
|
combined_stats.merge(stats)
|
|
|
|
Log.pr("Combined stats: ", combined_stats)
|
|
|
|
Log.pr("ModifierManager: ", modifier_manager) |