Skip to content

Commit

Permalink
System distance report script updated to tidy context.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkael committed Jul 29, 2024
1 parent 9b604e1 commit fabd465
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Full details of the variables available for each noted event, and VoiceAttack in
* `Mission expired` updated to demo the `missionCargo` property and add more clarity when cargo shall be marked as stolen.
* `Route details` updated to replace `HaulageDetails()` function with `MissionDetails()`.
* `Star scanned` updated to fix a typo (missing comma) and to improve the context passed to child scripts.
* `System distance report` updated to tidy context.
* `System materials report` updated to fix an error with the `isSeleniumSpecialCase` helper function.
* `System state changed` updated to tidy context.
* VoiceAttack
Expand Down
2 changes: 1 addition & 1 deletion SpeechResponder/eddi.cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,7 @@
"enabled": true,
"priority": 3,
"responder": false,
"script": "{_ Fetch from context }\r\n{set reportsystem to SystemDetails(state.eddi_context_system_system)}\r\n\r\n{if !reportsystem.name || reportsystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n Distance to {P(reportsystem.name, \"starsystem\")} is {Humanise(Distance(reportsystem.x, reportsystem.y, reportsystem.z, system.x, system.y, system.z))} light years.\r\n}",
"script": "{_ Fetch from context }\r\n{set reportsystem to SystemDetails(state.eddi_context_selected_system_name)}\r\n\r\n{if !reportsystem.name || reportsystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n Distance to {P(reportsystem.name, \"starsystem\")} is {Humanise(Distance(reportsystem.x, reportsystem.y, reportsystem.z, system.x, system.y, system.z))} light years.\r\n}",
"default": true,
"name": "System distance report",
"description": "Function to report on the distance to the contextual system"
Expand Down
2 changes: 1 addition & 1 deletion SpeechResponder/eddi.de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,7 @@
"enabled": true,
"priority": 3,
"responder": false,
"script": "{_ Fetch from context }\r\n{set reportsystem to SystemDetails(state.eddi_context_system_system)}\r\n\r\n{if !reportsystem.name || reportsystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n Distance to {P(reportsystem.name, \"starsystem\")} is {Humanise(Distance(reportsystem.x, reportsystem.y, reportsystem.z, system.x, system.y, system.z))} light years.\r\n}",
"script": "{_ Fetch from context }\r\n{set reportsystem to SystemDetails(state.eddi_context_selected_system_name)}\r\n\r\n{if !reportsystem.name || reportsystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n Distance to {P(reportsystem.name, \"starsystem\")} is {Humanise(Distance(reportsystem.x, reportsystem.y, reportsystem.z, system.x, system.y, system.z))} light years.\r\n}",
"default": true,
"name": "System distance report",
"description": "Function to report on the distance to the contextual system"
Expand Down
2 changes: 1 addition & 1 deletion SpeechResponder/eddi.hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,7 @@
"enabled": true,
"priority": 3,
"responder": false,
"script": "{_ Fetch from context }\r\n{set reportsystem to SystemDetails(state.eddi_context_system_system)}\r\n\r\n{if !reportsystem.name || reportsystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n Distance to {P(reportsystem.name, \"starsystem\")} is {Humanise(Distance(reportsystem.x, reportsystem.y, reportsystem.z, system.x, system.y, system.z))} light years.\r\n}",
"script": "{_ Fetch from context }\r\n{set reportsystem to SystemDetails(state.eddi_context_selected_system_name)}\r\n\r\n{if !reportsystem.name || reportsystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n Distance to {P(reportsystem.name, \"starsystem\")} is {Humanise(Distance(reportsystem.x, reportsystem.y, reportsystem.z, system.x, system.y, system.z))} light years.\r\n}",
"default": true,
"name": "System distance report",
"description": "Function to report on the distance to the contextual system"
Expand Down
2 changes: 1 addition & 1 deletion SpeechResponder/eddi.it.json
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,7 @@
"enabled": true,
"priority": 3,
"responder": false,
"script": "{_ Fetch from context }\r\n{set reportsystem to SystemDetails(state.eddi_context_system_system)}\r\n\r\n{if !reportsystem.name || reportsystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n Distance to {P(reportsystem.name, \"starsystem\")} is {Humanise(Distance(reportsystem.x, reportsystem.y, reportsystem.z, system.x, system.y, system.z))} light years.\r\n}",
"script": "{_ Fetch from context }\r\n{set reportsystem to SystemDetails(state.eddi_context_selected_system_name)}\r\n\r\n{if !reportsystem.name || reportsystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n Distance to {P(reportsystem.name, \"starsystem\")} is {Humanise(Distance(reportsystem.x, reportsystem.y, reportsystem.z, system.x, system.y, system.z))} light years.\r\n}",
"default": true,
"name": "System distance report",
"description": "Function to report on the distance to the contextual system"
Expand Down
2 changes: 1 addition & 1 deletion SpeechResponder/eddi.ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,7 @@
"enabled": true,
"priority": 3,
"responder": false,
"script": "{_ Fetch from context }\r\n{set reportsystem to SystemDetails(state.eddi_context_system_system)}\r\n\r\n{if !reportsystem.name || reportsystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n Distance to {P(reportsystem.name, \"starsystem\")} is {Humanise(Distance(reportsystem.x, reportsystem.y, reportsystem.z, system.x, system.y, system.z))} light years.\r\n}",
"script": "{_ Fetch from context }\r\n{set reportsystem to SystemDetails(state.eddi_context_selected_system_name)}\r\n\r\n{if !reportsystem.name || reportsystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n Distance to {P(reportsystem.name, \"starsystem\")} is {Humanise(Distance(reportsystem.x, reportsystem.y, reportsystem.z, system.x, system.y, system.z))} light years.\r\n}",
"default": true,
"name": "System distance report",
"description": "Function to report on the distance to the contextual system"
Expand Down
2 changes: 1 addition & 1 deletion SpeechResponder/eddi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,7 @@
"enabled": true,
"priority": 3,
"responder": false,
"script": "{_ Fetch from context }\r\n{set reportsystem to SystemDetails(state.eddi_context_system_system)}\r\n\r\n{if !reportsystem.name || reportsystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n Distance to {P(reportsystem.name, \"starsystem\")} is {Humanise(Distance(reportsystem.x, reportsystem.y, reportsystem.z, system.x, system.y, system.z))} light years.\r\n}",
"script": "{_ Fetch from context }\r\n{set reportsystem to SystemDetails(state.eddi_context_selected_system_name)}\r\n\r\n{if !reportsystem.name || reportsystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n Distance to {P(reportsystem.name, \"starsystem\")} is {Humanise(Distance(reportsystem.x, reportsystem.y, reportsystem.z, system.x, system.y, system.z))} light years.\r\n}",
"default": true,
"name": "System distance report",
"description": "Function to report on the distance to the contextual system"
Expand Down
2 changes: 1 addition & 1 deletion SpeechResponder/eddi.ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,7 @@
"enabled": true,
"priority": 3,
"responder": false,
"script": "{_ Fetch from context }\r\n{set reportsystem to SystemDetails(state.eddi_context_system_system)}\r\n\r\n{if !reportsystem.name || reportsystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n Distance to {P(reportsystem.name, \"starsystem\")} is {Humanise(Distance(reportsystem.x, reportsystem.y, reportsystem.z, system.x, system.y, system.z))} light years.\r\n}",
"script": "{_ Fetch from context }\r\n{set reportsystem to SystemDetails(state.eddi_context_selected_system_name)}\r\n\r\n{if !reportsystem.name || reportsystem.name = \"\":\r\n I'm not sure which system you are asking about.\r\n|else:\r\n Distance to {P(reportsystem.name, \"starsystem\")} is {Humanise(Distance(reportsystem.x, reportsystem.y, reportsystem.z, system.x, system.y, system.z))} light years.\r\n}",
"default": true,
"name": "System distance report",
"description": "Function to report on the distance to the contextual system"
Expand Down

0 comments on commit fabd465

Please sign in to comment.