diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-26 02:10:34 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-26 02:10:34 +0300 |
| commit | fd0c4eb23337953895ec3b7ac23178b495128930 (patch) | |
| tree | 6dd2be86a37b99f8c3b533f781760acdc94f7543 /crates/fparkan-binary/Cargo.toml | |
| parent | 19278662be83d3e0db1b88d1fad664000c646afc (diff) | |
| download | fparkan-fd0c4eb23337953895ec3b7ac23178b495128930.tar.xz fparkan-fd0c4eb23337953895ec3b7ac23178b495128930.zip | |
fix(behavior): exclude depleted objects from clan resources
Apply the original Behavior resource distributor's 0xfffe state guard before resource callbacks in both passes. Keep the object, distributor row, shares and previous scratch words intact. Move the two-pass driver out of lib.rs into resource_distribution.rs without changing its allocation arithmetic.
The GOG Behavior.dll RVA 0x19e80 oracle preserves seeded scratch fields and performs only lookup/state callbacks for a depleted object. The licensed stock mission-19 raid reduces clan power output from 10.07 to 10 per second after bunker depletion while retaining its live world object and distributor entry. The small 0.07 contribution is below the window title's display precision.
Verified the stock raid in the game window with the hero at the starting position: bunker root reaches zero at 329760 ms, Attack finishes and queued retreat begins. Destruction visuals and other Control lifecycle paths remain incomplete; this does not establish whole-mission parity.
Validation: cargo fmt --all -- --check; cargo check --workspace; cargo test --workspace; release build; focused Rust and licensed-stock tests; native DLL oracle; all 29 stock missions at --sim-report 900 (existing motion_factory_5 stub allowed). No new unsupported commands or damage errors, and world summaries match the preceding commit.
Diffstat (limited to 'crates/fparkan-binary/Cargo.toml')
0 files changed, 0 insertions, 0 deletions
