Skip to content

Decisions by System

github-actions[bot] edited this page Dec 2, 2026 · 66 revisions

Decisions by System

Generated by dk2tools wiki from docs/DECISIONS.md. Edit the sources, not this page; systems are listed in docs/systems.yaml (ADR-0643).

790 ADRs. One that spans several systems is listed under each.

Simulation core

The tick loop, system order, determinism, the state hash, snapshots and save/load. System id simulation-core.

ADR Decision Status
0001 Integer/fixed-point gameplay math accepted
0002 Simulation independent of Unity, enforced at compile time accepted
0004 xoshiro256** as the simulation RNG accepted
0006 Determinism is gated by a pinned state hash, exercised by a chaos system accepted
0007 Our own save format; DK2 save compatibility is not a goal accepted
0011 Ticks are related to seconds in exactly one place accepted
0013 One declared system order, in one place accepted
0017 A per-second rate from the balance table is applied once a game second accepted
0043 Not every player is a keeper: DK2's player ids are reserved accepted
0051 Zero health is a sixty-second window, and the dying creature is a creature while the corpse is not accepted
0054 An object is one type with per-kind state, and a bed knows whose it is accepted
0065 Kind 8: an imp puts a book back on the shelf accepted
0108 Hero parties and effect generators are verbatim ordered world state accepted
0111 Player fields are read from DK2's own debug dumper, and type 32 is mana accepted
0112 Gold mined is a keeper's counter, and it is credited to whoever swung accepted
0113 Counting a keeper's creatures, and why the total excludes its workers accepted
0116 Type 47 asks who killed this keeper, and byte 00 is a player accepted
0133 One application is a shift, not a division, and nothing is carried accepted
0143 The Skeleton ceiling is per keeper, over that keeper's prisons accepted
0145 Q204's two flags were already named in files we had accepted
0152 Creature trigger roots join the per-turn entity pass accepted
0196 The Mistress's Torture job accepted
0206 Dying is states 216 and 217; a corpse holds no state accepted
0270 A keeper's starting gold is paid into its heart at load accepted
0275 DK2's generator behind a pluggable algorithm, not yet the default accepted
0276 No logging framework; the simulation reports through typed events accepted
0362 Ground nobody can own belongs to the neutral player accepted
0416 A researcher's Library is the Library finder's accepted
0441 Build Receive Imps, special 124 accepted
0444 The simulation is profiled through markers it opens itself accepted
0454 Derived navigation state is kept while its inputs are unchanged accepted
0458 Ticks run on a worker thread after the frame is presented accepted
0466 The room sweep is kept while every tile's terrain and owner are unchanged accepted
0469 A possessed worker digs, mines and claims accepted
0550 A restore does not repeat the level initialiser's trigger setup accepted
0554 One creature's whole update before the next one's accepted
0555 A creature's fight state runs in the update its scan engages it accepted
0556 A replay can continue from a DK2 capture's state: the controlled-input test accepted
0564 Snapshots carry DK2's generator as well as xoshiro accepted
0575 Goal 9's speed budget: 50x real time per campaign level, 100 ms per tick accepted
0576 The state hash mixes one value per round accepted
0578 The harness hashes the world while the keepers think accepted
0588 A save is refused only when its layout cannot be read, and always with a reason accepted
0620 destroy the Heart through its authored effect and respect the supply opening accepted
0622 run the non-gate party arrival before hero activity accepted
0646 the neutral player's frame draws its ambient tile accepted
0673 the level start sweeps Hero Lair ground for trestles, with its draws accepted
0689 a second copy of the level ticks on a worker while the level loads amended
0693 the world copies itself in place, field for field, and a reflection walk holds it to that accepted
0695 the frame allocates less than half of what it did, and the tick thread touches no view state accepted
0696 the tick thread's garbage is counted and cut by three quarters, and a chunk's geometry is built off the frame accepted
0699 Egg collision responses share the bird object walk accepted
0701 run non-worker idle actions on their counted clips accepted
0702 gate bedless sleep attempts on the actual need accepted
0703 honor the stored Lair resume before acquisition accepted
0704 repeat the Library shelf check for capacity accepted
0705 rebuild Training furniture after neighbor work accepted
0706 retain the keeper-frame refresh clock accepted
0707 keep the Egg art clock and Chicken birth draws accepted
0708 step counted animation durations through the integer clock accepted
0709 include virtual Hatchery pillars in creature obstacle queries accepted
0710 apply live Library neighbour kicks at the terrain change accepted
0711 retain neutral stop routes through their stationary facing step accepted
0712 resume Imp job walks before checking their working stance accepted
0713 gate Library steering on the state left by its handler accepted
0714 run possessed Imp excavation through its action clock accepted
0715 measure combat reach on the plain query path accepted
0716 retain the stopped route through Library handovers accepted
0717 preserve stopped routes through combat facing accepted
0718 preserve combat handler handover timing accepted
0719 preserve native precision in stopped waypoints accepted
0720 preserve the home handler's arrival and facing cadence accepted
0721 preserve ordinary claim action clocks accepted
0722 sample runtime bed headings on the simulation stream accepted
0723 include stored gold in steering obstacle queries accepted
0724 multiplayer security: lockstep through a Steam relay that never holds game data accepted
0727 run possessed melee through the shared action animation accepted
0728 read possessed picks in the pose's height frame and give shots a height accepted
0729 keep a creature's speed mode until the next speed call accepted
0730 land a hand drop one turn later, at the command's point accepted
0731 take a prepared creature into the hand a turn after the pick-up accepted
0732 collapse in the thing pass and pick the fall heading accepted
0733 head a dropped creature by the drop's angle accepted
0737 a speed a state handler sets is not modified that turn accepted
0741 a shot probes ahead and heads what it hits, the collapse is inside the hit, state 216 holds then steps back accepted
0745 a creature in state 217 keeps its steering body where it collapsed accepted
0753 a hand drop lands in its creature's own update accepted
0788 a creature has DK2's floor height, and the physical pass drops it to it accepted
0795 a struck object's state 18 runs in the object pass, in thing order accepted
0796 the eating states' stores overlay a held Library target point accepted
0819 complete the readable possession ability inputs and clocks accepted
0820 share the possession flight predicate with trap selection accepted
0824 retire the Unity adapter at Godot parity accepted
0826 keep torture callbacks in the creature update accepted
0827 preserve room search and drop handler order accepted

Navigation

Route finding, the navigation mesh, steering bodies and movement. System id navigation.

ADR Decision Status
0012 The pathfinder is an admitted placeholder behind an interface accepted
0025 Movement is eight-connected, and a diagonal costs √2 accepted
0038 A creature never enters a tile it could not have walked into accepted
0059 A diagonal leg is walked surplus-first, and the corner is the only point it touches accepted
0084 Portal disposal is for non-Imps; Imp disposal is through the Heart accepted
0155 The pathfinder's replacement target is known, and not chosen accepted
0156 Separation is built as a rule and wired to nothing accepted
0157 The router is rebuilt on the original's mesh, search and funnel accepted
0158 Doors enter the navigation byte accepted
0175 The resume slot has no "unset", so the gate stops pretending it does accepted
0176 Eating is the first errand on DK2's own state ids accepted
0177 A job's walk and its work run on DK2's own state ids accepted
0178 The lair and sleep run on DK2's own state ids accepted
0183 An imp carries an object by its own flags, on DK2's state ids accepted
0192 The countdown hooks act every fifth turn from entry accepted
0194 A prisoner walks each step in 116 accepted
0209 Every creature holds a state; the release workaround is gone accepted
0264 A miner puts down what it cannot hold accepted
0297 A job walk ends on its point, with DK2's option words, and an imp at work stands still accepted
0318 A door met is a door fought, and a dead door leaves that turn accepted
0324 The StealGold arm's route test carries its own word, and routes through a foreign door accepted
0339 The grid search cuts a corner only past an open side, as the route query does accepted
0385 An imp task walk casts Imp Haste as it sets off accepted
0389 The gold fetch walks to the pile's point and takes within its box accepted
0412 The rescue selector posts its room messages, and a Prison's Activation is on from its first tile accepted
0420 Attach torture victims to devices and supply their movement obstacles accepted
0423 Preserve the ordinary obstacle query's retained flags accepted
0424 Apply the grounded water speed modifier accepted
0439 Keep live Hearts closed during movement exceptions accepted
0447 Keep combat contact, facing and melee action lifetime accepted
0453 A worker's reachability comes from one flood, not one search per candidate accepted
0454 Derived navigation state is kept while its inputs are unchanged accepted
0461 The navigation mesh is edited per tile, as the original's is accepted
0486 The mesh's locate is the original's cell-cache walk, and the builder keeps its slots accepted
0500 Creature separation gathers candidates from native tile bounds accepted
0509 Derive steering axes from resulting velocity accepted
0513 Route requests and stops zero the body's velocity accepted
0527 Withdraw portal crystal collision withdrawn
0572 A route helper's walk ends the running action accepted
0577 The keepers' staging routes share one mesh, rebuilt whole accepted
0602 Every creature turn uses the loader's per-tick rate accepted
0603 run the Portal hand-drop exit handler accepted
0625 place ordinary room positions on their own slabs accepted
0626 preserve native neighbour order in triangle searches accepted
0632 every travel state hands over at a whole route progress accepted
0639 use the ordinary room route for initial lair departure accepted
0644 keep a creature's steering body at its 16.16 position between steps accepted
0649 a loose Chicken reads the raw navigation byte and sees a store's gold pile accepted
0711 retain neutral stop routes through their stationary facing step accepted
0712 resume Imp job walks before checking their working stance accepted
0713 gate Library steering on the state left by its handler accepted
0715 measure combat reach on the plain query path accepted
0716 retain the stopped route through Library handovers accepted
0717 preserve stopped routes through combat facing accepted
0718 preserve combat handler handover timing accepted
0719 preserve native precision in stopped waypoints accepted
0720 preserve the home handler's arrival and facing cadence accepted
0723 include stored gold in steering obstacle queries accepted
0745 a creature in state 217 keeps its steering body where it collapsed accepted
0750 Heart pillars steer, neutrals steer with no route, a hero keeps its stop's self-point accepted
0751 the Heart centre's objects are walked, every non-Imp steers route-less and stops on a self-point accepted
0752 an Imp's alarm walk ends on the turn of its last step accepted
0755 a route is decided on the point asked for; a live Heart's lava centre is refused accepted
0756 a creature under a fifth of its health crawls; a fighter at its post blocks Separation accepted
0781 the steering crowd probe counts a creature by its tile link accepted
0786 hatchery state 93 turns to face the bird before it eats, and a stance route's point sits on the 16.8 grid accepted
0827 preserve room search and drop handler order accepted

Imps and tile work

Digging, claiming, reinforcing, gold mining and every other imp job on tiles. System id imps-tile-work.

ADR Decision Status
0009 Tile transitions are triggered by work, not by health level accepted
0010 Work orders are a queue on the world, filled by whoever is working accepted
0014 Worker behaviour covers marked work only superseded by 0018
0015 Gold lives in tiles; a player has no gold counter accepted
0018 Imps take jobs in a strict, confirmed priority order amended
0019 A creature's hands are a place gold can be accepted
0020 Work lands a fifth of the tabled delta at a time accepted by 0089
0021 Imps come from a floor and a price, and mana finally has an outgoing accepted
0022 An imp costs mana to keep, and the number was on the spell accepted
0023 One measured behaviour overrides one shipped number amended
0024 An upward job costs the terrain's whole MaxHealth superseded by 0089
0026 Worker limits belong to a job and a face accepted
0028 Floor is worked from on top of it, walls from beside accepted
0030 Claiming takes one worker on its tile accepted
0033 A rival claims your ground directly, and hostile expansion falls out accepted
0035 Rendering goes through one view, and the harness draws it as text accepted
0039 A dug-out tile is never closed again, and two terrains are never opened accepted
0045 Neutral ownership after tile-work destruction accepted
0055 Gold on the floor is an object, and the limit named after it is not a limit accepted
0056 Gold on the floor is the first thing an imp does accepted by 0058
0057 The free-imp clock is a deadline, and it was a countdown for three weeks accepted
0058 An imp chooses in two tiers, and gold is near rather than last accepted
0063 Carrying: an imp picks a body off the floor accepted
0064 The Prison: capture, and the half of carrying that was missing accepted
0065 Kind 8: an imp puts a book back on the shelf accepted
0077 A creature goes down on the keeper's own ground, and only a worker may go anywhere else accepted by 0526
0083 Training pays, and the experience model underneath it was wrong in three places accepted
0089 A tick is 250 ms, and Q47's fifth was never a cadence accepted
0090 The Library accrues research to the keeper, and three bonuses are not what their names say accepted
0110 A player tree knows which player it is, and type 30 is that player's gold accepted
0127 Record the player's commands from DK2's task pool, not from its input accepted
0128 A captured task-pool log replays as input frames accepted
0129 Record rooms from the player's room list, and refuse to invent their tiles accepted
0130 Two live captures, and most of what ADR-0128 assumed was wrong accepted
0131 A cancelled dig is told from a finished one by the claim, not the worker accepted
0132 Reinforcing needs the keeper's floor beside it, and that guard is inert today accepted
0134 A marked dig continues through a wall's intermediate Rock accepted
0181 An imp's tile work runs on DK2's own state ids accepted
0182 An imp's gold runs on DK2's own state ids accepted
0183 An imp carries an object by its own flags, on DK2's state ids accepted
0184 An imp's bodies run on DK2's own state ids accepted
0209 Every creature holds a state; the release workaround is gone accepted
0224 An idle worker rests in 12 and wanders in 87 accepted
0264 A miner puts down what it cannot hold accepted
0266 Isolate verified mana-pressure rules until their lifecycles exist accepted
0274 Persist the worker idle flag rather than derive it from activity accepted
0277 Connect the mana-pressure lifecycle: warnings and scans on the payment, the countdown before it, expiry through the death bookkeeping accepted
0280 Reproduce DK2's work cadence and rest timing; retire the one data override accepted
0282 An imp chooses as DK2's state 10 does: the cap, the kind just done, the straight-line dig walk accepted
0285 An imp claims outward from its keeper's floor in DK2's ring order, and a store sweeps in loose gold accepted
0286 A just-dug tile is claimed on the way to a deposit, never by choosing accepted
0288 Put DK2's own imp choices to ours; keep gold in the hands as DK2 does accepted
0289 A nearer imp takes a held task, and workers update newest first accepted
0291 Tier B is the ring scan with the per-tile chain accepted
0292 The drop scan and the reinforce retry are ring scans too accepted
0293 An imp picks gold up in passing, and its hands are full 340 short accepted
0294 The objects handler per tile, and a ring scan with no chooser draws nothing accepted by 0351
0296 A miner breaks off at the hands test, not when the next strike would not fit accepted
0297 A job walk ends on its point, with DK2's option words, and an imp at work stands still accepted
0299 A gate is not converted until it is ruined accepted
0300 Every creature but a keeper's worker takes the loose gold on its tile, whole accepted
0303 An imp claims a just-dug tile on the way on any walk, not only a deposit accepted
0305 A just-dug tile is raised when the digger's action ends, if its task survived accepted
0306 A carrier empties its hands at the store tile it was sent to accepted
0312 Create Imp follows the position permission and lands its imp as the hand does accepted
0315 A room drag is priced whole before a tile is laid accepted
0339 The grid search cuts a corner only past an open side, as the route query does accepted
0343 An aimed gold fetch is the ring scan too, so a pile in water is passed over accepted
0349 A miner whose strike lands on an emptied seam is not full, and reaches the seam's end accepted
0351 Every ring scan draws its start side accepted
0354 No carry to a full Prison; a refused body goes to the room point accepted
0355 The gold carrier's store tile, and the draws a store pile takes accepted
0356 A failed aimed claim retry searches for a claim twice accepted
0359 A carried body's clocks stand still accepted
0378 The claim on the way comes before the walk-over pick-up, from a worker job only; the pick-up reads the imp's own tile accepted
0379 The ring scan does not filter its own tile accepted
0380 A free reinforce side the imp cannot reach deletes the wall's task accepted
0381 A loose crate asks its blueprint before the shared latch accepted
0382 State 27's take stops at the pile that fills the hands accepted
0386 Work experience is paid once per work hit accepted
0388 A rival's imp holds no task of this keeper's, and the fight approach walks within a tile accepted
0389 The gold fetch walks to the pile's point and takes within its box accepted
0419 Start placed captives in their rooms and keep walled interiors distinct accepted
0435 Face the task tile before starting wall work accepted
0443 A tile holding a closed door is never claimed accepted
0449 Restore claim positioning and ownership effects accepted
0451 Remove wall reinforcement when its owned floor is lost accepted
0452 Keep the entire live Heart platform closed to walkers superseded by 0505
0453 A worker's reachability comes from one flood, not one search per candidate accepted
0469 A possessed worker digs, mines and claims accepted
0471 A worker's take fails when its walk cannot start accepted
0472 A worker tests a dig side, object or body for reachability first accepted
0502 Store arrival, facing and deposit take separate updates accepted
0503 Resolve each worker's work before updating the next worker accepted
0504 Retain exhausted mining actions through their animation ending proposed
0505 Restore native Heart routes and retain only the small core guard accepted
0510 Preserve the native four-turn first dig gap accepted
0512 Integrate verified fidelity corrections despite changed replay wins accepted
0514 Dig and mining actions end on a stored animation clock accepted
0516 Walkers and dig turners keep a gone task, as DK2's states do accepted
0519 Tier B tries a tile's objects after its gold accepted
0528 Show scripted tutorial dig guidance accepted
0533 A dig mark ends the reinforce and repair on its wall accepted
0536 Keep Secret Door concealment separate from marked excavation accepted
0563 State 26 checks hands, store and pile on the call that begins its next strike accepted
0565 A steal measures the holder from where it stands, at work or walking accepted
0605 fill wall corners when reinforcement finishes accepted
0607 separate reinforcement selection from its work guard accepted
0611 the reinforce handler's repair pass follows every kind-6 miss accepted
0613 gold dropped on a Treasury or Heart is stored on landing accepted
0620 destroy the Heart through its authored effect and respect the supply opening accepted
0630 a free imp drops in two tiles from the Heart accepted
0635 a Create Imp makes its imp through its shot accepted
0638 run ordinary reinforcement through its stored action clock accepted
0661 a tunneller's swing is action 1 on its own clip accepted
0662 a Dungeon Heart's ruin belongs to the room accepted
0668 a captured Treasury re-banks its gold for the captor accepted
0669 a Treasury banks the floor gold on its tiles whenever its tiles change accepted
0712 resume Imp job walks before checking their working stance accepted
0714 run possessed Imp excavation through its action clock accepted
0721 preserve ordinary claim action clocks accepted
0723 include stored gold in steering obstacle queries accepted
0738 the heart's dispatch asks before it routes a responder accepted
0742 a nearer imp takes over a collapsed creature's carry accepted
0744 level scripts remove a creature without trace; a held object is not fetched accepted
0746 an attacked floor's claim starts its own clip; the slot-13 clip is kept only inside the work state accepted
0811 a wall repair's side slots outlive their holders, and its strike runs before the fight scan accepted
0812 a worker that leaves the WorkerJob category puts down what it holds accepted
0825 let veteran Imps teleport to work accepted

Creatures

Creature states, needs, jobs, moods, arrival through portals, payday and death. System id creatures.

ADR Decision Status
0019 A creature's hands are a place gold can be accepted
0042 The portal produces creatures, and three of its rules come from OpenKeeper accepted by 0086
0047 A portal produces only creatures whose own flags allow it accepted
0048 A creature has health and a hunger clock accepted by 0049
0049 A creature has its own bed, and heals only while asleep in it accepted
0050 The six anger fields are signed, and anger waits for its unit accepted by 0053
0052 Only a keeper is staffed, and the test suite stops calling the hero side "Keeper" accepted
0053 Anger's ceiling is 32767, measured twice by two methods accepted by 0061
0060 A bed is walked to: the room by distance, the tile on arrival accepted
0061 The angry job is rolled again, and a lair is tried before it accepted
0063 Carrying: an imp picks a body off the floor accepted
0064 The Prison: capture, and the half of carrying that was missing accepted
0067 A creature eats, and the hunger clock stops saturating accepted
0068 The prison drain is hunger, and a Skeleton never withers accepted
0071 A knocked-out creature has exactly one sixth of its health, and DK2 says so accepted
0072 The state table has 281 records, and the 239 was a scan window accepted
0073 A prisoner shuffles about its cell, one orthogonal tile at a time accepted
0074 A prisoner gets hungry, hunts the cell, and races the others to the bird accepted
0075 The Hand of Evil holds a thing, not only a creature accepted
0077 A creature goes down on the keeper's own ground, and only a worker may go anywhere else accepted by 0526
0078 Payday is a journey, and the money comes off the tile underfoot accepted
0079 Being owed is the whole trigger, and a captive is charged nothing accepted
0081 Anger is six counters and the mood is the largest, not the sum accepted
0082 A creature that is not a worker now has a day, and M4 is closed accepted
0083 Training pays, and the experience model underneath it was wrong in three places accepted
0086 A portal's arrival interval is the square of its own tally accepted
0087 A creature that never gets angry says so with a flag, and Jack's anger values are a decoy accepted
0088 The room → job map is read from the binary, and JobRules stops resting on reasoning amended
0135 A creature's state is DK2's state id, adopted one state at a time accepted
0139 A prisoner is confined to the fenced interior, not to the room accepted
0140 A slain prisoner leaves a body on the rim; only the drain raises a Skeleton accepted
0145 Q204's two flags were already named in files we had accepted
0147 Attraction is a per-type budget, and the Lair is exempt accepted
0153 The melee damage formula is built as a rule nothing calls accepted
0160 Trigger actions 44 and 45 control saved world gates accepted
0164 Melee lands: spFighting's two clocks, the approach, the answer, the heart accepted
0168 Status effects are tick countdowns on the creature, read by the health routine and the gates accepted
0171 A cell bites in fours, and anger cools in seven states not three accepted
0172 Rebellion is not a roll: the Portal first, and turning Good is the fallback accepted
0173 A bed is a hospital: a wounded creature sleeps until it is whole accepted
0174 One door into the state machine, built before anything walks through it accepted
0175 The resume slot has no "unset", so the gate stops pretending it does accepted
0176 Eating is the first errand on DK2's own state ids accepted
0177 A job's walk and its work run on DK2's own state ids accepted
0178 The lair and sleep run on DK2's own state ids accepted
0179 A bed and a full wage each wipe their own anger bucket accepted
0180 Collecting wages runs on DK2's own state ids accepted
0183 An imp carries an object by its own flags, on DK2's state ids accepted
0185 The dispatcher's category rule, and lair cooling on it accepted
0186 A creature's work is its state category's update hook accepted
0187 A creature's purse, and the Casino on its category hook accepted
0188 The Casino's lever, and the gold it settles accepted
0189 A paid creature with Drink in its happy table goes gambling accepted
0190 The Casino's lever stands on a furniture slot accepted
0191 A captive runs on DK2's own state ids, and the drain is the Prison hook accepted
0192 The countdown hooks act every fifth turn from entry accepted
0193 A captive on a torture device, and the hand drop is state 77 accepted
0194 A prisoner walks each step in 116 accepted
0195 Category 0's admission bit is 1, from the file accepted
0196 The Mistress's Torture job accepted
0198 Hunger, sleep and pay take a creature off its job accepted
0199 A tired creature that cannot sleep loses health accepted
0200 Own creatures on a torture device, and 136's re-strap accepted
0201 Freeing comrades from a Torture Chamber accepted
0202 Pay every fourth turn, and five seconds' grace after a drop on a room accepted
0203 The Workshop's points, its list and its crates accepted
0205 A room's places are its furniture accepted
0206 Dying is states 216 and 217; a corpse holds no state accepted
0207 Leaving is states 194 to 196 accepted
0208 The combat group holds its states accepted
0209 Every creature holds a state; the release workaround is gone accepted
0210 The state names the activity accepted
0211 The activity is derived from the state accepted
0212 Guard duty is states 97, 98 and 99 accepted
0213 The Combat Pit is states 137, 138, 139 and 141 accepted
0219 A hero steals gold from the first keeper's Treasury and escapes with it accepted
0220 A wage comes from the whole room underfoot, not one tile accepted
0223 A keeper's Thief runs StealGold's states; the other steals are unreachable accepted
0226 A dropped creature lands stunned, gets up and asks the room, or stands in 250 accepted
0228 An idle creature with nothing chosen trains, watches or gambles, else wanders in 3 accepted
0229 A rescuer breaks a Prison's door open, and the prisoners walk out through it accepted
0230 An enemy tortured to death tells its torturer's keeper one thing accepted
0234 Every promotion rescales health, and the gate step-off is read accepted
0262 capture pickup permission separately from hand capacity accepted
0263 preserve worker pickup flags across task exits accepted
0265 Execute scripted portal arrivals through the shared arrival path accepted
0271 A portal creature waits out its Entrance animation, then steps off the hole accepted
0272 Weigh the portal's pick as DK2 does, boosting a new type accepted
0273 Preserve creature acquisition order independently of update order accepted
0279 Build Call to Arms as the flag object's process, cast and slapped by commands accepted
0281 Availability accumulates; the dying window reads the attached room accepted
0284 Connect the keeper's retreat of the wounded as pick-up and drop commands accepted
0295 A keeper's first non-worker arms its payday, and a late arrival skips one accepted
0301 A prisoner with the Angry flag plays it on low rolls and stands while it runs accepted
0308 SetState dispatches the category hooks from one table, in DK2's order, with the world to hand accepted
0309 A room's used capacity is the places its creatures hold accepted
0311 The Prison enter hook fires creature event 7 once its claim takes accepted
0313 Training and Casino enter hooks refuse before their claims, as DK2's do accepted
0314 Closed portals and a clock that restarts at every roll accepted
0316 A portal does not read the creature-availability table accepted
0322 The Casino, Torture and Manufacture leave hooks, and a stored maker count accepted
0324 The StealGold arm's route test carries its own word, and routes through a foreign door accepted
0328 The idle decision tries for a lair before any job, as state 89 does accepted
0330 The Guard Post: its room, a patrol's visit and its report accepted
0332 The alarm routes the Imp with the door bit and everyone else without accepted
0345 A stunned creature gets up for its type's ticks, then stands fifty turns from getting up accepted
0348 The get-up lasts the Getup animation, and a hit lengthens a stun accepted
0350 Build keeper spells only after their complete effect paths are read accepted
0358 A portal creature's death lowers its portal's tally accepted
0359 A carried body's clocks stand still accepted
0366 Fighting earns combat experience accepted
0371 A Vampire reincarnates at a Graveyard accepted
0385 An imp task walk casts Imp Haste as it sets off accepted
0386 Work experience is paid once per work hit accepted
0393 A creature at the training cap leaves the Training Room through states 108 and 110 accepted
0397 A researcher moves among the Library's shelves, and an intruder disturbs a long read accepted
0400 The first eight category 0 states: a neutral idle, the Heart's drop, the tunneller's wander, the evicted holders' way back, the gold cheer accepted
0401 The slap's state moves: 67, 77 and 120 and their reaction accepted
0402 The last category 0 states: the Library's, Workshop's and Casino's way back, the research cheer, and fourteen unreached accepted
0406 A room's holders are kicked when it is freed, taken, or a neighbouring tile changes accepted
0416 A researcher's Library is the Library finder's accepted
0417 A fallen creature with no bed is carried to a Lair and makes its bed there accepted
0419 Start placed captives in their rooms and keep walled interiors distinct accepted
0432 Hold a hatchery meal for its eating action accepted
0438 Complete supported classic animation lifecycles accepted
0442 Restore room construction and ambient room life accepted
0450 Select a bed after a creature is dropped into a Lair accepted
0460 Restore drop recovery and sleeping poses accepted
0467 Restore the original portal pre-arrival buildup accepted
0469 A possessed worker digs, mines and claims accepted
0476 A Portal arrival's entrance effect, animated mesh effects, and brighter additive beams accepted by 0492
0477 Foot dust on a Dirt Path accepted
0480 The stun counts from its first call, with the dazed stars accepted
0485 Only a keeper's creatures run the needs, need-anger and mood choosers accepted
0488 A creature getting up may look for a fight accepted
0499 A portal admits a Lair creature before the first Lair accepted
0500 Creature separation gathers candidates from native tile bounds accepted
0514 Dig and mining actions end on a stored animation clock accepted
0515 Idle actions play their clip; installs draw their coin accepted
0518 Speed does not scale with level accepted
0521 Preserve creature names and blood groups in simulation state accepted
0526 A hand drop obeys DK2's drop gate accepted
0543 A wound alone does not send a bedded creature to bed accepted
0544 A withdrawal's failed room pick ends it accepted
0546 Apply the level's alliance records at load accepted
0554 One creature's whole update before the next one's accepted
0555 A creature's fight state runs in the update its scan engages it accepted
0557 A crate is paid for at the cost in the manufacture ring's slot 0, not the head order's accepted
0566 Waiting heroes keep their idle action across a failed job accepted
0572 A route helper's walk ends the running action accepted
0573 A creature that cannot manufacture leaves the Workshop accepted
0574 Raw idle hands over to 89 on a later turn accepted
0579 Preserve sleep debt across state changes accepted
0585 Attackability reads the state flag; an Imp passes over a hero busy with a thing accepted
0603 run the Portal hand-drop exit handler accepted
0609 Only a raiser or reporter on its way or there refuses another alarm accepted
0614 no lair space, no portal arrival accepted
0616 a stored pick-up lifts what its slot holds; landing stuns whoever's creature accepted
0628 a prisoner arrives with its dying window left plus a tenth accepted
0629 state 44's four exits, and the fight bits are one byte accepted
0632 every travel state hands over at a whole route progress accepted
0636 a placed hero takes its record's Flags2 accepted
0639 use the ordinary room route for initial lair departure accepted
0640 award combat experience before each creature's state handler accepted
0641 Preserve bank heights and idle movement after failed hero jobs accepted
0651 a hungry creature takes AngerNoFood while its keeper could feed it accepted
0656 an idle creature's failed pass makes the Heart walk's draws accepted
0666 a bedless creature takes AngerNoLair only while its keeper could house it accepted
0667 the need charges skip workers, read the lair object alone and use the loader's rates accepted
0671 a worker celebrating a made crate draws its play count accepted
0674 job 24, Explore, walks a creature to neutral floor and on through state 225 accepted
0675 a Horny creature draws its finale ambience every turn accepted
0676 the wander and the Prison draw their room point as 0x004E8430 does accepted
0677 payday's state 187 finds its tile and point as DK2 does accepted
0678 an afraid creature runs from the trap or Boulder that threatened it accepted
0679 a closed door pushes creatures off its tile, through the physical pass accepted
0680 a thing an imp holds is attached to the imp, at its point and turned half a turn accepted
0681 an imp takes a prisoner into the Prison through its gate accepted
0682 a creature on a closed door's push point is pushed toward an open side accepted
0684 a set-down thing lies at the carrier's point, and the attachment runs in every state accepted
0685 a manufacturer plays action 32's art while it hammers accepted
0697 loose Chickens reject virtual Heart pillars accepted
0698 connect dropped creatures to combat before room fallback accepted
0699 Egg collision responses share the bird object walk accepted
0700 owned Chickens avoid virtual Hatchery pillars accepted
0701 run non-worker idle actions on their counted clips accepted
0702 gate bedless sleep attempts on the actual need accepted
0703 honor the stored Lair resume before acquisition accepted
0704 repeat the Library shelf check for capacity accepted
0705 rebuild Training furniture after neighbor work accepted
0708 step counted animation durations through the integer clock accepted
0709 include virtual Hatchery pillars in creature obstacle queries accepted
0710 apply live Library neighbour kicks at the terrain change accepted
0711 retain neutral stop routes through their stationary facing step accepted
0713 gate Library steering on the state left by its handler accepted
0714 run possessed Imp excavation through its action clock accepted
0716 retain the stopped route through Library handovers accepted
0717 preserve stopped routes through combat facing accepted
0718 preserve combat handler handover timing accepted
0719 preserve native precision in stopped waypoints accepted
0720 preserve the home handler's arrival and facing cadence accepted
0722 sample runtime bed headings on the simulation stream accepted
0723 include stored gold in steering obstacle queries accepted
0725 the Portal Gem keeps a position: made at its carrier's point, dropped on its tile centre accepted
0727 run possessed melee through the shared action animation accepted
0728 read possessed picks in the pose's height frame and give shots a height accepted
0729 keep a creature's speed mode until the next speed call accepted
0730 land a hand drop one turn later, at the command's point accepted
0731 take a prepared creature into the hand a turn after the pick-up accepted
0732 collapse in the thing pass and pick the fall heading accepted
0733 head a dropped creature by the drop's angle accepted
0734 a fighter with no action leaves a collapsed target in the same turn accepted
0736 clear a collapsed target by the target word alone, and read the Imp's and the computer keeper's drops accepted
0737 a speed a state handler sets is not modified that turn accepted
0739 script walk/run and the tortured event accepted
0740 torture conversion messages, reward 11 and the trough effect accepted
0741 a shot probes ahead and heads what it hits, the collapse is inside the hit, state 216 holds then steps back accepted
0744 level scripts remove a creature without trace; a held object is not fetched accepted
0745 a creature in state 217 keeps its steering body where it collapsed accepted
0746 an attacked floor's claim starts its own clip; the slot-13 clip is kept only inside the work state accepted
0749 a payday fires the keeper's pay-day event accepted
0750 Heart pillars steer, neutrals steer with no route, a hero keeps its stop's self-point accepted
0751 the Heart centre's objects are walked, every non-Imp steers route-less and stops on a self-point accepted
0752 an Imp's alarm walk ends on the turn of its last step accepted
0753 a hand drop lands in its creature's own update accepted
0755 a route is decided on the point asked for; a live Heart's lava centre is refused accepted
0756 a creature under a fifth of its health crawls; a fighter at its post blocks Separation accepted
0757 a collapse ends the running action; a weak fighter keeps its swing; attackability is a cached bit accepted
0758 the head count skips a corpse and an off-map creature, not a collapsed one accepted
0759 own-land regeneration is the creature update's, every turn accepted
0761 the fighting arms walk the player list, then each player's creatures accepted
0762 a swing's hold ends where DK2 ends the action, not on a state change accepted
0763 a lifted creature stays attackable until its own update refreshes the bit accepted
0764 own-land healing skips only the dying bit; damage keeps its overkill accepted
0765 every damage path books the collapse; a slap collapses inside the command accepted
0766 the flee state turns toward its target before it steps back accepted
0770 the hand fires its slap and pick-up trigger events accepted
0775 a Prison takes a dropped prisoner only on its interior, and a creature eats a loose neutral chicken it stands on accepted
0776 a slapped Horny departs accepted
0780 a guard post's target is read by the slot's facing accepted
0781 the steering crowd probe counts a creature by its tile link accepted
0782 the needs clocks start from the constructor's stagger, and hunger's is a stamp checked first accepted
0784 a hatchery walk ends at the room walk's point, and the hunger retry is a stamp accepted
0785 hatchery state 92 runs the turn after the shortcut, walks to the bird and prepares it accepted
0786 hatchery state 93 turns to face the bird before it eats, and a stance route's point sits on the 16.8 grid accepted
0787 the previous-position copy runs before the state handler, as DK2's update does accepted
0788 a creature has DK2's floor height, and the physical pass drops it to it accepted
0789 an eaten chicken stays until its own update removes it accepted
0790 a Hatchery's laying capacity counts only the birds in its room list accepted
0791 a floor egg's clip first advances on the turn after it is laid accepted
0792 a creature the eating handlers drop to idle chooses again a turn later accepted
0793 a chicken's reaction passes over a creature above its floor, and a portal arrival is made at height 0 accepted
0794 a guard's walk arriving holds its next handler a turn accepted
0795 a struck object's state 18 runs in the object pass, in thing order accepted
0796 the eating states' stores overlay a held Library target point accepted
0797 a torturer's arrival and the eating arrivals hand over a turn later, and state 92 with no bird sets 91 accepted
0798 a room walk's point passes over a tile holding a Hatchery pillar accepted
0799 a creature getting up on a Heart holds 71 a turn, and 71's 11 another accepted
0800 a hero's action-point walk is barred by its own finished walls, not its own rooms accepted
0801 a portal notices a type only while it weighs, decays once per definition index, and counts a Unique definition twice accepted
0803 a finished research goes to a random Library that takes it and has a place-holder, and an unreached place-holder cheers the same tick accepted
0806 remember Guard assignments independently of current work accepted
0807 defer moving torture corpses clear of their devices accepted
0808 show pickup dust with local disappearance accepted
0814 preserve captive custody through healing and mood selection accepted
0815 the Lair drop remembers no job accepted
0818 possession colour changes consume transient creature notifications accepted
0819 complete the readable possession ability inputs and clocks accepted
0820 share the possession flight predicate with trap selection accepted
0822 gate possession colour output until native enablement is established accepted
0825 let veteran Imps teleport to work accepted
0826 keep torture callbacks in the creature update accepted
0827 preserve room search and drop handler order accepted

Rooms

Room building, selling, capture, and what each room does for its occupants. System id rooms.

ADR Decision Status
0016 Where a room may go is read from the room's own flags accepted
0027 A room is an instance, and it is derived rather than stored accepted
0032 A wooden bridge over lava burns, and the clock starts when it is built accepted
0044 A room is claimed whole, never tile by tile accepted
0048 A creature has health and a hunger clock accepted by 0049
0049 A creature has its own bed, and heals only while asleep in it accepted
0054 An object is one type with per-kind state, and a bed knows whose it is accepted
0060 A bed is walked to: the room by distance, the tile on arrival accepted
0061 The angry job is rolled again, and a lair is tried before it accepted
0064 The Prison: capture, and the half of carrying that was missing accepted
0066 The Hatchery lays, and the blocker had already been removed accepted
0067 A creature eats, and the hunger clock stops saturating accepted
0068 The prison drain is hunger, and a Skeleton never withers accepted
0070 A prison holds its inner tiles plus one, so a 3×3 holds two accepted
0072 The state table has 281 records, and the 239 was a scan window accepted
0073 A prisoner shuffles about its cell, one orthogonal tile at a time accepted
0074 A prisoner gets hungry, hunts the cell, and races the others to the bird accepted
0083 Training pays, and the experience model underneath it was wrong in three places accepted
0084 Portal disposal is for non-Imps; Imp disposal is through the Heart accepted
0085 Ten mechanics DK2 built and switched off, and the audit that could not see them accepted
0090 The Library accrues research to the keeper, and three bonuses are not what their names say accepted
0110 A player tree knows which player it is, and type 30 is that player's gold accepted
0114 Player room conditions count instances and sum their size accepted
0129 Record rooms from the player's room list, and refuse to invent their tiles accepted
0139 A prisoner is confined to the fenced interior, not to the room accepted
0140 A slain prisoner leaves a body on the rim; only the drain raises a Skeleton accepted
0142 The prison drain is a relationship, not a flag accepted
0146 Auto furniture is reconciled from room shape accepted
0148 Two disposal tiles, and the prison decides at the door accepted
0149 Persistent Temple history follows a deterministic room anchor accepted
0151 Graveyard life-force belongs to a persistent room anchor accepted
0154 A captive dropped on a Temple is sacrificed, not freed accepted
0170 The friendly spell arm: the last castable buff, on the nearest own fighter under a quarter health accepted
0171 A cell bites in fours, and anger cools in seven states not three accepted
0173 A bed is a hospital: a wounded creature sleeps until it is whole accepted
0176 Eating is the first errand on DK2's own state ids accepted
0178 The lair and sleep run on DK2's own state ids accepted
0179 A bed and a full wage each wipe their own anger bucket accepted
0193 A captive on a torture device, and the hand drop is state 77 accepted
0212 Guard duty is states 97, 98 and 99 accepted
0213 The Combat Pit is states 137, 138, 139 and 141 accepted
0214 A crate is carried to its blueprint: task kinds 9 and 10, states 34 to 37 accepted
0215 The job a creature is dropped on accepted
0226 A dropped creature lands stunned, gets up and asks the room, or stands in 250 accepted
0227 A spectator watches a pit fight from the rim, cheers, and leaves four seconds after it ends accepted
0229 A rescuer breaks a Prison's door open, and the prisoners walk out through it accepted
0230 An enemy tortured to death tells its torturer's keeper one thing accepted
0240 A room's tiles are in build order: the slab chain accepted
0241 Loading a saved game re-chains every room row-major accepted
0243 Readers of a room use its slab chain accepted
0247 Research buys books, and books are the availability accepted
0281 Availability accumulates; the dying window reads the attached room accepted
0301 A prisoner with the Angry flag plays it on low rolls and stands while it runs accepted
0304 Task 7 bridges water and lava; a span must touch the builder's own floor accepted
0306 A carrier empties its hands at the store tile it was sent to accepted
0315 A room drag is priced whole before a tile is laid accepted
0323 A withdrawal aims at the room's position word, and a heart's sits past its centre accepted
0328 The idle decision tries for a lair before any job, as state 89 does accepted
0330 The Guard Post: its room, a patrol's visit and its report accepted
0332 The alarm routes the Imp with the door bit and everyone else without accepted
0335 The Hatchery finder posts 41–43, and a coop does not stock a hatchery accepted
0336 A room has one health, and a conversion beats the whole of it down accepted
0342 Heroes knock rooms down tile by tile; repair is built and never started accepted
0354 No carry to a full Prison; a refused body goes to the room point accepted
0360 The heart's start is its room record's percentage accepted
0370 The Graveyard's burial, gate and Vampire as DK2 has them accepted
0393 A creature at the training cap leaves the Training Room through states 108 and 110 accepted
0396 A gambler moves among the Casino's furniture, and a jackpot starts a party and a collection accepted
0397 A researcher moves among the Library's shelves, and an intruder disturbs a long read accepted
0400 The first eight category 0 states: a neutral idle, the Heart's drop, the tunneller's wander, the evicted holders' way back, the gold cheer accepted
0403 A worshipper moves about the Temple, and every job walk ends where DK2's room walk does accepted
0404 A manufacturer moves among the Workshop's machines accepted
0412 The rescue selector posts its room messages, and a Prison's Activation is on from its first tile accepted
0414 The corpse selections ask for a Graveyard, once a level for 41 accepted
0415 A Casino's party moves with its room accepted
0416 A researcher's Library is the Library finder's accepted
0417 A fallen creature with no bed is carried to a Lair and makes its bed there accepted
0418 A corpse lies in the Graveyard until its lifetime ends accepted
0419 Start placed captives in their rooms and keep walled interiors distinct accepted
0420 Attach torture victims to devices and supply their movement obstacles accepted
0423 Preserve the ordinary obstacle query's retained flags accepted
0428 Lay hatchery eggs across the room floor accepted
0432 Hold a hatchery meal for its eating action accepted
0434 Run the owned Hatchery chicken movement loop accepted
0438 Complete supported classic animation lifecycles accepted
0439 Keep live Hearts closed during movement exceptions accepted
0440 A room on TotalCapacity's default arm holds its tile count accepted
0442 Restore room construction and ambient room life accepted
0449 Restore claim positioning and ownership effects accepted
0450 Select a bed after a creature is dropped into a Lair accepted
0460 Restore drop recovery and sleeping poses accepted
0463 Present the Heart's health and mana pulse from original resources accepted
0464 Respect the original effect sprite completion flag accepted
0465 Restore the original wall reinforcement completion effect accepted
0466 The room sweep is kept while every tile's terrain and owner are unchanged accepted
0469 A possessed worker digs, mines and claims accepted
0474 The Heart's mana sparkles rise to the Arch Pillars, an owner adjustment accepted
0475 The Heart's opening sequence: plug, burst, arches fading in accepted
0476 A Portal arrival's entrance effect, animated mesh effects, and brighter additive beams accepted by 0492
0492 The Heart plug's pieces, effect lights, and additive effect meshes at their texture accepted
0524 Rooms run flames round their rims accepted
0527 Withdraw portal crystal collision withdrawn
0529 Use native room-capture particles in gameplay accepted
0530 A room tile is refused where a trap, a door or a rival's creature stands accepted
0541 Retain player room-list order for combat destinations accepted
0556 A replay can continue from a DK2 capture's state: the controlled-input test accepted
0573 A creature that cannot manufacture leaves the Workshop accepted
0574 Raw idle hands over to 89 on a later turn accepted
0581 Thunderbolt preserves bound captives and skips expired stun effects accepted
0603 run the Portal hand-drop exit handler accepted
0606 retain the Hatchery level-start interval accepted
0608 reproduce the unpaid jackpot slap accepted
0620 destroy the Heart through its authored effect and respect the supply opening accepted
0625 place ordinary room positions on their own slabs accepted
0628 a prisoner arrives with its dying window left plus a tenth accepted
0634 the Workshop's four effect timers draw the world stream accepted
0641 Preserve bank heights and idle movement after failed hero jobs accepted
0647 a loose Chicken roams (object process 10) accepted
0649 a loose Chicken reads the raw navigation byte and sees a store's gold pile accepted
0650 a free-range Chicken decays and dies accepted
0652 a Hatchery adopts the Chickens on its tiles when they change accepted
0653 a dragged sale is a wave from the rectangle's maximum corner accepted
0654 a new room or blueprint sends the keeper's walkers back to choose again accepted
0662 a Dungeon Heart's ruin belongs to the room accepted
0663 the floating gold numbers of a room build and sale accepted
0664 a paid sale tests availability, and the other floating amounts accepted
0668 a captured Treasury re-banks its gold for the captor accepted
0669 a Treasury banks the floor gold on its tiles whenever its tiles change accepted
0672 a Hatchery's coops are placed again on every rebuild, with a draw each accepted
0676 the wander and the Prison draw their room point as 0x004E8430 does accepted
0677 payday's state 187 finds its tile and point as DK2 does accepted
0681 an imp takes a prisoner into the Prison through its gate accepted
0685 a manufacturer plays action 32's art while it hammers accepted
0697 loose Chickens reject virtual Heart pillars accepted
0700 owned Chickens avoid virtual Hatchery pillars accepted
0704 repeat the Library shelf check for capacity accepted
0705 rebuild Training furniture after neighbor work accepted
0707 keep the Egg art clock and Chicken birth draws accepted
0709 include virtual Hatchery pillars in creature obstacle queries accepted
0710 apply live Library neighbour kicks at the terrain change accepted
0713 gate Library steering on the state left by its handler accepted
0716 retain the stopped route through Library handovers accepted
0719 preserve native precision in stopped waypoints accepted
0720 preserve the home handler's arrival and facing cadence accepted
0722 sample runtime bed headings on the simulation stream accepted
0739 script walk/run and the tortured event accepted
0740 torture conversion messages, reward 11 and the trough effect accepted
0760 a level script hands a room over and keeps its damage accepted
0769 Torture Chamber and Casino torches follow the room's wall phase accepted
0775 a Prison takes a dropped prisoner only on its interior, and a creature eats a loose neutral chicken it stands on accepted
0780 a guard post's target is read by the slot's facing accepted
0788 a creature has DK2's floor height, and the physical pass drops it to it accepted
0789 an eaten chicken stays until its own update removes it accepted
0790 a Hatchery's laying capacity counts only the birds in its room list accepted
0791 a floor egg's clip first advances on the turn after it is laid accepted
0793 a chicken's reaction passes over a creature above its floor, and a portal arrival is made at height 0 accepted
0794 a guard's walk arriving holds its next handler a turn accepted
0796 the eating states' stores overlay a held Library target point accepted
0797 a torturer's arrival and the eating arrivals hand over a turn later, and state 92 with no bird sets 91 accepted
0798 a room walk's point passes over a tile holding a Hatchery pillar accepted
0799 a creature getting up on a Heart holds 71 a turn, and 71's 11 another accepted
0803 a finished research goes to a random Library that takes it and has a place-holder, and an unreached place-holder cheers the same tick accepted
0806 remember Guard assignments independently of current work accepted
0807 defer moving torture corpses clear of their devices accepted
0809 let Level6a's opening torture tutorial speak without generic announcements accepted
0814 preserve captive custody through healing and mood selection accepted
0826 keep torture callbacks in the creature update accepted
0827 preserve room search and drop handler order accepted

Combat

Fights, attacks, shots, damage, experience and fleeing. System id combat.

ADR Decision Status
0071 A knocked-out creature has exactly one sixth of its health, and DK2 says so accepted
0153 The melee damage formula is built as a rule nothing calls accepted
0163 Acquisition is SelectAVictim; the Blocker arm is built first accepted
0164 Melee lands: spFighting's two clocks, the approach, the answer, the heart accepted
0165 Fear: threat radiated every tick, the back-off, the withdrawal accepted
0166 The worker's arm: fight at the heart, withdraw from a hero, or raise the alarm accepted
0167 The attack spells and their shots: a cast is action 16 firing a shot thing accepted
0168 Status effects are tick countdowns on the creature, read by the health routine and the gates accepted
0169 State 8 is a flag on the fighter, and a kill ends in a fixed pause accepted
0170 The friendly spell arm: the last castable buff, on the nearest own fighter under a quarter health accepted
0206 Dying is states 216 and 217; a corpse holds no state accepted
0208 The combat group holds its states accepted
0213 The Combat Pit is states 137, 138, 139 and 141 accepted
0225 A creature that withdrew walks back to the fight once healed accepted
0226 A dropped creature lands stunned, gets up and asks the room, or stands in 250 accepted
0227 A spectator watches a pit fight from the rim, cheers, and leaves four seconds after it ends accepted
0232 An audit of "only" and "never" claims: a heartless player's heart is tile (1, 1) accepted
0237 The verifier's findings: possession is ×1.6, and the Prison door sits right of centre accepted
0238 Without its record the possession bonus is 100, and the level time limit's gate is the window's focus accepted
0319 The Combat category's leave and enter hooks run in SetState accepted
0323 A withdrawal aims at the room's position word, and a heart's sits past its centre accepted
0325 A Support creature surveys its attack spell while it recharges accepted
0326 A trap's upkeep, its no-mana message, and the shots that damage it accepted
0330 The Guard Post: its room, a patrol's visit and its report accepted
0331 The Alarm, Fear, Spike and Gas traps fire; the Boulder and the Jack In The Box wait accepted
0332 The alarm routes the Imp with the door bit and everyone else without accepted
0338 A Troll, Thief, Rogue or Guard reveals an enemy's hidden traps around it accepted
0340 A creature with nobody to fight attacks an enemy's revealed trap (scan D) accepted
0341 M7 leaves shot heights to M9 and the Boulder's slap to object slapping accepted
0345 A stunned creature gets up for its type's ticks, then stands fifty turns from getting up accepted
0347 A worker flees any attacker that is not an Imp, and the approach state's flight keeps its back-off accepted
0348 The get-up lasts the Getup animation, and a hit lengthens a stun accepted
0364 A collapsing victim gives no victory accepted
0365 A forced creature target gets the spell, not melee accepted
0366 Fighting earns combat experience accepted
0367 Shots are updated newest first accepted
0368 The victory pause is one play of the creature's clip accepted
0369 A Flanker aims behind the heading; the victor turns to face the body accepted
0388 A rival's imp holds no task of this keeper's, and the fight approach walks within a tile accepted
0400 The first eight category 0 states: a neutral idle, the Heart's drop, the tunneller's wander, the evicted holders' way back, the gold cheer accepted
0407 A Dungeon Heart sends its owner's creatures to an intruder accepted
0419 Start placed captives in their rooms and keep walled interiors distinct accepted
0425 Let a frightened Scout run to raise the alarm accepted
0429 Update combat in creature creation order reversed accepted
0447 Keep combat contact, facing and melee action lifetime accepted
0473 A fleeing creature counts only Guard Rooms near its attacker accepted
0477 Foot dust on a Dirt Path accepted
0480 The stun counts from its first call, with the dazed stars accepted
0483 The approach is state 8, a walk resuming 199 accepted
0488 A creature getting up may look for a fight accepted
0489 A creature's spell shot leaves from its slot's origin accepted
0517 An alarm goes only to a Guard Room accepted
0545 A withdrawal spends the away stage's draws for a staged target accepted
0546 Apply the level's alliance records at load accepted
0551 A Bile Demon's idle shot takes its first update on the turn it is made accepted
0555 A creature's fight state runs in the update its scan engages it accepted
0559 A stunned creature's fear piles up: the accumulator skips it whole accepted
0580 The states a flight ends through hold a turn each accepted
0581 Thunderbolt preserves bound captives and skips expired stun effects accepted
0584 A creature that gave up a chase passes over retreating candidates for 60 turns accepted
0585 Attackability reads the state flag; an Imp passes over a hero busy with a thing accepted
0590 Keep the retreat chase count across approach entries accepted
0591 Unlinking an engagement drops a held forced target; a forced fighter keeps its target accepted
0592 A fighter with no target looks for a victim before it celebrates accepted
0593 The step back follows the creature's heading and DK2's route tests accepted
0594 The step back is a slide, as DK2 spends its impulse accepted
0595 reproduce creature burning and its simulation draws accepted
0596 request shot effects without changing gameplay accepted
0597 complete the effect-engine paths used by shots accepted
0598 The melee hold ends on the poll turn accepted
0599 draw procedural lightning and electrified creatures accepted
0600 draw shot bodies through the existing asset and effect adapters accepted
0601 present burning and local Inferno camera impulses accepted
0602 Every creature turn uses the loader's per-tick rate accepted
0604 request the battle call when an approach starts accepted
0609 Only a raiser or reporter on its way or there refuses another alarm accepted
0610 preserve the combat approach reselection boundary accepted
0615 the Jack neither looks for a fight nor can be attacked accepted
0617 preserve the Heart defender's target comparison and point route accepted
0619 preserve the reporting timeout and reject solid responder points accepted
0623 seed fight scans from reusable native creature slots accepted
0624 retain ordinary casting actions after shot release accepted
0625 place ordinary room positions on their own slabs accepted
0626 preserve native neighbour order in triangle searches accepted
0634 the Workshop's four effect timers draw the world stream accepted
0640 award combat experience before each creature's state handler accepted
0645 a made creature's first fight scan waits for its phase accepted
0678 an afraid creature runs from the trap or Boulder that threatened it accepted
0698 connect dropped creatures to combat before room fallback accepted
0715 measure combat reach on the plain query path accepted
0717 preserve stopped routes through combat facing accepted
0718 preserve combat handler handover timing accepted
0719 preserve native precision in stopped waypoints accepted
0727 run possessed melee through the shared action animation accepted
0728 read possessed picks in the pose's height frame and give shots a height accepted
0729 keep a creature's speed mode until the next speed call accepted
0730 land a hand drop one turn later, at the command's point accepted
0731 take a prepared creature into the hand a turn after the pick-up accepted
0732 collapse in the thing pass and pick the fall heading accepted
0733 head a dropped creature by the drop's angle accepted
0734 a fighter with no action leaves a collapsed target in the same turn accepted
0736 clear a collapsed target by the target word alone, and read the Imp's and the computer keeper's drops accepted
0737 a speed a state handler sets is not modified that turn accepted
0738 the heart's dispatch asks before it routes a responder accepted
0741 a shot probes ahead and heads what it hits, the collapse is inside the hit, state 216 holds then steps back accepted
0752 an Imp's alarm walk ends on the turn of its last step accepted
0753 a hand drop lands in its creature's own update accepted
0754 a shot finds the first thing on the tiles its radius covers, not the nearest accepted
0756 a creature under a fifth of its health crawls; a fighter at its post blocks Separation accepted
0757 a collapse ends the running action; a weak fighter keeps its swing; attackability is a cached bit accepted
0758 the head count skips a corpse and an off-map creature, not a collapsed one accepted
0759 own-land regeneration is the creature update's, every turn accepted
0761 the fighting arms walk the player list, then each player's creatures accepted
0762 a swing's hold ends where DK2 ends the action, not on a state change accepted
0763 a lifted creature stays attackable until its own update refreshes the bit accepted
0764 own-land healing skips only the dying bit; damage keeps its overkill accepted
0765 every damage path books the collapse; a slap collapses inside the command accepted
0766 the flee state turns toward its target before it steps back accepted
0773 the Battle tab's three buttons are built as DK2's menu 43 accepted
0774 the Battle tab's fly-in is the second reward tablet accepted
0787 the previous-position copy runs before the state handler, as DK2's update does accepted
0802 a possessed creature creeps, and a creeping creature is judged at a share of its distance accepted

Keeper spells

The Hand of Evil, possession and every keeper spell. System id keeper-spells.

ADR Decision Status
0021 Imps come from a floor and a price, and mana finally has an outgoing accepted
0022 An imp costs mana to keep, and the number was on the spell accepted
0062 The Hand of Evil, and Efficiency becomes a number a keeper can move accepted by 0069
0069 The aimed bonus is a task kind, and it lasts as long as that kind of work accepted
0077 A creature goes down on the keeper's own ground, and only a worker may go anywhere else accepted by 0526
0154 A captive dropped on a Temple is sacrificed, not freed accepted
0200 Own creatures on a torture device, and 136's re-strap accepted
0209 Every creature holds a state; the release workaround is gone accepted
0215 The job a creature is dropped on accepted
0217 A chicken or gold dropped onto a creature feeds or pays it accepted
0226 A dropped creature lands stunned, gets up and asks the room, or stands in 250 accepted
0260 Cast keeper Thunderbolt through the shared shot process accepted
0262 capture pickup permission separately from hand capacity accepted
0263 preserve worker pickup flags across task exits accepted
0279 Build Call to Arms as the flag object's process, cast and slapped by commands accepted
0284 Connect the keeper's retreat of the wounded as pick-up and drop commands accepted
0287 Cast the keeper's Heal through the shared shot process, and let the battle step issue it accepted
0302 Inferno and Chicken are cast: a fire zone that burns every owner, a chicken kept from fights by its timer accepted
0310 The hand's claimed-land rule for gold is the cursor's, not the action's accepted
0312 Create Imp follows the position permission and lands its imp as the hand does accepted
0334 A room built over claimed floor keeps the floor's mana, as DK2's rate word does accepted
0345 A stunned creature gets up for its type's ticks, then stands fifty turns from getting up accepted
0348 The get-up lasts the Getup animation, and a hit lengthens a stun accepted
0350 Build keeper spells only after their complete effect paths are read accepted
0352 The computer keeper casts Create Gold and Sight of Evil where DK2's does accepted
0357 Mana above the ceiling is clamped, not drained accepted
0373 A slap is counted for the slapped creature's owner, by the slap's arm accepted
0401 The slap's state moves: 67, 77 and 120 and their reaction accepted
0409 An unaffordable room routes to the stored gold slot, and a neutral room is ranked by its first slab accepted
0419 Start placed captives in their rooms and keep walled interiors distinct accepted
0445 The possessed creature recruits followers accepted
0446 Sneak, hypnosis and sniper mode are possession commands accepted
0460 Restore drop recovery and sleeping poses accepted
0468 A possessed creature's blow reaches objects, pillars, shots and bodies accepted
0469 A possessed worker digs, mines and claims accepted
0470 A gem face pays every strike and is never damaged accepted
0480 The stun counts from its first call, with the dazed stars accepted
0488 A creature getting up may look for a fight accepted
0581 Thunderbolt preserves bound captives and skips expired stun effects accepted
0582 Animate only accepted hand drops accepted
0608 reproduce the unpaid jackpot slap accepted
0612 a slap starts the speed-up of 0x0048CAD0 accepted
0613 gold dropped on a Treasury or Heart is stored on landing accepted
0616 a stored pick-up lifts what its slot holds; landing stuns whoever's creature accepted
0736 clear a collapsed target by the target word alone, and read the Imp's and the computer keeper's drops accepted
0747 every special's arm is built, and action 88 uses up any box accepted
0771 the Call to Arms flag's recall raises effect 330 every third pass accepted
0776 a slapped Horny departs accepted
0802 a possessed creature creeps, and a creeping creature is judged at a share of its distance accepted
0808 show pickup dust with local disappearance accepted
0814 preserve captive custody through healing and mood selection accepted
0815 the Lair drop remembers no job accepted

Doors and traps

Door and trap placement, manufacture, triggering and effects. System id doors-traps.

ADR Decision Status
0029 Selling a room returns half its cost, and the data said so all along accepted
0106 Doors and traps are verbatim ordered world state without behaviour accepted
0141 Construction state backs door and trap trigger counts accepted
0158 Doors enter the navigation byte accepted
0159 The rest of the door model: alliances, the lock command, the picked lock accepted
0214 A crate is carried to its blueprint: task kinds 9 and 10, states 34 to 37 accepted
0215 The job a creature is dropped on accepted
0231 A keeper places door and trap blueprints during play, and pays their gold at once accepted
0233 A door keeps the orientation it is made with accepted
0250 Door opening uses stored orientation and bypasses barricades accepted
0251 Build trap activation arithmetic before enabling automatic firing accepted
0318 A door met is a door fought, and a dead door leaves that turn accepted
0321 Traps fire when their shot is built, and the target's answer walks only to a trap accepted
0324 The StealGold arm's route test carries its own word, and routes through a foreign door accepted
0326 A trap's upkeep, its no-mana message, and the shots that damage it accepted
0329 Defer disarming with no identified fresh-game initiator in v1.70 accepted
0330 The Guard Post: its room, a patrol's visit and its report accepted
0331 The Alarm, Fear, Spike and Gas traps fire; the Boulder and the Jack In The Box wait accepted
0333 The Boulder rolls, strikes and wears as object process state 17 accepted
0337 The Jack In The Box springs a Jack that wears out walking to a heart and explodes accepted
0338 A Troll, Thief, Rogue or Guard reveals an enemy's hidden traps around it accepted
0340 A creature with nobody to fight attacks an enemy's revealed trap (scan D) accepted
0341 M7 leaves shot heights to M9 and the Boulder's slap to object slapping accepted
0381 A loose crate asks its blueprint before the shared latch accepted
0421 Draw placed doors and traps through the asset boundary accepted
0426 Draw the authored chain and lock on locked doors accepted
0573 A creature that cannot manufacture leaves the Workshop accepted
0574 Raw idle hands over to 89 on a later turn accepted
0615 the Jack neither looks for a fight nor can be attacked accepted
0627 a walking Jack resumes 273 at a whole route progress accepted
0654 a new room or blueprint sends the keeper's walkers back to choose again accepted
0679 a closed door pushes creatures off its tile, through the physical pass accepted
0680 a thing an imp holds is attached to the imp, at its point and turned half a turn accepted
0682 a creature on a closed door's push point is pushed toward an open side accepted
0683 line of sight passes an open door and a blueprint, as 0x004511A0 does accepted
0684 a set-down thing lies at the carrier's point, and the attachment runs in every state accepted
0820 share the possession flight predicate with trap selection accepted
0823 a loaded save keeps drawing a hidden secret door as wall accepted

Heroes

Hero parties, hero gates, tunnelling and hero behaviour. System id heroes.

ADR Decision Status
0108 Hero parties and effect generators are verbatim ordered world state accepted
0197 A hero party is raised by action 14 accepted
0216 A hero runs its standing job and a party walks behind its leader accepted
0218 A knocked-out hero leaves its party, and a knocked-out leader hands it on accepted
0221 A hero aims at the heart as DK2 does: a random heart tile, or its position accepted
0222 A hero worker tunnels, and a party leader lends it the errand accepted
0234 Every promotion rescales health, and the gate step-off is read accepted
0320 A collapsed gate is ruined, not removed, and a hero steps off its gate as read accepted
0344 A placed hero takes its record's Objective as its standing job accepted
0422 Start Unity campaigns with their player and party scripts accepted
0430 Keep waiting heroes' sub-tile destinations accepted
0433 Preserve follower movement inside its trailing tile accepted
0459 A tunneller's walks keep their destination within its own tile accepted
0490 A hero party stands on its spawn tile's corner accepted
0542 Preserve native hero-party ordering accepted
0617 preserve the Heart defender's target comparison and point route accepted
0619 preserve the reporting timeout and reject solid responder points accepted
0622 run the non-gate party arrival before hero activity accepted
0641 Preserve bank heights and idle movement after failed hero jobs accepted
0648 effect generators run, and every level starts with one accepted
0661 a tunneller's swing is action 1 on its own clip accepted
0673 the level start sweeps Hero Lair ground for trestles, with its draws accepted
0750 Heart pillars steer, neutrals steer with no route, a hero keeps its stop's self-point accepted
0751 the Heart centre's objects are walked, every non-Imp steers route-less and stops on a self-point accepted
0800 a hero's action-point walk is barred by its own finished walls, not its own rooms accepted

Computer keeper

The AI keeper's building, attack, defence and management decisions. System id computer-keeper.

ADR Decision Status
0160 Trigger actions 44 and 45 control saved world gates accepted
0244 The computer keeper is a delayed input source with its own random stream accepted
0245 Retain combat messages across the keeper observation boundary accepted
0246 Stamp state entry separately from battle-message dispatch accepted
0261 command-driven casualty priority accepted
0278 Connect the keeper's attack response: the message walk, the reservation and both event arms as commands accepted
0283 Connect the keeper's battle step: the fight flag, the emergency call and the spell roll as commands accepted
0284 Connect the keeper's retreat of the wounded as pick-up and drop commands accepted
0285 An imp claims outward from its keeper's floor in DK2's ring order, and a store sweeps in loose gold accepted
0298 Plan an attack from task 0: readiness grants as commands, a tunnel to the enemy's room, the call at the front accepted
0304 Task 7 bridges water and lava; a span must touch the builder's own floor accepted
0317 The keeper's training moves accepted
0327 Room messages 41–43 are retained, and the keeper builds or expands to them accepted
0335 The Hatchery finder posts 41–43, and a coop does not stock a hatchery accepted
0352 The computer keeper casts Create Gold and Sight of Evil where DK2's does accepted
0353 The keeper's remaining messages: mood, room ownership, threat and room producers accepted
0376 The keeper slaps on DK2's activity code and plans inside its record's build area accepted by 0612
0377 Trigger action 18 makes and breaks alliances accepted
0384 Task 7 waits on each tagged tile and ends on DK2's route test accepted
0387 Imps repair their keeper's damaged wall, and a work rate is truncated before it is scaled accepted
0394 The room planner searches from a room's stored position, in DK2's direction order accepted
0395 A searched room site gets its joining path first, and task 3 builds at its cursor accepted
0405 The keeper slaps on the last task kind; a repair is kind 16 accepted
0409 An unaffordable room routes to the stored gold slot, and a neutral room is ranked by its first slab accepted
0410 The nine lobby personalities load as DK2's setter loads them accepted
0412 The rescue selector posts its room messages, and a Prison's Activation is on from its first tile accepted
0413 The job-room finders post their remaining messages, and a Temple or Combat Pit holds one per rim tile accepted
0414 The corpse selections ask for a Graveyard, once a level for 41 accepted
0416 A researcher's Library is the Library finder's accepted
0445 The possessed creature recruits followers accepted
0530 A room tile is refused where a trap, a door or a rival's creature stands accepted
0561 The computer keeper lays traps and doors (0x005000A0) accepted
0577 The keepers' staging routes share one mesh, rebuilt whole accepted
0726 the computer keeper moves its prisoners accepted
0735 the computer keeper makes room for researchers and places creatures at their jobs accepted
0736 clear a collapsed target by the target word alone, and read the Imp's and the computer keeper's drops accepted
0743 the computer keeper uses its specials every tick accepted
0747 every special's arm is built, and action 88 uses up any box accepted

Campaign and triggers

Level scripts, triggers and actions, objectives, win and loss, campaign progress. System id campaign-triggers.

ADR Decision Status
0092 Trigger parameter views follow DKII.EXE reads, not editor labels accepted
0101 A level's placed THINGS become world contents, and three transcribed field meanings were wrong accepted
0102 Trigger flags and timers are level state, and the byte called Flag is an opcode accepted
0103 Action points are ordered world state, without an availability field accepted
0105 The area walker, and five area conditions read off our own tile grid accepted
0107 An action returns what its dispatcher returns, whether or not we perform it accepted
0108 Hero parties and effect generators are verbatim ordered world state accepted
0109 Eight player conditions are answered false, because the binary answers false accepted
0110 A player tree knows which player it is, and type 30 is that player's gold accepted
0113 Counting a keeper's creatures, and why the total excludes its workers accepted
0114 Player room conditions count instances and sum their size accepted
0115 Type 39 counts things in a rectangle, and two of its three selectors were misnamed accepted
0116 Type 47 asks who killed this keeper, and byte 00 is a player accepted
0121 Rank stalls by the walker that owns them, and take the four arms that read whole accepted
0122 Read condition type 64 and decline it until parties spawn accepted
0124 Build condition 70 for creatures; keep door and trap counts declined accepted
0125 Account for every trigger record a run never walks, and the frontier is 1.6% of it accepted
0126 Most of the campaign's script is waiting for the player, and that is measured accepted
0129 Record rooms from the player's room list, and refuse to invent their tiles accepted
0136 Action type 22 writes one tile, and its coordinates are one-based accepted
0137 Action type 1 creates a creature, and its coordinates are zero-based accepted
0144 Action type 17 is read, and deliberately not built accepted
0152 Creature trigger roots join the per-turn entity pass accepted
0160 Trigger actions 44 and 45 control saved world gates accepted
0161 Availability is mutable per-player world state accepted
0162 A game ends once: Status, the heart's fall, and the verdict accepted
0164 Melee lands: spFighting's two clocks, the approach, the answer, the heart accepted
0197 A hero party is raised by action 14 accepted
0204 Trigger events fire through the two filters accepted
0234 Every promotion rescales health, and the gate step-off is read accepted
0235 Trigger action 23 sets the level time limit, which counts down each turn accepted
0236 Trigger action 15 sets a hero's standing job accepted
0238 Without its record the possession bonus is 100, and the level time limit's gate is the window's focus accepted
0248 Build condition type 64, party members missing accepted
0265 Execute scripted portal arrivals through the shared arrival path accepted
0271 A portal creature waits out its Entrance animation, then steps off the hole accepted
0272 Weigh the portal's pick as DK2 does, boosting a new type accepted
0281 Availability accumulates; the dying window reads the attached room accepted
0311 The Prison enter hook fires creature event 7 once its claim takes accepted
0320 A collapsed gate is ruined, not removed, and a hero steps off its gate as read accepted
0344 A placed hero takes its record's Objective as its standing job accepted
0361 Creature trigger roots run before action points, newest first accepted
0363 Trigger action 22 sells a room tile and builds one accepted
0372 Trigger conditions 20 and 21 count moods accepted
0373 A slap is counted for the slapped creature's owner, by the slap's arm accepted
0374 Flag 128 is the level score in a condition accepted
0377 Trigger action 18 makes and breaks alliances accepted
0383 The trigger fields Q227 named accepted
0422 Start Unity campaigns with their player and party scripts accepted
0442 Restore room construction and ambient room life accepted
0460 Restore drop recovery and sleeping poses accepted
0476 A Portal arrival's entrance effect, animated mesh effects, and brighter additive beams accepted by 0492
0490 A hero party stands on its spawn tile's corner accepted
0495 Trigger action 20 hands over the Portal Gem, and its carrier sparkles accepted
0496 Scripted camera paths, the letterbox and subtitles; condition 72 waits for the path accepted
0498 The view plays a camera path on the simulation's tick accepted
0523 Trigger action 42 marks creatures in six world slots accepted
0538 Keep front-end progress in our own versioned file accepted
0547 Allies end games together, outside the campaign accepted
0548 The simulation keeps DK2's level statistics; the profile keeps the copy accepted
0549 The campaign win runs DK2's finale in the simulation; the view plays its requests accepted
0550 A restore does not repeat the level initialiser's trigger setup accepted
0556 A replay can continue from a DK2 capture's state: the controlled-input test accepted
0568 Trigger roots observe their turn's work accepted
0620 destroy the Heart through its authored effect and respect the supply opening accepted
0648 effect generators run, and every level starts with one accepted
0670 a bottom-panel click posts DK2's GUI-button action, which fires trigger event 53 accepted
0725 the Portal Gem keeps a position: made at its carrier's point, dropped on its tile centre accepted
0739 script walk/run and the tortured event accepted
0744 level scripts remove a creature without trace; a held object is not fetched accepted
0748 level scripts make objects; a level-placed Portal Gem is not loaded accepted
0749 a payday fires the keeper's pay-day event accepted
0760 a level script hands a room over and keeps its damage accepted
0767 the Mentor counts down a timed level, and world action 51 switches it accepted
0768 a creature's script glides every viewer's camera to the creature accepted
0770 the hand fires its slap and pick-up trigger events accepted
0814 preserve captive custody through healing and mood selection accepted

Camera and lighting

Camera modes and paths, fog of war, torches and the lighting model. System id camera-lighting.

ADR Decision Status
0076 Fog of war is simulation state, and it cost a hash bump accepted
0144 Action type 17 is read, and deliberately not built accepted
0391 Wall torches are a stateful presentation layer accepted
0475 The Heart's opening sequence: plug, burst, arches fading in accepted
0476 A Portal arrival's entrance effect, animated mesh effects, and brighter additive beams accepted by 0492
0478 Allow a small configurable extension to camera zoom-out accepted
0484 Publish selected classic point lights through tile-indexed buffers accepted
0487 Gather prepared light cells in native rolling order accepted
0492 The Heart plug's pieces, effect lights, and additive effect meshes at their texture accepted
0494 Wall flames use a frame-independent playback clock accepted
0496 Scripted camera paths, the letterbox and subtitles; condition 72 waits for the path accepted
0498 The view plays a camera path on the simulation's tick accepted
0501 Camera and creatures share a late draw clock accepted
0522 Lighting follows visual fidelity: Unity fill by default accepted
0531 Match ordinary camera movement to native input packets accepted
0683 line of sight passes an open door and a blueprint, as 0x004511A0 does accepted
0687 the draw clock runs one frame behind the tick clock on the worker path accepted
0740 torture conversion messages, reward 11 and the trough effect accepted
0768 a creature's script glides every viewer's camera to the creature accepted
0769 Torture Chamber and Casino torches follow the room's wall phase accepted
0771 the Call to Arms flag's recall raises effect 330 every third pass accepted
0818 possession colour changes consume transient creature notifications accepted
0819 complete the readable possession ability inputs and clocks accepted
0822 gate possession colour output until native enablement is established accepted

HUD and front end

The in-game panels, minimap, messages and cursors, and the front-end menus. System id hud-front-end.

ADR Decision Status
0104 Player gestures are translated outside Unity accepted
0193 A captive on a torture device, and the hand drop is state 77 accepted
0230 An enemy tortured to death tells its torturer's keeper one thing accepted
0295 A keeper's first non-worker arms its payday, and a late arrival skips one accepted
0497 One HUD that scales: DK2's interface design at any resolution proposed
0525 The bottom bar shows DK2's message tabs accepted
0526 A hand drop obeys DK2's drop gate accepted
0528 Show scripted tutorial dig guidance accepted
0532 Keep the state the four script-set HUD boxes read accepted
0534 A store's gold sparkles and lifts as DK2's Gold Pile 1 accepted
0535 Retain tutorial messages and honour their scripted presentation accepted
0538 Keep front-end progress in our own versioned file accepted
0539 Keep original menu metrics when replacing the font accepted
0548 The simulation keeps DK2's level statistics; the profile keeps the copy accepted
0553 Unity input is journaled, then moved into Presentation, then migrated accepted
0571 Manufacture orders count blueprints against crates only, per record at load accepted
0582 Animate only accepted hand drops accepted
0587 Interface text goes through one catalog, in the player's language accepted
0589 Cheats: DK2's phrases behind a visible entry box, and a tamper-evident record accepted
0621 keep hidden message tabs silent during camera paths accepted
0628 a prisoner arrives with its dying window left plus a tenth accepted
0663 the floating gold numbers of a room build and sale accepted
0664 a paid sale tests availability, and the other floating amounts accepted
0665 alpha and type-1 effect sprites take their tile's light; additive ones do not accepted
0670 a bottom-panel click posts DK2's GUI-button action, which fires trigger event 53 accepted
0773 the Battle tab's three buttons are built as DK2's menu 43 accepted
0774 the Battle tab's fly-in is the second reward tablet accepted
0805 the HUD's DK2 logic moves into DK2.Presentation as a draw list, so a Godot adapter can replace Unity's accepted
0809 let Level6a's opening torture tutorial speak without generic announcements accepted
0821 preserve possession HUD proportions on widescreens accepted

Audio

Sound effects, speech, music and their triggering. System id audio.

ADR Decision Status
0193 A captive on a torture device, and the hand drop is state 77 accepted
0230 An enemy tortured to death tells its torturer's keeper one thing accepted
0583 MPEG audio is decoded by NLayer, in memory, at load time accepted
0686 sound clips decode on worker threads, a level's sounds are decoded at load, and a late effect plays when ready accepted
0767 the Mentor counts down a timed level, and world action 51 switches it accepted
0772 sounds fade with DK2's QMixer distance mapping accepted
0774 the Battle tab's fly-in is the second reward tablet accepted
0809 let Level6a's opening torture tutorial speak without generic announcements accepted

Data formats

KWD, KLD, KMF, SDT, WAD and save files, and how we read them. System id data-formats.

ADR Decision Status
0007 Our own save format; DK2 save compatibility is not a goal accepted
0040 A level plays on its own VARIABLES, layered over the global table accepted
0050 The six anger fields are signed, and anger waits for its unit accepted by 0053
0075 The Hand of Evil holds a thing, not only a creature accepted
0085 Ten mechanics DK2 built and switched off, and the audit that could not see them accepted
0091 M1 closes on readable records, byte accountability and an executable corpus audit accepted
0101 A level's placed THINGS become world contents, and three transcribed field meanings were wrong accepted
0120 Condition type 29 is keeper-spell availability, tested strictly against 3 accepted
0344 A placed hero takes its record's Objective as its standing job accepted
0346 KWD writers preserve source images and require explicit templates accepted
0375 Creature records of any size; signed job-table words accepted
0390 A KMF clip is interpolated between its keys and timed by its descriptor accepted
0427 Sort translucent terrain triangles across materials accepted
0431 Sample classic creature clips into instance meshes accepted
0436 Play Chicken movement and visible melee actions accepted
0437 Play the Heart beat and spell-casting clips accepted
0447 Keep combat contact, facing and melee action lifetime accepted
0462 Keep stationary travellers on their original standing pose accepted
0491 A level's VARIABLES id 77 sets creature definition fields accepted
0598 The melee hold ends on the poll turn accepted
0647 a loose Chicken roams (object process 10) accepted
0724 multiplayer security: lockstep through a Steam relay that never holds game data accepted
0748 level scripts make objects; a level-placed Portal Gem is not loaded accepted

Art and assets

Models, textures, animations, effects and the asset pipeline. System id art-assets.

ADR Decision Status
0034 An asset is named by a logical key, and a provider chain resolves it accepted
0035 Rendering goes through one view, and the harness draws it as text accepted
0242 Modern assets re-express the original: preserve design, increase fidelity accepted
0390 A KMF clip is interpolated between its keys and timed by its descriptor accepted
0391 Wall torches are a stateful presentation layer accepted
0392 A room tile carries the wall pieces DK2's chooser picks for its sides accepted
0398 The modern Imp looks like the approved concepts and moves like the shipped mesh accepted
0399 The Imp is right-handed; a left-handed variant shares its mesh and rig accepted
0404 A manufacturer moves among the Workshop's machines accepted
0408 The classic look is read from the player's install, and both looks render through URP accepted
0419 Start placed captives in their rooms and keep walled interiors distinct accepted
0420 Attach torture victims to devices and supply their movement obstacles accepted
0421 Draw placed doors and traps through the asset boundary accepted
0426 Draw the authored chain and lock on locked doors accepted
0427 Sort translucent terrain triangles across materials accepted
0431 Sample classic creature clips into instance meshes accepted
0433 Preserve follower movement inside its trailing tile accepted
0436 Play Chicken movement and visible melee actions accepted
0437 Play the Heart beat and spell-casting clips accepted
0438 Complete supported classic animation lifecycles accepted
0442 Restore room construction and ambient room life accepted
0447 Keep combat contact, facing and melee action lifetime accepted
0449 Restore claim positioning and ownership effects accepted
0460 Restore drop recovery and sleeping poses accepted
0462 Keep stationary travellers on their original standing pose accepted
0463 Present the Heart's health and mana pulse from original resources accepted
0464 Respect the original effect sprite completion flag accepted
0465 Restore the original wall reinforcement completion effect accepted
0474 The Heart's mana sparkles rise to the Arch Pillars, an owner adjustment accepted
0477 Foot dust on a Dirt Path accepted
0492 The Heart plug's pieces, effect lights, and additive effect meshes at their texture accepted
0493 Effect sprites take the lights and their descriptor's size accepted
0494 Wall flames use a frame-independent playback clock accepted
0514 Dig and mining actions end on a stored animation clock accepted
0515 Idle actions play their clip; installs draw their coin accepted
0520 native wet and bloody footprint counters and parent sprites accepted
0524 Rooms run flames round their rims accepted
0529 Use native room-capture particles in gameplay accepted
0534 A store's gold sparkles and lifts as DK2's Gold Pile 1 accepted
0538 Keep front-end progress in our own versioned file accepted
0566 Waiting heroes keep their idle action across a failed job accepted
0586 Complete the Mistress bed exit through state 84 accepted
0595 reproduce creature burning and its simulation draws accepted
0596 request shot effects without changing gameplay accepted
0597 complete the effect-engine paths used by shots accepted
0598 The melee hold ends on the poll turn accepted
0599 draw procedural lightning and electrified creatures accepted
0600 draw shot bodies through the existing asset and effect adapters accepted
0601 present burning and local Inferno camera impulses accepted
0605 fill wall corners when reinforcement finishes accepted
0618 close terrain faces beside scanned liquids accepted
0641 Preserve bank heights and idle movement after failed hero jobs accepted
0665 alpha and type-1 effect sprites take their tile's light; additive ones do not accepted
0685 a manufacturer plays action 32's art while it hammers accepted
0688 the HUD's fonts, cursor sheets and counter digits load at startup, the later art decodes in the background, and the code compiles on a worker accepted

Unity presentation

The Unity adapter, rendering, terrain meshes and the presentation boundary. System id presentation-unity.

ADR Decision Status
0002 Simulation independent of Unity, enforced at compile time accepted
0034 An asset is named by a logical key, and a provider chain resolves it accepted
0035 Rendering goes through one view, and the harness draws it as text accepted
0036 Unity 6 LTS, and the adapter is nine methods superseded by 0824
0104 Player gestures are translated outside Unity accepted
0392 A room tile carries the wall pieces DK2's chooser picks for its sides accepted
0408 The classic look is read from the player's install, and both looks render through URP accepted
0411 The renderer frame is X east, Y up, Z north, and the map is no longer mirrored accepted
0419 Start placed captives in their rooms and keep walled interiors distinct accepted
0420 Attach torture victims to devices and supply their movement obstacles accepted
0433 Preserve follower movement inside its trailing tile accepted
0437 Play the Heart beat and spell-casting clips accepted
0438 Complete supported classic animation lifecycles accepted
0444 The simulation is profiled through markers it opens itself accepted
0455 The adapter's run-time shaders are referenced from Resources accepted
0456 The presenter runs its tile pass only when the tiles' inputs changed accepted
0457 Terrain chunk rebuilds are spread over frames accepted
0458 Ticks run on a worker thread after the frame is presented accepted
0460 Restore drop recovery and sleeping poses accepted
0477 Foot dust on a Dirt Path accepted
0478 Allow a small configurable extension to camera zoom-out accepted
0482 ? Project animated creature silhouettes through a shared GPU atlas accepted
0484 Publish selected classic point lights through tile-indexed buffers accepted
0487 Gather prepared light cells in native rolling order accepted
0492 The Heart plug's pieces, effect lights, and additive effect meshes at their texture accepted
0493 Effect sprites take the lights and their descriptor's size accepted
0520 native wet and bloody footprint counters and parent sprites accepted
0522 Lighting follows visual fidelity: Unity fill by default accepted
0531 Match ordinary camera movement to native input packets accepted
0537 Gate performance on individual rendered frames accepted
0540 Prefer Vulkan on supported desktop platforms accepted
0553 Unity input is journaled, then moved into Presentation, then migrated accepted
0586 Complete the Mistress bed exit through state 84 accepted
0618 close terrain faces beside scanned liquids accepted
0641 Preserve bank heights and idle movement after failed hero jobs accepted
0686 sound clips decode on worker threads, a level's sounds are decoded at load, and a late effect plays when ready accepted
0687 the draw clock runs one frame behind the tick clock on the worker path accepted
0688 the HUD's fonts, cursor sheets and counter digits load at startup, the later art decodes in the background, and the code compiles on a worker accepted
0689 a second copy of the level ticks on a worker while the level loads amended
0690 standalone players are built with IL2CPP superseded by 0824
0691 a release player records its own frames, and a tester package carries it to other hardware accepted
0692 the HUD and the full camera draw once in the first frames of play accepted
0694 the frame reads a presented copy of the world while the worker ticks the live one accepted
0695 the frame allocates less than half of what it did, and the tick thread touches no view state accepted
0696 the tick thread's garbage is counted and cut by three quarters, and a chunk's geometry is built off the frame accepted
0805 the HUD's DK2 logic moves into DK2.Presentation as a draw list, so a Godot adapter can replace Unity's accepted
0808 show pickup dust with local disappearance accepted

Godot presentation

The Godot adapter, its toolchain and editor tooling, and its side of the presentation boundary. System id presentation-godot.

ADR Decision Status
0810 the Godot toolchain: one version pin, side-by-side editors, Godot AI through its own dock accepted
0813 Godot rendering uses modern engine features accepted
0818 possession colour changes consume transient creature notifications accepted
0819 complete the readable possession ability inputs and clocks accepted
0821 preserve possession HUD proportions on widescreens accepted
0822 gate possession colour output until native enablement is established accepted
0823 a loaded save keeps drawing a hidden secret door as wall accepted
0824 retire the Unity adapter at Godot parity accepted

Tooling and process

Research method, the binary and its tools, captures, the harness and verification. System id tooling-process.

ADR Decision Status
0003 Clean-room use of reference projects amended by 0041
0005 .slnx solution format accepted
0008 YamlDotNet for scenario files (tooling only) accepted
0031 A bridge reverts to the hazard it spanned, and the MAP record says which accepted
0037 The 1999 manual is a corroborating source, never an overriding one accepted
0046 DKII.EXE may be decompiled; its output may not enter the repository accepted
0048 A creature has health and a hunger clock accepted by 0049
0052 Only a keeper is staffed, and the test suite stops calling the hero side "Keeper" accepted
0064 The Prison: capture, and the half of carrying that was missing accepted
0080 A Flame name may be cited in a document, and never appears in code accepted
0100 A test that needs the game data must skip without it, not pass accepted
0111 Player fields are read from DK2's own debug dumper, and type 32 is mana accepted
0117 Live captures compare by event set and stored-stamp alignment accepted
0118 An event the other run stopped before is untested, not divergent accepted
0119 Compare a timer's stored stamps, not the turn the probe noticed them accepted
0123 Measure what a decline forecloses, and stop ranking the frontier by declines accepted
0126 Most of the campaign's script is waiting for the player, and that is measured accepted
0128 A captured task-pool log replays as input frames accepted
0129 Record rooms from the player's room list, and refuse to invent their tiles accepted
0130 Two live captures, and most of what ADR-0128 assumed was wrong accepted
0138 Four gates on the collapsed window, not one accepted
0150 A scenario states its timings in game seconds, and asserts them accepted
0158 Doors enter the navigation byte accepted
0237 The verifier's findings: possession is ×1.6, and the Prison door sits right of centre accepted
0264 A miner puts down what it cannot hold accepted
0290 Function records are the one home for per-function knowledge accepted
0344 A placed hero takes its record's Objective as its standing job accepted
0479 Room ticks between the creatures and the players accepted
0481 The original's own functions are run as a test oracle accepted
0544 A withdrawal's failed room pick ends it accepted
0552 Autonomous playtesting extends the scenario harness; controllers are input sources accepted
0556 A replay can continue from a DK2 capture's state: the controlled-input test accepted
0558 The resync copies doors, traps, crates, the manufacture list and crate trips accepted
0560 The resync copies the trigger banks and every creature, and its pairs drive the packets accepted
0562 A miner that reaches its seam full leaves on its first tick in state 26 accepted
0563 State 26 checks hands, store and pile on the call that begins its next strike accepted
0566 Waiting heroes keep their idle action across a failed job accepted
0567 The resync copies DK2's fight-return stamp accepted
0569 The resync can leave named parts ours accepted
0570 The replay can hold a refused door or trap placement until the tile is the keeper's accepted
0578 The harness hashes the world while the keepers think accepted
0580 The states a flight ends through hold a turn each accepted
0584 A creature that gave up a chase passes over retreating candidates for 60 turns accepted
0590 Keep the retreat chase count across approach entries accepted
0592 A fighter with no target looks for a victim before it celebrates accepted
0594 The step back is a slide, as DK2 spends its impulse accepted
0598 The melee hold ends on the poll turn accepted
0602 Every creature turn uses the loader's per-tick rate accepted
0609 Only a raiser or reporter on its way or there refuses another alarm accepted
0610 preserve the combat approach reselection boundary accepted
0616 a stored pick-up lifts what its slot holds; landing stuns whoever's creature accepted
0625 place ordinary room positions on their own slabs accepted
0626 preserve native neighbour order in triangle searches accepted
0633 schedule packet playback by record order accepted
0635 a Create Imp makes its imp through its shot accepted
0637 retain the displaced Portal-exit scan reference accepted
0642 one confidence scale for notes, records and code accepted
0643 the wiki is indexed by a closed list of systems and generated in CI accepted
0660 a function record can be PARTIAL, and an ADR in force is accepted accepted
0783 original DK2 defects are built faithfully now and fixed only once the game is complete accepted
0810 the Godot toolchain: one version pin, side-by-side editors, Godot AI through its own dock accepted

Legal

Licences, clean-room rules and what may be reused or redistributed. System id legal.

ADR Decision Status
0003 Clean-room use of reference projects amended by 0041
0041 The project is GPLv3, and the notice is enforced by a test accepted
0046 DKII.EXE may be decompiled; its output may not enter the repository accepted
0824 retire the Unity adapter at Godot parity accepted

Numbers not used

0093, 0094, 0095, 0096, 0097, 0098, 0099, 0239, 0249, 0252, 0253, 0254, 0255, 0256, 0257, 0258, 0259, 0267, 0268, 0269, 0307, 0448, 0506, 0507, 0508, 0511, 0631, 0655, 0657, 0658, 0659, 0777, 0778, 0779, 0804, 0816, 0817. These numbers were never given to an ADR.

Clone this wiki locally