112 lines
1.7 KiB
C#
112 lines
1.7 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 CodeStage.AntiCheat.ObscuredTypes;
|
|
|
|
/// <summary>
|
|
/// Generated from: kungfu.xlsx
|
|
/// </summary>
|
|
public partial class ItemBook
|
|
{
|
|
ObscuredInt _obStatus;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public int status
|
|
{
|
|
get { return _obStatus; }
|
|
set { _obStatus = value; }
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public bool isUnlock
|
|
{
|
|
get { return _obStatus > 0; }
|
|
set
|
|
{
|
|
if (_obStatus <= 0)
|
|
_obStatus = 1;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public bool isActive
|
|
{
|
|
get { return _obStatus > 1; }
|
|
set
|
|
{
|
|
if (_obStatus <= 1)
|
|
_obStatus = 2;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public bool canActive
|
|
{
|
|
get { return _obStatus == 1; }
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public ItemBookGroup bookGroup
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public bool Unlock()
|
|
{
|
|
if (_obStatus <= 0)
|
|
{
|
|
_obStatus = 1;
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public bool Active()
|
|
{
|
|
if (_obStatus == 1)
|
|
{
|
|
_obStatus = 2;
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public int CalcCombatValue()
|
|
{
|
|
return isActive ? combatValue : 0;
|
|
}
|
|
|
|
public override void Reset()
|
|
{
|
|
_obStatus = 0;
|
|
}
|
|
}
|
|
}
|