Skip to content

Commit

Permalink
feat: expand bingo functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
DorielRivalet committed Aug 29, 2023
1 parent aa6d19e commit bd733ab
Show file tree
Hide file tree
Showing 19 changed files with 1,194 additions and 109 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MHFZ_Overlay/Assets/Icons/png/true_transcend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions MHFZ_Overlay/MHFZ_Overlay.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
<None Remove="Assets\Background\7.png" />
<None Remove="Assets\Background\8.png" />
<None Remove="Assets\Background\9.png" />
<None Remove="Assets\Background\background_noise.png" />
<None Remove="Assets\Background\background_pattern1.png" />
<None Remove="Assets\Fonts\Meslo LG M Regular Nerd Font Complete Mono Windows Compatible.ttf" />
<None Remove="Assets\Fonts\Monster hunter type 2.ttf" />
<None Remove="Assets\Fonts\OpenSans-Bold.ttf" />
Expand Down Expand Up @@ -870,6 +872,8 @@
<Resource Include="Assets\Background\9.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Resource>
<Resource Include="Assets\Background\background_noise.png" />
<Resource Include="Assets\Background\background_pattern1.png" />
<Resource Include="Assets\Fonts\Meslo LG M Regular Nerd Font Complete Mono Windows Compatible.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Resource>
Expand Down
10 changes: 10 additions & 0 deletions MHFZ_Overlay/Models/BingoCell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,14 @@ public class BingoCell
/// The weapon type bonuses in the bingo board. Used for increasing scores in each cell and for rerolls.
/// </summary>
public FrontierWeaponType WeaponTypeBonus { get; internal set; }

/// <summary>
/// Whether the cell contains a book of secrets page.
/// </summary>
public bool ContainsBookOfSecretsPage { get; set; }

/// <summary>
/// Whether the cell contains a random ancient dragon part's scrap.
/// </summary>
public bool ContainsAncientDragonPartScrap { get; set; }
}
6 changes: 6 additions & 0 deletions MHFZ_Overlay/Models/BingoMonster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace MHFZ_Overlay.Models;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MHFZ_Overlay.Models.Structures;

public sealed class BingoMonster
{
Expand All @@ -17,6 +18,11 @@ public sealed class BingoMonster
/// </summary>
public string Name { get; set; } = string.Empty;

/// <summary>
/// The type of the monster. Used to determine the scraps type to give.
/// </summary>
public FrontierMonsterType Type { get; set; }

/// <summary>
/// The image of the monster
/// </summary>
Expand Down
40 changes: 40 additions & 0 deletions MHFZ_Overlay/Models/BingoPlayer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// © 2023 The mhfz-overlay developers.
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file.

namespace MHFZ_Overlay.Models;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommunityToolkit.Mvvm.ComponentModel;
using MHFZ_Overlay.Models.Collections;
using MHFZ_Overlay.Models.Structures;

/// <summary>
/// TODO
/// </summary>
public class BingoPlayer
{
/// <summary>
/// The amount of bingo points currently stored.
/// </summary>
public int BingoPoints { get; set; }

/// <summary>
/// The amount of book of secrets pages currently stored.
/// </summary>
public int BookOfSecretsPages { get; set; }

/// <summary>
/// The amount of unlocked book of secrets chapters.
/// </summary>
public List<ChallengeBookOfSecretsChapter>? UnlockedChapters { get; set; }

/// <summary>
/// The amount of bingo shop upgrades unlocked.
/// </summary>
public List<BingoUpgrade>? UnlockedUpgrades { get; set; }
}
28 changes: 28 additions & 0 deletions MHFZ_Overlay/Models/BingoShopItem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// © 2023 The mhfz-overlay developers.
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file.

namespace MHFZ_Overlay.Models;

using MHFZ_Overlay.Models.Structures;

/// <summary>
/// The bingo shop options.
/// </summary>
public sealed class BingoShopItem
{
/// <summary>
/// The name of the option.
/// </summary>
public string Name { get; set; } = string.Empty;

/// <summary>
/// The cost of the option.
/// </summary>
public int Cost { get; set; }

/// <summary>
/// Whether the option is unlocked.
/// </summary>
public bool IsUnlocked { get; set; }
}
5 changes: 5 additions & 0 deletions MHFZ_Overlay/Models/BingoUpgrade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@ public sealed class BingoUpgrade
/// The current level of the upgrade.
/// </summary>
public int CurrentLevel { get; set; }

/// <summary>
/// Whether the upgrade is unlocked or not.
/// </summary>
public bool IsUnlocked { get; set; }
}
33 changes: 33 additions & 0 deletions MHFZ_Overlay/Models/Collections/BingoDifficultyCarts.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// © 2023 The mhfz-overlay developers.
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file.

namespace MHFZ_Overlay.Models.Collections;

using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Security.Cryptography;
using MHFZ_Overlay.Models.Constant;
using MHFZ_Overlay.Models.Structures;

/// <summary>
/// The bingo difficulty carts base.
/// </summary>
public static class BingoDifficultyCarts
{
public static ReadOnlyDictionary<Difficulty, int> DifficultyCarts { get; } = new(new Dictionary<Difficulty, int>
{
{
Difficulty.Easy, 7
},
{
Difficulty.Medium, 5
},
{
Difficulty.Hard, 3
},
{
Difficulty.Extreme, 0
},
});
}
Loading

0 comments on commit bd733ab

Please sign in to comment.