Fix post-#72 review bugs: arrow overdraw, spurious signals, Pawns.tasks setter (#124) #135
No reviewers
Labels
No labels
assets
bug
duplicate
enhancement
help wanted
invalid
question
testing
ui
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
liamjd/UntitledColonyBuilder!135
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "124-post-72-review-bug-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #124
Changes
Color(1.0, 0.4, 0.0, 0.85)). Orange is distinct from every terrain kind and from the ghost's validity tints.add_subtask()double emit: already fixed on main ind7df02a. This PR adds the missingassert_signal_emit_count(..., 1)test. The test could not fail before its fix, because the fix predates it.task_unblocked:next_for()now emits only on a BLOCKED -> PENDING transition. Beyond the ticket:complete()also moves a blocked parent to PENDING, and it did so silently. The spurious emit fromnext_for()had been covering for that, so without it a building marked unreachable could stay marked.complete()now emitstask_unblockedand clearsblock_reasonitself.Pawns.taskssetter: disconnects the previous manager before connecting the new one, the same pattern asBuildings.tasks.pawns.all()onpawn_spawned/pawn_removedand on each tick. It no longer callsget_pawn(), so there is nopush_error. It also fixes a separate bug: turning debug mode off and on reused label names before the old labels were freed, so Godot renamed the new labels and they stopped updating.Verification
task_unblockedfired for a task that was never blocked,task_unblockedfired twice, and the old manager released a pawn. With the fixes, the suite passes: 773 tests, 772 passing, and 1 Pending test that was already there (#85).pawns.all()after two rerolls and a debug toggle, with no errors.🤖 Generated with Claude Code