diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm index feff637e6b1..4746e199ffc 100644 --- a/code/modules/mob/living/silicon/pai/pai.dm +++ b/code/modules/mob/living/silicon/pai/pai.dm @@ -541,6 +541,7 @@ //pie.status_flags |= PASSEMOTES held.put_in_active_hand(pie) pie.icon_state = "pai-[icon_state]" + pie.item_state = "pai-[icon_state]" pie.icon_override = 'icons/mob/in-hand/paiheld.dmi' return diff --git a/code/modules/mob/living/silicon/pai/software_modules.dm b/code/modules/mob/living/silicon/pai/software_modules.dm index e79d5ed2b19..bb196117d4c 100644 --- a/code/modules/mob/living/silicon/pai/software_modules.dm +++ b/code/modules/mob/living/silicon/pai/software_modules.dm @@ -559,6 +559,16 @@ var/data[0] var/mob/living/held = user.loc + var/count = 0 + + // Find the carrier + while(!istype(held, /mob/living)) + if(!held || !held.loc || count > 6) + //For a runtime where M ends up in nullspace (similar to bluespace but less colourful) + //src << "You are not being carried by anyone!" + return 0 + held = held.loc + count++ user << "held" if(istype(held, /mob/living)) data["holder"] = held @@ -566,8 +576,8 @@ data["oxy"] = "[held.getOxyLoss() > 50 ? "" : ""][held.getOxyLoss()]" data["tox"] = "[held.getToxLoss() > 50 ? "" : ""][held.getToxLoss()]" data["burn"] = "[held.getFireLoss() > 50 ? "" : ""][held.getFireLoss()]" - data["temp"] = "[held.bodytemperature-T0C]°C ([held.bodytemperature*1.8-459.67]°F" - + data["temp"] = "[held.bodytemperature-T0C]°C ([held.bodytemperature*1.8-459.67]°F)" + data["infected"] = 0 if (held.viruses) data["infected"] = 1 var/virus[0] @@ -589,7 +599,7 @@ ui = nanomanager.try_update_ui(user, user, id, ui,data , force_open) if(!ui) // Don't copy-paste this unless you're making a pAI software module! - ui = new(user, user, id, "pai_bioscan.tmpl", "Host Bioscan", 450, 600) + ui = new(user, user, id, "pai_bioscan.tmpl", "Host Bioscan", 450, 450) ui.set_initial_data(data) ui.open() - ui.set_auto_update(1) \ No newline at end of file + //.set_auto_update(1) \ No newline at end of file diff --git a/icons/mob/in-hand/paiheld.dmi b/icons/mob/in-hand/paiheld.dmi index 042d4acebf3..7a646ebf8c2 100644 Binary files a/icons/mob/in-hand/paiheld.dmi and b/icons/mob/in-hand/paiheld.dmi differ diff --git a/nano/templates/pai_bioscan.tmpl b/nano/templates/pai_bioscan.tmpl index 2dd43556856..c68aafd9040 100644 --- a/nano/templates/pai_bioscan.tmpl +++ b/nano/templates/pai_bioscan.tmpl @@ -25,7 +25,7 @@ code/modules/mob/living/silicon/pai/software_modules.dm
Type : {{:value.type}} Stage: {{:value.stage}} / {{:value.stagemax}} - Possible Cure: {{:value.cure}} + Possible Cure or Antigen: {{:value.cure}}