2022-02-05 16:25:58 +01:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace TJAPlayer3
|
|
|
|
|
{
|
|
|
|
|
class DBPuchichara
|
|
|
|
|
{
|
2023-08-18 16:21:02 +09:00
|
|
|
|
public class PuchicharaEffect
|
|
|
|
|
{
|
|
|
|
|
public PuchicharaEffect()
|
|
|
|
|
{
|
|
|
|
|
AllPurple = false;
|
|
|
|
|
Autoroll = 0;
|
|
|
|
|
ShowAdlib = false;
|
|
|
|
|
SplitLane = false;
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-19 02:54:55 +09:00
|
|
|
|
public float GetCoinMultiplier()
|
|
|
|
|
{
|
|
|
|
|
float mult = 1f;
|
|
|
|
|
|
|
|
|
|
if (Autoroll > 0) mult *= 0f;
|
|
|
|
|
if (ShowAdlib == true) mult *= 0.9f;
|
|
|
|
|
if (AllPurple == true) mult *= 1.1f;
|
|
|
|
|
|
|
|
|
|
return mult;
|
|
|
|
|
}
|
2023-08-18 16:21:02 +09:00
|
|
|
|
|
|
|
|
|
[JsonProperty("allpurple")]
|
|
|
|
|
public bool AllPurple;
|
|
|
|
|
|
|
|
|
|
[JsonProperty("AutoRoll")]
|
|
|
|
|
public int Autoroll;
|
|
|
|
|
|
|
|
|
|
[JsonProperty("showadlib")]
|
|
|
|
|
public bool ShowAdlib;
|
|
|
|
|
|
|
|
|
|
[JsonProperty("splitlane")]
|
|
|
|
|
public bool SplitLane;
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-05 16:25:58 +01:00
|
|
|
|
public class PuchicharaData
|
|
|
|
|
{
|
2022-06-04 19:52:08 +02:00
|
|
|
|
public PuchicharaData()
|
|
|
|
|
{
|
|
|
|
|
Name = "(None)";
|
|
|
|
|
Rarity = "Common";
|
|
|
|
|
Author = "(None)";
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-05 09:28:00 +01:00
|
|
|
|
public PuchicharaData(string pcn, string pcr, string pca)
|
2022-02-05 16:25:58 +01:00
|
|
|
|
{
|
|
|
|
|
Name = pcn;
|
|
|
|
|
Rarity = pcr;
|
2022-03-05 09:28:00 +01:00
|
|
|
|
Author = pca;
|
2022-02-05 16:25:58 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[JsonProperty("name")]
|
|
|
|
|
public string Name;
|
|
|
|
|
|
|
|
|
|
[JsonProperty("rarity")]
|
|
|
|
|
public string Rarity;
|
2022-03-05 09:28:00 +01:00
|
|
|
|
|
|
|
|
|
[JsonProperty("author")]
|
|
|
|
|
public string Author;
|
2022-02-05 16:25:58 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|