ThreeKingdomsSlingshot/Assets/Scripts/OutGame/Data/EvolveTable.cs

50 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using UnityEngine;
namespace TKS.OutGame
{
/// <summary>
/// 진화 ★1~5 — 2026-11-20 각성·진화 요청서 §2-2 부터 SOT = evolve_stars.csv(옛 evolve.csv 조각 진화를 대신 · 행 = n_star_to 의 상태) ·
/// 이 ★ 로 올리는 재료(진영 비서 등급 n_tier × n_item + 골드) · 이 ★ 의 최대 레벨 · 성급 % · 스킬 해금 · 각성 칸 수.
/// </summary>
public class EvolveTable : ScriptableObject
{
[Serializable]
public class Row
{
public int star;
[Tooltip("옛 조각 진화 필요 조각(evolve_stars 에는 없음 = 0 · 진화에 조각을 쓰지 않는다)")]
public int shardsNeeded;
public float starPct;
public string skillUnlock;
[Tooltip("이 ★ 로 올릴 때 쓰는 진영 비서 등급(0 = 시작 상태)")]
public int tier;
[Tooltip("비서 권수")]
public int item;
public int gold;
[Tooltip("이 ★ 의 최대 레벨")]
public int maxLv;
}
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;
}
}
}
}