67 lines
1.5 KiB
C#
67 lines
1.5 KiB
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace TJAPlayer3
|
|
{
|
|
class DBCharacter
|
|
{
|
|
public class CharacterEffect
|
|
{
|
|
public CharacterEffect()
|
|
{
|
|
Gauge = "Normal";
|
|
BombFactor = 20;
|
|
FuseRollFactor = 0;
|
|
}
|
|
|
|
public float GetCoinMultiplier()
|
|
{
|
|
float mult = 1f;
|
|
|
|
if (Gauge == "Hard") mult *= 1.5f;
|
|
if (Gauge == "Extreme") mult *= 1.8f;
|
|
|
|
return mult;
|
|
}
|
|
|
|
|
|
[JsonProperty("gauge")]
|
|
public string Gauge;
|
|
|
|
[JsonProperty("bombFactor")]
|
|
public int BombFactor;
|
|
|
|
[JsonProperty("fuseRollFactor")]
|
|
public int FuseRollFactor;
|
|
}
|
|
|
|
public class CharacterData
|
|
{
|
|
public CharacterData()
|
|
{
|
|
Name = "(None)";
|
|
Rarity = "Common";
|
|
Author = "(None)";
|
|
}
|
|
|
|
public CharacterData(string pcn, string pcr, string pca)
|
|
{
|
|
Name = pcn;
|
|
Rarity = pcr;
|
|
Author = pca;
|
|
}
|
|
|
|
|
|
[JsonProperty("name")]
|
|
public string Name;
|
|
|
|
[JsonProperty("rarity")]
|
|
public string Rarity;
|
|
|
|
[JsonProperty("author")]
|
|
public string Author;
|
|
}
|
|
|
|
}
|
|
} |