mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-24 08:31:54 +00:00
* Removes ID computer parts (Removes computer hardware) * Removes missed file * oop Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Co-authored-by: tastyfish <crazychris32@gmail.com>
15 lines
988 B
Plaintext
15 lines
988 B
Plaintext
// Events are sent to the program by the computer.
|
|
// Always include a parent call when overriding an event.
|
|
|
|
// Called when the computer fails due to power loss. Override when program wants to specifically react to power loss.
|
|
/datum/computer_file/program/proc/event_powerfailure(background)
|
|
kill_program(forced = TRUE)
|
|
|
|
// Called when the network connectivity fails. Computer does necessary checks and only calls this when requires_ntnet_feature and similar variables are not met.
|
|
/datum/computer_file/program/proc/event_networkfailure(background)
|
|
kill_program(forced = TRUE)
|
|
if(background)
|
|
computer.visible_message(span_danger("\The [computer]'s screen displays a \"Process [filename].[filetype] (PID [rand(100,999)]) terminated - Network Error\" error"))
|
|
else
|
|
computer.visible_message(span_danger("\The [computer]'s screen briefly freezes and then shows \"NETWORK ERROR - NTNet connection lost. Please retry. If problem persists contact your system administrator.\" error."))
|