8000 Wire WeaponSystem and TargetingSystem into Tower combat loop · Issue #62 · Mnehmos/corehold · GitHub
[go: up one dir, main page]

Skip to content

Wire WeaponSystem and TargetingSystem into Tower combat loop #62

Open

Description

@Mnehmos

Summary

Tower.gd currently implements its own inline targeting (nearest-only) and projectile spawning, bypassing the fully scripted WeaponSystem and TargetingSystem.

What to do

  • Refactor Tower.gd to use WeaponSystem node for damage calculation, fire rate, range, and projectile spawning
  • Refactor Tower.gd to use TargetingSystem node for target selection instead of inline nearest-enemy logic
  • Wire TargetingSystem 5 modes into a UI keybind (Tab to cycle modes)
  • Ensure WeaponSystem.apply_upgrade_modifiers is called when upgrades are applied

Files affected

  • scripts/combat/Tower.gd
  • scripts/combat/WeaponSystem.gd
  • scripts/combat/TargetingSystem.gd
  • scenes/Tower.tscn

Acceptance criteria

  • Tower uses TargetingSystem for all target selection
  • Tower uses WeaponSystem for damage/range/fire-rate calculations
  • Tab key cycles targeting modes with HUD display of current mode
  • Game remains fully playable after refactor

Activity

  1. added
    enhancement
    on May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0