Skip to content

Commit

Permalink
Add a {version} variable to Cottle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkael committed May 20, 2024
1 parent bc226d6 commit 28b39d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions EDDI/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Full details of the variables available for each noted event, and VoiceAttack in
* Speech Responder
* Functions
* `Play()` now supports relative file system paths. (#2581)
* Variables
* `{version}` top level variable added.

## 4.0.3
* EDSM Responder
Expand Down
4 changes: 2 additions & 2 deletions SpeechResponder/ScriptResolverService/ScriptResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ protected internal Dictionary<string, Tuple<Type, Value>> CompileVariables(Event
["va_active"] = new Tuple<Type, Value>(typeof(bool), App.FromVA),
["vehicle"] = new Tuple<Type, Value>(typeof(string), EDDI.Instance.Vehicle),
["icao_active"] = new Tuple<Type, Value>(typeof(bool), SpeechService.Instance.Configuration.EnableIcao),
["ipa_active"] = new Tuple<Type, Value>(typeof(bool), !SpeechService.Instance.Configuration.DisableIpa)

["ipa_active"] = new Tuple<Type, Value>(typeof(bool), !SpeechService.Instance.Configuration.DisableIpa),
["version"] = new Tuple<Type, Value>(typeof(string), Constants.EDDI_VERSION.ShortString)
};

// Standard objects
Expand Down
1 change: 1 addition & 0 deletions SpeechResponder/Variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Information on game state is available at the top level i.e. these values can be
- *icao_active* - true if ICAO is currently enabled
- *ipa_active* - true if phonetic speech ssml tags are currently enabled
- *va_active* - true when the Voice Attack plug-in is active
- *version* - the version level of EDDI which is currently running

---

Expand Down

0 comments on commit 28b39d0

Please sign in to comment.