Calculate challenge rounds left properly

This commit is contained in:
Melledy
2023-10-15 08:25:05 -07:00
parent 60ab978068
commit 29c41b7bba
3 changed files with 430 additions and 253 deletions

View File

@@ -23,14 +23,14 @@ public final class BattleStatisticsOuterClass {
private static final long serialVersionUID = 0L; private static final long serialVersionUID = 0L;
/** /**
* <code>optional double HKCPJKPOKGF = 5;</code> * <code>optional double total_delay_cumulate = 5;</code>
*/ */
private double hKCPJKPOKGF; private double totalDelayCumulate;
/** /**
* <code>optional double CKGDEAKGMLJ = 6;</code> * <code>optional double cost_time = 6;</code>
*/ */
private double cKGDEAKGMLJ; private double costTime;
/** /**
* <code>optional uint32 total_battle_turns = 1;</code> * <code>optional uint32 total_battle_turns = 1;</code>
@@ -43,38 +43,38 @@ public final class BattleStatisticsOuterClass {
private int totalAutoTurns; private int totalAutoTurns;
/** /**
* <code>optional uint32 NIFHACPIHFP = 4;</code> * <code>optional uint32 ultra_cnt = 4;</code>
*/ */
private int nIFHACPIHFP; private int ultraCnt;
/** /**
* <pre> * <pre>
* repeated MonsterBattleInfo monster_list = 8; * repeated MonsterBattleInfo monster_list = 8;
* </pre> * </pre>
* *
* <code>optional uint32 KIGOIMMHHLE = 9;</code> * <code>optional uint32 round_cnt = 9;</code>
*/ */
private int kIGOIMMHHLE; private int roundCnt;
/** /**
* <code>optional uint32 AOLAHGLLBAG = 10;</code> * <code>optional uint32 cocoon_dead_wave = 10;</code>
*/ */
private int aOLAHGLLBAG; private int cocoonDeadWave;
/** /**
* <code>optional uint32 FCFPKHNLGKA = 11;</code> * <code>optional uint32 avatar_battle_turns = 11;</code>
*/ */
private int fCFPKHNLGKA; private int avatarBattleTurns;
/** /**
* <code>optional uint32 LIAALHKEHIM = 12;</code> * <code>optional uint32 monster_battle_turns = 12;</code>
*/ */
private int lIAALHKEHIM; private int monsterBattleTurns;
/** /**
* <code>optional uint32 BEKMEDAINKG = 14;</code> * <code>optional uint32 challenge_score = 14;</code>
*/ */
private int bEKMEDAINKG; private int challengeScore;
/** /**
* <code>repeated uint32 avatar_id_list = 3;</code> * <code>repeated uint32 avatar_id_list = 3;</code>
@@ -102,76 +102,76 @@ public final class BattleStatisticsOuterClass {
} }
/** /**
* <code>optional double HKCPJKPOKGF = 5;</code> * <code>optional double total_delay_cumulate = 5;</code>
* @return whether the hKCPJKPOKGF field is set * @return whether the totalDelayCumulate field is set
*/ */
public boolean hasHKCPJKPOKGF() { public boolean hasTotalDelayCumulate() {
return (bitField0_ & 0x00000001) != 0; return (bitField0_ & 0x00000001) != 0;
} }
/** /**
* <code>optional double HKCPJKPOKGF = 5;</code> * <code>optional double total_delay_cumulate = 5;</code>
* @return this * @return this
*/ */
public BattleStatistics clearHKCPJKPOKGF() { public BattleStatistics clearTotalDelayCumulate() {
bitField0_ &= ~0x00000001; bitField0_ &= ~0x00000001;
hKCPJKPOKGF = 0D; totalDelayCumulate = 0D;
return this; return this;
} }
/** /**
* <code>optional double HKCPJKPOKGF = 5;</code> * <code>optional double total_delay_cumulate = 5;</code>
* @return the hKCPJKPOKGF * @return the totalDelayCumulate
*/ */
public double getHKCPJKPOKGF() { public double getTotalDelayCumulate() {
return hKCPJKPOKGF; return totalDelayCumulate;
} }
/** /**
* <code>optional double HKCPJKPOKGF = 5;</code> * <code>optional double total_delay_cumulate = 5;</code>
* @param value the hKCPJKPOKGF to set * @param value the totalDelayCumulate to set
* @return this * @return this
*/ */
public BattleStatistics setHKCPJKPOKGF(final double value) { public BattleStatistics setTotalDelayCumulate(final double value) {
bitField0_ |= 0x00000001; bitField0_ |= 0x00000001;
hKCPJKPOKGF = value; totalDelayCumulate = value;
return this; return this;
} }
/** /**
* <code>optional double CKGDEAKGMLJ = 6;</code> * <code>optional double cost_time = 6;</code>
* @return whether the cKGDEAKGMLJ field is set * @return whether the costTime field is set
*/ */
public boolean hasCKGDEAKGMLJ() { public boolean hasCostTime() {
return (bitField0_ & 0x00000002) != 0; return (bitField0_ & 0x00000002) != 0;
} }
/** /**
* <code>optional double CKGDEAKGMLJ = 6;</code> * <code>optional double cost_time = 6;</code>
* @return this * @return this
*/ */
public BattleStatistics clearCKGDEAKGMLJ() { public BattleStatistics clearCostTime() {
bitField0_ &= ~0x00000002; bitField0_ &= ~0x00000002;
cKGDEAKGMLJ = 0D; costTime = 0D;
return this; return this;
} }
/** /**
* <code>optional double CKGDEAKGMLJ = 6;</code> * <code>optional double cost_time = 6;</code>
* @return the cKGDEAKGMLJ * @return the costTime
*/ */
public double getCKGDEAKGMLJ() { public double getCostTime() {
return cKGDEAKGMLJ; return costTime;
} }
/** /**
* <code>optional double CKGDEAKGMLJ = 6;</code> * <code>optional double cost_time = 6;</code>
* @param value the cKGDEAKGMLJ to set * @param value the costTime to set
* @return this * @return this
*/ */
public BattleStatistics setCKGDEAKGMLJ(final double value) { public BattleStatistics setCostTime(final double value) {
bitField0_ |= 0x00000002; bitField0_ |= 0x00000002;
cKGDEAKGMLJ = value; costTime = value;
return this; return this;
} }
@@ -250,39 +250,39 @@ public final class BattleStatisticsOuterClass {
} }
/** /**
* <code>optional uint32 NIFHACPIHFP = 4;</code> * <code>optional uint32 ultra_cnt = 4;</code>
* @return whether the nIFHACPIHFP field is set * @return whether the ultraCnt field is set
*/ */
public boolean hasNIFHACPIHFP() { public boolean hasUltraCnt() {
return (bitField0_ & 0x00000010) != 0; return (bitField0_ & 0x00000010) != 0;
} }
/** /**
* <code>optional uint32 NIFHACPIHFP = 4;</code> * <code>optional uint32 ultra_cnt = 4;</code>
* @return this * @return this
*/ */
public BattleStatistics clearNIFHACPIHFP() { public BattleStatistics clearUltraCnt() {
bitField0_ &= ~0x00000010; bitField0_ &= ~0x00000010;
nIFHACPIHFP = 0; ultraCnt = 0;
return this; return this;
} }
/** /**
* <code>optional uint32 NIFHACPIHFP = 4;</code> * <code>optional uint32 ultra_cnt = 4;</code>
* @return the nIFHACPIHFP * @return the ultraCnt
*/ */
public int getNIFHACPIHFP() { public int getUltraCnt() {
return nIFHACPIHFP; return ultraCnt;
} }
/** /**
* <code>optional uint32 NIFHACPIHFP = 4;</code> * <code>optional uint32 ultra_cnt = 4;</code>
* @param value the nIFHACPIHFP to set * @param value the ultraCnt to set
* @return this * @return this
*/ */
public BattleStatistics setNIFHACPIHFP(final int value) { public BattleStatistics setUltraCnt(final int value) {
bitField0_ |= 0x00000010; bitField0_ |= 0x00000010;
nIFHACPIHFP = value; ultraCnt = value;
return this; return this;
} }
@@ -291,10 +291,10 @@ public final class BattleStatisticsOuterClass {
* repeated MonsterBattleInfo monster_list = 8; * repeated MonsterBattleInfo monster_list = 8;
* </pre> * </pre>
* *
* <code>optional uint32 KIGOIMMHHLE = 9;</code> * <code>optional uint32 round_cnt = 9;</code>
* @return whether the kIGOIMMHHLE field is set * @return whether the roundCnt field is set
*/ */
public boolean hasKIGOIMMHHLE() { public boolean hasRoundCnt() {
return (bitField0_ & 0x00000020) != 0; return (bitField0_ & 0x00000020) != 0;
} }
@@ -303,12 +303,12 @@ public final class BattleStatisticsOuterClass {
* repeated MonsterBattleInfo monster_list = 8; * repeated MonsterBattleInfo monster_list = 8;
* </pre> * </pre>
* *
* <code>optional uint32 KIGOIMMHHLE = 9;</code> * <code>optional uint32 round_cnt = 9;</code>
* @return this * @return this
*/ */
public BattleStatistics clearKIGOIMMHHLE() { public BattleStatistics clearRoundCnt() {
bitField0_ &= ~0x00000020; bitField0_ &= ~0x00000020;
kIGOIMMHHLE = 0; roundCnt = 0;
return this; return this;
} }
@@ -317,11 +317,11 @@ public final class BattleStatisticsOuterClass {
* repeated MonsterBattleInfo monster_list = 8; * repeated MonsterBattleInfo monster_list = 8;
* </pre> * </pre>
* *
* <code>optional uint32 KIGOIMMHHLE = 9;</code> * <code>optional uint32 round_cnt = 9;</code>
* @return the kIGOIMMHHLE * @return the roundCnt
*/ */
public int getKIGOIMMHHLE() { public int getRoundCnt() {
return kIGOIMMHHLE; return roundCnt;
} }
/** /**
@@ -329,161 +329,161 @@ public final class BattleStatisticsOuterClass {
* repeated MonsterBattleInfo monster_list = 8; * repeated MonsterBattleInfo monster_list = 8;
* </pre> * </pre>
* *
* <code>optional uint32 KIGOIMMHHLE = 9;</code> * <code>optional uint32 round_cnt = 9;</code>
* @param value the kIGOIMMHHLE to set * @param value the roundCnt to set
* @return this * @return this
*/ */
public BattleStatistics setKIGOIMMHHLE(final int value) { public BattleStatistics setRoundCnt(final int value) {
bitField0_ |= 0x00000020; bitField0_ |= 0x00000020;
kIGOIMMHHLE = value; roundCnt = value;
return this; return this;
} }
/** /**
* <code>optional uint32 AOLAHGLLBAG = 10;</code> * <code>optional uint32 cocoon_dead_wave = 10;</code>
* @return whether the aOLAHGLLBAG field is set * @return whether the cocoonDeadWave field is set
*/ */
public boolean hasAOLAHGLLBAG() { public boolean hasCocoonDeadWave() {
return (bitField0_ & 0x00000040) != 0; return (bitField0_ & 0x00000040) != 0;
} }
/** /**
* <code>optional uint32 AOLAHGLLBAG = 10;</code> * <code>optional uint32 cocoon_dead_wave = 10;</code>
* @return this * @return this
*/ */
public BattleStatistics clearAOLAHGLLBAG() { public BattleStatistics clearCocoonDeadWave() {
bitField0_ &= ~0x00000040; bitField0_ &= ~0x00000040;
aOLAHGLLBAG = 0; cocoonDeadWave = 0;
return this; return this;
} }
/** /**
* <code>optional uint32 AOLAHGLLBAG = 10;</code> * <code>optional uint32 cocoon_dead_wave = 10;</code>
* @return the aOLAHGLLBAG * @return the cocoonDeadWave
*/ */
public int getAOLAHGLLBAG() { public int getCocoonDeadWave() {
return aOLAHGLLBAG; return cocoonDeadWave;
} }
/** /**
* <code>optional uint32 AOLAHGLLBAG = 10;</code> * <code>optional uint32 cocoon_dead_wave = 10;</code>
* @param value the aOLAHGLLBAG to set * @param value the cocoonDeadWave to set
* @return this * @return this
*/ */
public BattleStatistics setAOLAHGLLBAG(final int value) { public BattleStatistics setCocoonDeadWave(final int value) {
bitField0_ |= 0x00000040; bitField0_ |= 0x00000040;
aOLAHGLLBAG = value; cocoonDeadWave = value;
return this; return this;
} }
/** /**
* <code>optional uint32 FCFPKHNLGKA = 11;</code> * <code>optional uint32 avatar_battle_turns = 11;</code>
* @return whether the fCFPKHNLGKA field is set * @return whether the avatarBattleTurns field is set
*/ */
public boolean hasFCFPKHNLGKA() { public boolean hasAvatarBattleTurns() {
return (bitField0_ & 0x00000080) != 0; return (bitField0_ & 0x00000080) != 0;
} }
/** /**
* <code>optional uint32 FCFPKHNLGKA = 11;</code> * <code>optional uint32 avatar_battle_turns = 11;</code>
* @return this * @return this
*/ */
public BattleStatistics clearFCFPKHNLGKA() { public BattleStatistics clearAvatarBattleTurns() {
bitField0_ &= ~0x00000080; bitField0_ &= ~0x00000080;
fCFPKHNLGKA = 0; avatarBattleTurns = 0;
return this; return this;
} }
/** /**
* <code>optional uint32 FCFPKHNLGKA = 11;</code> * <code>optional uint32 avatar_battle_turns = 11;</code>
* @return the fCFPKHNLGKA * @return the avatarBattleTurns
*/ */
public int getFCFPKHNLGKA() { public int getAvatarBattleTurns() {
return fCFPKHNLGKA; return avatarBattleTurns;
} }
/** /**
* <code>optional uint32 FCFPKHNLGKA = 11;</code> * <code>optional uint32 avatar_battle_turns = 11;</code>
* @param value the fCFPKHNLGKA to set * @param value the avatarBattleTurns to set
* @return this * @return this
*/ */
public BattleStatistics setFCFPKHNLGKA(final int value) { public BattleStatistics setAvatarBattleTurns(final int value) {
bitField0_ |= 0x00000080; bitField0_ |= 0x00000080;
fCFPKHNLGKA = value; avatarBattleTurns = value;
return this; return this;
} }
/** /**
* <code>optional uint32 LIAALHKEHIM = 12;</code> * <code>optional uint32 monster_battle_turns = 12;</code>
* @return whether the lIAALHKEHIM field is set * @return whether the monsterBattleTurns field is set
*/ */
public boolean hasLIAALHKEHIM() { public boolean hasMonsterBattleTurns() {
return (bitField0_ & 0x00000100) != 0; return (bitField0_ & 0x00000100) != 0;
} }
/** /**
* <code>optional uint32 LIAALHKEHIM = 12;</code> * <code>optional uint32 monster_battle_turns = 12;</code>
* @return this * @return this
*/ */
public BattleStatistics clearLIAALHKEHIM() { public BattleStatistics clearMonsterBattleTurns() {
bitField0_ &= ~0x00000100; bitField0_ &= ~0x00000100;
lIAALHKEHIM = 0; monsterBattleTurns = 0;
return this; return this;
} }
/** /**
* <code>optional uint32 LIAALHKEHIM = 12;</code> * <code>optional uint32 monster_battle_turns = 12;</code>
* @return the lIAALHKEHIM * @return the monsterBattleTurns
*/ */
public int getLIAALHKEHIM() { public int getMonsterBattleTurns() {
return lIAALHKEHIM; return monsterBattleTurns;
} }
/** /**
* <code>optional uint32 LIAALHKEHIM = 12;</code> * <code>optional uint32 monster_battle_turns = 12;</code>
* @param value the lIAALHKEHIM to set * @param value the monsterBattleTurns to set
* @return this * @return this
*/ */
public BattleStatistics setLIAALHKEHIM(final int value) { public BattleStatistics setMonsterBattleTurns(final int value) {
bitField0_ |= 0x00000100; bitField0_ |= 0x00000100;
lIAALHKEHIM = value; monsterBattleTurns = value;
return this; return this;
} }
/** /**
* <code>optional uint32 BEKMEDAINKG = 14;</code> * <code>optional uint32 challenge_score = 14;</code>
* @return whether the bEKMEDAINKG field is set * @return whether the challengeScore field is set
*/ */
public boolean hasBEKMEDAINKG() { public boolean hasChallengeScore() {
return (bitField0_ & 0x00000200) != 0; return (bitField0_ & 0x00000200) != 0;
} }
/** /**
* <code>optional uint32 BEKMEDAINKG = 14;</code> * <code>optional uint32 challenge_score = 14;</code>
* @return this * @return this
*/ */
public BattleStatistics clearBEKMEDAINKG() { public BattleStatistics clearChallengeScore() {
bitField0_ &= ~0x00000200; bitField0_ &= ~0x00000200;
bEKMEDAINKG = 0; challengeScore = 0;
return this; return this;
} }
/** /**
* <code>optional uint32 BEKMEDAINKG = 14;</code> * <code>optional uint32 challenge_score = 14;</code>
* @return the bEKMEDAINKG * @return the challengeScore
*/ */
public int getBEKMEDAINKG() { public int getChallengeScore() {
return bEKMEDAINKG; return challengeScore;
} }
/** /**
* <code>optional uint32 BEKMEDAINKG = 14;</code> * <code>optional uint32 challenge_score = 14;</code>
* @param value the bEKMEDAINKG to set * @param value the challengeScore to set
* @return this * @return this
*/ */
public BattleStatistics setBEKMEDAINKG(final int value) { public BattleStatistics setChallengeScore(final int value) {
bitField0_ |= 0x00000200; bitField0_ |= 0x00000200;
bEKMEDAINKG = value; challengeScore = value;
return this; return this;
} }
@@ -699,16 +699,16 @@ public final class BattleStatisticsOuterClass {
cachedSize = other.cachedSize; cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) { if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_; bitField0_ = other.bitField0_;
hKCPJKPOKGF = other.hKCPJKPOKGF; totalDelayCumulate = other.totalDelayCumulate;
cKGDEAKGMLJ = other.cKGDEAKGMLJ; costTime = other.costTime;
totalBattleTurns = other.totalBattleTurns; totalBattleTurns = other.totalBattleTurns;
totalAutoTurns = other.totalAutoTurns; totalAutoTurns = other.totalAutoTurns;
nIFHACPIHFP = other.nIFHACPIHFP; ultraCnt = other.ultraCnt;
kIGOIMMHHLE = other.kIGOIMMHHLE; roundCnt = other.roundCnt;
aOLAHGLLBAG = other.aOLAHGLLBAG; cocoonDeadWave = other.cocoonDeadWave;
fCFPKHNLGKA = other.fCFPKHNLGKA; avatarBattleTurns = other.avatarBattleTurns;
lIAALHKEHIM = other.lIAALHKEHIM; monsterBattleTurns = other.monsterBattleTurns;
bEKMEDAINKG = other.bEKMEDAINKG; challengeScore = other.challengeScore;
avatarIdList.copyFrom(other.avatarIdList); avatarIdList.copyFrom(other.avatarIdList);
battleAvatarList.copyFrom(other.battleAvatarList); battleAvatarList.copyFrom(other.battleAvatarList);
customValues.copyFrom(other.customValues); customValues.copyFrom(other.customValues);
@@ -722,11 +722,11 @@ public final class BattleStatisticsOuterClass {
return this; return this;
} }
cachedSize = -1; cachedSize = -1;
if (other.hasHKCPJKPOKGF()) { if (other.hasTotalDelayCumulate()) {
setHKCPJKPOKGF(other.hKCPJKPOKGF); setTotalDelayCumulate(other.totalDelayCumulate);
} }
if (other.hasCKGDEAKGMLJ()) { if (other.hasCostTime()) {
setCKGDEAKGMLJ(other.cKGDEAKGMLJ); setCostTime(other.costTime);
} }
if (other.hasTotalBattleTurns()) { if (other.hasTotalBattleTurns()) {
setTotalBattleTurns(other.totalBattleTurns); setTotalBattleTurns(other.totalBattleTurns);
@@ -734,23 +734,23 @@ public final class BattleStatisticsOuterClass {
if (other.hasTotalAutoTurns()) { if (other.hasTotalAutoTurns()) {
setTotalAutoTurns(other.totalAutoTurns); setTotalAutoTurns(other.totalAutoTurns);
} }
if (other.hasNIFHACPIHFP()) { if (other.hasUltraCnt()) {
setNIFHACPIHFP(other.nIFHACPIHFP); setUltraCnt(other.ultraCnt);
} }
if (other.hasKIGOIMMHHLE()) { if (other.hasRoundCnt()) {
setKIGOIMMHHLE(other.kIGOIMMHHLE); setRoundCnt(other.roundCnt);
} }
if (other.hasAOLAHGLLBAG()) { if (other.hasCocoonDeadWave()) {
setAOLAHGLLBAG(other.aOLAHGLLBAG); setCocoonDeadWave(other.cocoonDeadWave);
} }
if (other.hasFCFPKHNLGKA()) { if (other.hasAvatarBattleTurns()) {
setFCFPKHNLGKA(other.fCFPKHNLGKA); setAvatarBattleTurns(other.avatarBattleTurns);
} }
if (other.hasLIAALHKEHIM()) { if (other.hasMonsterBattleTurns()) {
setLIAALHKEHIM(other.lIAALHKEHIM); setMonsterBattleTurns(other.monsterBattleTurns);
} }
if (other.hasBEKMEDAINKG()) { if (other.hasChallengeScore()) {
setBEKMEDAINKG(other.bEKMEDAINKG); setChallengeScore(other.challengeScore);
} }
if (other.hasAvatarIdList()) { if (other.hasAvatarIdList()) {
getMutableAvatarIdList().addAll(other.avatarIdList); getMutableAvatarIdList().addAll(other.avatarIdList);
@@ -771,16 +771,16 @@ public final class BattleStatisticsOuterClass {
} }
cachedSize = -1; cachedSize = -1;
bitField0_ = 0; bitField0_ = 0;
hKCPJKPOKGF = 0D; totalDelayCumulate = 0D;
cKGDEAKGMLJ = 0D; costTime = 0D;
totalBattleTurns = 0; totalBattleTurns = 0;
totalAutoTurns = 0; totalAutoTurns = 0;
nIFHACPIHFP = 0; ultraCnt = 0;
kIGOIMMHHLE = 0; roundCnt = 0;
aOLAHGLLBAG = 0; cocoonDeadWave = 0;
fCFPKHNLGKA = 0; avatarBattleTurns = 0;
lIAALHKEHIM = 0; monsterBattleTurns = 0;
bEKMEDAINKG = 0; challengeScore = 0;
avatarIdList.clear(); avatarIdList.clear();
battleAvatarList.clear(); battleAvatarList.clear();
customValues.clear(); customValues.clear();
@@ -810,16 +810,16 @@ public final class BattleStatisticsOuterClass {
} }
BattleStatistics other = (BattleStatistics) o; BattleStatistics other = (BattleStatistics) o;
return bitField0_ == other.bitField0_ return bitField0_ == other.bitField0_
&& (!hasHKCPJKPOKGF() || ProtoUtil.isEqual(hKCPJKPOKGF, other.hKCPJKPOKGF)) && (!hasTotalDelayCumulate() || ProtoUtil.isEqual(totalDelayCumulate, other.totalDelayCumulate))
&& (!hasCKGDEAKGMLJ() || ProtoUtil.isEqual(cKGDEAKGMLJ, other.cKGDEAKGMLJ)) && (!hasCostTime() || ProtoUtil.isEqual(costTime, other.costTime))
&& (!hasTotalBattleTurns() || totalBattleTurns == other.totalBattleTurns) && (!hasTotalBattleTurns() || totalBattleTurns == other.totalBattleTurns)
&& (!hasTotalAutoTurns() || totalAutoTurns == other.totalAutoTurns) && (!hasTotalAutoTurns() || totalAutoTurns == other.totalAutoTurns)
&& (!hasNIFHACPIHFP() || nIFHACPIHFP == other.nIFHACPIHFP) && (!hasUltraCnt() || ultraCnt == other.ultraCnt)
&& (!hasKIGOIMMHHLE() || kIGOIMMHHLE == other.kIGOIMMHHLE) && (!hasRoundCnt() || roundCnt == other.roundCnt)
&& (!hasAOLAHGLLBAG() || aOLAHGLLBAG == other.aOLAHGLLBAG) && (!hasCocoonDeadWave() || cocoonDeadWave == other.cocoonDeadWave)
&& (!hasFCFPKHNLGKA() || fCFPKHNLGKA == other.fCFPKHNLGKA) && (!hasAvatarBattleTurns() || avatarBattleTurns == other.avatarBattleTurns)
&& (!hasLIAALHKEHIM() || lIAALHKEHIM == other.lIAALHKEHIM) && (!hasMonsterBattleTurns() || monsterBattleTurns == other.monsterBattleTurns)
&& (!hasBEKMEDAINKG() || bEKMEDAINKG == other.bEKMEDAINKG) && (!hasChallengeScore() || challengeScore == other.challengeScore)
&& (!hasAvatarIdList() || avatarIdList.equals(other.avatarIdList)) && (!hasAvatarIdList() || avatarIdList.equals(other.avatarIdList))
&& (!hasBattleAvatarList() || battleAvatarList.equals(other.battleAvatarList)) && (!hasBattleAvatarList() || battleAvatarList.equals(other.battleAvatarList))
&& (!hasCustomValues() || customValues.equals(other.customValues)); && (!hasCustomValues() || customValues.equals(other.customValues));
@@ -829,11 +829,11 @@ public final class BattleStatisticsOuterClass {
public void writeTo(final ProtoSink output) throws IOException { public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) { if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 41); output.writeRawByte((byte) 41);
output.writeDoubleNoTag(hKCPJKPOKGF); output.writeDoubleNoTag(totalDelayCumulate);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 49); output.writeRawByte((byte) 49);
output.writeDoubleNoTag(cKGDEAKGMLJ); output.writeDoubleNoTag(costTime);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 8); output.writeRawByte((byte) 8);
@@ -845,27 +845,27 @@ public final class BattleStatisticsOuterClass {
} }
if ((bitField0_ & 0x00000010) != 0) { if ((bitField0_ & 0x00000010) != 0) {
output.writeRawByte((byte) 32); output.writeRawByte((byte) 32);
output.writeUInt32NoTag(nIFHACPIHFP); output.writeUInt32NoTag(ultraCnt);
} }
if ((bitField0_ & 0x00000020) != 0) { if ((bitField0_ & 0x00000020) != 0) {
output.writeRawByte((byte) 72); output.writeRawByte((byte) 72);
output.writeUInt32NoTag(kIGOIMMHHLE); output.writeUInt32NoTag(roundCnt);
} }
if ((bitField0_ & 0x00000040) != 0) { if ((bitField0_ & 0x00000040) != 0) {
output.writeRawByte((byte) 80); output.writeRawByte((byte) 80);
output.writeUInt32NoTag(aOLAHGLLBAG); output.writeUInt32NoTag(cocoonDeadWave);
} }
if ((bitField0_ & 0x00000080) != 0) { if ((bitField0_ & 0x00000080) != 0) {
output.writeRawByte((byte) 88); output.writeRawByte((byte) 88);
output.writeUInt32NoTag(fCFPKHNLGKA); output.writeUInt32NoTag(avatarBattleTurns);
} }
if ((bitField0_ & 0x00000100) != 0) { if ((bitField0_ & 0x00000100) != 0) {
output.writeRawByte((byte) 96); output.writeRawByte((byte) 96);
output.writeUInt32NoTag(lIAALHKEHIM); output.writeUInt32NoTag(monsterBattleTurns);
} }
if ((bitField0_ & 0x00000200) != 0) { if ((bitField0_ & 0x00000200) != 0) {
output.writeRawByte((byte) 112); output.writeRawByte((byte) 112);
output.writeUInt32NoTag(bEKMEDAINKG); output.writeUInt32NoTag(challengeScore);
} }
if ((bitField0_ & 0x00000400) != 0) { if ((bitField0_ & 0x00000400) != 0) {
for (int i = 0; i < avatarIdList.length(); i++) { for (int i = 0; i < avatarIdList.length(); i++) {
@@ -903,22 +903,22 @@ public final class BattleStatisticsOuterClass {
size += 1 + ProtoSink.computeUInt32SizeNoTag(totalAutoTurns); size += 1 + ProtoSink.computeUInt32SizeNoTag(totalAutoTurns);
} }
if ((bitField0_ & 0x00000010) != 0) { if ((bitField0_ & 0x00000010) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(nIFHACPIHFP); size += 1 + ProtoSink.computeUInt32SizeNoTag(ultraCnt);
} }
if ((bitField0_ & 0x00000020) != 0) { if ((bitField0_ & 0x00000020) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(kIGOIMMHHLE); size += 1 + ProtoSink.computeUInt32SizeNoTag(roundCnt);
} }
if ((bitField0_ & 0x00000040) != 0) { if ((bitField0_ & 0x00000040) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(aOLAHGLLBAG); size += 1 + ProtoSink.computeUInt32SizeNoTag(cocoonDeadWave);
} }
if ((bitField0_ & 0x00000080) != 0) { if ((bitField0_ & 0x00000080) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(fCFPKHNLGKA); size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarBattleTurns);
} }
if ((bitField0_ & 0x00000100) != 0) { if ((bitField0_ & 0x00000100) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(lIAALHKEHIM); size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterBattleTurns);
} }
if ((bitField0_ & 0x00000200) != 0) { if ((bitField0_ & 0x00000200) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(bEKMEDAINKG); size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeScore);
} }
if ((bitField0_ & 0x00000400) != 0) { if ((bitField0_ & 0x00000400) != 0) {
size += (1 * avatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(avatarIdList); size += (1 * avatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(avatarIdList);
@@ -940,8 +940,8 @@ public final class BattleStatisticsOuterClass {
while (true) { while (true) {
switch (tag) { switch (tag) {
case 41: { case 41: {
// hKCPJKPOKGF // totalDelayCumulate
hKCPJKPOKGF = input.readDouble(); totalDelayCumulate = input.readDouble();
bitField0_ |= 0x00000001; bitField0_ |= 0x00000001;
tag = input.readTag(); tag = input.readTag();
if (tag != 49) { if (tag != 49) {
@@ -949,8 +949,8 @@ public final class BattleStatisticsOuterClass {
} }
} }
case 49: { case 49: {
// cKGDEAKGMLJ // costTime
cKGDEAKGMLJ = input.readDouble(); costTime = input.readDouble();
bitField0_ |= 0x00000002; bitField0_ |= 0x00000002;
tag = input.readTag(); tag = input.readTag();
if (tag != 8) { if (tag != 8) {
@@ -976,8 +976,8 @@ public final class BattleStatisticsOuterClass {
} }
} }
case 32: { case 32: {
// nIFHACPIHFP // ultraCnt
nIFHACPIHFP = input.readUInt32(); ultraCnt = input.readUInt32();
bitField0_ |= 0x00000010; bitField0_ |= 0x00000010;
tag = input.readTag(); tag = input.readTag();
if (tag != 72) { if (tag != 72) {
@@ -985,8 +985,8 @@ public final class BattleStatisticsOuterClass {
} }
} }
case 72: { case 72: {
// kIGOIMMHHLE // roundCnt
kIGOIMMHHLE = input.readUInt32(); roundCnt = input.readUInt32();
bitField0_ |= 0x00000020; bitField0_ |= 0x00000020;
tag = input.readTag(); tag = input.readTag();
if (tag != 80) { if (tag != 80) {
@@ -994,8 +994,8 @@ public final class BattleStatisticsOuterClass {
} }
} }
case 80: { case 80: {
// aOLAHGLLBAG // cocoonDeadWave
aOLAHGLLBAG = input.readUInt32(); cocoonDeadWave = input.readUInt32();
bitField0_ |= 0x00000040; bitField0_ |= 0x00000040;
tag = input.readTag(); tag = input.readTag();
if (tag != 88) { if (tag != 88) {
@@ -1003,8 +1003,8 @@ public final class BattleStatisticsOuterClass {
} }
} }
case 88: { case 88: {
// fCFPKHNLGKA // avatarBattleTurns
fCFPKHNLGKA = input.readUInt32(); avatarBattleTurns = input.readUInt32();
bitField0_ |= 0x00000080; bitField0_ |= 0x00000080;
tag = input.readTag(); tag = input.readTag();
if (tag != 96) { if (tag != 96) {
@@ -1012,8 +1012,8 @@ public final class BattleStatisticsOuterClass {
} }
} }
case 96: { case 96: {
// lIAALHKEHIM // monsterBattleTurns
lIAALHKEHIM = input.readUInt32(); monsterBattleTurns = input.readUInt32();
bitField0_ |= 0x00000100; bitField0_ |= 0x00000100;
tag = input.readTag(); tag = input.readTag();
if (tag != 112) { if (tag != 112) {
@@ -1021,8 +1021,8 @@ public final class BattleStatisticsOuterClass {
} }
} }
case 112: { case 112: {
// bEKMEDAINKG // challengeScore
bEKMEDAINKG = input.readUInt32(); challengeScore = input.readUInt32();
bitField0_ |= 0x00000200; bitField0_ |= 0x00000200;
tag = input.readTag(); tag = input.readTag();
if (tag != 26) { if (tag != 26) {
@@ -1078,10 +1078,10 @@ public final class BattleStatisticsOuterClass {
public void writeTo(final JsonSink output) throws IOException { public void writeTo(final JsonSink output) throws IOException {
output.beginObject(); output.beginObject();
if ((bitField0_ & 0x00000001) != 0) { if ((bitField0_ & 0x00000001) != 0) {
output.writeDouble(FieldNames.hKCPJKPOKGF, hKCPJKPOKGF); output.writeDouble(FieldNames.totalDelayCumulate, totalDelayCumulate);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
output.writeDouble(FieldNames.cKGDEAKGMLJ, cKGDEAKGMLJ); output.writeDouble(FieldNames.costTime, costTime);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.totalBattleTurns, totalBattleTurns); output.writeUInt32(FieldNames.totalBattleTurns, totalBattleTurns);
@@ -1090,22 +1090,22 @@ public final class BattleStatisticsOuterClass {
output.writeUInt32(FieldNames.totalAutoTurns, totalAutoTurns); output.writeUInt32(FieldNames.totalAutoTurns, totalAutoTurns);
} }
if ((bitField0_ & 0x00000010) != 0) { if ((bitField0_ & 0x00000010) != 0) {
output.writeUInt32(FieldNames.nIFHACPIHFP, nIFHACPIHFP); output.writeUInt32(FieldNames.ultraCnt, ultraCnt);
} }
if ((bitField0_ & 0x00000020) != 0) { if ((bitField0_ & 0x00000020) != 0) {
output.writeUInt32(FieldNames.kIGOIMMHHLE, kIGOIMMHHLE); output.writeUInt32(FieldNames.roundCnt, roundCnt);
} }
if ((bitField0_ & 0x00000040) != 0) { if ((bitField0_ & 0x00000040) != 0) {
output.writeUInt32(FieldNames.aOLAHGLLBAG, aOLAHGLLBAG); output.writeUInt32(FieldNames.cocoonDeadWave, cocoonDeadWave);
} }
if ((bitField0_ & 0x00000080) != 0) { if ((bitField0_ & 0x00000080) != 0) {
output.writeUInt32(FieldNames.fCFPKHNLGKA, fCFPKHNLGKA); output.writeUInt32(FieldNames.avatarBattleTurns, avatarBattleTurns);
} }
if ((bitField0_ & 0x00000100) != 0) { if ((bitField0_ & 0x00000100) != 0) {
output.writeUInt32(FieldNames.lIAALHKEHIM, lIAALHKEHIM); output.writeUInt32(FieldNames.monsterBattleTurns, monsterBattleTurns);
} }
if ((bitField0_ & 0x00000200) != 0) { if ((bitField0_ & 0x00000200) != 0) {
output.writeUInt32(FieldNames.bEKMEDAINKG, bEKMEDAINKG); output.writeUInt32(FieldNames.challengeScore, challengeScore);
} }
if ((bitField0_ & 0x00000400) != 0) { if ((bitField0_ & 0x00000400) != 0) {
output.writeRepeatedUInt32(FieldNames.avatarIdList, avatarIdList); output.writeRepeatedUInt32(FieldNames.avatarIdList, avatarIdList);
@@ -1126,10 +1126,11 @@ public final class BattleStatisticsOuterClass {
} }
while (!input.isAtEnd()) { while (!input.isAtEnd()) {
switch (input.readFieldHash()) { switch (input.readFieldHash()) {
case -2060289862: { case -1914328833:
if (input.isAtField(FieldNames.hKCPJKPOKGF)) { case -627205929: {
if (input.isAtField(FieldNames.totalDelayCumulate)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
hKCPJKPOKGF = input.readDouble(); totalDelayCumulate = input.readDouble();
bitField0_ |= 0x00000001; bitField0_ |= 0x00000001;
} }
} else { } else {
@@ -1137,10 +1138,11 @@ public final class BattleStatisticsOuterClass {
} }
break; break;
} }
case -177934930: { case -424687558:
if (input.isAtField(FieldNames.cKGDEAKGMLJ)) { case -269929473: {
if (input.isAtField(FieldNames.costTime)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
cKGDEAKGMLJ = input.readDouble(); costTime = input.readDouble();
bitField0_ |= 0x00000002; bitField0_ |= 0x00000002;
} }
} else { } else {
@@ -1172,10 +1174,11 @@ public final class BattleStatisticsOuterClass {
} }
break; break;
} }
case -1375859398: { case -1754250723:
if (input.isAtField(FieldNames.nIFHACPIHFP)) { case 1453625942: {
if (input.isAtField(FieldNames.ultraCnt)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
nIFHACPIHFP = input.readUInt32(); ultraCnt = input.readUInt32();
bitField0_ |= 0x00000010; bitField0_ |= 0x00000010;
} }
} else { } else {
@@ -1183,10 +1186,11 @@ public final class BattleStatisticsOuterClass {
} }
break; break;
} }
case 315896860: { case -178949:
if (input.isAtField(FieldNames.kIGOIMMHHLE)) { case -4723912: {
if (input.isAtField(FieldNames.roundCnt)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
kIGOIMMHHLE = input.readUInt32(); roundCnt = input.readUInt32();
bitField0_ |= 0x00000020; bitField0_ |= 0x00000020;
} }
} else { } else {
@@ -1194,10 +1198,11 @@ public final class BattleStatisticsOuterClass {
} }
break; break;
} }
case -210507450: { case 260478036:
if (input.isAtField(FieldNames.aOLAHGLLBAG)) { case -1902996116: {
if (input.isAtField(FieldNames.cocoonDeadWave)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
aOLAHGLLBAG = input.readUInt32(); cocoonDeadWave = input.readUInt32();
bitField0_ |= 0x00000040; bitField0_ |= 0x00000040;
} }
} else { } else {
@@ -1205,10 +1210,11 @@ public final class BattleStatisticsOuterClass {
} }
break; break;
} }
case -1516966405: { case -249379163:
if (input.isAtField(FieldNames.fCFPKHNLGKA)) { case 172374645: {
if (input.isAtField(FieldNames.avatarBattleTurns)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
fCFPKHNLGKA = input.readUInt32(); avatarBattleTurns = input.readUInt32();
bitField0_ |= 0x00000080; bitField0_ |= 0x00000080;
} }
} else { } else {
@@ -1216,10 +1222,11 @@ public final class BattleStatisticsOuterClass {
} }
break; break;
} }
case 366658265: { case 192206212:
if (input.isAtField(FieldNames.lIAALHKEHIM)) { case -665842284: {
if (input.isAtField(FieldNames.monsterBattleTurns)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
lIAALHKEHIM = input.readUInt32(); monsterBattleTurns = input.readUInt32();
bitField0_ |= 0x00000100; bitField0_ |= 0x00000100;
} }
} else { } else {
@@ -1227,10 +1234,11 @@ public final class BattleStatisticsOuterClass {
} }
break; break;
} }
case -1554616514: { case 591599599:
if (input.isAtField(FieldNames.bEKMEDAINKG)) { case 1517684662: {
if (input.isAtField(FieldNames.challengeScore)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
bEKMEDAINKG = input.readUInt32(); challengeScore = input.readUInt32();
bitField0_ |= 0x00000200; bitField0_ |= 0x00000200;
} }
} else { } else {
@@ -1681,25 +1689,25 @@ public final class BattleStatisticsOuterClass {
* Contains name constants used for serializing JSON * Contains name constants used for serializing JSON
*/ */
static class FieldNames { static class FieldNames {
static final FieldName hKCPJKPOKGF = FieldName.forField("HKCPJKPOKGF"); static final FieldName totalDelayCumulate = FieldName.forField("totalDelayCumulate", "total_delay_cumulate");
static final FieldName cKGDEAKGMLJ = FieldName.forField("CKGDEAKGMLJ"); static final FieldName costTime = FieldName.forField("costTime", "cost_time");
static final FieldName totalBattleTurns = FieldName.forField("totalBattleTurns", "total_battle_turns"); static final FieldName totalBattleTurns = FieldName.forField("totalBattleTurns", "total_battle_turns");
static final FieldName totalAutoTurns = FieldName.forField("totalAutoTurns", "total_auto_turns"); static final FieldName totalAutoTurns = FieldName.forField("totalAutoTurns", "total_auto_turns");
static final FieldName nIFHACPIHFP = FieldName.forField("NIFHACPIHFP"); static final FieldName ultraCnt = FieldName.forField("ultraCnt", "ultra_cnt");
static final FieldName kIGOIMMHHLE = FieldName.forField("KIGOIMMHHLE"); static final FieldName roundCnt = FieldName.forField("roundCnt", "round_cnt");
static final FieldName aOLAHGLLBAG = FieldName.forField("AOLAHGLLBAG"); static final FieldName cocoonDeadWave = FieldName.forField("cocoonDeadWave", "cocoon_dead_wave");
static final FieldName fCFPKHNLGKA = FieldName.forField("FCFPKHNLGKA"); static final FieldName avatarBattleTurns = FieldName.forField("avatarBattleTurns", "avatar_battle_turns");
static final FieldName lIAALHKEHIM = FieldName.forField("LIAALHKEHIM"); static final FieldName monsterBattleTurns = FieldName.forField("monsterBattleTurns", "monster_battle_turns");
static final FieldName bEKMEDAINKG = FieldName.forField("BEKMEDAINKG"); static final FieldName challengeScore = FieldName.forField("challengeScore", "challenge_score");
static final FieldName avatarIdList = FieldName.forField("avatarIdList", "avatar_id_list"); static final FieldName avatarIdList = FieldName.forField("avatarIdList", "avatar_id_list");

View File

@@ -23,6 +23,16 @@ public final class ChallengeInfoOuterClass {
*/ */
private int challengeId; private int challengeId;
/**
* <code>optional uint32 round_count = 9;</code>
*/
private int roundCount;
/**
* <code>optional uint32 JHJDIJLDPIG = 13;</code>
*/
private int jHJDIJLDPIG;
/** /**
* <code>optional .ChallengeStatus status = 4;</code> * <code>optional .ChallengeStatus status = 4;</code>
*/ */
@@ -80,12 +90,86 @@ public final class ChallengeInfoOuterClass {
return this; return this;
} }
/**
* <code>optional uint32 round_count = 9;</code>
* @return whether the roundCount field is set
*/
public boolean hasRoundCount() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 round_count = 9;</code>
* @return this
*/
public ChallengeInfo clearRoundCount() {
bitField0_ &= ~0x00000002;
roundCount = 0;
return this;
}
/**
* <code>optional uint32 round_count = 9;</code>
* @return the roundCount
*/
public int getRoundCount() {
return roundCount;
}
/**
* <code>optional uint32 round_count = 9;</code>
* @param value the roundCount to set
* @return this
*/
public ChallengeInfo setRoundCount(final int value) {
bitField0_ |= 0x00000002;
roundCount = value;
return this;
}
/**
* <code>optional uint32 JHJDIJLDPIG = 13;</code>
* @return whether the jHJDIJLDPIG field is set
*/
public boolean hasJHJDIJLDPIG() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 JHJDIJLDPIG = 13;</code>
* @return this
*/
public ChallengeInfo clearJHJDIJLDPIG() {
bitField0_ &= ~0x00000004;
jHJDIJLDPIG = 0;
return this;
}
/**
* <code>optional uint32 JHJDIJLDPIG = 13;</code>
* @return the jHJDIJLDPIG
*/
public int getJHJDIJLDPIG() {
return jHJDIJLDPIG;
}
/**
* <code>optional uint32 JHJDIJLDPIG = 13;</code>
* @param value the jHJDIJLDPIG to set
* @return this
*/
public ChallengeInfo setJHJDIJLDPIG(final int value) {
bitField0_ |= 0x00000004;
jHJDIJLDPIG = value;
return this;
}
/** /**
* <code>optional .ChallengeStatus status = 4;</code> * <code>optional .ChallengeStatus status = 4;</code>
* @return whether the status field is set * @return whether the status field is set
*/ */
public boolean hasStatus() { public boolean hasStatus() {
return (bitField0_ & 0x00000002) != 0; return (bitField0_ & 0x00000008) != 0;
} }
/** /**
@@ -93,7 +177,7 @@ public final class ChallengeInfoOuterClass {
* @return this * @return this
*/ */
public ChallengeInfo clearStatus() { public ChallengeInfo clearStatus() {
bitField0_ &= ~0x00000002; bitField0_ &= ~0x00000008;
status = 0; status = 0;
return this; return this;
} }
@@ -126,7 +210,7 @@ public final class ChallengeInfoOuterClass {
* @return this * @return this
*/ */
public ChallengeInfo setStatusValue(final int value) { public ChallengeInfo setStatusValue(final int value) {
bitField0_ |= 0x00000002; bitField0_ |= 0x00000008;
status = value; status = value;
return this; return this;
} }
@@ -137,7 +221,7 @@ public final class ChallengeInfoOuterClass {
* @return this * @return this
*/ */
public ChallengeInfo setStatus(final ChallengeStatusOuterClass.ChallengeStatus value) { public ChallengeInfo setStatus(final ChallengeStatusOuterClass.ChallengeStatus value) {
bitField0_ |= 0x00000002; bitField0_ |= 0x00000008;
status = value.getNumber(); status = value.getNumber();
return this; return this;
} }
@@ -147,7 +231,7 @@ public final class ChallengeInfoOuterClass {
* @return whether the extraLineupType field is set * @return whether the extraLineupType field is set
*/ */
public boolean hasExtraLineupType() { public boolean hasExtraLineupType() {
return (bitField0_ & 0x00000004) != 0; return (bitField0_ & 0x00000010) != 0;
} }
/** /**
@@ -155,7 +239,7 @@ public final class ChallengeInfoOuterClass {
* @return this * @return this
*/ */
public ChallengeInfo clearExtraLineupType() { public ChallengeInfo clearExtraLineupType() {
bitField0_ &= ~0x00000004; bitField0_ &= ~0x00000010;
extraLineupType = 0; extraLineupType = 0;
return this; return this;
} }
@@ -188,7 +272,7 @@ public final class ChallengeInfoOuterClass {
* @return this * @return this
*/ */
public ChallengeInfo setExtraLineupTypeValue(final int value) { public ChallengeInfo setExtraLineupTypeValue(final int value) {
bitField0_ |= 0x00000004; bitField0_ |= 0x00000010;
extraLineupType = value; extraLineupType = value;
return this; return this;
} }
@@ -199,7 +283,7 @@ public final class ChallengeInfoOuterClass {
* @return this * @return this
*/ */
public ChallengeInfo setExtraLineupType(final ExtraLineupTypeOuterClass.ExtraLineupType value) { public ChallengeInfo setExtraLineupType(final ExtraLineupTypeOuterClass.ExtraLineupType value) {
bitField0_ |= 0x00000004; bitField0_ |= 0x00000010;
extraLineupType = value.getNumber(); extraLineupType = value.getNumber();
return this; return this;
} }
@@ -210,6 +294,8 @@ public final class ChallengeInfoOuterClass {
if ((bitField0_ | other.bitField0_) != 0) { if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_; bitField0_ = other.bitField0_;
challengeId = other.challengeId; challengeId = other.challengeId;
roundCount = other.roundCount;
jHJDIJLDPIG = other.jHJDIJLDPIG;
status = other.status; status = other.status;
extraLineupType = other.extraLineupType; extraLineupType = other.extraLineupType;
} }
@@ -225,6 +311,12 @@ public final class ChallengeInfoOuterClass {
if (other.hasChallengeId()) { if (other.hasChallengeId()) {
setChallengeId(other.challengeId); setChallengeId(other.challengeId);
} }
if (other.hasRoundCount()) {
setRoundCount(other.roundCount);
}
if (other.hasJHJDIJLDPIG()) {
setJHJDIJLDPIG(other.jHJDIJLDPIG);
}
if (other.hasStatus()) { if (other.hasStatus()) {
setStatusValue(other.status); setStatusValue(other.status);
} }
@@ -242,6 +334,8 @@ public final class ChallengeInfoOuterClass {
cachedSize = -1; cachedSize = -1;
bitField0_ = 0; bitField0_ = 0;
challengeId = 0; challengeId = 0;
roundCount = 0;
jHJDIJLDPIG = 0;
status = 0; status = 0;
extraLineupType = 0; extraLineupType = 0;
return this; return this;
@@ -268,6 +362,8 @@ public final class ChallengeInfoOuterClass {
ChallengeInfo other = (ChallengeInfo) o; ChallengeInfo other = (ChallengeInfo) o;
return bitField0_ == other.bitField0_ return bitField0_ == other.bitField0_
&& (!hasChallengeId() || challengeId == other.challengeId) && (!hasChallengeId() || challengeId == other.challengeId)
&& (!hasRoundCount() || roundCount == other.roundCount)
&& (!hasJHJDIJLDPIG() || jHJDIJLDPIG == other.jHJDIJLDPIG)
&& (!hasStatus() || status == other.status) && (!hasStatus() || status == other.status)
&& (!hasExtraLineupType() || extraLineupType == other.extraLineupType); && (!hasExtraLineupType() || extraLineupType == other.extraLineupType);
} }
@@ -279,10 +375,18 @@ public final class ChallengeInfoOuterClass {
output.writeUInt32NoTag(challengeId); output.writeUInt32NoTag(challengeId);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 72);
output.writeUInt32NoTag(roundCount);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 104);
output.writeUInt32NoTag(jHJDIJLDPIG);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 32); output.writeRawByte((byte) 32);
output.writeEnumNoTag(status); output.writeEnumNoTag(status);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000010) != 0) {
output.writeRawByte((byte) 80); output.writeRawByte((byte) 80);
output.writeEnumNoTag(extraLineupType); output.writeEnumNoTag(extraLineupType);
} }
@@ -295,9 +399,15 @@ public final class ChallengeInfoOuterClass {
size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeEnumSizeNoTag(status); size += 1 + ProtoSink.computeUInt32SizeNoTag(roundCount);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(jHJDIJLDPIG);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeEnumSizeNoTag(status);
}
if ((bitField0_ & 0x00000010) != 0) {
size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType);
} }
return size; return size;
@@ -315,6 +425,24 @@ public final class ChallengeInfoOuterClass {
challengeId = input.readUInt32(); challengeId = input.readUInt32();
bitField0_ |= 0x00000001; bitField0_ |= 0x00000001;
tag = input.readTag(); tag = input.readTag();
if (tag != 72) {
break;
}
}
case 72: {
// roundCount
roundCount = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 104) {
break;
}
}
case 104: {
// jHJDIJLDPIG
jHJDIJLDPIG = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 32) { if (tag != 32) {
break; break;
} }
@@ -324,7 +452,7 @@ public final class ChallengeInfoOuterClass {
final int value = input.readInt32(); final int value = input.readInt32();
if (ChallengeStatusOuterClass.ChallengeStatus.forNumber(value) != null) { if (ChallengeStatusOuterClass.ChallengeStatus.forNumber(value) != null) {
status = value; status = value;
bitField0_ |= 0x00000002; bitField0_ |= 0x00000008;
} }
tag = input.readTag(); tag = input.readTag();
if (tag != 80) { if (tag != 80) {
@@ -336,7 +464,7 @@ public final class ChallengeInfoOuterClass {
final int value = input.readInt32(); final int value = input.readInt32();
if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) {
extraLineupType = value; extraLineupType = value;
bitField0_ |= 0x00000004; bitField0_ |= 0x00000010;
} }
tag = input.readTag(); tag = input.readTag();
if (tag != 0) { if (tag != 0) {
@@ -364,9 +492,15 @@ public final class ChallengeInfoOuterClass {
output.writeUInt32(FieldNames.challengeId, challengeId); output.writeUInt32(FieldNames.challengeId, challengeId);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
output.writeEnum(FieldNames.status, status, ChallengeStatusOuterClass.ChallengeStatus.converter()); output.writeUInt32(FieldNames.roundCount, roundCount);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.jHJDIJLDPIG, jHJDIJLDPIG);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeEnum(FieldNames.status, status, ChallengeStatusOuterClass.ChallengeStatus.converter());
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter());
} }
output.endObject(); output.endObject();
@@ -391,13 +525,36 @@ public final class ChallengeInfoOuterClass {
} }
break; break;
} }
case -171935711:
case -244677858: {
if (input.isAtField(FieldNames.roundCount)) {
if (!input.trySkipNullValue()) {
roundCount = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case -896001411: {
if (input.isAtField(FieldNames.jHJDIJLDPIG)) {
if (!input.trySkipNullValue()) {
jHJDIJLDPIG = input.readUInt32();
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case -892481550: { case -892481550: {
if (input.isAtField(FieldNames.status)) { if (input.isAtField(FieldNames.status)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
final ChallengeStatusOuterClass.ChallengeStatus value = input.readEnum(ChallengeStatusOuterClass.ChallengeStatus.converter()); final ChallengeStatusOuterClass.ChallengeStatus value = input.readEnum(ChallengeStatusOuterClass.ChallengeStatus.converter());
if (value != null) { if (value != null) {
status = value.getNumber(); status = value.getNumber();
bitField0_ |= 0x00000002; bitField0_ |= 0x00000008;
} else { } else {
input.skipUnknownEnumValue(); input.skipUnknownEnumValue();
} }
@@ -414,7 +571,7 @@ public final class ChallengeInfoOuterClass {
final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter());
if (value != null) { if (value != null) {
extraLineupType = value.getNumber(); extraLineupType = value.getNumber();
bitField0_ |= 0x00000004; bitField0_ |= 0x00000010;
} else { } else {
input.skipUnknownEnumValue(); input.skipUnknownEnumValue();
} }
@@ -478,6 +635,10 @@ public final class ChallengeInfoOuterClass {
static class FieldNames { static class FieldNames {
static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id");
static final FieldName roundCount = FieldName.forField("roundCount", "round_count");
static final FieldName jHJDIJLDPIG = FieldName.forField("JHJDIJLDPIG");
static final FieldName status = FieldName.forField("status"); static final FieldName status = FieldName.forField("status");
static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type");

View File

@@ -106,6 +106,10 @@ public class ChallengeData {
getScene().addEntity(monster, sendPacket); getScene().addEntity(monster, sendPacket);
} }
} }
private int getRoundCount() {
return getExcel().getChallengeCountDown() - this.roundsLimit;
}
public boolean isWin() { public boolean isWin() {
return status == ChallengeStatus.CHALLENGE_FINISH; return status == ChallengeStatus.CHALLENGE_FINISH;
@@ -142,6 +146,9 @@ public class ChallengeData {
player.moveTo(this.getStartPos(), this.getStartRot()); player.moveTo(this.getStartPos(), this.getStartRot());
} }
} }
// Calculate rounds left
this.roundsLimit = Math.min(Math.max(this.roundsLimit - stats.getRoundCnt(), 0), this.roundsLimit);
} else { } else {
// Fail challenge // Fail challenge
this.status = ChallengeStatus.CHALLENGE_FAILED; this.status = ChallengeStatus.CHALLENGE_FAILED;
@@ -159,6 +166,7 @@ public class ChallengeData {
var proto = ChallengeInfo.newInstance() var proto = ChallengeInfo.newInstance()
.setChallengeId(this.getExcel().getId()) .setChallengeId(this.getExcel().getId())
.setStatus(this.getStatus()) .setStatus(this.getStatus())
.setRoundCount(this.getRoundCount())
.setExtraLineupType(this.getCurrentExtraLineup()); .setExtraLineupType(this.getCurrentExtraLineup());
return proto; return proto;