Update to support game version 1.14.0.*

This commit is contained in:
Melledy
2026-08-17 20:42:09 -07:00
parent 333846bfc3
commit b40edc90bb
6 changed files with 216 additions and 21 deletions
+198 -9
View File
@@ -53533,11 +53533,21 @@ public final class Public {
*/ */
private int score; private int score;
/**
* <code>optional uint32 Difficulty = 4;</code>
*/
private int difficulty;
/** /**
* <code>optional bytes NextPackage = 2047;</code> * <code>optional bytes NextPackage = 2047;</code>
*/ */
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance(); private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
/**
* <code>optional string Data = 5;</code>
*/
private final Utf8String data = Utf8String.newEmptyInstance();
private ActivityPenguinCardLevel() { private ActivityPenguinCardLevel() {
} }
@@ -53659,12 +53669,49 @@ public final class Public {
return this; return this;
} }
/**
* <code>optional uint32 Difficulty = 4;</code>
* @return whether the difficulty field is set
*/
public boolean hasDifficulty() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>optional uint32 Difficulty = 4;</code>
* @return this
*/
public ActivityPenguinCardLevel clearDifficulty() {
bitField0_ &= ~0x00000008;
difficulty = 0;
return this;
}
/**
* <code>optional uint32 Difficulty = 4;</code>
* @return the difficulty
*/
public int getDifficulty() {
return difficulty;
}
/**
* <code>optional uint32 Difficulty = 4;</code>
* @param value the difficulty to set
* @return this
*/
public ActivityPenguinCardLevel setDifficulty(final int value) {
bitField0_ |= 0x00000008;
difficulty = value;
return this;
}
/** /**
* <code>optional bytes NextPackage = 2047;</code> * <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set * @return whether the nextPackage field is set
*/ */
public boolean hasNextPackage() { public boolean hasNextPackage() {
return (bitField0_ & 0x00000008) != 0; return (bitField0_ & 0x00000010) != 0;
} }
/** /**
@@ -53672,7 +53719,7 @@ public final class Public {
* @return this * @return this
*/ */
public ActivityPenguinCardLevel clearNextPackage() { public ActivityPenguinCardLevel clearNextPackage() {
bitField0_ &= ~0x00000008; bitField0_ &= ~0x00000010;
nextPackage.clear(); nextPackage.clear();
return this; return this;
} }
@@ -53701,7 +53748,7 @@ public final class Public {
* @return internal storage object for modifications * @return internal storage object for modifications
*/ */
public RepeatedByte getMutableNextPackage() { public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000008; bitField0_ |= 0x00000010;
return nextPackage; return nextPackage;
} }
@@ -53711,7 +53758,7 @@ public final class Public {
* @return this * @return this
*/ */
public ActivityPenguinCardLevel addNextPackage(final byte value) { public ActivityPenguinCardLevel addNextPackage(final byte value) {
bitField0_ |= 0x00000008; bitField0_ |= 0x00000010;
nextPackage.add(value); nextPackage.add(value);
return this; return this;
} }
@@ -53722,7 +53769,7 @@ public final class Public {
* @return this * @return this
*/ */
public ActivityPenguinCardLevel addAllNextPackage(final byte... values) { public ActivityPenguinCardLevel addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000008; bitField0_ |= 0x00000010;
nextPackage.addAll(values); nextPackage.addAll(values);
return this; return this;
} }
@@ -53733,11 +53780,76 @@ public final class Public {
* @return this * @return this
*/ */
public ActivityPenguinCardLevel setNextPackage(final byte... values) { public ActivityPenguinCardLevel setNextPackage(final byte... values) {
bitField0_ |= 0x00000008; bitField0_ |= 0x00000010;
nextPackage.copyFrom(values); nextPackage.copyFrom(values);
return this; return this;
} }
/**
* <code>optional string Data = 5;</code>
* @return whether the data field is set
*/
public boolean hasData() {
return (bitField0_ & 0x00000020) != 0;
}
/**
* <code>optional string Data = 5;</code>
* @return this
*/
public ActivityPenguinCardLevel clearData() {
bitField0_ &= ~0x00000020;
data.clear();
return this;
}
/**
* <code>optional string Data = 5;</code>
* @return the data
*/
public java.lang.String getData() {
return data.getString();
}
/**
* <code>optional string Data = 5;</code>
* @return internal {@code Utf8String} representation of data for reading
*/
public Utf8String getDataBytes() {
return this.data;
}
/**
* <code>optional string Data = 5;</code>
* @return internal {@code Utf8String} representation of data for modifications
*/
public Utf8String getMutableDataBytes() {
bitField0_ |= 0x00000020;
return this.data;
}
/**
* <code>optional string Data = 5;</code>
* @param value the data to set
* @return this
*/
public ActivityPenguinCardLevel setData(final CharSequence value) {
bitField0_ |= 0x00000020;
data.copyFrom(value);
return this;
}
/**
* <code>optional string Data = 5;</code>
* @param value the data to set
* @return this
*/
public ActivityPenguinCardLevel setData(final Utf8String value) {
bitField0_ |= 0x00000020;
data.copyFrom(value);
return this;
}
@Override @Override
public ActivityPenguinCardLevel copyFrom(final ActivityPenguinCardLevel other) { public ActivityPenguinCardLevel copyFrom(final ActivityPenguinCardLevel other) {
cachedSize = other.cachedSize; cachedSize = other.cachedSize;
@@ -53746,7 +53858,9 @@ public final class Public {
id = other.id; id = other.id;
star = other.star; star = other.star;
score = other.score; score = other.score;
difficulty = other.difficulty;
nextPackage.copyFrom(other.nextPackage); nextPackage.copyFrom(other.nextPackage);
data.copyFrom(other.data);
} }
return this; return this;
} }
@@ -53766,9 +53880,15 @@ public final class Public {
if (other.hasScore()) { if (other.hasScore()) {
setScore(other.score); setScore(other.score);
} }
if (other.hasDifficulty()) {
setDifficulty(other.difficulty);
}
if (other.hasNextPackage()) { if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage); getMutableNextPackage().copyFrom(other.nextPackage);
} }
if (other.hasData()) {
getMutableDataBytes().copyFrom(other.data);
}
return this; return this;
} }
@@ -53782,7 +53902,9 @@ public final class Public {
id = 0; id = 0;
star = 0; star = 0;
score = 0; score = 0;
difficulty = 0;
nextPackage.clear(); nextPackage.clear();
data.clear();
return this; return this;
} }
@@ -53794,6 +53916,7 @@ public final class Public {
cachedSize = -1; cachedSize = -1;
bitField0_ = 0; bitField0_ = 0;
nextPackage.clear(); nextPackage.clear();
data.clear();
return this; return this;
} }
@@ -53810,7 +53933,9 @@ public final class Public {
&& (!hasId() || id == other.id) && (!hasId() || id == other.id)
&& (!hasStar() || star == other.star) && (!hasStar() || star == other.star)
&& (!hasScore() || score == other.score) && (!hasScore() || score == other.score)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage)); && (!hasDifficulty() || difficulty == other.difficulty)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasData() || data.equals(other.data));
} }
@Override @Override
@@ -53828,9 +53953,17 @@ public final class Public {
output.writeUInt32NoTag(score); output.writeUInt32NoTag(score);
} }
if ((bitField0_ & 0x00000008) != 0) { if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 32);
output.writeUInt32NoTag(difficulty);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRawLittleEndian16((short) 32762); output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage); output.writeBytesNoTag(nextPackage);
} }
if ((bitField0_ & 0x00000020) != 0) {
output.writeRawByte((byte) 42);
output.writeStringNoTag(data);
}
} }
@Override @Override
@@ -53846,8 +53979,14 @@ public final class Public {
size += 1 + ProtoSink.computeUInt32SizeNoTag(score); size += 1 + ProtoSink.computeUInt32SizeNoTag(score);
} }
if ((bitField0_ & 0x00000008) != 0) { if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(difficulty);
}
if ((bitField0_ & 0x00000010) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage); size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
} }
if ((bitField0_ & 0x00000020) != 0) {
size += 1 + ProtoSink.computeStringSizeNoTag(data);
}
return size; return size;
} }
@@ -53881,6 +54020,15 @@ public final class Public {
score = input.readUInt32(); score = input.readUInt32();
bitField0_ |= 0x00000004; bitField0_ |= 0x00000004;
tag = input.readTag(); tag = input.readTag();
if (tag != 32) {
break;
}
}
case 32: {
// difficulty
difficulty = input.readUInt32();
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 16378) { if (tag != 16378) {
break; break;
} }
@@ -53888,7 +54036,16 @@ public final class Public {
case 16378: { case 16378: {
// nextPackage // nextPackage
input.readBytes(nextPackage); input.readBytes(nextPackage);
bitField0_ |= 0x00000008; bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 42) {
break;
}
}
case 42: {
// data
input.readString(data);
bitField0_ |= 0x00000020;
tag = input.readTag(); tag = input.readTag();
if (tag != 0) { if (tag != 0) {
break; break;
@@ -53921,8 +54078,14 @@ public final class Public {
output.writeUInt32(FieldNames.score, score); output.writeUInt32(FieldNames.score, score);
} }
if ((bitField0_ & 0x00000008) != 0) { if ((bitField0_ & 0x00000008) != 0) {
output.writeUInt32(FieldNames.difficulty, difficulty);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage); output.writeBytes(FieldNames.nextPackage, nextPackage);
} }
if ((bitField0_ & 0x00000020) != 0) {
output.writeString(FieldNames.data, data);
}
output.endObject(); output.endObject();
} }
@@ -53966,11 +54129,33 @@ public final class Public {
} }
break; break;
} }
case -472001573: {
if (input.isAtField(FieldNames.difficulty)) {
if (!input.trySkipNullValue()) {
difficulty = input.readUInt32();
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: { case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) { if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
input.readBytes(nextPackage); input.readBytes(nextPackage);
bitField0_ |= 0x00000008; bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
}
break;
}
case 2122698: {
if (input.isAtField(FieldNames.data)) {
if (!input.trySkipNullValue()) {
input.readString(data);
bitField0_ |= 0x00000020;
} }
} else { } else {
input.skipUnknownField(); input.skipUnknownField();
@@ -54036,7 +54221,11 @@ public final class Public {
static final FieldName score = FieldName.forField("Score"); static final FieldName score = FieldName.forField("Score");
static final FieldName difficulty = FieldName.forField("Difficulty");
static final FieldName nextPackage = FieldName.forField("NextPackage"); static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName data = FieldName.forField("Data");
} }
} }
+1 -1
View File
@@ -7,7 +7,7 @@ import emu.nebula.game.inventory.ItemParamMap;
import emu.nebula.util.WeightedList; import emu.nebula.util.WeightedList;
public class GameConstants { public class GameConstants {
public static final String VERSION = "1.13.0"; public static final String VERSION = "1.14.0";
public static int DATA_VERSION = 0; public static int DATA_VERSION = 0;
public static final ZoneId UTC_ZONE = ZoneId.of("UTC"); public static final ZoneId UTC_ZONE = ZoneId.of("UTC");
@@ -70,9 +70,14 @@ public class ActivityModule extends GameContextModule {
//this.activities.add(1010904); //this.activities.add(1010904);
// Checking In for A Cozy Summer // Checking In for A Cozy Summer
this.activities.add(2010301); //this.activities.add(2010301);
this.activities.add(2010303); //this.activities.add(2010303);
this.activities.add(2010304); //this.activities.add(2010304);
// Surfing Splash: A Sparkling Holiday Adventure!
this.activities.add(1011001);
this.activities.add(1011003);
this.activities.add(1011004);
// ===== Joint Drills (Finale Echoing) ===== // ===== Joint Drills (Finale Echoing) =====
//this.activities.add(510003); // Causes soft lock in event screen //this.activities.add(510003); // Causes soft lock in event screen
@@ -80,8 +85,8 @@ public class ActivityModule extends GameContextModule {
// ===== Etc Events ===== // ===== Etc Events =====
// Trial activities // Trial activities
this.activities.add(700123); this.activities.add(700127);
this.activities.add(700124); this.activities.add(700128);
// Tower defense activity // Tower defense activity
this.activities.add(102002); // Broken this.activities.add(102002); // Broken
@@ -452,7 +452,7 @@ public class TraceHuntManager extends PlayerManager implements GameDatabaseObjec
} }
// Add exp // Add exp
this.addExp(150); this.addExp(100);
// Save // Save
this.save(); this.save();
@@ -940,6 +940,7 @@ public class NetMsgId {
public static final int trace_hunt_new_control_notify = 10057; public static final int trace_hunt_new_control_notify = 10057;
public static final int trace_hunt_state_notify = 10058; public static final int trace_hunt_state_notify = 10058;
public static final int trace_hunt_item_change_notify = 10060; public static final int trace_hunt_item_change_notify = 10060;
public static final int score_boss_reset_score_notify = 10061;
public static final int activity_mining_apply_req = 11001; public static final int activity_mining_apply_req = 11001;
public static final int activity_mining_apply_succeed_ack = 11002; public static final int activity_mining_apply_succeed_ack = 11002;
public static final int activity_mining_apply_failed_ack = 11003; public static final int activity_mining_apply_failed_ack = 11003;
+5 -5
View File
@@ -1,7 +1,7 @@
{ {
"global": 127, "global": 129,
"kr": 133, "kr": 135,
"jp": 131, "jp": 133,
"tw": 137, "tw": 139,
"cn": 127 "cn": 129
} }