-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add summoning odds calculation (#699)
Adds the logic to calculate the summoning odds distribution. Initially only used for `/summon/get_odds_data` - i.e. the 'Appearance Rates' menu - however the code has been designed to hopefully be easily reusable for calculating summoning results with FluentRandomPicker.
- Loading branch information
1 parent
034e52d
commit 3f55034
Showing
18 changed files
with
2,131 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
DragaliaAPI/DragaliaAPI.Shared/Definitions/Enums/CharaAvailability.cs
This file was deleted.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
DragaliaAPI/DragaliaAPI.Shared/Definitions/Enums/UnitAvailability.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
namespace DragaliaAPI.Shared.Definitions.Enums; | ||
|
||
/// <summary> | ||
/// Represents a unit's availability from a summoning perspective. | ||
/// </summary> | ||
public enum UnitAvailability | ||
{ | ||
/// <summary> | ||
/// The unit is always able to be summoned. | ||
/// </summary> | ||
Permanent, | ||
|
||
/// <summary> | ||
/// The unit can only be summoned on Gala banners. | ||
/// </summary> | ||
Gala, | ||
|
||
/// <summary> | ||
/// The unit can only be summoned on particular limited banners. | ||
/// </summary> | ||
Limited, | ||
|
||
/// <summary> | ||
/// The unit can never be summoned, but is available from completing a main story quest. | ||
/// </summary> | ||
Story, | ||
|
||
/// <summary> | ||
/// The unit can never be summoned. | ||
/// </summary> | ||
Other | ||
} |
Oops, something went wrong.