21 lines
769 B
C#
21 lines
769 B
C#
using System;
|
|
using System.Linq;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
public static class TempHeroLevelDump
|
|
{
|
|
[MenuItem("Tools/Temp/Dump Hero Levels")]
|
|
public static void Run()
|
|
{
|
|
var guids = AssetDatabase.FindAssets("t:AllyHero_SO", new[]{"Assets/Resources/so/ally"});
|
|
foreach (var g in guids.Take(12))
|
|
{
|
|
var path = AssetDatabase.GUIDToAssetPath(g);
|
|
var so = AssetDatabase.LoadAssetAtPath<AllyHero_SO>(path);
|
|
if (so == null) continue;
|
|
Debug.Log($"{so.ally_heroID} | {so.ally_heroName} | exp={so.ally_currentEXP} | unlockedTier={so.ally_growthUnlockedTierIndex} | display={so.GetDisplayLevelRatingKey()} | levelStats={(so.levelStats!=null?so.levelStats.Count:0)}");
|
|
}
|
|
}
|
|
}
|