mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-18 03:21:13 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user