|
@@ -172,10 +172,16 @@ namespace GFGGame
|
|
// return;
|
|
// return;
|
|
// }
|
|
// }
|
|
FieldCfg fieldCfg = FieldCfgArray.Instance.GetCfg(FieldDataManager.Instance.chapterId);
|
|
FieldCfg fieldCfg = FieldCfgArray.Instance.GetCfg(FieldDataManager.Instance.chapterId);
|
|
- if (!this._resultData.Result || FieldDataManager.Instance.currFightLv == fieldCfg.num || RoleDataManager.power < fieldCfg.needPower)
|
|
|
|
|
|
+
|
|
|
|
+ int needPower = 0;
|
|
|
|
+ for (int i = 0; i < FieldDataManager.Instance.currFightLv + 1; i++)
|
|
|
|
+ {
|
|
|
|
+ needPower += fieldCfg.needPower;
|
|
|
|
+ }
|
|
|
|
+ if (!this._resultData.Result || FieldDataManager.Instance.currFightLv == fieldCfg.num || RoleDataManager.power < needPower)
|
|
{
|
|
{
|
|
ViewManager.Show<FieldView>();
|
|
ViewManager.Show<FieldView>();
|
|
- if (FieldDataManager.Instance.currFightLv <= 1) return;
|
|
|
|
|
|
+ // if (FieldDataManager.Instance.currFightLv <= 1) return;
|
|
bool result = await FieldSProxy.ReqFieldInstanceResult();
|
|
bool result = await FieldSProxy.ReqFieldInstanceResult();
|
|
if (result)
|
|
if (result)
|
|
{
|
|
{
|