Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed hub 14 computer giving infinite schematics #70587

Merged
merged 2 commits into from
Jan 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading