diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-03 17:39:24 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-03 17:39:24 +0300 |
| commit | 4b9277258224ab846b84cafe1d6a3b91e29a05c5 (patch) | |
| tree | 4f830c515d6a202d87122f95741235be4e30e71d /crates/fparkan-runtime/src/mobile_budget.rs | |
| parent | c85b69296f5349a728e28e308c7d71b367dc6ac1 (diff) | |
| download | fparkan-4b9277258224ab846b84cafe1d6a3b91e29a05c5.tar.xz fparkan-4b9277258224ab846b84cafe1d6a3b91e29a05c5.zip | |
feat(game): enable powered camouflage in the cockpit
Diffstat (limited to 'crates/fparkan-runtime/src/mobile_budget.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/mobile_budget.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/crates/fparkan-runtime/src/mobile_budget.rs b/crates/fparkan-runtime/src/mobile_budget.rs index fb8dad48..6f778725 100644 --- a/crates/fparkan-runtime/src/mobile_budget.rs +++ b/crates/fparkan-runtime/src/mobile_budget.rs @@ -150,24 +150,6 @@ pub(super) fn weapon_update( Ok(()) } -pub(super) fn passive_device_rate( - device: &EffectiveControlDevice, - dt: f32, -) -> Result<f32, ControlResourceAccessError> { - if device.native_word_50_bits != Some(0x2000) { - return Err(ControlResourceAccessError::UnsupportedField { - factory_tag: 10, - field: "active mode +0x50", - }); - } - Ok(-checked_control_product( - 10, - "passive device upkeep", - dt, - control_device_budget_descriptor_float(device, 8, "passive device rate")?, - )?) -} - pub(super) fn unmodeled_motion_rate() -> f32 { // shortcut: omit demand where the live CTL state has not been recovered. 0.0 |
