From b52cc53705d38d2008427a0de1cf654aab41cbfd Mon Sep 17 00:00:00 2001 From: NinjaPikachuska <89906909+NinjaPikachuska@users.noreply.github.com> Date: Fri, 8 Dec 2023 12:40:32 +0300 Subject: [PATCH] =?UTF-8?q?=D1=87=D0=B8=D0=BD=D0=B8=D0=BC=20=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D1=82=D0=B0=D0=B9=D0=BC=20=D0=B8=D0=B8-=D0=BC=D0=BE?= =?UTF-8?q?=D0=B4=D1=83=D0=BB=D1=8F=20=D1=80=D0=B8=D0=B3=D0=B0=20(#12569)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * rig_ai fix * Update code/modules/clothing/spacesuits/rig/modules/ai.dm * Update code/modules/clothing/spacesuits/rig/modules/ai.dm --- .../modules/clothing/spacesuits/rig/modules/ai.dm | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/code/modules/clothing/spacesuits/rig/modules/ai.dm b/code/modules/clothing/spacesuits/rig/modules/ai.dm index 84bcb3a63c81..a2a17e39a2dc 100644 --- a/code/modules/clothing/spacesuits/rig/modules/ai.dm +++ b/code/modules/clothing/spacesuits/rig/modules/ai.dm @@ -346,15 +346,14 @@ var/obj/item/rig_module/chem_dispenser/chem_disp = holder.find_module(/obj/item/rig_module/chem_dispenser) var/obj/item/rig_module/selfrepair/adv/repairModule = holder.find_module(/obj/item/rig_module/selfrepair/adv) - if(!chem_disp && !repairModule) - return - - for(var/obj/item/organ/external/BP in H.bodyparts) - if(BP.is_robotic()) - if(BP.brute_dam || BP.burn_dam) - if(!repairModule.active) - repairModule.activate() + if(repairModule) + for(var/obj/item/organ/external/BP in H.bodyparts) + if(BP.is_robotic() && (BP.brute_dam || BP.burn_dam)) + repairModule.activate() + break + if(!chem_disp) + return if(H.getOxyLoss() > 40 && H.species != VOX) if(try_inject(H, chem_disp, list("dexalin plus", "dexalin", "inaprovaline", "tricordrazine"))) return