From 014b317ce99b33082af3696db3479a7d037c72e2 Mon Sep 17 00:00:00 2001 From: meiqiu <119494143+MEIQIUawa@users.noreply.github.com> Date: Thu, 11 Jun 2026 19:36:31 +0800 Subject: [PATCH] removed the deprecated unit ammo rule/system [v8 Build 158] Completely removed the deprecated unit ammo rule/system. Any mods using this system will break. --- scripts/coreMindustry/variables.kts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/coreMindustry/variables.kts b/scripts/coreMindustry/variables.kts index b3cf5e7f..2ac762f0 100644 --- a/scripts/coreMindustry/variables.kts +++ b/scripts/coreMindustry/variables.kts @@ -96,7 +96,6 @@ registerVarForType().apply { registerChild("health", "当前血量") { it.health } registerChild("maxHealth", "最大血量") { it.maxHealth } registerChild("shield", "护盾值") { it.shield } - registerChild("ammo", "弹药") { if (state.rules.unitAmmo) it.shield else resolveVarChild(it, "maxAmmo")?.unwrap() } registerChild("maxAmmo", "弹药容量") { it.type.ammoCapacity } } @@ -109,4 +108,4 @@ listen { listen(EventType.Trigger.update) { if (state.isPaused) pauseTime += Time.delta / 60 -} \ No newline at end of file +}