45 lines
1.5 KiB
C#
45 lines
1.5 KiB
C#
using BrewMonster;
|
|
using BrewMonster.Scripts.Managers;
|
|
using ModelRenderer.Scripts.GameData;
|
|
|
|
namespace PerfectWorld.Scripts.Managers
|
|
{
|
|
public class EC_IvtrStone : EC_IvtrItem
|
|
{
|
|
// Data in database
|
|
private STONE_ESSENCE m_pDBEssence;
|
|
|
|
/// <summary>
|
|
/// Not create logic yet (add summary later)
|
|
/// </summary>
|
|
/// <param name="tid">Template id</param>
|
|
/// <param name="expire_date">Expire date</param>
|
|
public EC_IvtrStone(int tid, int expire_date) : base(tid, expire_date)
|
|
{
|
|
m_iCID = (int)EC_IvtrEquip.EQUIP_CLASS_ID.ICID_STONE;
|
|
|
|
// Get database data
|
|
elementdataman pDB = ElementDataManProvider.GetElementDataMan();
|
|
DATA_TYPE DataType = default;
|
|
m_pDBEssence = (STONE_ESSENCE)pDB.get_data_ptr((uint)tid, ID_SPACE.ID_SPACE_ESSENCE,ref DataType);
|
|
// m_pDBSubType = (STONE_SUB_TYPE*)pDB->get_data_ptr(m_pDBEssence->id_sub_type, ID_SPACE_ESSENCE, DataType);
|
|
|
|
m_iPileLimit = m_pDBEssence.pile_num_max;
|
|
m_iPrice = m_pDBEssence.price;
|
|
m_iShopPrice = m_pDBEssence.shop_price;
|
|
m_iProcType = (int)m_pDBEssence.proc_type;
|
|
m_i64EquipMask = 0;
|
|
m_bEmbeddable = true;
|
|
|
|
m_bNeedUpdate = false;
|
|
}
|
|
|
|
public EC_IvtrStone(EC_IvtrStone other) : base(other)
|
|
{
|
|
}
|
|
|
|
public STONE_ESSENCE GetDBEssence() { return m_pDBEssence; }
|
|
}
|
|
}
|
|
|