sprint A cleanup: accessibility, signals, race, debris
G: large_text scales global theme font (14→20 at 1.4×) via new GameState.get_font_scale + EventBus.settings_changed. reduce_motion gates ResumeToast fade (HintOverlay already gated). I: InspectTooltip long-press wired (500ms hold, 12px drift cancel, tap-to-clear pin). Stale Phase 19 TODO replaced with accurate doc. H: Pawn.arrived_at_destination now also emitted on EventBus.pawn_arrived_at_destination; DirtinessSystem subscribes and bumps indoor traffic dirt (BUMP_INDOOR_TRAFFIC = 0.2). Outdoor-tracked bump needs Pawn.prev_tile — flagged for Phase 20. P: CraftingProvider caches ingredient item ref on Job.ingredient_item; JobRunner._tick_pickup validates is_instance_valid + not being_carried before the tile scan, cancels cleanly if another pawn grabbed it. J: rest_provider.gd deleted. Removed @onready + register call from world.gd, ext_resource + node from world.tscn. Provider count comment updated to 9. M: DIRTY_THRESHOLD extracted — cleaning_provider and job_runner now reference DirtinessSystem.DIRT_DIRTY_THRESHOLD. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2f76ae1639
commit
fd6f958344
15 changed files with 157 additions and 62 deletions
|
|
@ -17,9 +17,6 @@ class_name CleaningProvider extends WorkProvider
|
|||
##
|
||||
## Audit.log fires on job start and on toil completion (via JobRunner).
|
||||
|
||||
## Dirt level at or above which a tile is worth cleaning.
|
||||
const DIRTY_THRESHOLD: float = 25.0
|
||||
|
||||
## Base number of sim ticks to clean a tile from any level to 0.
|
||||
## No skill modifier for now; Phase 17 wires skill × speed.
|
||||
const CLEAN_TICKS: int = 40
|
||||
|
|
@ -48,7 +45,7 @@ func find_best_for(pawn) -> Job:
|
|||
|
||||
for tile in ds.dirt_map.keys():
|
||||
var dirt_val: float = float(ds.dirt_map[tile])
|
||||
if dirt_val < DIRTY_THRESHOLD:
|
||||
if dirt_val < DirtinessSystem.DIRT_DIRTY_THRESHOLD:
|
||||
continue
|
||||
# target_node stores the Vector2i tile coordinate (field is untyped — accepts
|
||||
# non-Node values). Dirty tiles have no scene Node; the tile position itself
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue