forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #297 from She-Is-Trying-To-Form-Her-First-Thought/…
…jarvis lets the modsuit pda app be linked to worn modsuits (with consent) (for entombed users) (fetishcoding)
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/datum/computer_file/program/maintenance/modsuit_control/tap(atom/tapped_atom, mob/living/user, params) | ||
. = ..() | ||
|
||
if(!ishuman(tapped_atom)) | ||
return | ||
var/mob/living/carbon/human/john_modsuit = tapped_atom | ||
for(var/obj/item/mod/control/target_suit in john_modsuit.contents) | ||
if(!do_after(user, 5 SECONDS, john_modsuit)) | ||
return | ||
var/response = tgui_alert( | ||
john_modsuit, | ||
"[user] is attempting to link their PDA to your MOD, [target_suit]. This gives them TOTAL control of your suit, do you let them?", | ||
"Connection Attempt", | ||
list( | ||
"Connect", | ||
"Refuse", | ||
), | ||
) | ||
if(response == "Connect") | ||
sync_modsuit(target_suit, user) | ||
playsound(target_suit, 'sound/effects/industrial_scan/industrial_scan2.ogg', 50, TRUE) | ||
else | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters