1
0
mirror of synced 2024-11-12 01:50:47 +01: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, ["Rare"] = Color.Blue,
["Epic"] = Color.Purple, ["Epic"] = Color.Purple,
["Legendary"] = Color.Orange, ["Legendary"] = Color.Orange,
["Mythical"] = Color.Pink,
}; };
private static Dictionary<string, int> RarityToModalInt = new Dictionary<string, int> private static Dictionary<string, int> RarityToModalInt = new Dictionary<string, int>
@ -27,6 +28,18 @@ namespace TJAPlayer3
["Rare"] = 2, ["Rare"] = 2,
["Epic"] = 3, ["Epic"] = 3,
["Legendary"] = 4, ["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> private static Dictionary<string, float> RarityToCoinMultiplier = new Dictionary<string, float>
@ -37,6 +50,7 @@ namespace TJAPlayer3
["Rare"] = 1f, ["Rare"] = 1f,
["Epic"] = 1f, ["Epic"] = 1f,
["Legendary"] = 1f, ["Legendary"] = 1f,
["Mythical"] = 1f,
}; };
public static Color tRarityToColor(string rarity) public static Color tRarityToColor(string rarity)
@ -61,6 +75,16 @@ namespace TJAPlayer3
return modalInt; 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) public static float tRarityToRarityToCoinMultiplier(string rarity)
{ {
float coinMult = 1f; float coinMult = 1f;

View File

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

View File

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