Skip to content

Commit

Permalink
Fix the Kord mission (#76626)
Browse files Browse the repository at this point in the history
* Fix Cody's offering mission condition

* Make Jay receive KORD only after Cody's mission is completed

* Ensure the player gives broken kord to Jay
  • Loading branch information
cknight828 authored Sep 24, 2024
1 parent 749aaac commit 8c7611c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,11 @@
"responses": [
{ "text": "What's with all the weapons and armor?", "topic": "TALK_BLACKSMITH_SHOP_ABOUT" },
{ "text": "Who are you?", "topic": "TALK_BLACKSMITH_ABOUT" },
{ "text": "Are you and Jay close?", "topic": "TALK_BLACKSMITH_JAY" },
{
"text": "Are you and Jay close?",
"topic": "TALK_BLACKSMITH_JAY",
"condition": { "not": { "compare_string": [ "yes", { "u_val": "dialogue_artisans_blacksmith_accepted_quest" } ] } }
},
{ "text": "Alright.", "topic": "TALK_BLACKSMITH_SERVICES" }
]
},
Expand Down
5 changes: 3 additions & 2 deletions data/json/npcs/isolated_road/isolated_road_jay_dialogue.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
"condition": {
"and": [
{ "u_has_items": { "item": "broken_kord", "count": 1 } },
{ "not": { "compare_string": [ "yes", { "u_val": "dialogue_artisans_gunsmith_mentioned_quest" } ] } }
{ "not": { "compare_string": [ "yes", { "u_val": "dialogue_artisans_gunsmith_mentioned_quest" } ] } },
{ "compare_string": [ "yes", { "u_val": "dialogue_artisans_blacksmith_completed_quest" } ] }
]
},
"effect": { "u_sell_item": "broken_kord" },
"topic": "TALK_GUNSMITH_KORD"
},
{
Expand Down Expand Up @@ -199,7 +201,6 @@
"text": "I'm listening.",
"effect": [
{ "add_mission": "MISSION_GUNSMITH_1" },
{ "u_sell_item": "broken_kord" },
{ "u_add_var": "dialogue_artisans_gunsmith_accepted_quest", "value": "yes" }
],
"topic": "TALK_GUNSMITH_Q1_DETAILS"
Expand Down
3 changes: 2 additions & 1 deletion data/json/npcs/isolated_road/isolated_road_missions.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"success": "Thanks, darlin'. If you could show it to Jay, that would mean a lot to me. If there's anything I could ever make for you as payment after that, just let me know.",
"success_lie": "That's great! Make sure to show it to Jay.",
"failure": "Well you tried at least…"
}
},
"end": { "effect": { "u_add_var": "dialogue_artisans_blacksmith_completed_quest", "value": "yes" } }
},
{
"id": "MISSION_GUNSMITH_1",
Expand Down

0 comments on commit 8c7611c

Please sign in to comment.