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
|
|
@ -129,7 +129,6 @@ const SEASON_TINTS: Dictionary = {
|
|||
@onready var pathfinder: Pathfinder = $Pathfinder
|
||||
@onready var selection: Selection = $Selection
|
||||
@onready var designation_ctl: Designation = $DesignationCtl
|
||||
@onready var rest_provider: RestProvider = $RestProvider
|
||||
@onready var chop_provider: ChopProvider = $ChopProvider
|
||||
@onready var mine_provider: MineProvider = $MineProvider
|
||||
@onready var hauling_provider: HaulingProvider = $HaulingProvider
|
||||
|
|
@ -216,9 +215,9 @@ func _ready() -> void:
|
|||
# completion (Tree.fell, Wall._complete, etc.).
|
||||
World.designation_ctl = designation_ctl
|
||||
|
||||
# Register all 10 providers — Decision iterates by .priority desc.
|
||||
# Register all 9 providers — Decision iterates by .priority desc.
|
||||
# doctor=9 > sleep=8 > eat=7 > construction=6 > chop=5 ≈ plant=5 > mine=4
|
||||
# ≈ crafting=4 > haul=3 > rest=0.
|
||||
# ≈ crafting=4 > haul=3 > clean=2.
|
||||
# Phase 17 will tune these via the work-priority matrix UI.
|
||||
World.register_work_provider(doctor_provider)
|
||||
World.register_work_provider(sleep_provider)
|
||||
|
|
@ -229,8 +228,7 @@ func _ready() -> void:
|
|||
World.register_work_provider(crafting_provider)
|
||||
World.register_work_provider(plant_provider)
|
||||
World.register_work_provider(hauling_provider)
|
||||
World.register_work_provider(cleaning) # priority 2 — between haul (3) and rest (0)
|
||||
World.register_work_provider(rest_provider)
|
||||
World.register_work_provider(cleaning) # priority 2 — between haul (3) and idle
|
||||
|
||||
# Phase 5: bridge designation paint events → spawn the ghost-state entity
|
||||
# at that tile and register it as a build site.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue