Skip to content

Commit

Permalink
Combat mission explanation about special equipment (#5588)
Browse files Browse the repository at this point in the history
  • Loading branch information
robothauler committed Jun 14, 2023
1 parent 4116b67 commit 7ea6b39
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data/lang/module-combat/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@
"description": "Distance in space, between two locations",
"message": "Distance:"
},
"DO_I_NEED_SPECIAL_EQUIPMENT": {
"description": "",
"message": "Do I need any special equipment?"
},
"FAILUREMSG_1": {
"description": "",
"message": "Shame on you. Get out of my sight."
Expand Down Expand Up @@ -374,5 +378,9 @@
"WILL_I_BE_IN_TROUBLE": {
"description": "",
"message": "Will I be in trouble?"
},
"YOU_NEED_A_RADAR": {
"description": "",
"message": "Yes, you need a radar! If you agree, I will program your ship's computer to record the radar data we need. The data will be transferred to me next you come back."
}
}
3 changes: 3 additions & 0 deletions data/modules/Combat/Combat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,15 @@ local onChat = function (form, ref, option)
table.insert(missions,Mission.New(mission))
form:SetMessage(l["ACCEPTED_" .. Engine.rand:Integer(1, getNumberOfFlavours("ACCEPTED"))])
return
elseif option == 6 then
form:SetMessage(l.YOU_NEED_A_RADAR)
end

form:AddOption(l.WHAT_ARE_THE_MISSION_OBJECTIVES, 1)
form:AddOption(l.WILL_I_BE_IN_TROUBLE, 2)
form:AddOption(l.IS_THERE_A_TIME_LIMIT, 3)
form:AddOption(l.HOW_WILL_I_BE_PAID, 4)
form:AddOption(l.DO_I_NEED_SPECIAL_EQUIPMENT, 6)
form:AddOption(l.PLEASE_REPEAT_THE_MISSION_DETAILS, 0)
form:AddOption(l.OK_AGREED, 5)
end
Expand Down

0 comments on commit 7ea6b39

Please sign in to comment.