Skip to content

Commit

Permalink
чиним рантайм ии-модуля рига (TauCetiStation#12569)
Browse files Browse the repository at this point in the history
* rig_ai fix

* Update code/modules/clothing/spacesuits/rig/modules/ai.dm

* Update code/modules/clothing/spacesuits/rig/modules/ai.dm
  • Loading branch information
NinjaPikachuska authored Dec 8, 2023
1 parent 9909597 commit b52cc53
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions code/modules/clothing/spacesuits/rig/modules/ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b52cc53

Please sign in to comment.