Skip to content

Commit

Permalink
ready to go
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexanx committed Feb 9, 2024
1 parent f4c52f1 commit 75dffa9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@
return
if(tesla_link)
tesla_link.enabled = 1
var/issynth = issilicon(user) // Robots and AIs get different activation messages.
var/issynth = FALSE
if((user.is_species(SPECIES_IPC) && istype(src, /obj/item/modular_computer/ecs)) || issilicon(user))
issynth = TRUE // Robots and AIs and IPCs get different activation messages.
if(damage > broken_damage)
if(issynth)
to_chat(user, "You send an activation signal to \the [src], but it responds with an error code. It must be damaged.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
if(enabled)
bsod = 1
update_icon()
to_chat(usr, "You press a hard-reset button on \the [src]. It displays a brief debug screen before shutting down.")
if((usr.is_species(SPECIES_IPC) && istype(src, /obj/item/modular_computer/ecs)))
to_chat(usr, "You send signal for a hard-reset on \the [src].")
else
to_chat(usr, "You press a hard-reset button on \the [src]. It displays a brief debug screen before shutting down.")
shutdown_computer(FALSE)
spawn(2 SECONDS)
bsod = 0
Expand Down
5 changes: 5 additions & 0 deletions code/modules/organs/internal/exonet_connection_system.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
return
if(owner.stat == DEAD)
return
if(!computer)
return
if(computer.battery_module.battery.charge < (computer.battery_module.battery.maxcharge))
transfer_charge()

Expand Down Expand Up @@ -61,6 +63,9 @@


/obj/item/organ/internal/ecs/proc/exonet(mob/user)
if(!computer)
to_chat(user, "<span class='warning'>You have no exonet connection system installed</span>")
return
if(!computer.enabled && computer.screen_on)
return computer.turn_on(user)
switch(alert("Open Terminal or interact with it?", "Open Terminal or interact with it?", "Interact", "Terminal", "Emergency Shutdown"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,8 @@

if(R.is_stump() || R.is_broken() || !R)
return
if(!enter)
to_chat(usr, "<span class='warning'>You have no exonet connection port</span>")
return
else
enter.exonet(src)

0 comments on commit 75dffa9

Please sign in to comment.