mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* Ports stuff Ports a lot of stuff from TG, some of it might even work! * Should fix the failed check Should fix the failed check * Allows phones to use the ID card program and aux card slot Allows phones to use one of the two useful programs * Changes preset stuff Removes the old syndicate tablet preset with the nukie one and adds command and atmos phone presets. Replaces all head tablets with phones and fixes atmos techs starting with tablets. * Fixes secureye icon and comms agents not being able to download apps Does as it says * Fixes the build error cant code Co-authored-by: Jamie D <993128+JamieD1@users.noreply.github.com>
19 lines
1.1 KiB
Plaintext
19 lines
1.1 KiB
Plaintext
// Events are sent to the program by the computer.
|
|
// Always include a parent call when overriding an event.
|
|
|
|
// Called when the ID card is removed from computer. ID is removed AFTER this proc.
|
|
/datum/computer_file/program/proc/event_idremoved(background)
|
|
return
|
|
|
|
// 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 an \"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."))
|