diff --git a/code/modules/modular_computers/computers/modular_computer/core.dm b/code/modules/modular_computers/computers/modular_computer/core.dm index c94b0610f3c..4ec873f74ec 100644 --- a/code/modules/modular_computers/computers/modular_computer/core.dm +++ b/code/modules/modular_computers/computers/modular_computer/core.dm @@ -68,6 +68,7 @@ hard_drive.store_file(prog) /obj/item/modular_computer/proc/handle_verbs() + verbs += /obj/item/modular_computer/proc/force_shutdown if(card_slot) if(card_slot.stored_card) verbs += /obj/item/modular_computer/proc/eject_id diff --git a/code/modules/modular_computers/computers/modular_computer/interaction.dm b/code/modules/modular_computers/computers/modular_computer/interaction.dm index b0a856f99d2..3366e98a040 100644 --- a/code/modules/modular_computers/computers/modular_computer/interaction.dm +++ b/code/modules/modular_computers/computers/modular_computer/interaction.dm @@ -1,3 +1,11 @@ +/obj/item/modular_computer/proc/force_shutdown() + set name = "Force Shutdown" + set category = "Object" + set src in view(1) + + to_chat(usr, SPAN_NOTICE("You long-press the power button on \the [src], causing it to forcibly power off.")) + shutdown_computer(TRUE) + /obj/item/modular_computer/proc/eject_id() set name = "Eject ID" set category = "Object" diff --git a/html/changelogs/nauticall-forced_shutdown.yml b/html/changelogs/nauticall-forced_shutdown.yml new file mode 100644 index 00000000000..5432f730089 --- /dev/null +++ b/html/changelogs/nauticall-forced_shutdown.yml @@ -0,0 +1,58 @@ +################################ +# Example Changelog File +# +# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. +# +# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) +# When it is, any changes listed below will disappear. +# +# Valid Prefixes: +# bugfix +# - (fixes bugs) +# wip +# - (work in progress) +# qol +# - (quality of life) +# soundadd +# - (adds a sound) +# sounddel +# - (removes a sound) +# rscadd +# - (adds a feature) +# rscdel +# - (removes a feature) +# imageadd +# - (adds an image or sprite) +# imagedel +# - (removes an image or sprite) +# spellcheck +# - (fixes spelling or grammar) +# experiment +# - (experimental change) +# balance +# - (balance changes) +# code_imp +# - (misc internal code change) +# refactor +# - (refactors code) +# config +# - (makes a change to the config files) +# admin +# - (makes changes to administrator tools) +# server +# - (miscellaneous changes to server) +################################# + +# Your name. +author: nauticall + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit. +# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog. +changes: + - rscadd: "Adds a right-click verb 'Force Shutdown' to modular computers that forces them to power off. Useful for bluescreen situations."