111 lines
2.0 KiB
C#
111 lines
2.0 KiB
C#
//------------------------------------------------------------------------------
|
|
// <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 F;
|
|
using F.Item;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
/// <summary>
|
|
/// Generated from: item.xlsx
|
|
/// </summary>
|
|
partial class ItemProp
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public bool isMoney
|
|
{
|
|
get { return type == Item.Type.Money; }
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public bool isProp
|
|
{
|
|
get { return Item.Type.Prop == type; }
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public bool isWeapon
|
|
{
|
|
get { return type == Item.Type.Weapon; }
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public bool isEquipment
|
|
{
|
|
get { return type == Item.Type.Equipment; }
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public bool isWeaponOrEquipment
|
|
{
|
|
get { return type == Item.Type.Weapon || type == Item.Type.Equipment; }
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public bool isGem
|
|
{
|
|
get { return type == Item.Type.Gem; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 红颜道具
|
|
/// </summary>
|
|
public bool isBeautyProp
|
|
{
|
|
get { return type == Item.Type.BeautyProp; }
|
|
}
|
|
|
|
public string gradeText
|
|
{
|
|
get
|
|
{
|
|
int result = level / 10 + (level % 10) != 0 ? 1 : 0;
|
|
return GlobalUtils.NumberToChinese(result) + "品";
|
|
}
|
|
}
|
|
|
|
public string text
|
|
{
|
|
get { return KLocalization.GetLocalString(textId); }
|
|
}
|
|
|
|
public string[] icon
|
|
{
|
|
get
|
|
{
|
|
var iconItem = ItemProxy.Instance.GetStaticItem<ItemIcon>(this.iconId);
|
|
return iconItem != null ? iconItem.spriteInfo : null;
|
|
}
|
|
}
|
|
|
|
public ItemInfo sellPriceInfo;
|
|
public ItemInfo buyPriceInfo;
|
|
|
|
public override void Init()
|
|
{
|
|
sellPriceInfo = ItemInfo.Convert(sellPrice);
|
|
buyPriceInfo = ItemInfo.Convert(buyPrice);
|
|
}
|
|
}
|
|
}
|