mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
19 lines
498 B
C#
19 lines
498 B
C#
namespace MoleMole
|
|
{
|
|
public class EquipItemActor : BaseGoodsActor
|
|
{
|
|
public int rarity { get; set; }
|
|
|
|
public override void DoGoodsLogic(uint avatarRuntimeID)
|
|
{
|
|
BaseMonoAvatar localAvatar = Singleton<AvatarManager>.Instance.GetLocalAvatar();
|
|
localAvatar.PickupEquipItem(rarity, runtimeID);
|
|
if (_entity.DropItemMetaID != -1)
|
|
{
|
|
Singleton<LevelScoreManager>.Instance.AddDropItemToShow(_entity.DropItemMetaID, _entity.DropItemLevel, _entity.DropItemNum);
|
|
}
|
|
Kill();
|
|
}
|
|
}
|
|
}
|