static string RewardValueToString(Player.PlayerStatus status, float value) { if (status == Player.PlayerStatus.Money) { return(value >= 0 ? $"+{value}" : $"{value}"); } else { return(value >= 1 ? $"+{(value - 1)*100f}%" : $"-{(1-value)*100f}%"); } }
public void SetDataBase( string name, int id, string desc, int life, int infection, int power, int speed, Player.PlayerHealth health, Player.PlayerStatus status, List <Item> items) { player.Clear(); player.Add(new Player(name, id, desc, life, infection, power, speed, health, status, items)); }
static string StatusEnumToString(Player.PlayerStatus status) { switch (status) { case Player.PlayerStatus.Money: return("돈"); case Player.PlayerStatus.Satiety: return("포만감"); case Player.PlayerStatus.Moisture: return("수분"); case Player.PlayerStatus.Hygiene: return("위생"); case Player.PlayerStatus.Risk: return("위험도"); default: return(""); } }