Skip to content

Commit

Permalink
Unchained Guardian
Browse files Browse the repository at this point in the history
- Add [Mage] Unchained Guardian to Grand Finale view
  • Loading branch information
batstyx committed Oct 24, 2023
2 parents 8e11a3f + 757a251 commit 4c4285b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:
run: |
$Message = git log --format=%B -n 1 HEAD
Write-Output "title=$($Message | Select -First 1)" >> $Env:GITHUB_OUTPUT
Write-Output "body=$($Message | Select -Skip 1)" >> $Env:GITHUB_OUTPUT
$Message | Out-File Release.md
$Body = $Message | Select -Skip 1
Write-Output "body=$Body" >> $Env:GITHUB_OUTPUT
$Body | Out-File Release.md
- uses: microsoft/[email protected] # https://github.com/marketplace/actions/setup-msbuild
- uses: NuGet/[email protected] # https://github.com/marketplace/actions/setup-nuget-exe-for-use-with-actions
- run: .\scripts\update-libraries.ps1
Expand Down
4 changes: 3 additions & 1 deletion Graveyard/GrandFinaleView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ public class GrandFinaleView
private static MultiTurnView.ViewConfig _Config;
internal static ViewConfig Config
{
get => _Config ?? (_Config = new MultiTurnView.ViewConfig(Mage.GrandFinale)
get => _Config ?? (_Config = new MultiTurnView.ViewConfig(
Mage.GrandFinale,
Mage.UnchainedGladiator)
{
Name = "GrandFinale",
Enabled = "GrandFinaleEnabled",
Expand Down
3 changes: 1 addition & 2 deletions Graveyard/MultiTurnView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public ViewConfig(params string[] showOn) : base(showOn)
public override void RegisterView(ViewBase view, bool isDefault = false)
{
base.RegisterView(view, isDefault);
var multiTurn = view as MultiTurnView;
if (multiTurn != null)
if (view is MultiTurnView multiTurn)
{
Plugin.Events.OnOpponentTurnStart.Register(multiTurn.TurnEnded);
}
Expand Down
4 changes: 2 additions & 2 deletions Graveyard/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.12.0.0")]
[assembly: AssemblyFileVersion("1.12.0.0")]
[assembly: AssemblyVersion("1.12.1.0")]
[assembly: AssemblyFileVersion("1.12.1.0")]

0 comments on commit 4c4285b

Please sign in to comment.