Skip to content

Commit

Permalink
Fixed hub 14 computer giving infinite schematics (#70587)
Browse files Browse the repository at this point in the history
* Initial (and probably final) commit

* ellipsis
  • Loading branch information
gkarfakis19 authored Jan 2, 2024
1 parent bef30a5 commit 225bf5c
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions data/json/npcs/computers/TALK_MSU14.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"success": { "topic": "MSU14_UNIT_ACCESS" },
"failure": { "topic": "MSU14_HACK_FAILURE" }
},
{ "text": "Browse stored documents.", "topic": "MSU14_DOCS" },
{ "text": "Browse stored documents.", "topic": "MSU14_PRE_DOCS" },
{ "text": "Log Off", "topic": "TALK_DONE" }
]
},
Expand All @@ -59,17 +59,43 @@
},
{
"type": "talk_topic",
"id": "MSU14_DOCS",
"id": "MSU14_PRE_DOCS",
"dynamic_line": "&Listing all saved files:\nA. P-144MS TALON UGV platform - Generative optimizations",
"responses": [
{
"text": "View and print the Talon Schematics.",
"topic": "MSU14_DOCS",
"effect": [ { "u_spawn_item": "schematics_secubot", "count": 1 } ]
"topic": "MSU14_DOCS_SUCCESS",
"condition": { "not": { "u_has_var": "msu14_printed_docs", "type": "computer", "context": "hacking", "value": "yes" } }
},
{
"text": "View and print the Talon Schematics.",
"topic": "MSU14_DOCS_FAILURE",
"condition": { "u_has_var": "msu14_printed_docs", "type": "computer", "context": "hacking", "value": "yes" }
},
{ "text": "Return.", "topic": "MSU14_MAIN" }
]
},
{
"type": "talk_topic",
"id": "MSU14_DOCS_SUCCESS",
"dynamic_line": "&Printing…",
"responses": [
{
"text": "Return.",
"topic": "MSU14_MAIN",
"effect": [
{ "u_spawn_item": "schematics_secubot", "count": 1 },
{ "u_add_var": "msu14_printed_docs", "type": "computer", "context": "hacking", "value": "yes" }
]
}
]
},
{
"type": "talk_topic",
"id": "MSU14_DOCS_FAILURE",
"dynamic_line": "&ERROR: Schematic access denied - too many requests.\nPlease contact the system administrator.",
"responses": [ { "text": "Return.", "topic": "MSU14_MAIN" } ]
},
{
"type": "talk_topic",
"id": "MSU14_HACK_FAILURE",
Expand Down

0 comments on commit 225bf5c

Please sign in to comment.