战斗参数返回
parent
25040b3815
commit
b491e01c9e
|
@ -105,15 +105,15 @@ public class CheckFight {
|
|||
resultCache[0]= result.get("result").tolong();
|
||||
resultCache[1]= result.get("duration").tolong();
|
||||
LOGGER.info(" lua check test fight result : {} {}", resultCache[0] , result.length());
|
||||
for (int i = 2; i <= result.length(); i++) {
|
||||
for (int i = 1; i <= result.length(); i++) {
|
||||
long talon = result.rawget(i).tolong();
|
||||
if(talon>0){
|
||||
resultCache[i]= Math.min(Long.MAX_VALUE,talon);
|
||||
}else {
|
||||
resultCache[i]= Math.max(Long.MIN_VALUE,talon);
|
||||
if (talon > 0) {
|
||||
resultCache[i + 1] = Math.min(Long.MAX_VALUE, talon);
|
||||
} else {
|
||||
resultCache[i + 1] = Math.max(Long.MIN_VALUE, talon);
|
||||
}
|
||||
resultCache[i] = result.rawget(i).tolong();
|
||||
LOGGER.info(i+" --> 单位剩余血量 : "+ resultCache[i]);
|
||||
resultCache[i + 1] = result.rawget(i).tolong();
|
||||
LOGGER.info(i + " --> 单位剩余血量 : " + resultCache[i + 1]);
|
||||
}
|
||||
resultCache[8]= result.get("curRound").tolong();
|
||||
return resultCache;
|
||||
|
|
Loading…
Reference in New Issue