//------------------------------------------------------------------------------
//
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace G
{
using System.Collections;
using System.Collections.Generic;
///
/// Generated from: home.xlsx
///
partial class ItemBeautySkin
{
///
///
///
public bool isHave
{
get;
set;
}
///
///
///
///
public void GetAttributes(List 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]
});
}
}
///
///
///
///
public void GetNextAttributes(List 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.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.Release(results);
return result;
}
}
public Item.ItemInfo costInfo;
public override void Init()
{
costInfo = Item.ItemInfo.Convert(cost);
}
}
}