工会副本修改
parent
b20567f328
commit
e7ea5f645e
|
|
@ -114,7 +114,7 @@ public class CheckFight {
|
||||||
}else {
|
}else {
|
||||||
resultCache[i+1]= Math.max(Long.MIN_VALUE,tolong);
|
resultCache[i+1]= Math.max(Long.MIN_VALUE,tolong);
|
||||||
}
|
}
|
||||||
resultCache[i+1] = (long) result.rawget(i).toint();
|
resultCache[i+1] = result.rawget(i).tolong();
|
||||||
LOGGER.info(i+" --> 单位剩余血量 : "+ resultCache[i+1]);
|
LOGGER.info(i+" --> 单位剩余血量 : "+ resultCache[i+1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ public class GuildInfo extends MongoBase {
|
||||||
|
|
||||||
private int currBossId;
|
private int currBossId;
|
||||||
|
|
||||||
private int bossHpRemain;
|
private long bossHpRemain;
|
||||||
|
|
||||||
private int buffIndex;
|
private int buffIndex;
|
||||||
|
|
||||||
|
|
@ -284,11 +284,11 @@ public class GuildInfo extends MongoBase {
|
||||||
updateString("currBossId",currBossId);
|
updateString("currBossId",currBossId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getBossHpRemain() {
|
public long getBossHpRemain() {
|
||||||
return bossHpRemain;
|
return bossHpRemain;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBossHpRemain(int bossHpRemain) {
|
public void setBossHpRemain(long bossHpRemain) {
|
||||||
this.bossHpRemain = bossHpRemain;
|
this.bossHpRemain = bossHpRemain;
|
||||||
updateString("bossHpRemain",bossHpRemain);
|
updateString("bossHpRemain",bossHpRemain);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -225,7 +225,7 @@ public class GuildChallengeLogic {
|
||||||
}else if(checkResult[0]==0){
|
}else if(checkResult[0]==0){
|
||||||
//怪物保持在第四位
|
//怪物保持在第四位
|
||||||
if(guildInfo.getBossHpRemain()!=-1){
|
if(guildInfo.getBossHpRemain()!=-1){
|
||||||
guildInfo.setBossHpRemain(checkResult[3]==0?10000: (int) checkResult[3]);
|
guildInfo.setBossHpRemain(checkResult[3]);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
error = "战斗异常!";
|
error = "战斗异常!";
|
||||||
|
|
@ -240,7 +240,7 @@ public class GuildChallengeLogic {
|
||||||
}else{
|
}else{
|
||||||
//扫荡
|
//扫荡
|
||||||
if(guildInfo.getBossHpRemain()!=-1){
|
if(guildInfo.getBossHpRemain()!=-1){
|
||||||
int remain = guildInfo.getBossHpRemain() - guildMyInfo.getGuildChallengeDamage();
|
long remain = guildInfo.getBossHpRemain() - guildMyInfo.getGuildChallengeDamage();
|
||||||
if(remain>=0){
|
if(remain>=0){
|
||||||
guildInfo.setBossHpRemain(remain);
|
guildInfo.setBossHpRemain(remain);
|
||||||
}else{
|
}else{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue