修行技能代码修改

back_recharge
yuanshuai 2021-10-21 15:37:01 +08:00
parent 93974b5c1b
commit 03baa1f90c
1 changed files with 5 additions and 4 deletions

View File

@ -266,18 +266,19 @@ public class FightDataUtil {
if(skillId.equals("0")||skillId==""){ if(skillId.equals("0")||skillId==""){
continue; continue;
} }
///100代表是修行技能
if (unitInfo.getPosition()==100){ if (unitInfo.getPosition()==100){
SPlayerSkill playerSkillConfig=STableManager.getConfig(SPlayerSkill.class).get(Integer.valueOf(skillId));
LuaValue monster = new LuaTable(); LuaValue monster = new LuaTable();
monster.set("id",0); monster.set("id",0);
monster.set("star",0); monster.set("star",0);
monster.set("teamDamage",unitInfo.getForceScore()); monster.set("teamDamage",unitInfo.getForceScore());
monster.set("camp",camp); monster.set("camp",camp);
monster.set("position",unitInfo.getPosition()); monster.set("position",unitInfo.getPosition());
monster.set("property",getProperty(pokemonUnitList.get(i).getProperty())); monster.set("property",getProperty(unitInfo.getProperty()));
String[] skillIdArr = skillId.split("#"); String[] skillIdArr = skillId.split("#");
LuaValue skillList= new LuaTable(); LuaValue skillList= new LuaTable();
for (int k = 0; k < skillIdArr.length; k++) { for (int k = 0; k < skillIdArr.length; k++) {
SPlayerSkill playerSkillConfig=STableManager.getConfig(SPlayerSkill.class).get(Integer.valueOf(skillIdArr[k]));
LuaValue skill= new LuaTable(); LuaValue skill= new LuaTable();
int[] skillIDList = playerSkillConfig.getSkillIDList(); int[] skillIDList = playerSkillConfig.getSkillIDList();
for(int j = 0 ; j <skillIDList.length;j++){ for(int j = 0 ; j <skillIDList.length;j++){
@ -311,8 +312,8 @@ public class FightDataUtil {
monster.set("id",sSpiritAnimalSkill.getSpiritAnimalMatch()); monster.set("id",sSpiritAnimalSkill.getSpiritAnimalMatch());
monster.set("star",sSpiritAnimalSkill.getStarMatch()); monster.set("star",sSpiritAnimalSkill.getStarMatch());
monster.set("camp",camp); monster.set("camp",camp);
monster.set("position",pokemonUnitList.get(i).getPosition()); monster.set("position",unitInfo.getPosition());
monster.set("property",getProperty(pokemonUnitList.get(i).getProperty())); monster.set("property",getProperty(unitInfo.getProperty()));
String[] skillIdArr = skillId.split("#"); String[] skillIdArr = skillId.split("#");
LuaValue skillList= new LuaTable(); LuaValue skillList= new LuaTable();
for (int k = 0; k < skillIdArr.length; k++) { for (int k = 0; k < skillIdArr.length; k++) {