2021-04-08 20:09:59 +08:00
|
|
|
|
using Cal.DataTable;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
|
{
|
|
|
|
|
public class AddMainVIPAITimeGoodsEffect : GoodsEffect
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public override string Init(Unit unit, GoodsBase goodsBase,bool isLock =false)
|
|
|
|
|
{
|
|
|
|
|
base.unit = unit;
|
|
|
|
|
GoodsBase = goodsBase;
|
|
|
|
|
return Run();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string Run()
|
|
|
|
|
{
|
2021-04-11 19:50:39 +08:00
|
|
|
|
PlayerData data = unit.GetComponent<PlayerData>();
|
2021-04-08 20:09:59 +08:00
|
|
|
|
data.mainstoryVIPAITime += GoodsBase.CommonIncrease;
|
2021-06-29 11:28:15 +08:00
|
|
|
|
UnitHelper.SaveComponenet(data);
|
2021-04-08 20:09:59 +08:00
|
|
|
|
return string.Empty;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override async ETVoid Execute()
|
|
|
|
|
{
|
|
|
|
|
await ETTask.CompletedTask;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|