40 lines
1001 B
C#
40 lines
1001 B
C#
|
|
using System;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace TKS.OutGame
|
||
|
|
{
|
||
|
|
/// <summary>진화 ★1~5(evolve.csv · 기획서 §3-5) — 그 ★ 로 올리는 데 드는 조각 · 스탯 % · 스킬 해금 표기.</summary>
|
||
|
|
public class EvolveTable : ScriptableObject
|
||
|
|
{
|
||
|
|
[Serializable]
|
||
|
|
public class Row
|
||
|
|
{
|
||
|
|
public int star;
|
||
|
|
[Tooltip("이 ★ 로 올릴 때 필요한 조각")]
|
||
|
|
public int shardsNeeded;
|
||
|
|
public float starPct;
|
||
|
|
public string skillUnlock;
|
||
|
|
}
|
||
|
|
|
||
|
|
public List<Row> rows = new List<Row>();
|
||
|
|
|
||
|
|
public Row Get(int star)
|
||
|
|
{
|
||
|
|
foreach (var r in rows)
|
||
|
|
if (r.star == star) return r;
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
public int MaxStar
|
||
|
|
{
|
||
|
|
get
|
||
|
|
{
|
||
|
|
int m = 1;
|
||
|
|
foreach (var r in rows) m = Mathf.Max(m, r.star);
|
||
|
|
return m;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|