diff --git a/README.md b/README.md index 47f7a0e..627a321 100644 --- a/README.md +++ b/README.md @@ -41,12 +41,13 @@ RimWorld mod (1.7) by Blax Gaming. Drag a delivery zone and what you buy from or ## Planned -Grouped by area. What each area covers, its steps and the build order are in `docs/features.md`, the specs in `docs/design.md`. +In build order. What each area covers and its steps are in `docs/features.md`, the specs in `docs/design.md`. +- ๐Ÿ” **Animal sleeping zones.** Every cell is a sleeping spot, with species and body-size filters, so big stalls stay free of chickens. A button in the mod settings strips Blax Zones from a save first, for a removal with no errors. - ๐Ÿงน **Work rule areas.** Paint named areas over anything, stockpiles and fields included, and tick rules per area: No cleaning, No firefighting, No repairs, Don't haul from here, Clean first, Haul first. A barn nobody cleans still gets its fires fought, and a hospital is cleaned first. Work rules never change work priorities or allowed areas, and right-click orders work in every area. -- ๐Ÿ›๏ธ **Sleeping zones.** Animal sleeping zones where every cell is a sleeping spot, with species and body-size filters, so big stalls stay free of chickens. Dorms and prisons for colonists, slaves (needs Ideology) and prisoners, one cell per sleeper, plus medical and shared zones. With Blax Castes, a zone can be limited to castes. -- ๐Ÿ—„๏ธ **More arrivals.** Stockpiles, shelves, racks and fridges receive deliveries directly, also under a roof. Orbital traders buy from flagged storage (needs a powered trade beacon). Random cargo pod events land in a zone you pick. All optional, off by default. -- ๐Ÿงฐ **Zone tools.** A button in the mod settings strips Blax Zones from a save first, for a removal with no errors. +- ๐Ÿ—„๏ธ **Storage, roofs and selling.** Stockpiles, shelves, racks and fridges receive deliveries directly, also under a roof. Orbital traders buy from flagged storage (needs a powered trade beacon). Random cargo pod events land in a zone you pick. All optional, off by default. +- ๐Ÿ›๏ธ **People sleeping zones.** Dorms and prisons for colonists, slaves (needs Ideology) and prisoners, one cell per sleeper, plus medical and shared zones. +- ๐Ÿท๏ธ **Castes.** With Blax Castes, people sleeping zones can be limited by caste. ## DLC support diff --git a/docs/design.md b/docs/design.md index f60c179..f148cd5 100644 --- a/docs/design.md +++ b/docs/design.md @@ -4,6 +4,15 @@ Drag a delivery zone and everything you buy from orbital or caravan traders, plu Status: 1.0 and 1.1 are built and on the Workshop; sleeping zones, work rule areas, storage deliveries, cargo pods and the removal button are designed, no code yet. What the mod covers and the build order: [features.md](features.md). Checked against the RimWorld 1.7.5021 game code on 2026-11-29. RimWorld 1.7, package id `blax.zones`. From the first release a plain unsubscribe leaves a loadable save with vanilla zones intact; once the removal button ships, it removes the mod with no errors. +Changes on 2026-12-01, review of the plan: + +- Build order back to Fabian's decision of 2026-11-30: animal sleeping zones with the removal button, then work rule areas, then storage deliveries, trade from storage and cargo pods, then people zones, then the caste filter. The README and the Workshop planned list follow that order, without version numbers. +- New work rule step from Fabian's "Priority zones" request: Mine, Cut, Plant work, Build and Repair first, each a wrapped giver that stands down for the mod already ordering that work. Repair first leaves Cut. +- The sell zone is its own step, "Trade from storage": it is outbound trade, not an arrival. +- The claimed and free counts in the inspect pane come with the animal filter, since animal zones ship first. +- Backlog hooks checked against the 1.7 code: path rules need a `PathRequest.IPathGridCustomizer`, not a path data source; "Visitors gather here" adds the reach check vanilla runs in the validator the camp prefix skips; jobs outside the home area need own work givers and, for cleaning, an own job driver, no transpiler. "Clean here", "Repair here" and "Fight fires here" are ideas, since the home area plus the "No" rules covers them today. +- Size buckets in the plan ("Polish", "More rules") are gone; each item sits under the step it extends. + Changes on 2026-12-01, the plan by area (Fabian: chunk by what belongs together, never by time or size): - [features.md](features.md) is now the plan of record for what Zones covers and in which order it gets built. This doc keeps the specs. @@ -74,7 +83,7 @@ Change if you disagree. - A burning pawn is always put out, also in a "No firefighting" area. The "Fire in home area" alert still shows fires there. - "No repairs" covers repairing and replacing broken components, the two jobs the home area gates. Auto-rebuild and trap rearming stay with the home area. - "Clean first" works inside the home area only, as all cleaning does; the manage dialog counts an area's cells outside it. -- "First" rules cover cleaning and hauling only. "Build first" and plant work first are in the Backlog: frame order has build-order effects, and growing zones already split fields. +- "Clean first" and "Haul first" ship with the areas. Mine, cut, plant work, build and repair first come in the next work rule step (Backlog), each standing down for the mod that already orders that work; "Build first" carries its frame-order risk in its own spec. - With Cleaning Priority (Continued) active, "Clean first" stands down and its checkbox says why: that mod already orders cleaning by area. The four "No" rules still work with it. - "Clean first" comes before snow clearing: priority 15 within Cleaning, above "clear snow" (10) and "clean filth" (5). "Haul first" sits at 21 within Hauling: after corpses, caravans, transporters and refuelling, before filling fermenting barrels and emptying egg boxes (19, 20), Pick Up And Haul (18) and general hauling (15). - Work rules never change work priorities: a pawn cleans first only when it reaches Cleaning in its own order, hauls first only within Hauling, and never leaves its allowed area for either. @@ -188,7 +197,7 @@ Every Blax mod works with any DLC combination, core only included (rule of 2026- ## Arrivals: deliveries and caravan camps -Shipped in 1.0 and 1.1, then two designed steps. Order and status: [features.md](features.md), "Arrivals". +Shipped in 1.0 and 1.1, then three designed steps: storage as a delivery target, trade from storage and more arrival sources. Order and status: [features.md](features.md), "Arrivals". ### 1.0 Delivery zones and caravan camps @@ -370,6 +379,16 @@ Stockpile deliveries and direct delivery ship together: most freezers and hospit - **Tests:** In a fully roofed zone with the option on, orbital steel spawns on a zone cell the same tick with no pod. Without the option, it falls back. A quest reward goes to a roofed direct zone, forbid flag kept. - **Risks:** Immersion only. Goods arrive either way, so balance is neutral. Dubs Skylights (833899765, 272,595 subs, 1.7): skylights sit in roofed cells, so pods can't land under them; the red overlay shows those cells and direct delivery covers them. +#### Headless tests for storage deliveries + +- Fixtures: `Shelf(cell)`, `LinkShelves(a, b)`, `UnlinkShelf(a)`, a roofed `Stockpile(rect)`. +- Phase 2: every flag set survives. Phase 3: the flags vanish with no errors. +- `-Compat` adds the RimFridge and Weapon Racks tests above. + +### Trade from storage + +Outbound trade, not an arrival, so it is its own step. It reuses the storage-group rule and the gizmo family of storage deliveries, with a flag set of its own. Off by default. + #### Sell zone - **Players get:** A gizmo "Orbital traders can buy from here" on stockpiles and storage buildings. While at least one powered trade beacon stands on the map, orbital traders see every item in flagged storage and can take payment silver from it, so goods don't have to be hauled to the beacon. The shelves themselves are never for sale. Off by default for balance. @@ -386,11 +405,10 @@ Stockpile deliveries and direct delivery ship together: most freezers and hospit - **Tests:** A flagged stockpile far from the beacon holds 100 steel. With a powered beacon the trade dialog lists the steel; with the beacon off it doesn't. Selling it removes it from the stockpile. Buying with silver that sits only in a flagged stockpile pays from it. A ransom fee paid from flagged silver logs no error and takes the full amount. A flagged shelf and a standing lamp on a flagged stockpile never show up in `ColonyThingsWillingToBuy`. A prisoner standing in a flagged stockpile isn't offered. `-Compat`: with RimFridge's beacon setting on and a fridge also flagged as a sell zone, the dialog lists each item once. - **Risks:** Beacon mods also patch `AllLaunchableThingsForTrade`; our wrapper skips things already in the list, so running Map Wide Orbital Trade Beacon alongside doesn't list items twice. It removes hauling to the beacon, hence off by default. [RH2] Rimdeed (2411722784, 83,107 subs, 1.6 build) reads `AllLaunchableThingsForTrade`, so sell-zone silver may pay its fees, which is harmless. -#### Headless tests for storage deliveries +#### Headless tests for trade from storage -- Fixtures: `Shelf(cell)`, `LinkShelves(a, b)`, `UnlinkShelf(a)`, a roofed `Stockpile(rect)`. -- Phase 2: every flag set survives. Phase 3: the flags vanish with no errors. -- `-Compat` adds the RimFridge and Weapon Racks tests above; RimFridge's beacon setting is switched on through its settings for the dedupe test. +- Phase 2: the sell flags survive. Phase 3: they vanish with no errors. +- `-Compat`: RimFridge's beacon setting is switched on through its settings for the dedupe test above. ### More arrival sources @@ -595,17 +613,18 @@ Three steps on one base, the zone beds from the data model: animals first, then #### Which animals may sleep here -- **Players get:** The animal zone tab lists species with checkboxes and a body-size range, so big stalls stay free of chickens. The inspect pane warns when the filter leaves out every tamed animal on the map. +- **Players get:** The animal zone tab lists species with checkboxes and a body-size range, so big stalls stay free of chickens. The inspect pane shows claimed and free cells and warns when the filter leaves out every tamed animal on the map. - **How:** - `Zone_SleepingAnimals` gets `HashSet disallowedRaces`, a deny-list of race defNames resolved with `GetNamedSilentFail`, so new species are allowed by default and a removed animal mod leaves nothing unresolved. Plus `FloatRange bodySize` (0 to unlimited). - A postfix on `RestUtility.CanUseBedNow(Thing bedThing, Pawn sleeper, bool checkSocialProperness, bool allowMedBedEvenIfSetToNoCare, GuestStatus? guestStatusOverride)` (RestUtility.cs:72) at `Priority.Low` checks the bed type first. For a `Building_ZoneBed` whose zone rejects the sleeper it sets false. The zone comes from `zoneGrid` in O(1). This one patch covers `FindBedFor` (RestUtility.cs:235), `FindPatientBedFor` (:328), rescue, capture, `Toils_Bed.BedNoLongerUsable` and `FailOnBedNoLongerUsable` (Toils_Bed.cs:58-96), childcare and rituals. The caste filter adds its check to the same postfix. - Changing a filter, or pasting settings onto a zone, unclaims the owners that no longer pass, with one message naming the count. Vanilla's `FailOnBedNoLongerUsable` gets an animal already lying there out of bed. - The tab has a search field, the species list (species tamed on this map first, then all animal races) and `Widgets.FloatRange` for size. + - Inspect pane: `GetInspectString` counts owners over the zone's beds ("3 claimed, 13 free") and adds the filter warning. People zones add their lines to it (see "Visible zone state"). - **Settings:** Per animal zone: species deny-list (empty), body size (any). No global setting. - **Save and removal:** Filters save with the zone in the component. A species whose mod is gone stays in the list and comes back with the mod. - **Replaces:** Barn Stall (Continued) (2071768301, 29,391 subs, alive on 1.7): covers its size filter, which its author refused; Chicken nests Continued (3261309547, 5,715, up to 1.6), species-only nests. The vanilla animal spot has no size limit (`bed_maxBodySize` 9999, BuildingProperties.cs:178). - **Effort:** M. -- **Tests:** Chickens disallowed and only zone beds present: `FindBedFor(chicken)` returns null. Body size max 1.0: a muffalo (2.4) is refused, a chicken accepted. A filter change unclaims the now-refused owner, with one message naming the count. With every tamed species disallowed, the inspect string carries the warning. A species defName that doesn't resolve stays stored. Filters persist in phase 2. +- **Tests:** Chickens disallowed and only zone beds present: `FindBedFor(chicken)` returns null. Body size max 1.0: a muffalo (2.4) is refused, a chicken accepted. A filter change unclaims the now-refused owner, with one message naming the count. With every tamed species disallowed, the inspect string carries the warning. After 3 chickens sleep in a 16-cell zone, the inspect string says 3 claimed, 13 free. A species defName that doesn't resolve stays stored. Filters persist in phase 2. - **Risks:** `CanUseBedNow` is hot; the postfix exits on the type check for every other bed. Ours only ever sets false, so it composes with other postfixes that set false. At `Priority.Low` it runs after postfixes that allow a bed, such as Blax Slaves' shared infirmary, so a zone filter has the last word. #### Headless tests for animal sleeping zones @@ -673,15 +692,15 @@ Three steps on one base, the zone beds from the data model: animals first, then #### Visible zone state -- **Players get:** The zone tint shows its type: colonist, slave, prisoner and medical zones each get their own color, and animal zones keep theirs. The inspect pane shows the owner type, claimed and free cells, and a warning when a prisoner zone isn't in a prison cell or a colonist or slave zone sits in one. +- **Players get:** The zone tint shows its type: colonist, slave, prisoner and medical zones each get their own color, and animal zones keep theirs. The inspect pane adds the owner type to the claimed and free cells, and a warning when a prisoner zone isn't in a prison cell or a colonist or slave zone sits in one. - **How:** - Vanilla shows owner type and medical by sheet color, which `drawerType` None hides. The owner-type and medical gizmos set `Zone.color` from a fixed palette. `Zone.Material` builds its material once and caches it in the private `materialInt` (Zone.cs:26, 86-95), so after setting the color Zones nulls `materialInt` through `AccessTools.FieldRefAccess` and marks the zone mesh dirty on every cell (`MapMeshDirty(cell, MapMeshFlagDefOf.Zone)`, as `Zone.Hidden` does, Zone.cs:70-84). Without that the tint changes only after a reload. - - `GetInspectString` counts owners over the zone's beds. The prisoner-zone warning reads `IsPrisonCell` on the zone's rooms (GridsUtility.cs:475-485), the same check `CanUseBedNow` makes. The colonist or slave warning uses Zones' own test, `Building_Bed.RoomCanBePrisonCell(room)` plus a prisoner bed in `room.ContainedBeds`, so a room another mod counts as a prison cell, such as a Prisoner Realism commons, doesn't trigger it. It also shows the filter warning from "Which animals may sleep here" and, with the caste filter, the caste warnings. + - The inspect string from "Which animals may sleep here" gains the owner type. The prisoner-zone warning reads `IsPrisonCell` on the zone's rooms (GridsUtility.cs:475-485), the same check `CanUseBedNow` makes. The colonist or slave warning uses Zones' own test, `Building_Bed.RoomCanBePrisonCell(room)` plus a prisoner bed in `room.ContainedBeds`, so a room another mod counts as a prison cell, such as a Prisoner Realism commons, doesn't trigger it. With the caste filter it also shows the caste warnings. - **Settings:** None. - **Save and removal:** The color saves with the zone, like any zone color. - **Replaces:** Nothing. - **Effort:** S. -- **Tests:** Switching a zone to prisoners changes `zone.Material.color`, not only `zone.color`. After 3 chickens sleep in a 16-cell zone, the inspect string says 3 claimed, 13 free. An outdoor prisoner zone shows the warning. A colonist zone in a room with a vanilla prisoner bed shows the prison-cell warning. +- **Tests:** Switching a zone to prisoners changes `zone.Material.color`, not only `zone.color`. A colonist zone with 2 owners shows the owner type and 2 claimed. An outdoor prisoner zone shows the warning. A colonist zone in a room with a vanilla prisoner bed shows the prison-cell warning. - **Risks:** Two colonist zones share a color; the zone label tells them apart. #### Headless tests for people sleeping zones @@ -727,7 +746,7 @@ Ships once Blax Castes publishes its read-only API, `CastesApi` version 1, which ## Zone tools and removal -Save-safe zone storage shipped with 1.0; its spec stays there ("Save-safe zone storage"). The removal button ships with whichever of work rule areas or animal sleeping zones comes first. +Save-safe zone storage shipped with 1.0; its spec stays there ("Save-safe zone storage"). The removal button ships with animal sleeping zones; work rule areas add their two steps to it. ### Removal button @@ -791,21 +810,35 @@ Save-safe zone storage shipped with 1.0; its spec stays there ("Save-safe zone s - "Make default" for new delivery and sleeping zones (S), in Zones' own tabs, stored as names in Zones' own file, as Blax Defaults suggests. - Fewer drop pods (pod batching, M): the only consolidating mod has 1.8k subs and nobody asked. It adds a second deferred path through `TradeDeal.TryExecute`, which every trade mod touches, and big pods spill out of small zones. If built: flush per destination with `MakeDropPodAt(cell, map, info, faction)`, cap stacks per pod by zone size, keep a finalizer flush. - Bought animals land in a zone, for example outside the pen gate (S): the cross-mod contract says pawns are never routed into zones. Narrow that rule to people first; then orbital only, per zone, off by default. -- Animals sleep on a stockpile, so the barn's hay stockpile is also the sleeping area (M): zone beds can't overlap zones, so this needs beds over stockpile cells stored in the MapComponent plus tests for items lying on bed cells. Two zones in one barn work until players ask. +- Animals sleep on a stockpile, so the barn's hay stockpile is also the sleeping area (M): zone beds can't overlap zones, so this needs beds over stockpile cells stored in the MapComponent plus tests for items lying on bed cells. Vanilla can't do it either: an animal sleeping spot carries a `sowTag` (Core ThingDefs_Buildings/Buildings_Furniture.xml:486), so `CanOverlapZones` is false (ThingDef.cs:629-632) and spawning one removes the stockpile cell under it (Thing.cs:859-861; ZoneManager.cs:97-112). Two zones in one barn work until players ask. - Returning player caravans unload into a delivery zone (UnloadHere 3699782319, 522 subs; Homecoming 3833735329, 207): small demand. - Ally drop pods and aid land next to a chosen zone (Allies Spot 2067847359, 3,678 subs): needs a faction check so hostile drops are never affected; small demand. - Vanilla Events Expanded's apparel and weapon pods in the cargo-pod context (S): the same context on those two incident workers, bound by reflection. - A full removal test (`-Removal`, S): relaunch the game without blax.zones in ModsConfig plus a small verifier mod that loads the phase-3 save at the main menu and writes the error and warning counts. - Blax zones fly with Odyssey gravships (`GravshipPlacementUtility`): Odyssey isn't installed on the test machine to build or test it. If built, behind `ModsConfig.OdysseyActive`. Work rule areas would move with the same code, as vanilla moves the home area (GravshipPlacementUtility.cs:388). -- Construction first (M): a work rule "Build first" needs one wrapped giver per construction giver (finish frames, deliver to frames, deliver to blueprints; Core WorkGiverDefs/WorkGivers.xml:689-736), and frame order has build-order effects (roofs, walls closing a room). Smarter Construction (2202185773, 1,023,962 subs, 1.7) already reorders construction. Build it when players ask. -- Plant work first (M): sowing and harvesting first by area, wrapping `GrowerSow` and `GrowerHarvest`. Growing zones already split fields, and Growing Zone Priorities (Continued) (2026571920, 4,639, 1.7) ranks them. +- First rules for the other place-bound work (new 2026-12-01, from Fabian's "Priority zones" request; features.md, Work rule areas step 2). Each is a wrapped giver built like "Haul first": a `WorkGiver_Scanner` with its own def in the work type, a `priorityInType` above the giver it wraps, `directOrderable` false, and the wrapped worker's list filtered to the area's cells. No Harmony patch. Each stands down for the mod that already orders that work, with one overlap message, as "Clean first" does for Cleaning Priority (Continued); those package ids are read from the mods' About.xml before shipping. + - "Mine first" (S): wraps `Mine` (Mining, `priorityInType` 100, Core WorkGiverDefs/WorkGivers.xml:950-954). Its targets come from the map's Mine and MineVein designations (WorkGiver_Miner.cs:16-19; MineAIUtility.cs:20-24), so the filtered list is short and `ShouldSkip` stays cheap (WorkGiver_Miner.cs:21-28). + - "Cut first" (S): wraps `PlantsCut`, whose targets are the CutPlant and HarvestPlant designations (WorkGiver_PlantsCut.cs:16-35), for clearing a building site or a kill line first. + - "Plant work first" (M): sowing and harvesting first by area, wrapping `GrowerSow` and `GrowerHarvest` (Growing, `priorityInType` 50 and 100). Growing zones already split fields; stands down for Growing Zone Priorities (Continued) (2026571920, 4,639, 1.7), which ranks them. + - "Build first" (M): one wrapped giver per construction giver (finish frames, deliver to frames, deliver to blueprints; Core WorkGiverDefs/WorkGivers.xml:689-736). Frame order has build-order effects (roofs, walls closing a room); its spec has to show those cases stay safe, with a test for a room whose walls lie half inside a "Build first" area. Stands down for Smarter Construction (2202185773, 1,023,962 subs, 1.7), which already reorders construction. + - "Repair first" (S): wraps `Repair` (Construction, `priorityInType` 40) inside the home area, as "Clean first" wraps cleaning. Stands down for Repairing Priority (3229907892, 2,188 subs, 1.7). - "Don't haul from here" with an item filter (S), for example leave weapons and apparel but haul corpses and food: a vanilla `ThingFilter` per area, checked in the same `ShouldBeHaulable` postfix. Wait for players to ask; Defaults' forbid rules cover what enemies drop. - "No auto-rebuild" (S): auto-rebuild checks the home area before it places a blueprint (Verse/ThingUtility.cs:159, 168). A killbox player may want broken barricades left alone; nobody asked yet. - Hide the "Fire in home area" alert for fires in "No firefighting" areas (S): a postfix on the alert's culprit list. -- Clean here even outside the home area (M): the inverse of "No cleaning". Needs filth outside the home area in the list, a way past the home check in `HasJobOnThing` (WorkGiver_CleanFilth.cs:33) and past the job driver's home jumps (JobDriver_CleanFilth.cs:31, 70). Extending the home area does the same today. -- "Repair here" and "Fight fires here" outside the home area (new 2026-12-01, not checked against the code), one step together with "Clean here" above: the same home checks gate them (WorkGiver_Repair.cs:35, WorkGiver_FixBrokenDownBuilding.cs:56, WorkGiver_FightFires.cs:55). A postfix can't tell why vanilla refused, so each likely needs a transpiler on its home check. Vanilla ignores fires outside the home area; Repair Outside the Home Area is a small mod for repairs. -- Path rules (new 2026-12-01, not checked against the code): "Walk around" per work rule area, a path cost that never blocks a path; the allowed area stays the hard limit. [KV] Path Avoid (1180719857, 44,501 subs) stopped at 1.5. RimWorld 1.7 builds path costs in `PathFinderMapData` from `IPathFinderDataSource` sources (both names read from the 1.7.5021 reference assembly), so a source fed from the area mask is the likely hook. Needs the shared ownership line to read "per-cell work and path rules". -- "Visitors gather here" on delivery zones (new 2026-12-01, not checked against the code): visitor groups call the same `TryFindRandomSpotJustOutsideColony` overload as caravans (see "Trader caravans camp at a zone"), so a second scope on `IncidentWorker_VisitorGroup.CreateLordJob` would bring them to the zone. Smarter Visitors (3012491521, 137,980 subs, 1.7) has a visitor spot building; stand down while it is active. +- "Clean here", "Repair here" and "Fight fires here" outside the home area (M, idea; features.md, Work rule areas step 4), for a field, a mine entrance or an outpost wall. Painting the home area there plus a "No cleaning" area does the same today; only auto-rebuild, trap rearming and drops differ, because inside the home area what pawns drop isn't forbidden (ForbidUtility.cs:48-57). Vanilla ignores fires outside the home area; Repair Outside the Home Area is a small mod for repairs. Hooks, checked 2026-12-01: own work givers built like "Clean first", no transpiler. + - Repairs and fires: only `HasJobOnThing` checks the home area (WorkGiver_Repair.cs:35, WorkGiver_FixBrokenDownBuilding.cs:56, WorkGiver_FightFires.cs:55); their job drivers don't, and their candidates are already map-wide (ListerBuildingsRepairable.cs:56-77; `BreakdownManager.brokenDownThings`, WorkGiver_FixBrokenDownBuilding.cs:25; fires by def, WorkGiver_FightFires.cs:14). So each giver takes those candidates on the area's cells outside the home area, repeats vanilla's other checks (WorkGiver_Repair.cs:30-59; WorkGiver_FightFires.cs:50-69, with `FireIsBeingHandled` bound through an `AccessTools` delegate because the class is internal; WorkGiver_FixBrokenDownBuilding.cs:40-77, its private `FindClosestComponent` at :89-92 copied with `GenClosest`) and hands out vanilla's Repair, FixBrokenDownBuilding and BeatFire jobs. Own givers don't override another mod's refusal the way a postfix that flips false to true would. + - Cleaning: the home filth list only holds filth on home cells (ListerFilthInHomeArea.cs:29-35), and `PotentialWorkThingsGlobal` and `ShouldSkip` read only that list (WorkGiver_CleanFilth.cs:17-25), so the giver keeps its own list of the area's filth outside the home area, from the Filth group, cached like Clean first's. The clean driver jumps away from filth outside the home area (JobDriver_CleanFilth.cs:31, 70, through `JumpIfOutsideHomeArea`, ToilJumpConditions.cs:38-45), so the giver hands out its own JobDef with a `JobDriver_CleanFilth` subclass whose `MakeNewToils` repeats vanilla's toils without those two jumps (the base class keeps its work counters private, JobDriver_CleanFilth.cs:9-13). +- Path rules (new 2026-12-01; hook checked against the code on 2026-12-01): "Walk around" per work rule area, a path cost that never blocks a path; the allowed area stays the hard limit. [KV] Path Avoid (1180719857, 44,501 subs) stopped at 1.5. Needs the shared ownership line to read "per-cell work and path rules". + - Hook: a `PathRequest.IPathGridCustomizer` (PathRequest.cs:11-14). Its `GetOffsetGrid` returns a ushort grid built from the area mask; `ParameterizeGridJob` copies it into the grid job (PathFinderMapData.cs:290) and the job adds it to each cell's cost (PathGridJob.cs:187-189). Offsets stay well below 10000, which makes a cell impassable (PathGridJob.cs:124). + - A prefix on `PathFinder.PushRequest` (PathFinder.cs:514-528) sets `request.customizer` while it is null and the request's pawn is of the player faction. Pawn movement is its only vanilla caller and builds its request without a customizer (Pawn_PathFollower.cs:853-854). Not on `CreateRequest` (PathFinder.cs:507), which also serves the one-off `FindPathNow` checks (:565). + - One customizer instance per map: the grid cache key includes the customizer (PathFinder.cs:83-133), so a shared instance keeps cached grids reusable. + - After a paint or rule change, `map.pathFinder.MapData.Notify_CellDelta(cell)` (PathFinderMapData.cs:149) for every changed cell makes the next gather report a change, which clears the cached grids (PathFinder.cs:293-296, 357-365), as `Area.MarkDirty` notifies the path data for allowed areas (Area.cs:133). + - Not an `IPathFinderDataSource`: `RegisterSource` (PathFinderMapData.cs:308-315) only adds the source to the gather list, which calls `ComputeAll` and `UpdateIncrementally` (:218-235), and `ParameterizeGridJob` (:252-292) fills the grid job from fixed fields, so a new source's data never reaches the cost. + - Test: the work rule performance run gains a path timing case, 60 colonists walking for 2500 ticks with and without a "Walk around" area, median of three runs, failing above 5%. +- "Visitors gather here" on delivery zones (new 2026-12-01; hook checked against the code on 2026-12-01). Smarter Visitors (3012491521, 137,980 subs, 1.7) has a visitor spot building; stand down while it is active. + - Hook: `IncidentWorker_VisitorGroup.CreateLordJob` calls the two-argument overload (IncidentWorker_VisitorGroup.cs:24), which forwards to the patched one with `extraValidator` null (RCellFinder.cs:709-714), so a second scope on `CreateLordJob` brings visitors to the zone. Ideology's skylantern wanderers call `base.CreateLordJob` (IncidentWorker_WanderersSkylanterns.cs:10), so they gather there too with no Ideology code. + - Reach check: with a null `extraValidator` the shipped camp search accepts every cell (`CampScope.TryFindSpotNear`), and the prefix returns that cell without vanilla's `FinalValidator`, where vanilla checks that the searcher can reach the cell from root (RCellFinder.cs:791-798). Trader caravans are safe only because their caller checks that every caravan pawn can reach it (IncidentWorker_TraderCaravanArrival.cs:112-122). So `CampScope.TryFindCampSpot` takes root and searcher, and with no `extraValidator` it requires `map.reachability.CanReach(root, c, PathEndMode.Touch, TraverseParms.For(searcher))`. + - Test: a visitor group with a walled-off gather zone keeps the vanilla spot. ## Cut @@ -837,7 +870,7 @@ Save-safe zone storage shipped with 1.0; its spec stays there ("Save-safe zone s - One layer per rule with its own designators: 12 designators in the Zone menu, and switching a rule off for a while means erasing and repainting. - "Clean first" by making vanilla cleaning prioritized with a `GetPriority` from the area: the prioritized path validates every candidate on the map with a reachability check (JobGiver_Work.cs:118-121) instead of the 4-region search, for every cleaner, even on maps with no area, and switching it on means patching the `Prioritized` getter every scanner shares. - "Clean first" by sorting the filth list: the search picks by distance, not list order (GenClosest.cs:149-232), so a sort changes nothing. -- Firefighting first and repair first: fires are already an emergency handled closest first, and repair order has its own 1.7 mod, Repairing Priority (3229907892, 2,188 subs). +- Firefighting first: fires are already an emergency handled closest first. - Doctor, warden or other work types first: their targets are pawns and beds, not places. - Blocking right-click orders in "No" areas: a right-click is the player's explicit order. - Standing down entirely for CleaningArea, Cleaning Area Relaunched or Cleaning Priority (Continued): the four "No" rules work on their giver class through the giver-class step, and so does "Clean first" except with Cleaning Priority (Continued), whose worker only takes its current priority area. Only "Clean first" stands down, and only for that one. diff --git a/docs/features.md b/docs/features.md index d930bc6..23b7432 100644 --- a/docs/features.md +++ b/docs/features.md @@ -34,27 +34,27 @@ Pawns are never routed into zones. Bought people and animals, refugees, quest pa Vanilla drops everything next to the first trade beacon, quest rewards included, and caravans camp at a random spot outside the base. The mods that fixed this (Trade Ships Drop Spot 206k, Trading Control 111k, the Trading Spot mods) are dead or stop at 1.6. Zones makes a delivery zone the landing pad and the meeting point, then extends it to storage and to every other friendly source. -1. **Delivery zones and caravan camps**: Shipped 1.0. +1. **Delivery zones and caravan camps**: Shipped 1.0. The last three lines are ideas that extend it. - Delivery zone with item filter, priority, source checkboxes and unusable cells marked red. Shipped 1.0 ([spec](design.md#delivery-zone)). - Orbital purchases and sale silver land in the best zone, overflow next to it. Shipped 1.0 ([spec](design.md#orbital-purchases-land-in-the-zone)). - Trader caravans and tribute collectors camp next to a zone you pick. Shipped 1.0 ([spec](design.md#trader-caravans-camp-at-a-zone)). + - Unusable cells counted by reason in the inspect pane (roof, water, pen, building), next to the red cells. Idea. + - Fewer drop pods by batching stacks. Idea; the only such mod has 1.8k subscribers and nobody asked. + - "Visitors gather here" next to "Caravans camp here", for visitor groups. New, Idea; hook checked against the code. Smarter Visitors (3012491521, 137,980 subs, alive on 1.7) has a visitor spot building, so this would stand down while it is active. Visitor groups already call the patched `TryFindRandomSpotJustOutsideColony` overload (IncidentWorker_VisitorGroup.cs:24, forwarded at RCellFinder.cs:709-714), so a second scope on `IncidentWorker_VisitorGroup.CreateLordJob` brings them to the zone, and Ideology's skylantern wanderers with them (IncidentWorker_WanderersSkylanterns.cs:10 calls the base), with no Ideology code. Visitors pass no `extraValidator`, so the camp search adds the reach check vanilla runs in the validator the prefix skips (RCellFinder.cs:791-798). Details in the [backlog](design.md#backlog). 2. **Quest rewards and caravan purchases**: Shipped 1.1. - Item rewards land in the zone and the letter points there. Shipped 1.1 ([spec](design.md#quest-rewards-land-in-the-zone)). - Goods bought from caravans and Hospitality guests appear in the zone, roofed or not. Shipped 1.1 ([spec](design.md#caravan-purchases-appear-in-the-zone)). -3. **Storage as a delivery target**: Designed. These three share one flag set in the map component, one storage-group rule and one gizmo family. Most freezers and hospital shelves are roofed, so the delivery flag is worth little without delivery under a roof. +3. **Storage as a delivery target**: Designed. The unbuilt part of Fabian's first Zones request (2026-11-28): bought goods brought inside without hauling, for example medicine. Both keep their flags in the map component, share one storage-group rule and one gizmo family, and most freezers and hospital shelves are roofed, so the delivery flag is worth little without delivery under a roof. - A "Receive deliveries" gizmo on stockpiles, shelves, racks and fridges: medicine straight onto the hospital shelf, by the shelf's own filter and priority. Designed ([spec](design.md#stockpiles-and-shelves-receive-deliveries)). - Delivery under a roof: goods appear in place, no drop pod, off by default. Designed ([spec](design.md#delivery-under-a-roof)). +4. **Trade from storage**: Designed. Outbound trade, not an arrival, so it is its own step. It reuses step 3's storage-group rule and gizmo family, with a flag set of its own. - Sell zone: orbital traders buy from flagged storage and take payment from it while a powered beacon stands, off by default. Designed ([spec](design.md#sell-zone)). -4. **More arrival sources**: independent of step 3, it needs only the reward routing from 1.1. +5. **More arrival sources**: independent of steps 3 and 4; it needs only the reward routing from 1.1. - Random cargo pod events land in a zone with "Cargo pods" ticked, off by default. Designed ([spec](design.md#cargo-pod-events-land-in-the-zone)). - Vanilla Events Expanded's apparel and weapon pods join the cargo pods. Idea ([backlog](design.md#backlog)). Needs that mod. - Ally reinforcements and aid drop next to a chosen zone, never hostile drops. Idea; Allies Spot (2067847359, 3,678 subs) shows small demand. - Returning player caravans unload into a delivery zone. Idea; UnloadHere (522) and Homecoming (207) show small demand. - Royal title rewards land in the zone. Idea, waits for content: no vanilla title and no mod in the active list defines title rewards. Needs Royalty. -5. **Polish and small extensions**: each stands alone. - - Unusable cells counted by reason in the inspect pane (roof, water, pen, building). Idea. - - Fewer drop pods by batching stacks. Idea; the only such mod has 1.8k subscribers and nobody asked. - - "Visitors gather here" next to "Caravans camp here", for visitor groups. New, Idea. Smarter Visitors (3012491521, 137,980 subs, alive on 1.7) has a visitor spot building, so this would stand down while it is active. Hook: visitor groups already call the patched `TryFindRandomSpotJustOutsideColony` overload (design, "Trader caravans camp at a zone"); a second scope on `IncidentWorker_VisitorGroup.CreateLordJob`. Not checked against the code. Why this order: 1.0 built the zone, the router and the API that everything else calls; 1.1 added the delivery context the reward, cargo and aid paths share. Storage targets come before more sources because they change where every existing source can land. @@ -62,44 +62,49 @@ Why this order: 1.0 built the zone, the router and the API that everything else The home area switches cleaning, firefighting and repairs on and off together, an allowed area restricts a pawn for every job, and nothing orders work by place. CleaningArea (114k, last 1.4) and Cleaning Area Relaunched (23k, 1.6 only) were the usual fix, and neither runs on 1.7. Fabian asked for "No cleaning" and "Priority zones" on 2026-11-29. Work rule areas are one painted layer of named areas that lie over anything, up to 10 per map, each with rule checkboxes. -1. **Areas and the six rules**: Designed. One step: Fabian's request covers both kinds of rule, and they share the layer, the mask and the manage window. +1. **Areas and the six rules**: Designed. One step: Fabian's request covers both kinds of rule, and they share the layer, the mask and the manage window. The last two lines are ideas that extend the "No" rules. - Paint, name and manage work rule areas over stockpiles, fields and other zones. Designed ([spec](design.md#paint-and-manage-work-rule-areas)). - "No cleaning", "No firefighting", "No repairs", "Don't haul from here". Right-click orders still work everywhere. Designed ([spec](design.md#no-cleaning-firefighting-repairs-or-hauling)). - "Clean first" and "Haul first", within the pawn's own work priorities and allowed area. Designed ([spec](design.md#clean-first-and-haul-first)). -2. **Home-area work outside the home area**: New. Three inverse rules, "Clean here", "Repair here" and "Fight fires here", for a field, a mine entrance or an outpost wall outside the home area, without growing the home area, which would also forbid what pawns drop there and auto-rebuild. The backlog had "Clean here" alone; repairs and firefighting sit behind the same home checks (design: WorkGiver_Repair.cs:35, WorkGiver_FightFires.cs:55, WorkGiver_FixBrokenDownBuilding.cs:56). Demand is thin so far: vanilla ignores fires outside the home area (RimWorld wiki, Firefighting), and a small mod, Repair Outside the Home Area, exists for repairs (subscriber count not read). Hook: a postfix can't tell why vanilla said no, so this likely needs a transpiler on the home check in each `HasJobOnThing`, plus the cleaning job driver's home jumps (JobDriver_CleanFilth.cs:31, 70). Not checked against the code. It comes after step 1 because it adds bits to the same mask and rows to the same window. -3. **Path rules**: New. "Walk around" per area, so pawns path around a killbox, a nursery or a freezer door unless there is no other way. It never blocks a path; the allowed area stays the hard limit. Demand: [KV] Path Avoid (1180719857, 44,501 subs) stopped at 1.5; Pathfinding Avoidance (1.6) does it by treating allowed areas with fixed names as costly, so those names also show up in every allowed-area picker. Hook: 1.7 builds path costs in `PathFinderMapData` from `IPathFinderDataSource` sources (both names are in the 1.7.5021 reference assembly), so a source fed from the area mask. Behaviour not checked against the code. Needs the ownership change in the open questions. -4. **More rules, each waiting for demand**: Ideas ([backlog](design.md#backlog)). - - "Build first": frame order has build-order effects, and Smarter Construction (1M subs, 1.7) already reorders construction. - - "Plant work first": growing zones already split fields, and Growing Zone Priorities (Continued) ranks them. - - "Don't haul from here" with an item filter, for example leave weapons, haul corpses. + - "Don't haul from here" with an item filter, for example leave weapons, haul corpses. Idea ([backlog](design.md#backlog)). + - Hide the "Fire in home area" alert for fires in "No firefighting" areas. Idea. +2. **First rules for the other place-bound work**: New. "Priority zones" asked for work in general; step 1 covers cleaning and hauling, these cover the rest of the work that happens at a place. Each is a wrapped work giver like Haul first, filtered to the area's cells, with no Harmony patch, and each stands down for the mod that already orders that work, as Clean first does for Cleaning Priority (Continued). Details in the [backlog](design.md#backlog). + - "Mine first": wraps Mine, whose targets come from the map's Mine and MineVein designations (WorkGiver_Miner.cs:16-19; MineAIUtility.cs:20-24), the same shape Haul first wraps. Checked against the code. + - "Cut first": wraps PlantsCut, whose targets are the CutPlant and HarvestPlant designations (WorkGiver_PlantsCut.cs:16-35). Checked against the code. + - "Plant work first": sowing and harvesting first, wrapping GrowerSow and GrowerHarvest. Stands down for Growing Zone Priorities (Continued), which ranks growing zones. + - "Build first": one wrapped giver per construction giver. Frame order has build-order effects (roofs, walls closing a room), so the spec has to test those cases. Stands down for Smarter Construction (1M subs, 1.7), which already reorders construction. + - "Repair first": wraps Repair inside the home area, as Clean first wraps cleaning. Stands down for Repairing Priority (3229907892, 2,188 subs, 1.7). +3. **Path rules**: New; hook checked against the code. "Walk around" per area, so pawns path around a killbox, a nursery or a freezer door unless there is no other way. It never blocks a path; the allowed area stays the hard limit. Demand: [KV] Path Avoid (1180719857, 44,501 subs) stopped at 1.5; Pathfinding Avoidance (1.6) does it by treating allowed areas with fixed names as costly, so those names also show up in every allowed-area picker. Hook: a `PathRequest.IPathGridCustomizer` (PathRequest.cs:11-14) whose offset grid comes from the area mask, added to each cell's path cost (PathGridJob.cs:187-189) and kept well below 10000, which makes a cell impassable (PathGridJob.cs:124). A prefix on `PathFinder.PushRequest` (PathFinder.cs:514-528), whose only vanilla caller is pawn movement (Pawn_PathFollower.cs:853-854), sets it on player pawns' requests. Not a path data source: `ParameterizeGridJob` never hands a registered source's data to the cost calculation (PathFinderMapData.cs:252-292, 308-315). Details and the 60-pawn timing test in the [backlog](design.md#backlog). Needs the ownership change in the open questions. +4. **Home-area jobs by area**: Idea. Each turns one job the home area gates on or off for an area, without moving the home area. + - "Clean here", "Repair here" and "Fight fires here" for a field, a mine entrance or an outpost wall outside the home area. Painting the home area there plus a "No cleaning" area does this today; only auto-rebuild, trap rearming and drops differ, because inside the home area what pawns drop isn't forbidden (ForbidUtility.cs:48-57). Demand is thin: vanilla ignores fires outside the home area (RimWorld wiki, Firefighting), and a small mod, Repair Outside the Home Area, exists for repairs (subscriber count not read). Hook, checked against the code: own work givers like Clean first, no transpiler. Repairs and fires are gated only in `HasJobOnThing` and their candidates are already map-wide; cleaning also needs its own filth list and its own job driver, because the home filth list and the clean driver both check the home area (ListerFilthInHomeArea.cs:29-35; JobDriver_CleanFilth.cs:31, 70). Details in the [backlog](design.md#backlog). - "No auto-rebuild", for killbox barricades the player wants left broken. - - Hide the "Fire in home area" alert for fires in "No firefighting" areas. + +Why this order: step 1 is the decided build. Steps 2 and 3 reuse its areas, mask and manage window. Step 4 waits for players, since the home area covers it today. ## Sleeping zones Animal sleeping spots and dorm sleeping spots are placed one at a time. Designator Shapes and BuilderTweaksReplica help place them in bulk, and the spots then clutter the map (Hidden Spots exists for that). A zone whose every cell is a bed does both jobs. The beds are real but invisible, so ownership, prisoner capture, patients and the bed alerts keep working with vanilla code. -1. **Animals**: Designed. Zone beds are built on the simplest sleepers first: no owner types, no prison rules. +1. **Animals**: Designed. Zone beds are built on the simplest sleepers first: no owner types, no prison rules. Ships with the removal button (Zone tools), because zone beds make a plain unsubscribe noisy. - Animal sleeping zone: one drag over the barn beds every chicken. Designed ([spec](design.md#animal-sleeping-zones)). - - Species checkboxes and a body-size range, so big stalls stay free of chickens. Designed ([spec](design.md#which-animals-may-sleep-here)). - - Needs the removal button (Zone tools) at the latest here, because zone beds make a plain unsubscribe noisy. + - Species checkboxes and a body-size range, so big stalls stay free of chickens, and claimed and free cells in the inspect pane. Designed ([spec](design.md#which-animals-may-sleep-here)). 2. **People**: Designed. The same zone beds with an owner type. - Sleeping zones for colonists, slaves (Ideology) and prisoners; a prisoner zone makes its room a prison cell, and vanilla beds are never flipped without asking. Designed ([spec](design.md#sleeping-zones-for-colonists-slaves-and-prisoners)). - Medical zones (people and animals), shared zones where nobody keeps a cell, sleeping-spot comfort. Designed ([spec](design.md#medical-shared-and-comfort)). - - Zone tint by type and claimed and free counts in the inspect pane. Designed ([spec](design.md#visible-zone-state)). + - Zone tint by type, and the owner type and prison-cell warnings in the inspect pane. Designed ([spec](design.md#visible-zone-state)). 3. **By caste**: Designed. With Blax Castes, a people zone can be limited to castes, medical zones included. Needs Castes' read-only API (CastesApi version 1) ([spec](design.md#sleeping-zones-by-caste)). 4. **Ideas**: - Age limits on people zones, for example a nursery. Needs Biotech. Nobody asked yet. - - Animals sleep on a stockpile, so the barn's hay stockpile is also the sleeping area. Zone beds can't overlap zones today; two zones in one barn work. + - Animals sleep on a stockpile, so the barn's hay stockpile is also the sleeping area. Zone beds can't overlap zones today, and neither can vanilla sleeping spots; two zones in one barn work. -Why this order: people zones reuse the animal zone beds and add owner types; the caste filter is one more check in the same bed postfix and waits for Castes' API, so it can move up as soon as Castes ships that. +Why this order: people zones reuse the animal zone beds and add owner types; the caste filter is one more check in the same bed postfix and waits for Castes' API. ## Zone tools and removal What every zone, bed and area needs: a save that survives removing the mod, and setup that doesn't repeat. - Save-safe zone storage: zones live in Zones' own map data, never in the game's zone list. Shipped 1.0 ([spec](design.md#save-safe-zone-storage)). -- "Remove Blax Zones from this game" button: strips zone beds, work rule jobs and areas, so the save loads with no errors after unsubscribing. Designed ([spec](design.md#remove-blax-zones-from-a-game)). Ships with whichever of work rule areas or animal sleeping zones comes first. +- "Remove Blax Zones from this game" button: strips zone beds, work rule jobs and areas, so the save loads with no errors after unsubscribing. Designed ([spec](design.md#remove-blax-zones-from-a-game)). Ships with animal sleeping zones; work rule areas add their two steps to it. - "Make default" for new delivery and sleeping zones, kept in Zones' own file, as Blax Defaults does for vanilla zones. Idea. - Blax zones and work rule areas fly with Odyssey gravships. Idea; Odyssey isn't on the test machine, so it can't be built or tested yet. - A full removal test that relaunches the game without Zones. Idea, test-only. @@ -112,11 +117,13 @@ What every zone, bed and area needs: a save that survives removing the mod, and ## Order -1. **Work rule areas, step 1, with the removal button.** Fabian's own request, no cleaning-area mod runs on 1.7, and it needs only the shipped map component. The removal button ships here because the two work givers leave one error per job after a plain unsubscribe. -2. **Sleeping zones, animals then people.** Zone beds are the base both share; people add owner types and the prison rules on top. -3. **Arrivals, storage as a delivery target, then cargo pods.** They extend paths that already work, so they matter less than the missing features above. -4. **Sleeping zones by caste** as soon as Castes ships its read-only API. It can jump ahead of step 3. -5. **The new steps** (home-area work outside the home area, path rules) and the ideas, as players ask. +1. **Sleeping zones, step 1 (animals), with the removal button.** Decided 2026-11-30. +2. **Work rule areas, step 1.** Decided 2026-11-30: right after animal sleeping zones. It needs only the shipped map component, and it adds its two steps to the removal button (end Clean first and Haul first jobs, delete the areas). +3. **Arrivals: storage as a delivery target (step 3), then trade from storage (step 4), then cargo pods (step 5).** The unbuilt part of the first Zones request: medicine onto the hospital shelf with no hauling. +4. **Sleeping zones, step 2 (people).** The zone beds from step 1 with owner types and the prison rules on top. +5. **Sleeping zones, step 3 (by caste)**, once Castes ships its read-only API. It needs people zones. +6. **Work rule areas, step 2 (first rules for the other work), then step 3 (path rules).** New steps follow the decided order until Fabian places them (open question 1). +7. **The ideas**, as players ask. ## Left out @@ -124,7 +131,7 @@ The reasons are in design.md's [Cut](design.md#cut). In short: - pack animals walking purchases to the zone, roof-punching pods, and patching the vanilla trade drop spot globally, which would let raiders drop into the zone; - sleeping zones without beds, and people and animals in one zone; -- work rules as vanilla zones or areas, one layer per rule, "first" rules for firefighting, repairs, doctors or wardens (Repairing Priority, 2,188 subs on 1.7, covers repair order for those who want it), and blocking right-click orders; +- work rules as vanilla zones or areas, one layer per rule, "first" rules for firefighting, doctors or wardens, and blocking right-click orders; - routing ransom returns, lent colonists, quest pawns, wastepacks and royal permit drops; - Trading Control's marketplace stall and per-cell spot graphics, which need art; - anything Castes, Defaults, Slaves or Laws owns (see Scope); @@ -132,7 +139,7 @@ The reasons are in design.md's [Cut](design.md#cut). In short: ## Open questions for Fabian -1. **Work rule areas before sleeping zones?** On 2026-11-30 animal sleeping zones stayed first and work rule areas moved up to second. Grouped by area, sleeping zones are now one chunk with people and castes, which would push work rule areas behind all of it. Recommendation: build work rule areas first, with the removal button. +1. **When do the other first rules come?** Work rule areas step 2 (mine, cut, plant work, build and repair first) finishes your "Priority zones" request; the Order lists it after the decided steps. Recommendation: right after work rule areas step 1, before storage deliveries, because it reuses step 1's areas and the Haul first giver pattern. 2. **Do other mods' drops follow "Route orbital trade"?** Today `ZonesApi.TryFindDropSpot` follows each zone's orbital checkbox but ignores the global switch (`ZonesApi.cs` calls the router directly; only `DeliveryRouter.Orbital.cs:23` reads `routeOrbital`). Recommendation: follow it. One switch then means "orbital pods go to zones", and its tooltip names Blax Slaves' payouts while Slaves is active. -3. **Path rules widen Zones' ownership line** from "per-cell work rules" to "per-cell work and path rules", in all five docs. No sibling owns pathing, and Castes' allowed area stays the hard limit. Recommendation: yes, and build it after the home-area rules. +3. **Path rules widen Zones' ownership line** from "per-cell work rules" to "per-cell work and path rules", in all five docs. No sibling owns pathing, and Castes' allowed area stays the hard limit. Recommendation: yes, and build path rules right after the other first rules, ahead of the home-area ideas: they are the work rule step with demand on record. 4. **Bought animals land in a zone**, for example outside the pen gate. It needs the shared rule "pawns are never routed into zones" narrowed to people. Recommendation: no for now; nobody asked, and that rule is what keeps refugees and raiders out of delivery zones. diff --git a/docs/workshop-description.txt b/docs/workshop-description.txt index 055cc5f..d7f8ec5 100644 --- a/docs/workshop-description.txt +++ b/docs/workshop-description.txt @@ -34,10 +34,10 @@ [img]https://cdn.blax.at/blax-gaming/zones/planned.png[/img] Not in this version yet. Planned for the next releases: [list] +[*]๐Ÿ” Animal sleeping zones: every cell is a sleeping spot, with species and body-size filters, and a button that removes Blax Zones from a save with no errors. [*]๐Ÿงน Work rule areas: paint areas where nobody cleans, fights fires, repairs or hauls from, or that get cleaned and hauled first. -[*]๐Ÿ›๏ธ Sleeping zones: every cell a sleeping spot, for animals with species and body-size filters, and for colonists, prisoners and slaves (slaves need Ideology). With Blax Castes, limited by caste. -[*]๐Ÿ—„๏ธ More arrivals: deliveries straight into stockpiles and shelves, also under a roof, sell zones for orbital traders, cargo pods into a zone. -[*]๐Ÿงฐ A button that removes Blax Zones from a save with no errors. +[*]๐Ÿ—„๏ธ Deliveries straight into stockpiles and shelves, also under a roof, sell zones for orbital traders, cargo pods into a zone. +[*]๐Ÿ›๏ธ Sleeping zones for colonists, prisoners and slaves (slaves need Ideology). With Blax Castes, limited by caste. [/list] [img]https://cdn.blax.at/blax-gaming/zones/replaces.png[/img]