bug
parent
81a603e0dc
commit
c7c43110e6
|
@ -4,6 +4,7 @@ import com.ljsd.jieling.logic.STableManager;
|
|||
import com.ljsd.jieling.logic.Table;
|
||||
import com.ljsd.jieling.util.StringUtil;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
@ -69,7 +70,8 @@ public class SSkillLogicConfig implements BaseConfig {
|
|||
}
|
||||
}
|
||||
int[] ints = StringUtil.parseFiledInt(effectStr.toString());
|
||||
Map<Integer,Integer> map = new ConcurrentHashMap<>();
|
||||
|
||||
Map<Integer,Integer> map = new HashMap<>();
|
||||
for (int i =0 ; i < ints.length; i++){
|
||||
map.put(i,ints[i]);
|
||||
}
|
||||
|
@ -81,8 +83,8 @@ public class SSkillLogicConfig implements BaseConfig {
|
|||
if (flag == index){
|
||||
break;
|
||||
}
|
||||
flag++;
|
||||
}
|
||||
flag++;
|
||||
}
|
||||
return backIndex;
|
||||
}
|
||||
|
@ -105,6 +107,9 @@ public class SSkillLogicConfig implements BaseConfig {
|
|||
for (int i = 0; i < targets.length ; i++){
|
||||
SkillTargetVo skillTargetVo = new SkillTargetVo();
|
||||
skillTargetVo.setTargetId((int) targets[i][0]);
|
||||
// if (skillTargetVo.getTargetId()==30011){
|
||||
// System.out.println("SSSSSS");
|
||||
// }
|
||||
skillTargetVo.setContinuedTime(targets[i][1]);
|
||||
skillTargetVo.setEffectVale(getEffectVal(effect[i],effectValue,effect));
|
||||
skillTargetVos.add(skillTargetVo);
|
||||
|
|
|
@ -78,7 +78,7 @@ public class CheckFight {
|
|||
LuaValue func = transCoderObj.get(LuaValue.valueOf("Execute"));
|
||||
LuaValue result = func.call(LuaValue.valueOf(seed),fightData,optionData);
|
||||
int status = result.get("result").toint();
|
||||
int[] resultCache = new int[6];
|
||||
int[] resultCache = new int[]{};
|
||||
resultCache[0]=status;
|
||||
LOGGER.info(" lua check test fight result : "+ status);
|
||||
if (status==1){
|
||||
|
|
Loading…
Reference in New Issue