mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
169 lines
3.0 KiB
C#
169 lines
3.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public class AvatarFragmentDataItem : StorageDataItemBase
|
|
{
|
|
private AvatarFragmentMetaData _metaData;
|
|
|
|
public AvatarFragmentDataItem(AvatarFragmentMetaData avatarCardMetaData)
|
|
{
|
|
uid = 0;
|
|
_metaData = avatarCardMetaData;
|
|
ID = _metaData.ID;
|
|
rarity = _metaData.rarity;
|
|
level = 1;
|
|
exp = 0;
|
|
number = 1;
|
|
}
|
|
|
|
public override StorageDataItemBase Clone()
|
|
{
|
|
AvatarFragmentDataItem avatarFragmentDataItem = new AvatarFragmentDataItem(_metaData);
|
|
avatarFragmentDataItem.level = level;
|
|
avatarFragmentDataItem.exp = exp;
|
|
avatarFragmentDataItem.number = number;
|
|
return avatarFragmentDataItem;
|
|
}
|
|
|
|
public override int GetIdForKey()
|
|
{
|
|
return ID;
|
|
}
|
|
|
|
public override float GetPriceForSell()
|
|
{
|
|
return _metaData.sellPriceBase + _metaData.sellPriceAdd * (float)level;
|
|
}
|
|
|
|
public override string GetImagePath()
|
|
{
|
|
return _metaData.imagePath;
|
|
}
|
|
|
|
public override string GetIconPath()
|
|
{
|
|
return _metaData.iconPath;
|
|
}
|
|
|
|
public override int GetCost()
|
|
{
|
|
return _metaData.cost;
|
|
}
|
|
|
|
public override float GetHPAdd()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override float GetSPAdd()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override float GetAttackAdd()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override float GetCriticalAdd()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override float GetDefenceAdd()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override int GetMaxLevel()
|
|
{
|
|
return _metaData.maxLv;
|
|
}
|
|
|
|
public override float GetGearExp()
|
|
{
|
|
return _metaData.gearExpProvideBase + _metaData.gearExpPorvideAdd * (float)(level - 1);
|
|
}
|
|
|
|
public override int GetMaxRarity()
|
|
{
|
|
return _metaData.maxRarity;
|
|
}
|
|
|
|
public override int GetMaxExp()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override int GetExpType()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override string GetDisplayTitle()
|
|
{
|
|
return LocalizationGeneralLogic.GetText(_metaData.displayTitle);
|
|
}
|
|
|
|
public override string GetDescription()
|
|
{
|
|
return LocalizationGeneralLogic.GetText(_metaData.displayDescription);
|
|
}
|
|
|
|
public override List<KeyValuePair<int, int>> GetEvoMaterial()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override StorageDataItemBase GetEvoStorageItem()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public override int GetCoinNeedToUpLevel()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override int GetCoinNeedToUpRarity()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override int GetSubRarity()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
public override int GetMaxSubRarity()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override void UpLevel()
|
|
{
|
|
}
|
|
|
|
public override void UpRarity()
|
|
{
|
|
}
|
|
|
|
public float GetAvatarExpProvideNum()
|
|
{
|
|
return _metaData.characterExpProvide;
|
|
}
|
|
|
|
public override int GetBaseType()
|
|
{
|
|
return _metaData.BaseType;
|
|
}
|
|
|
|
public override string GetBaseTypeName()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|