Skip to content

Commit

Permalink
Fix bug where GP tick would be halted incorrectly while fishing.
Browse files Browse the repository at this point in the history
Update Meziantou.Analyzer to 2.0.150.
  • Loading branch information
Kurochi51 committed May 3, 2024
1 parent b3f57b4 commit 1e71f16
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions TickTracker/TickTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,13 @@ private void ProcessTicks(double currentTime, PlayerCharacter player)

// MP Section
MPBarWindow.RegenActive = statusList.Exists(e => manaRegenSet.Contains(e.StatusId));
var blmGauge = player.ClassJob.Id == 25 ? jobGauges.Get<BLMGauge>() : null;
var blmGauge = player.ClassJob.Id is 25 ? jobGauges.Get<BLMGauge>() : null;
MPBarWindow.TickHalted = blmGauge is not null && blmGauge.InAstralFire;
var currentMP = player.CurrentMp;
var fullMP = currentMP == player.MaxMp;

// GP Section
GPBarWindow.TickHalted = condition[ConditionFlag.Gathering];
GPBarWindow.TickHalted = condition[ConditionFlag.Gathering] && (player.ClassJob.Id is not 18 || condition[ConditionFlag.Diving]);
var currentGP = player.CurrentGp;
var fullGP = currentGP == player.MaxGp;

Expand Down
2 changes: 1 addition & 1 deletion TickTracker/TickTracker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

<ItemGroup>
<PackageReference Include="DalamudPackager" Version="2.1.12" />
<PackageReference Include="Meziantou.Analyzer" Version="2.0.147">
<PackageReference Include="Meziantou.Analyzer" Version="2.0.150">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
6 changes: 3 additions & 3 deletions TickTracker/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
},
"Meziantou.Analyzer": {
"type": "Direct",
"requested": "[2.0.147, )",
"resolved": "2.0.147",
"contentHash": "bloVeZFFQKeJ8QO65XgN1FTHvzKGU523otZjDvQU4Wu7FLWbd/AjWoDFlCaSpBiC+awD/B8Q7CuwINJEVMsk+Q=="
"requested": "[2.0.150, )",
"resolved": "2.0.150",
"contentHash": "rXKN4/Cf58Pv7uUWk4wcZtY+J9mve6wA1BHGYAf9SlpmiayA5fJ4wK2lflIwAkVo8n8HyNCeY3Ej4jwCdLk5nA=="
}
}
}
Expand Down

0 comments on commit 1e71f16

Please sign in to comment.