1
0
mirror of synced 2024-09-24 03:28:19 +02:00
This commit is contained in:
0auBSQ 2024-07-04 22:12:41 +09:00
parent e77c768eea
commit c889bca492
3 changed files with 26 additions and 2 deletions

View File

@ -17,6 +17,7 @@ namespace TJAPlayer3
["Rare"] = Color.Blue,
["Epic"] = Color.Purple,
["Legendary"] = Color.Orange,
["Mythical"] = Color.Pink,
};
private static Dictionary<string, int> RarityToModalInt = new Dictionary<string, int>
@ -27,6 +28,18 @@ namespace TJAPlayer3
["Rare"] = 2,
["Epic"] = 3,
["Legendary"] = 4,
["Mythical"] = 4,
};
private static Dictionary<string, int> RarityToLangInt = new Dictionary<string, int>
{
["Poor"] = 0,
["Common"] = 1,
["Uncommon"] = 2,
["Rare"] = 3,
["Epic"] = 4,
["Legendary"] = 5,
["Mythical"] = 6,
};
private static Dictionary<string, float> RarityToCoinMultiplier = new Dictionary<string, float>
@ -37,6 +50,7 @@ namespace TJAPlayer3
["Rare"] = 1f,
["Epic"] = 1f,
["Legendary"] = 1f,
["Mythical"] = 1f,
};
public static Color tRarityToColor(string rarity)
@ -61,6 +75,16 @@ namespace TJAPlayer3
return modalInt;
}
public static int tRarityToLangInt(string rarity)
{
int modalInt = 1;
if (RarityToLangInt.ContainsKey(rarity))
modalInt = RarityToLangInt[rarity];
return modalInt;
}
public static float tRarityToRarityToCoinMultiplier(string rarity)
{
float coinMult = 1f;

View File

@ -46,7 +46,7 @@ namespace TJAPlayer3
new Modal(
Modal.EModalType.Character,
HRarity.tRarityToModalInt(metadata.Rarity),
metadata.Name
metadata.tGetName()
),
_player);

View File

@ -50,7 +50,7 @@ namespace TJAPlayer3
new Modal(
Modal.EModalType.Puchichara,
HRarity.tRarityToModalInt(metadata.Rarity),
metadata.Name
metadata.tGetName()
),
_player);