diff --git a/CHANGELOG.md b/CHANGELOG.md index eb205da..387c5c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,13 @@ refactoring work that was done for 4.4. * Documentation proof read and fixed by @ACyprus. Thanks! -## EliteAttack 8.4.1 +## EliteAttack 8.5 ### Added * `target nearest […]` commands now log the result (with log level “INFO”). +* `include outdated settlements` option: Include Odyssey settlements in the + outdated stations list. Default: true. ### Fixed diff --git a/docs/configuration/EliteAttack.md b/docs/configuration/EliteAttack.md index 885afeb..ec34a37 100644 --- a/docs/configuration/EliteAttack.md +++ b/docs/configuration/EliteAttack.md @@ -37,6 +37,8 @@ Toggles: Ammonia Worlds that have not been mapped yet.) Default: true. * `outdated stations`: Announce stations with outdated data in the online databases. Default: true. +* `include outdated settlements` option: Include Odyssey settlements in the + outdated stations list. Default: true. * `repair reports`: Report on AFMU repairs. Default: true. * `road to riches`: Announce bodies worth scanning if you are looking for some starting cash on the Road to Riches. Default: false. diff --git a/plugins/EliteAttack/EliteAttack.cs b/plugins/EliteAttack/EliteAttack.cs index e71665d..f2715f0 100644 --- a/plugins/EliteAttack/EliteAttack.cs +++ b/plugins/EliteAttack/EliteAttack.cs @@ -30,7 +30,7 @@ namespace EliteAttack /// public class EliteAttack { - private static readonly Version VERSION = new ("8.4.1"); + private static readonly Version VERSION = new ("8.5"); private static VoiceAttackLog? log; private static VoiceAttackCommands? commands; diff --git a/plugins/VoiceAttack-base/base.cs b/plugins/VoiceAttack-base/base.cs index bd5fade..3222ce0 100644 --- a/plugins/VoiceAttack-base/base.cs +++ b/plugins/VoiceAttack-base/base.cs @@ -39,7 +39,7 @@ namespace alterNERDtive [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649:File name should match first type name", Justification = "F off :)")] public class BasePlugin { - private static readonly Version VERSION = new ("4.4.1"); + private static readonly Version VERSION = new ("4.5"); private static readonly Dictionary Profiles = new () { @@ -630,9 +630,10 @@ namespace alterNERDtive { string system = vaProxy.GetText("~system") ?? throw new ArgumentNullException("~system"); int minage = vaProxy.GetInt("~minage") ?? throw new ArgumentNullException("~minage"); + bool includeSettlements = vaProxy.GetBoolean("~includeSettlements") ?? throw new ArgumentNullException("~includeSettlements"); string path = $@"{vaProxy.SessionState["VA_SOUNDS"]}\Scripts\spansh.exe"; - string arguments = $@"oldstations --system ""{system}"" --minage {minage}"; + string arguments = $@"oldstations --system ""{system}"" --minage {minage}{(includeSettlements ? string.Empty : " --nofeet")}"; Process p = PythonProxy.SetupPythonScript(path, arguments); diff --git a/plugins/VoiceAttack-base/util.cs b/plugins/VoiceAttack-base/util.cs index 1a98ba9..a78b7ea 100644 --- a/plugins/VoiceAttack-base/util.cs +++ b/plugins/VoiceAttack-base/util.cs @@ -173,6 +173,13 @@ namespace alterNERDtive.util voiceTrigger: "outdated station threshold", description: "The threshold for station data to count as “outdated”, in days.\nDefault: 365.") }, + { + new Option( + name: "includeOutdatedSettlements", + defaultValue: true, + voiceTrigger: "include outdated settlements", + description: "Include outdated Odyssey settlements in the outdated stations list.") + }, { new Option( name: "announceR2RMappingCandidates", diff --git a/profiles/EliteAttack-Profile.vap b/profiles/EliteAttack-Profile.vap index 85341b5..91db0d1 100644 Binary files a/profiles/EliteAttack-Profile.vap and b/profiles/EliteAttack-Profile.vap differ