规范修改
parent
5dda33b64f
commit
4da48e9d63
|
@ -116,7 +116,6 @@ public class FourChallengeLogic {
|
||||||
status = state;
|
status = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取四灵活动信息
|
* 获取四灵活动信息
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1262,7 +1262,6 @@ public class PlayerManager extends MongoBase {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 获取四灵试炼总层数
|
* 获取四灵试炼总层数
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public int getFourChallengeTotal(){
|
public int getFourChallengeTotal(){
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
@ -1295,7 +1294,7 @@ public class PlayerManager extends MongoBase {
|
||||||
int storeMax = STableManager.getConfig(SCampTowerSetting.class).get(1).getTimesStoreMax();
|
int storeMax = STableManager.getConfig(SCampTowerSetting.class).get(1).getTimesStoreMax();
|
||||||
int num = fourChallengeRemainTimes[index] + value;
|
int num = fourChallengeRemainTimes[index] + value;
|
||||||
// 比较,大于上限取上限
|
// 比较,大于上限取上限
|
||||||
fourChallengeRemainTimes[index] = num > storeMax?storeMax:num;
|
fourChallengeRemainTimes[index] = Math.min(num, storeMax);
|
||||||
updateString("fourChallengeRemainTimes", fourChallengeRemainTimes);
|
updateString("fourChallengeRemainTimes", fourChallengeRemainTimes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue