From 2b7edf4e094970ddb95d460bdf97041f63270e4b Mon Sep 17 00:00:00 2001 From: boy2mantwicethefam <41342767+boy2mantwicethefam@users.noreply.github.com> Date: Fri, 22 Sep 2023 09:35:21 +0300 Subject: [PATCH] Fixes silicons not having access to malfunctiong AI stats (#35022) * fixes * Move this to /mob/living instead. --- code/datums/gamemode/role/malf/malf.dm | 2 +- code/modules/mob/living/carbon/human/human.dm | 5 ----- code/modules/mob/living/living.dm | 8 ++++++++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/code/datums/gamemode/role/malf/malf.dm b/code/datums/gamemode/role/malf/malf.dm index 5b2e5b318a8..003dcadc918 100644 --- a/code/datums/gamemode/role/malf/malf.dm +++ b/code/datums/gamemode/role/malf/malf.dm @@ -101,7 +101,7 @@ Once done, you will be able to interface with all systems, notably the onboard n /datum/role/malfAI/StatPanel() stat(null, text("APCs hacked: [apcs.len]")) stat(null, text("APC hack limit: [currently_hacking_apcs.len]/[apc_hacklimit]")) - stat(null, text("Machine hack limit: [currently_hacking_machines.len]/[apcs.len]")) //Machine limit is equal to APCs hacked + stat(null, text("Machine hack limit: [currently_hacking_machines.len]/[apcs.len + 1]")) //Machine limit is equal to APCs hacked, and +1 from innate malf AI hacking slot stat(null, text("Processing power per minute: [apcs.len * apc_process_power * 30]")) // 0.03 * 30 (process ticks, a tick is ~2 seconds) //////////////////////////////////////////////// diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 73c29cc7293..5a3e7533daa 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -284,11 +284,6 @@ if(R.activated) stat("\The [R.name]", "Modules: [english_list(R.modules)]") - if (mind) - for (var/role in mind.antag_roles) - var/datum/role/R = mind.antag_roles[role] - stat(R.StatPanel()) - /mob/living/carbon/human/attack_slime(mob/living/carbon/slime/M as mob) M.unarmed_attack_mob(src) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 5dbfb176d88..3c49e9c32fd 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -1919,3 +1919,11 @@ Thanks. if(B.host_brain.ckey) to_chat(src, "You send a punishing spike of psychic agony lancing into your host's brain.") to_chat(B.host_brain, "Horrific, burning agony lances through you, ripping a soundless scream from your trapped mind!") + +/mob/living/Stat() + ..() + if(statpanel("Status")) + if(mind) + for(var/role in mind.antag_roles) + var/datum/role/R = mind.antag_roles[role] + stat(R.StatPanel())