Updated future testing logic.
This commit is contained in:
parent
da9f947788
commit
49a8913c14
3 changed files with 11 additions and 2 deletions
|
|
@ -4,6 +4,8 @@ class_name WeaponComponent extends Node
|
|||
@export var available_weapons: Array[WeaponShot] = []
|
||||
@export var weapon_change_flash: BaseEffect = null
|
||||
|
||||
@export var test_mode: bool = false
|
||||
|
||||
var _current_weapon_index = 0
|
||||
var _current_power_level = 0
|
||||
var _cycled_weapon: WeaponShot = null
|
||||
|
|
@ -90,7 +92,7 @@ func collect_weapon(new_weapon: WeaponShot) -> void:
|
|||
#
|
||||
# Clear any active cycle — collecting a weapon during cycling restores
|
||||
# normal additive behavior.
|
||||
if _cycled_weapon != null:
|
||||
if _cycled_weapon != null and not test_mode:
|
||||
reset_weapon_cycle()
|
||||
# Rule 1: Force replace — discard everything, keep only this weapon
|
||||
if new_weapon.force_replace_all:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue