Implement animations, pipeline for duplicates and merging.

This commit is contained in:
2026-07-07 14:10:31 +02:00
parent 30db1e1108
commit d504e0b916
22 changed files with 1947 additions and 117 deletions
+26
View File
@@ -0,0 +1,26 @@
namespace KernelPanic.Meta
{
/// <summary>
/// Tunable gacha progression amounts. Kept in code until designers need asset-driven economy tuning.
/// </summary>
public static class GachaTuning
{
public const int MaxVersion = 5;
public const int MergesPerDupe = 20;
public const int MergesOnCharacterBonus = 10;
public const float MergesMaxVersionOverflowMultiplier = 1.5f;
public static int DupeConsolationBandwidth => 0;
public static readonly int[] VersionCosts = { 50, 120, 250, 500 };
public static int GetVersionUpgradeCost(int targetVersion)
{
if (targetVersion <= 1 || targetVersion > MaxVersion)
{
return 0;
}
int index = targetVersion - 2;
return index >= 0 && index < VersionCosts.Length ? VersionCosts[index] : VersionCosts[VersionCosts.Length - 1];
}
}
}