#!/usr/bin/env python3
"""임시 데이터 확인 스크립트"""
import json
from pathlib import Path

# DT_Skill 확인
data_file = Path("D:/Work/WorldStalker/DS-전투분석_저장소/원본데이터/DataTable.json")
with open(data_file, 'r', encoding='utf-8') as f:
    data = json.load(f)

assets = data.get('Assets', [])
skill_dt = [a for a in assets if a.get('AssetName') == 'DT_Skill']

if skill_dt:
    rows = skill_dt[0].get('Rows', [])
    sample = rows[0]
    skill_data = sample.get('Data', {})

    print(f"RowName: {sample.get('RowName')}")
    print(f"Data keys: {list(skill_data.keys())[:20]}")
    print(f"\nHas desc: {'desc' in skill_data}")
    print(f"Has descValues: {'descValues' in skill_data}")

    if 'desc' in skill_data:
        print(f"\nDesc sample: {skill_data['desc'][:200]}")
    if 'descValues' in skill_data:
        print(f"DescValues: {skill_data['descValues']}")

# Check for SK100202 (Hilda counter skill)
hilda_counter = [row for row in rows if row.get('RowName') == 'SK100202']
if hilda_counter:
    counter_data = hilda_counter[0].get('Data', {})
    print(f"\n\n=== SK100202 (Hilda Counter) ===")
    print(f"Desc: {counter_data.get('desc', 'N/A')}")
    print(f"DescValues: {counter_data.get('descValues', [])}")

# Check stalker names
char_stat_dt = [a for a in assets if a.get('AssetName') == 'DT_CharacterStat']
if char_stat_dt:
    rows = char_stat_dt[0].get('Rows', [])
    hilda_row = [row for row in rows if row.get('RowName') == 'hilda']
    if hilda_row:
        hilda_data = hilda_row[0].get('Data', {})
        print(f"\n\n=== Hilda Character Data ===")
        print(f"Name: {hilda_data.get('name', 'N/A')}")
        print(f"JobName: {hilda_data.get('jobName', 'N/A')}")
        print(f"Data keys: {list(hilda_data.keys())[:15]}")
