EliteAttack: added option to exclude settlements from the outdated stations list

fixes #119
This commit is contained in:
alterNERDtive 2022-09-05 18:30:23 +02:00
parent 54cd1e6fa2
commit 7c361e9bf7
Signed by: alterNERDtive
GPG key ID: 547787A4FE6533F1
6 changed files with 16 additions and 4 deletions

View file

@ -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

View file

@ -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.

View file

@ -30,7 +30,7 @@ namespace EliteAttack
/// </summary>
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;

View file

@ -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<Guid, string> 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);

View file

@ -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<bool>(
name: "includeOutdatedSettlements",
defaultValue: true,
voiceTrigger: "include outdated settlements",
description: "Include outdated Odyssey settlements in the outdated stations list.")
},
{
new Option<bool>(
name: "announceR2RMappingCandidates",

Binary file not shown.