Law Manager Fix (#18421)

* Changelog

* Bugfix

* Random documentation update

* fix indent

* deathsquid

---------

Co-authored-by: Ben10083 <Ben10083@users.noreply.github.com>
This commit is contained in:
Ben
2024-02-15 13:52:29 -05:00
committed by GitHub
parent f670af2938
commit 35c5254e4e
3 changed files with 65 additions and 16 deletions
@@ -12,18 +12,19 @@
max_damage = 50
w_class = ITEMSIZE_NORMAL
enrolled = DEVICE_PRIVATE
var/mob/living/silicon/computer_host // Thing that contains this computer. Used for silicon computers
/// Thing that contains this computer. Used for silicon computers
var/mob/living/silicon/computer_host
looping_sound = FALSE
/obj/item/modular_computer/silicon/ui_host()
. = computer_host
/obj/item/modular_computer/silicon/Initialize(mapload)
. = ..()
if(istype(loc, /mob/living/silicon))
computer_host = loc
else
return INITIALIZE_HINT_QDEL
. = ..()
/obj/item/modular_computer/silicon/Destroy()
computer_host = null
@@ -31,7 +32,7 @@
GC_TEMPORARY_HARDDEL
/obj/item/modular_computer/silicon/computer_use_power(power_usage)
// If we have host like AI, borg or pAI we handle there power
// If we have host like AI, borg or pAI we handle their power
if(computer_host)
// If host is borg, we use power from it's cell, like anyone other module
if(istype(computer_host, /mob/living/silicon/robot))