Skip to content

Commit

Permalink
Need to finish decryption before nuke safety can be disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben10083 committed Jul 13, 2023
1 parent d27ea0e commit fca1fa9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/game/machinery/nuclearbomb.dm
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ var/bomb_set = FALSE
if(!A.can_build_special)
to_chat(ui.user, SPAN_INFO("You cannot deploy [src] here!"))
return
if(!decryption_complete)
to_chat(ui.user, SPAN_INFO("Decyption of nuke must be complete before you can disengage safety!"))
return
if(ui.user.action_busy)
return
ui.user.visible_message(SPAN_WARNING("[ui.user] begins to [safety ? "disable" : "enable"] the safety on [src]!"), SPAN_WARNING("You begin to [safety ? "disable" : "enable"] the safety on [src]."))
Expand Down

0 comments on commit fca1fa9

Please sign in to comment.