Fixes silicons not having access to malfunctiong AI stats (#35022)

* fixes

* Move this to /mob/living instead.
This commit is contained in:
boy2mantwicethefam
2023-09-22 09:35:21 +03:00
committed by GitHub
parent 430d9c0949
commit 2b7edf4e09
3 changed files with 9 additions and 6 deletions

View File

@@ -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)
////////////////////////////////////////////////

View File

@@ -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)

View File

@@ -1919,3 +1919,11 @@ Thanks.
if(B.host_brain.ckey)
to_chat(src, "<span class='danger'>You send a punishing spike of psychic agony lancing into your host's brain.</span>")
to_chat(B.host_brain, "<span class='danger'><FONT size=3>Horrific, burning agony lances through you, ripping a soundless scream from your trapped mind!</FONT></span>")
/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())