94 lines
2.1 KiB
C#
Raw Normal View History

2025-05-18 01:04:31 +08:00
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace G
{
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Generated from: home.xlsx
/// </summary>
partial class ItemBeautySkin
{
/// <summary>
///
/// </summary>
public bool isHave
{
get;
set;
}
/// <summary>
///
/// </summary>
/// <param name="results"></param>
public void GetAttributes(List<CombatAttribute> results)
{
int _grade = 0;
int count = addValue.Length / 3;
for (int i = 0; i < count; i++)
{
int index = i * 3;
results.Add(new CombatAttribute
{
id = (CombatAttributeId)addValue[index],
value = _grade > 0 ? addValue[index + 1] + (_grade - 1) * addValue[index + 2] : addValue[index + 1]
});
}
}
/// <summary>
///
/// </summary>
/// <param name="results"></param>
public void GetNextAttributes(List<CombatAttribute> results)
{
int _grade = 0;
int count = addValue.Length / 3;
for (int i = 0; i < count; i++)
{
int index = i * 3;
results.Add(new CombatAttribute
{
id = (CombatAttributeId)addValue[index],
value = _grade > 0 ? addValue[index + 1] + _grade * addValue[index + 2] : addValue[index + 1]
});
}
}
public string currGradeText
{
get
{
string result = this.effect;
var results = F.ListPool<CombatAttribute>.Get();
GetAttributes(results);
if (results.Count == 1)
{
result = results[0].ToString();
}
else if (results.Count == 2)
{
result = results[0].ToString() + " " + results[1].ToString();
}
F.ListPool<CombatAttribute>.Release(results);
return result;
}
}
public Item.ItemInfo costInfo;
public override void Init()
{
costInfo = Item.ItemInfo.Convert(cost);
}
}
}