33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using Cielonos.MainGame.UI;
|
|
using UnityEngine;
|
|
|
|
namespace Cielonos.MainGame.Inventory.Collections
|
|
{
|
|
public partial class Polychrome
|
|
{
|
|
public override Dictionary<string, string> GetDescriptionArgs()
|
|
{
|
|
var args = new Dictionary<string, string>();
|
|
if (attackData == null) return args;
|
|
|
|
// TODO: 将下列 AttackUnit key 替换为 AttackData ScriptableObject 中的实际 key 名
|
|
TryPopulateAttack(args, "light", "ProbingAttack");
|
|
// TryPopulateAttack(args, "heavy", "HeavySlash");
|
|
// TryPopulateAttack(args, "disruption_a", "DisruptionA");
|
|
// TryPopulateAttack(args, "disruption_b", "DisruptionB");
|
|
// TryPopulateAttack(args, "disruption_c", "DisruptionC");
|
|
|
|
return args;
|
|
}
|
|
|
|
private void TryPopulateAttack(Dictionary<string, string> args, string prefix, string unitKey)
|
|
{
|
|
if (attackData.attackUnits.TryGetValue(unitKey, out AttackUnit unit))
|
|
{
|
|
DisplayTextResolver.PopulateAttackArgs(args, prefix, unit, player);
|
|
}
|
|
}
|
|
}
|
|
}
|