Browse Source

调整排版

master
wserver/wangdisen 3 years ago
parent
commit
997fd4c531
  1. 4
      Unity/Codes/Hotfix/Demo/Gather/GatherSystem.cs

4
Unity/Codes/Hotfix/Demo/Gather/GatherSystem.cs

@ -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())
{

Loading…
Cancel
Save