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