|
|
|
@ -128,6 +128,7 @@
|
|
|
|
|
GatherOperate.FinishGather(unit, self.Id); |
|
|
|
|
MessageHelper.SendToClient(unit, new M2C_NotifyGatherFinish() { GatherId = self.Id }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
unit.GetComponent<StoreComponent>().Add(config.BaseOut, product); |
|
|
|
|
|
|
|
|
|
var rate = (float) res.ResAttriDic[config.Id].GatherAmount / (float) res.ResAttriDic[config.Id].MaxAmount; |
|
|
|
@ -140,16 +141,15 @@
|
|
|
|
|
{ |
|
|
|
|
num = v.MaxAmount; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (num > v.GatherAmount) |
|
|
|
|
{ |
|
|
|
|
unit.GetComponent<StoreComponent>().Add(v.CfgId, num - v.GatherAmount); |
|
|
|
|
res.ResAttriDic[config.Id].ExtraOuts[i] = new ExtraOut() { CfgId = v.CfgId, GatherAmount = num, MaxAmount = v.MaxAmount }; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//月圆之夜, |
|
|
|
|
if (unit.IsMoonNight()) |
|
|
|
|
{ |
|
|
|
|