qstcompanion v1.0.6
This commit is contained in:
parent
5e1e1decc5
commit
ada27cf05b
30 changed files with 3403 additions and 426 deletions
|
|
@ -48,16 +48,6 @@ public class DCTravelService : IDisposable
|
|||
log.Information("[DCTravel] Config.DCTravelWorld: '" + config.DCTravelWorld + "'");
|
||||
log.Information($"[DCTravel] State.dcTravelCompleted: {dcTravelCompleted}");
|
||||
log.Information($"[DCTravel] State.dcTravelInProgress: {dcTravelInProgress}");
|
||||
if (dcTravelCompleted)
|
||||
{
|
||||
log.Warning("[DCTravel] SKIP: Already completed for this character");
|
||||
return false;
|
||||
}
|
||||
if (dcTravelInProgress)
|
||||
{
|
||||
log.Warning("[DCTravel] SKIP: Travel already in progress");
|
||||
return false;
|
||||
}
|
||||
if (!config.EnableDCTravel)
|
||||
{
|
||||
log.Warning("[DCTravel] SKIP: DC Travel is DISABLED in config");
|
||||
|
|
@ -78,9 +68,25 @@ public class DCTravelService : IDisposable
|
|||
log.Information("[DCTravel] Target World: '" + config.DCTravelWorld + "'");
|
||||
if (currentWorld.Equals(config.DCTravelWorld, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
if (!dcTravelCompleted)
|
||||
{
|
||||
log.Information("[DCTravel] Character is already on target world - marking as completed");
|
||||
dcTravelCompleted = true;
|
||||
}
|
||||
log.Warning("[DCTravel] SKIP: Already on target world '" + config.DCTravelWorld + "'");
|
||||
return false;
|
||||
}
|
||||
if (dcTravelCompleted)
|
||||
{
|
||||
log.Warning("[DCTravel] State says completed but character is NOT on target world!");
|
||||
log.Warning("[DCTravel] Resetting state - will perform DC Travel");
|
||||
dcTravelCompleted = false;
|
||||
}
|
||||
if (dcTravelInProgress)
|
||||
{
|
||||
log.Warning("[DCTravel] SKIP: Travel already in progress");
|
||||
return false;
|
||||
}
|
||||
log.Information("[DCTravel] ========================================");
|
||||
log.Information("[DCTravel] DC TRAVEL WILL BE PERFORMED!");
|
||||
log.Information("[DCTravel] ========================================");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue