Use this space for questions related to what you're learning. For any other type of support (website, learning platform, payments, etc...) please get in touch using the contact form.
stats.damage currently does not increase the damage the turret dealsSyrupToastModifying the damage variable of the WeaponStats resource currently does not do anything as the damage the SimpleCannon weapon does is handled by the damage variable of simple_rocket.gd
This can be fixed in a simple way by adding the line:
rocket.damage = stats.damage
Under the *attack() function in* simple*_*cannon.gd
```gdscript
class_name SimpleCannon extends Weapon
...
func _attack() -> void:
var mobs_in_range := _area_2d.get_overlapping_areas()
if mobs_in_range.is_empty():
return
var rocket: Node2D = preload("projectiles/simple_rocket.tscn").instantiate()
get_tree().current_scene.add_child(rocket)
rocket.global_transform = _spawn_point.global_transform
rocket.damage = stats.damage
```12Apr. 30, 2025
Lesson Q&A
Use this space for questions related to what you're learning. For any other type of support (website, learning platform, payments, etc...) please get in touch using the contact form.