random card
parent
74eb0a0aea
commit
7ad319cd7e
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -28217,6 +28217,513 @@ public final class HeroInfoProto {
|
|||
// @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.ComplexJewelEquipResponse)
|
||||
}
|
||||
|
||||
public interface TakeRandomHeroBoxResponseOrBuilder
|
||||
extends com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
// optional .com.ljsd.jieling.protocols.Drop drop = 1;
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
boolean hasDrop();
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
com.ljsd.jieling.protocols.CommonProto.Drop getDrop();
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
com.ljsd.jieling.protocols.CommonProto.DropOrBuilder getDropOrBuilder();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code com.ljsd.jieling.protocols.TakeRandomHeroBoxResponse}
|
||||
*/
|
||||
public static final class TakeRandomHeroBoxResponse extends
|
||||
com.google.protobuf.GeneratedMessage
|
||||
implements TakeRandomHeroBoxResponseOrBuilder {
|
||||
// Use TakeRandomHeroBoxResponse.newBuilder() to construct.
|
||||
private TakeRandomHeroBoxResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
|
||||
super(builder);
|
||||
this.unknownFields = builder.getUnknownFields();
|
||||
}
|
||||
private TakeRandomHeroBoxResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
|
||||
|
||||
private static final TakeRandomHeroBoxResponse defaultInstance;
|
||||
public static TakeRandomHeroBoxResponse getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public TakeRandomHeroBoxResponse getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
private final com.google.protobuf.UnknownFieldSet unknownFields;
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private TakeRandomHeroBoxResponse(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
initFields();
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
default: {
|
||||
if (!parseUnknownField(input, unknownFields,
|
||||
extensionRegistry, tag)) {
|
||||
done = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 10: {
|
||||
com.ljsd.jieling.protocols.CommonProto.Drop.Builder subBuilder = null;
|
||||
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
subBuilder = drop_.toBuilder();
|
||||
}
|
||||
drop_ = input.readMessage(com.ljsd.jieling.protocols.CommonProto.Drop.PARSER, extensionRegistry);
|
||||
if (subBuilder != null) {
|
||||
subBuilder.mergeFrom(drop_);
|
||||
drop_ = subBuilder.buildPartial();
|
||||
}
|
||||
bitField0_ |= 0x00000001;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||||
e.getMessage()).setUnfinishedMessage(this);
|
||||
} finally {
|
||||
this.unknownFields = unknownFields.build();
|
||||
makeExtensionsImmutable();
|
||||
}
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.ljsd.jieling.protocols.HeroInfoProto.internal_static_com_ljsd_jieling_protocols_TakeRandomHeroBoxResponse_descriptor;
|
||||
}
|
||||
|
||||
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.ljsd.jieling.protocols.HeroInfoProto.internal_static_com_ljsd_jieling_protocols_TakeRandomHeroBoxResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse.class, com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse.Builder.class);
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Parser<TakeRandomHeroBoxResponse> PARSER =
|
||||
new com.google.protobuf.AbstractParser<TakeRandomHeroBoxResponse>() {
|
||||
public TakeRandomHeroBoxResponse parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new TakeRandomHeroBoxResponse(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<TakeRandomHeroBoxResponse> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
private int bitField0_;
|
||||
// optional .com.ljsd.jieling.protocols.Drop drop = 1;
|
||||
public static final int DROP_FIELD_NUMBER = 1;
|
||||
private com.ljsd.jieling.protocols.CommonProto.Drop drop_;
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
public boolean hasDrop() {
|
||||
return ((bitField0_ & 0x00000001) == 0x00000001);
|
||||
}
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
public com.ljsd.jieling.protocols.CommonProto.Drop getDrop() {
|
||||
return drop_;
|
||||
}
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
public com.ljsd.jieling.protocols.CommonProto.DropOrBuilder getDropOrBuilder() {
|
||||
return drop_;
|
||||
}
|
||||
|
||||
private void initFields() {
|
||||
drop_ = com.ljsd.jieling.protocols.CommonProto.Drop.getDefaultInstance();
|
||||
}
|
||||
private byte memoizedIsInitialized = -1;
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized != -1) return isInitialized == 1;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
output.writeMessage(1, drop_);
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, drop_);
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSerializedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
protected java.lang.Object writeReplace()
|
||||
throws java.io.ObjectStreamException {
|
||||
return super.writeReplace();
|
||||
}
|
||||
|
||||
public static com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseFrom(input);
|
||||
}
|
||||
public static com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseFrom(input, extensionRegistry);
|
||||
}
|
||||
public static com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseDelimitedFrom(input);
|
||||
}
|
||||
public static com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseDelimitedFrom(input, extensionRegistry);
|
||||
}
|
||||
public static com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseFrom(input);
|
||||
}
|
||||
public static com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseFrom(input, extensionRegistry);
|
||||
}
|
||||
|
||||
public static Builder newBuilder() { return Builder.create(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(this); }
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code com.ljsd.jieling.protocols.TakeRandomHeroBoxResponse}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessage.Builder<Builder>
|
||||
implements com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponseOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.ljsd.jieling.protocols.HeroInfoProto.internal_static_com_ljsd_jieling_protocols_TakeRandomHeroBoxResponse_descriptor;
|
||||
}
|
||||
|
||||
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.ljsd.jieling.protocols.HeroInfoProto.internal_static_com_ljsd_jieling_protocols_TakeRandomHeroBoxResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse.class, com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
|
||||
super(parent);
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
private void maybeForceBuilderInitialization() {
|
||||
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
|
||||
getDropFieldBuilder();
|
||||
}
|
||||
}
|
||||
private static Builder create() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
if (dropBuilder_ == null) {
|
||||
drop_ = com.ljsd.jieling.protocols.CommonProto.Drop.getDefaultInstance();
|
||||
} else {
|
||||
dropBuilder_.clear();
|
||||
}
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder clone() {
|
||||
return create().mergeFrom(buildPartial());
|
||||
}
|
||||
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return com.ljsd.jieling.protocols.HeroInfoProto.internal_static_com_ljsd_jieling_protocols_TakeRandomHeroBoxResponse_descriptor;
|
||||
}
|
||||
|
||||
public com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse getDefaultInstanceForType() {
|
||||
return com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse.getDefaultInstance();
|
||||
}
|
||||
|
||||
public com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse build() {
|
||||
com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse buildPartial() {
|
||||
com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse result = new com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
int to_bitField0_ = 0;
|
||||
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
to_bitField0_ |= 0x00000001;
|
||||
}
|
||||
if (dropBuilder_ == null) {
|
||||
result.drop_ = drop_;
|
||||
} else {
|
||||
result.drop_ = dropBuilder_.build();
|
||||
}
|
||||
result.bitField0_ = to_bitField0_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse) {
|
||||
return mergeFrom((com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse other) {
|
||||
if (other == com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse.getDefaultInstance()) return this;
|
||||
if (other.hasDrop()) {
|
||||
mergeDrop(other.getDrop());
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
return this;
|
||||
}
|
||||
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (com.ljsd.jieling.protocols.HeroInfoProto.TakeRandomHeroBoxResponse) e.getUnfinishedMessage();
|
||||
throw e;
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
// optional .com.ljsd.jieling.protocols.Drop drop = 1;
|
||||
private com.ljsd.jieling.protocols.CommonProto.Drop drop_ = com.ljsd.jieling.protocols.CommonProto.Drop.getDefaultInstance();
|
||||
private com.google.protobuf.SingleFieldBuilder<
|
||||
com.ljsd.jieling.protocols.CommonProto.Drop, com.ljsd.jieling.protocols.CommonProto.Drop.Builder, com.ljsd.jieling.protocols.CommonProto.DropOrBuilder> dropBuilder_;
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
public boolean hasDrop() {
|
||||
return ((bitField0_ & 0x00000001) == 0x00000001);
|
||||
}
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
public com.ljsd.jieling.protocols.CommonProto.Drop getDrop() {
|
||||
if (dropBuilder_ == null) {
|
||||
return drop_;
|
||||
} else {
|
||||
return dropBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
public Builder setDrop(com.ljsd.jieling.protocols.CommonProto.Drop value) {
|
||||
if (dropBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
drop_ = value;
|
||||
onChanged();
|
||||
} else {
|
||||
dropBuilder_.setMessage(value);
|
||||
}
|
||||
bitField0_ |= 0x00000001;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
public Builder setDrop(
|
||||
com.ljsd.jieling.protocols.CommonProto.Drop.Builder builderForValue) {
|
||||
if (dropBuilder_ == null) {
|
||||
drop_ = builderForValue.build();
|
||||
onChanged();
|
||||
} else {
|
||||
dropBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
bitField0_ |= 0x00000001;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
public Builder mergeDrop(com.ljsd.jieling.protocols.CommonProto.Drop value) {
|
||||
if (dropBuilder_ == null) {
|
||||
if (((bitField0_ & 0x00000001) == 0x00000001) &&
|
||||
drop_ != com.ljsd.jieling.protocols.CommonProto.Drop.getDefaultInstance()) {
|
||||
drop_ =
|
||||
com.ljsd.jieling.protocols.CommonProto.Drop.newBuilder(drop_).mergeFrom(value).buildPartial();
|
||||
} else {
|
||||
drop_ = value;
|
||||
}
|
||||
onChanged();
|
||||
} else {
|
||||
dropBuilder_.mergeFrom(value);
|
||||
}
|
||||
bitField0_ |= 0x00000001;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
public Builder clearDrop() {
|
||||
if (dropBuilder_ == null) {
|
||||
drop_ = com.ljsd.jieling.protocols.CommonProto.Drop.getDefaultInstance();
|
||||
onChanged();
|
||||
} else {
|
||||
dropBuilder_.clear();
|
||||
}
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
public com.ljsd.jieling.protocols.CommonProto.Drop.Builder getDropBuilder() {
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
return getDropFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
public com.ljsd.jieling.protocols.CommonProto.DropOrBuilder getDropOrBuilder() {
|
||||
if (dropBuilder_ != null) {
|
||||
return dropBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return drop_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>optional .com.ljsd.jieling.protocols.Drop drop = 1;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilder<
|
||||
com.ljsd.jieling.protocols.CommonProto.Drop, com.ljsd.jieling.protocols.CommonProto.Drop.Builder, com.ljsd.jieling.protocols.CommonProto.DropOrBuilder>
|
||||
getDropFieldBuilder() {
|
||||
if (dropBuilder_ == null) {
|
||||
dropBuilder_ = new com.google.protobuf.SingleFieldBuilder<
|
||||
com.ljsd.jieling.protocols.CommonProto.Drop, com.ljsd.jieling.protocols.CommonProto.Drop.Builder, com.ljsd.jieling.protocols.CommonProto.DropOrBuilder>(
|
||||
drop_,
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
drop_ = null;
|
||||
}
|
||||
return dropBuilder_;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.TakeRandomHeroBoxResponse)
|
||||
}
|
||||
|
||||
static {
|
||||
defaultInstance = new TakeRandomHeroBoxResponse(true);
|
||||
defaultInstance.initFields();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.TakeRandomHeroBoxResponse)
|
||||
}
|
||||
|
||||
private static com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_com_ljsd_jieling_protocols_GetHeroListInfoRequest_descriptor;
|
||||
private static
|
||||
|
|
@ -28432,6 +28939,11 @@ public final class HeroInfoProto {
|
|||
private static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_com_ljsd_jieling_protocols_ComplexJewelEquipResponse_fieldAccessorTable;
|
||||
private static com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_com_ljsd_jieling_protocols_TakeRandomHeroBoxResponse_descriptor;
|
||||
private static
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_com_ljsd_jieling_protocols_TakeRandomHeroBoxResponse_fieldAccessorTable;
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
|
|
@ -28520,7 +29032,9 @@ public final class HeroInfoProto {
|
|||
"ype\030\001 \001(\005\022\r\n\005rance\030\002 \001(\005\022\022\n\ntargetleve\030\003" +
|
||||
" \001(\005\022\013\n\003num\030\004 \001(\005\"]\n\031ComplexJewelEquipRe" +
|
||||
"sponse\022\020\n\010equipIds\030\001 \003(\t\022.\n\004drop\030\002 \001(\0132 " +
|
||||
".com.ljsd.jieling.protocols.DropB\002H\001"
|
||||
".com.ljsd.jieling.protocols.Drop\"K\n\031Take",
|
||||
"RandomHeroBoxResponse\022.\n\004drop\030\001 \001(\0132 .co" +
|
||||
"m.ljsd.jieling.protocols.DropB\002H\001"
|
||||
};
|
||||
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
||||
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
|
||||
|
|
@ -28785,6 +29299,12 @@ public final class HeroInfoProto {
|
|||
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
||||
internal_static_com_ljsd_jieling_protocols_ComplexJewelEquipResponse_descriptor,
|
||||
new java.lang.String[] { "EquipIds", "Drop", });
|
||||
internal_static_com_ljsd_jieling_protocols_TakeRandomHeroBoxResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(43);
|
||||
internal_static_com_ljsd_jieling_protocols_TakeRandomHeroBoxResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
||||
internal_static_com_ljsd_jieling_protocols_TakeRandomHeroBoxResponse_descriptor,
|
||||
new java.lang.String[] { "Drop", });
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3004,6 +3004,18 @@ public final class MessageTypeProto {
|
|||
* <code>TREASURE_REFRESH_TIME_RESPONSE = 11919;</code>
|
||||
*/
|
||||
TREASURE_REFRESH_TIME_RESPONSE(478, 11919),
|
||||
/**
|
||||
* <code>TAKE_RANDOM_HERO_BOX_REQUEST = 11920;</code>
|
||||
*
|
||||
* <pre>
|
||||
*领取抽卡英雄宝箱奖励
|
||||
* </pre>
|
||||
*/
|
||||
TAKE_RANDOM_HERO_BOX_REQUEST(479, 11920),
|
||||
/**
|
||||
* <code>TAKE_RANDOM_HERO_BOX_RESPONSE = 11921;</code>
|
||||
*/
|
||||
TAKE_RANDOM_HERO_BOX_RESPONSE(480, 11921),
|
||||
/**
|
||||
* <code>UP_HERO_LEVEL_REQUEST = 12000;</code>
|
||||
*
|
||||
|
|
@ -3011,11 +3023,11 @@ public final class MessageTypeProto {
|
|||
* U 12000
|
||||
* </pre>
|
||||
*/
|
||||
UP_HERO_LEVEL_REQUEST(479, 12000),
|
||||
UP_HERO_LEVEL_REQUEST(481, 12000),
|
||||
/**
|
||||
* <code>UP_HERO_LEVEL_RESPONSE = 12001;</code>
|
||||
*/
|
||||
UP_HERO_LEVEL_RESPONSE(480, 12001),
|
||||
UP_HERO_LEVEL_RESPONSE(482, 12001),
|
||||
/**
|
||||
* <code>UP_HERO_STAR_REQUEST = 12002;</code>
|
||||
*
|
||||
|
|
@ -3023,11 +3035,11 @@ public final class MessageTypeProto {
|
|||
* 升星
|
||||
* </pre>
|
||||
*/
|
||||
UP_HERO_STAR_REQUEST(481, 12002),
|
||||
UP_HERO_STAR_REQUEST(483, 12002),
|
||||
/**
|
||||
* <code>UP_HERO_STAR_RESPONSE = 12003;</code>
|
||||
*/
|
||||
UP_HERO_STAR_RESPONSE(482, 12003),
|
||||
UP_HERO_STAR_RESPONSE(484, 12003),
|
||||
/**
|
||||
* <code>USER_AND_PRICE_ITEM_REQUEST = 12004;</code>
|
||||
*
|
||||
|
|
@ -3035,11 +3047,11 @@ public final class MessageTypeProto {
|
|||
*使用出售道具
|
||||
* </pre>
|
||||
*/
|
||||
USER_AND_PRICE_ITEM_REQUEST(483, 12004),
|
||||
USER_AND_PRICE_ITEM_REQUEST(485, 12004),
|
||||
/**
|
||||
* <code>USER_AND_PRICE_ITEM_RESPONSE = 12005;</code>
|
||||
*/
|
||||
USER_AND_PRICE_ITEM_RESPONSE(484, 12005),
|
||||
USER_AND_PRICE_ITEM_RESPONSE(486, 12005),
|
||||
/**
|
||||
* <code>USER_FORCE_CHANGE_REQUEST = 12006;</code>
|
||||
*
|
||||
|
|
@ -3047,11 +3059,11 @@ public final class MessageTypeProto {
|
|||
*用户战力提升
|
||||
* </pre>
|
||||
*/
|
||||
USER_FORCE_CHANGE_REQUEST(485, 12006),
|
||||
USER_FORCE_CHANGE_REQUEST(487, 12006),
|
||||
/**
|
||||
* <code>USER_FORCE_CHANGE_RESPONSE = 12007;</code>
|
||||
*/
|
||||
USER_FORCE_CHANGE_RESPONSE(486, 12007),
|
||||
USER_FORCE_CHANGE_RESPONSE(488, 12007),
|
||||
/**
|
||||
* <code>UPDATE_BAG_INDICATION = 12008;</code>
|
||||
*
|
||||
|
|
@ -3059,7 +3071,7 @@ public final class MessageTypeProto {
|
|||
*更新背包
|
||||
* </pre>
|
||||
*/
|
||||
UPDATE_BAG_INDICATION(487, 12008),
|
||||
UPDATE_BAG_INDICATION(489, 12008),
|
||||
/**
|
||||
* <code>UPDATE_STATE_REQUEST = 12009;</code>
|
||||
*
|
||||
|
|
@ -3067,11 +3079,11 @@ public final class MessageTypeProto {
|
|||
* 更新客户状态
|
||||
* </pre>
|
||||
*/
|
||||
UPDATE_STATE_REQUEST(488, 12009),
|
||||
UPDATE_STATE_REQUEST(490, 12009),
|
||||
/**
|
||||
* <code>UPDATE_STATE_RESPONSE = 12010;</code>
|
||||
*/
|
||||
UPDATE_STATE_RESPONSE(489, 12010),
|
||||
UPDATE_STATE_RESPONSE(491, 12010),
|
||||
/**
|
||||
* <code>UPDATE_USER_EXP_INDICATION = 12011;</code>
|
||||
*
|
||||
|
|
@ -3079,7 +3091,7 @@ public final class MessageTypeProto {
|
|||
* 更新玩家等级经验信息
|
||||
* </pre>
|
||||
*/
|
||||
UPDATE_USER_EXP_INDICATION(490, 12011),
|
||||
UPDATE_USER_EXP_INDICATION(492, 12011),
|
||||
/**
|
||||
* <code>UPDATE_SECRET_BOX_SEASON_INDICATION = 12012;</code>
|
||||
*
|
||||
|
|
@ -3087,7 +3099,7 @@ public final class MessageTypeProto {
|
|||
* 更新秘盒赛季信息
|
||||
* </pre>
|
||||
*/
|
||||
UPDATE_SECRET_BOX_SEASON_INDICATION(491, 12012),
|
||||
UPDATE_SECRET_BOX_SEASON_INDICATION(493, 12012),
|
||||
/**
|
||||
* <code>UPDATE_PHONE_INFO_REQUEST = 12013;</code>
|
||||
*
|
||||
|
|
@ -3095,11 +3107,11 @@ public final class MessageTypeProto {
|
|||
*更新手机号
|
||||
* </pre>
|
||||
*/
|
||||
UPDATE_PHONE_INFO_REQUEST(492, 12013),
|
||||
UPDATE_PHONE_INFO_REQUEST(494, 12013),
|
||||
/**
|
||||
* <code>UPDATE_PHONE_INFO_RESPONSE = 12014;</code>
|
||||
*/
|
||||
UPDATE_PHONE_INFO_RESPONSE(493, 12014),
|
||||
UPDATE_PHONE_INFO_RESPONSE(495, 12014),
|
||||
/**
|
||||
* <code>UPDATE_QUESTION_REQUEST = 12015;</code>
|
||||
*
|
||||
|
|
@ -3107,15 +3119,15 @@ public final class MessageTypeProto {
|
|||
*问卷
|
||||
* </pre>
|
||||
*/
|
||||
UPDATE_QUESTION_REQUEST(494, 12015),
|
||||
UPDATE_QUESTION_REQUEST(496, 12015),
|
||||
/**
|
||||
* <code>UPDATE_QUESTION_RESPONSE = 12016;</code>
|
||||
*/
|
||||
UPDATE_QUESTION_RESPONSE(495, 12016),
|
||||
UPDATE_QUESTION_RESPONSE(497, 12016),
|
||||
/**
|
||||
* <code>UP_SOUL_EQUIP_QUICK_REQUEST = 12018;</code>
|
||||
*/
|
||||
UP_SOUL_EQUIP_QUICK_REQUEST(496, 12018),
|
||||
UP_SOUL_EQUIP_QUICK_REQUEST(498, 12018),
|
||||
/**
|
||||
* <code>UP_SOUL_EQUIP_RESPONSE = 12019;</code>
|
||||
*
|
||||
|
|
@ -3123,7 +3135,7 @@ public final class MessageTypeProto {
|
|||
*魂印升级
|
||||
* </pre>
|
||||
*/
|
||||
UP_SOUL_EQUIP_RESPONSE(497, 12019),
|
||||
UP_SOUL_EQUIP_RESPONSE(499, 12019),
|
||||
/**
|
||||
* <code>VIEW_FIGHTREPLAY_REQUEST = 12100;</code>
|
||||
*
|
||||
|
|
@ -3131,11 +3143,11 @@ public final class MessageTypeProto {
|
|||
* V 12100
|
||||
* </pre>
|
||||
*/
|
||||
VIEW_FIGHTREPLAY_REQUEST(498, 12100),
|
||||
VIEW_FIGHTREPLAY_REQUEST(500, 12100),
|
||||
/**
|
||||
* <code>VIEW_FIGHTREPLAY_RESPONSE = 12101;</code>
|
||||
*/
|
||||
VIEW_FIGHTREPLAY_RESPONSE(499, 12101),
|
||||
VIEW_FIGHTREPLAY_RESPONSE(501, 12101),
|
||||
/**
|
||||
* <code>VIP_LEVELUP_REQEUST = 12102;</code>
|
||||
*
|
||||
|
|
@ -3143,11 +3155,11 @@ public final class MessageTypeProto {
|
|||
*VIP等级提升
|
||||
* </pre>
|
||||
*/
|
||||
VIP_LEVELUP_REQEUST(500, 12102),
|
||||
VIP_LEVELUP_REQEUST(502, 12102),
|
||||
/**
|
||||
* <code>VIP_LEVELUP_RESPONSE = 12103;</code>
|
||||
*/
|
||||
VIP_LEVELUP_RESPONSE(501, 12103),
|
||||
VIP_LEVELUP_RESPONSE(503, 12103),
|
||||
/**
|
||||
* <code>VIP_TAKE_REWARD_REQUEST = 12104;</code>
|
||||
*
|
||||
|
|
@ -3155,11 +3167,11 @@ public final class MessageTypeProto {
|
|||
*领取vip等级或每日礼包
|
||||
* </pre>
|
||||
*/
|
||||
VIP_TAKE_REWARD_REQUEST(502, 12104),
|
||||
VIP_TAKE_REWARD_REQUEST(504, 12104),
|
||||
/**
|
||||
* <code>VIP_TAKE_REWARD_RESPONSE = 12105;</code>
|
||||
*/
|
||||
VIP_TAKE_REWARD_RESPONSE(503, 12105),
|
||||
VIP_TAKE_REWARD_RESPONSE(505, 12105),
|
||||
/**
|
||||
* <code>VIEW_HERO_INFO_REQUEST = 12106;</code>
|
||||
*
|
||||
|
|
@ -3167,11 +3179,11 @@ public final class MessageTypeProto {
|
|||
* 查看英雄详情信息
|
||||
* </pre>
|
||||
*/
|
||||
VIEW_HERO_INFO_REQUEST(504, 12106),
|
||||
VIEW_HERO_INFO_REQUEST(506, 12106),
|
||||
/**
|
||||
* <code>VIEW_HERO_INFO_RESPONSE = 12107;</code>
|
||||
*/
|
||||
VIEW_HERO_INFO_RESPONSE(505, 12107),
|
||||
VIEW_HERO_INFO_RESPONSE(507, 12107),
|
||||
/**
|
||||
* <code>VIP_TAKE_DAILY_REQUEST = 12108;</code>
|
||||
*
|
||||
|
|
@ -3179,11 +3191,11 @@ public final class MessageTypeProto {
|
|||
*领取vip每日礼包
|
||||
* </pre>
|
||||
*/
|
||||
VIP_TAKE_DAILY_REQUEST(506, 12108),
|
||||
VIP_TAKE_DAILY_REQUEST(508, 12108),
|
||||
/**
|
||||
* <code>VIP_TAKE_DAILY_RESPONSE = 12109;</code>
|
||||
*/
|
||||
VIP_TAKE_DAILY_RESPONSE(507, 12109),
|
||||
VIP_TAKE_DAILY_RESPONSE(509, 12109),
|
||||
/**
|
||||
* <code>WORKSHOP_FOUNDATION_REQUEST = 12200;</code>
|
||||
*
|
||||
|
|
@ -3191,11 +3203,11 @@ public final class MessageTypeProto {
|
|||
* W 12200
|
||||
* </pre>
|
||||
*/
|
||||
WORKSHOP_FOUNDATION_REQUEST(508, 12200),
|
||||
WORKSHOP_FOUNDATION_REQUEST(510, 12200),
|
||||
/**
|
||||
* <code>WORKSHOP_FOUNDATION_RESPONSE = 12201;</code>
|
||||
*/
|
||||
WORKSHOP_FOUNDATION_RESPONSE(509, 12201),
|
||||
WORKSHOP_FOUNDATION_RESPONSE(511, 12201),
|
||||
/**
|
||||
* <code>WORKSHOP_EQUIP_CREATE_REQUEST = 12202;</code>
|
||||
*
|
||||
|
|
@ -3203,11 +3215,11 @@ public final class MessageTypeProto {
|
|||
*装备打造
|
||||
* </pre>
|
||||
*/
|
||||
WORKSHOP_EQUIP_CREATE_REQUEST(510, 12202),
|
||||
WORKSHOP_EQUIP_CREATE_REQUEST(512, 12202),
|
||||
/**
|
||||
* <code>WORKSHOP_EQUIP_CREATE_RESPONSE = 12203;</code>
|
||||
*/
|
||||
WORKSHOP_EQUIP_CREATE_RESPONSE(511, 12203),
|
||||
WORKSHOP_EQUIP_CREATE_RESPONSE(513, 12203),
|
||||
/**
|
||||
* <code>WORKSHOP_REBUILD_REQUEST = 12204;</code>
|
||||
*
|
||||
|
|
@ -3215,11 +3227,11 @@ public final class MessageTypeProto {
|
|||
*装备重铸
|
||||
* </pre>
|
||||
*/
|
||||
WORKSHOP_REBUILD_REQUEST(512, 12204),
|
||||
WORKSHOP_REBUILD_REQUEST(514, 12204),
|
||||
/**
|
||||
* <code>WORKSHOP_REBUILD_RESPONSE = 12205;</code>
|
||||
*/
|
||||
WORKSHOP_REBUILD_RESPONSE(513, 12205),
|
||||
WORKSHOP_REBUILD_RESPONSE(515, 12205),
|
||||
/**
|
||||
* <code>WORKSHOP_REBUILD_CONFIRM_REQUEST = 12206;</code>
|
||||
*
|
||||
|
|
@ -3227,11 +3239,11 @@ public final class MessageTypeProto {
|
|||
* 重铸确认
|
||||
* </pre>
|
||||
*/
|
||||
WORKSHOP_REBUILD_CONFIRM_REQUEST(514, 12206),
|
||||
WORKSHOP_REBUILD_CONFIRM_REQUEST(516, 12206),
|
||||
/**
|
||||
* <code>WORKSHOP_REBUILD_CONFIRM_RESONSE = 12207;</code>
|
||||
*/
|
||||
WORKSHOP_REBUILD_CONFIRM_RESONSE(515, 12207),
|
||||
WORKSHOP_REBUILD_CONFIRM_RESONSE(517, 12207),
|
||||
/**
|
||||
* <code>WORKSHOP_LEVELUP_REQUEST = 12208;</code>
|
||||
*
|
||||
|
|
@ -3239,11 +3251,11 @@ public final class MessageTypeProto {
|
|||
*工坊升级
|
||||
* </pre>
|
||||
*/
|
||||
WORKSHOP_LEVELUP_REQUEST(516, 12208),
|
||||
WORKSHOP_LEVELUP_REQUEST(518, 12208),
|
||||
/**
|
||||
* <code>WORKSHOP_LEVELUP_RESPONSE = 12209;</code>
|
||||
*/
|
||||
WORKSHOP_LEVELUP_RESPONSE(517, 12209),
|
||||
WORKSHOP_LEVELUP_RESPONSE(519, 12209),
|
||||
/**
|
||||
* <code>WORKSHOP_TECHNOLOGY_LEVEL_REQUEST = 12210;</code>
|
||||
*
|
||||
|
|
@ -3251,11 +3263,11 @@ public final class MessageTypeProto {
|
|||
*科技树升级
|
||||
* </pre>
|
||||
*/
|
||||
WORKSHOP_TECHNOLOGY_LEVEL_REQUEST(518, 12210),
|
||||
WORKSHOP_TECHNOLOGY_LEVEL_REQUEST(520, 12210),
|
||||
/**
|
||||
* <code>WORKSHOP_TECHNOLOGY_RESPONSE = 12211;</code>
|
||||
*/
|
||||
WORKSHOP_TECHNOLOGY_RESPONSE(519, 12211),
|
||||
WORKSHOP_TECHNOLOGY_RESPONSE(521, 12211),
|
||||
/**
|
||||
* <code>WORKSHOP_TECHNOLOGY_RESET_REQUEST = 12212;</code>
|
||||
*
|
||||
|
|
@ -3263,11 +3275,11 @@ public final class MessageTypeProto {
|
|||
*科技树重置
|
||||
* </pre>
|
||||
*/
|
||||
WORKSHOP_TECHNOLOGY_RESET_REQUEST(520, 12212),
|
||||
WORKSHOP_TECHNOLOGY_RESET_REQUEST(522, 12212),
|
||||
/**
|
||||
* <code>WORKSHOP_TECHNOLOGY_RESET_RESPONSE = 12213;</code>
|
||||
*/
|
||||
WORKSHOP_TECHNOLOGY_RESET_RESPONSE(521, 12213),
|
||||
WORKSHOP_TECHNOLOGY_RESET_RESPONSE(523, 12213),
|
||||
/**
|
||||
* <code>EXPEDITION_GET_EXPEDITION_REQUEST = 20002;</code>
|
||||
*
|
||||
|
|
@ -3275,11 +3287,11 @@ public final class MessageTypeProto {
|
|||
*获取节点信息
|
||||
* </pre>
|
||||
*/
|
||||
EXPEDITION_GET_EXPEDITION_REQUEST(522, 20002),
|
||||
EXPEDITION_GET_EXPEDITION_REQUEST(524, 20002),
|
||||
/**
|
||||
* <code>EXPEDITION_GET_EXPEDITION_RESONSE = 20003;</code>
|
||||
*/
|
||||
EXPEDITION_GET_EXPEDITION_RESONSE(523, 20003),
|
||||
EXPEDITION_GET_EXPEDITION_RESONSE(525, 20003),
|
||||
/**
|
||||
* <code>EXPEDITION_TAKE_BOXREWARD_REQUEST = 20004;</code>
|
||||
*
|
||||
|
|
@ -3287,11 +3299,11 @@ public final class MessageTypeProto {
|
|||
*获取层级奖励
|
||||
* </pre>
|
||||
*/
|
||||
EXPEDITION_TAKE_BOXREWARD_REQUEST(524, 20004),
|
||||
EXPEDITION_TAKE_BOXREWARD_REQUEST(526, 20004),
|
||||
/**
|
||||
* <code>EXPEDITION_TAKE_BOXREWARD_RESONSE = 20005;</code>
|
||||
*/
|
||||
EXPEDITION_TAKE_BOXREWARD_RESONSE(525, 20005),
|
||||
EXPEDITION_TAKE_BOXREWARD_RESONSE(527, 20005),
|
||||
/**
|
||||
* <code>EXPEDITION_RELIVE_HERO_REQUEST = 20006;</code>
|
||||
*
|
||||
|
|
@ -3299,11 +3311,11 @@ public final class MessageTypeProto {
|
|||
*复活英雄
|
||||
* </pre>
|
||||
*/
|
||||
EXPEDITION_RELIVE_HERO_REQUEST(526, 20006),
|
||||
EXPEDITION_RELIVE_HERO_REQUEST(528, 20006),
|
||||
/**
|
||||
* <code>EXPEDITION_RELIVE_HERO_RESONSE = 20007;</code>
|
||||
*/
|
||||
EXPEDITION_RELIVE_HERO_RESONSE(527, 20007),
|
||||
EXPEDITION_RELIVE_HERO_RESONSE(529, 20007),
|
||||
/**
|
||||
* <code>EXPEDITION_START_BATTLE_REQUEST = 20008;</code>
|
||||
*
|
||||
|
|
@ -3311,11 +3323,11 @@ public final class MessageTypeProto {
|
|||
*开始节点战斗操作
|
||||
* </pre>
|
||||
*/
|
||||
EXPEDITION_START_BATTLE_REQUEST(528, 20008),
|
||||
EXPEDITION_START_BATTLE_REQUEST(530, 20008),
|
||||
/**
|
||||
* <code>EXPEDITION_START_BATTLE_RESONSE = 20009;</code>
|
||||
*/
|
||||
EXPEDITION_START_BATTLE_RESONSE(529, 20009),
|
||||
EXPEDITION_START_BATTLE_RESONSE(531, 20009),
|
||||
/**
|
||||
* <code>EXPEDITION_END_BATTLE_REQUEST = 20010;</code>
|
||||
*
|
||||
|
|
@ -3323,11 +3335,11 @@ public final class MessageTypeProto {
|
|||
*结束节点战斗操作
|
||||
* </pre>
|
||||
*/
|
||||
EXPEDITION_END_BATTLE_REQUEST(530, 20010),
|
||||
EXPEDITION_END_BATTLE_REQUEST(532, 20010),
|
||||
/**
|
||||
* <code>EXPEDITION_END_BATTLE_RESONSE = 20011;</code>
|
||||
*/
|
||||
EXPEDITION_END_BATTLE_RESONSE(531, 20011),
|
||||
EXPEDITION_END_BATTLE_RESONSE(533, 20011),
|
||||
/**
|
||||
* <code>EXPEDITION_TAKE_HOLY_EQUIP_REQUEST = 20012;</code>
|
||||
*
|
||||
|
|
@ -3335,11 +3347,11 @@ public final class MessageTypeProto {
|
|||
*领取圣物
|
||||
* </pre>
|
||||
*/
|
||||
EXPEDITION_TAKE_HOLY_EQUIP_REQUEST(532, 20012),
|
||||
EXPEDITION_TAKE_HOLY_EQUIP_REQUEST(534, 20012),
|
||||
/**
|
||||
* <code>EXPEDITION_TAKE_HOLY_EQUIP_RESONSE = 20013;</code>
|
||||
*/
|
||||
EXPEDITION_TAKE_HOLY_EQUIP_RESONSE(533, 20013),
|
||||
EXPEDITION_TAKE_HOLY_EQUIP_RESONSE(535, 20013),
|
||||
/**
|
||||
* <code>EXPEDITION_RECOVER_HERO_REQUEST = 20014;</code>
|
||||
*
|
||||
|
|
@ -3347,11 +3359,11 @@ public final class MessageTypeProto {
|
|||
*恢复英雄
|
||||
* </pre>
|
||||
*/
|
||||
EXPEDITION_RECOVER_HERO_REQUEST(534, 20014),
|
||||
EXPEDITION_RECOVER_HERO_REQUEST(536, 20014),
|
||||
/**
|
||||
* <code>EXPEDITION_RECOVER_HERO_RESONSE = 20015;</code>
|
||||
*/
|
||||
EXPEDITION_RECOVER_HERO_RESONSE(535, 20015),
|
||||
EXPEDITION_RECOVER_HERO_RESONSE(537, 20015),
|
||||
/**
|
||||
* <code>EXPEDITION_HOLY_BAG_INDICATION = 20016;</code>
|
||||
*
|
||||
|
|
@ -3359,7 +3371,7 @@ public final class MessageTypeProto {
|
|||
*臨時背包推送
|
||||
* </pre>
|
||||
*/
|
||||
EXPEDITION_HOLY_BAG_INDICATION(536, 20016),
|
||||
EXPEDITION_HOLY_BAG_INDICATION(538, 20016),
|
||||
/**
|
||||
* <code>EXPEDITION_NOINFO_INDICATION = 20017;</code>
|
||||
*
|
||||
|
|
@ -3367,7 +3379,27 @@ public final class MessageTypeProto {
|
|||
*节点状态推送
|
||||
* </pre>
|
||||
*/
|
||||
EXPEDITION_NOINFO_INDICATION(537, 20017),
|
||||
EXPEDITION_NOINFO_INDICATION(539, 20017),
|
||||
/**
|
||||
* <code>EXPEDITION_TAKE_TREASURE_REWARD_REQUEST = 20018;</code>
|
||||
*
|
||||
* <pre>
|
||||
*领取积分奖励
|
||||
* </pre>
|
||||
*/
|
||||
EXPEDITION_TAKE_TREASURE_REWARD_REQUEST(540, 20018),
|
||||
/**
|
||||
* <code>EXPEDITION_TAKE_TREASURE_REWARD_RESPONSE = 20019;</code>
|
||||
*/
|
||||
EXPEDITION_TAKE_TREASURE_REWARD_RESPONSE(541, 20019),
|
||||
/**
|
||||
* <code>EXPEDITION_TREASURE_STATE_INDICATION = 20020;</code>
|
||||
*
|
||||
* <pre>
|
||||
* 积分状态推送
|
||||
* </pre>
|
||||
*/
|
||||
EXPEDITION_TREASURE_STATE_INDICATION(542, 20020),
|
||||
/**
|
||||
* <code>MONTHCARD_TAKE_DAILY_REQUEST = 20101;</code>
|
||||
*
|
||||
|
|
@ -3375,15 +3407,15 @@ public final class MessageTypeProto {
|
|||
* 20101 - 20110 月卡
|
||||
* </pre>
|
||||
*/
|
||||
MONTHCARD_TAKE_DAILY_REQUEST(538, 20101),
|
||||
MONTHCARD_TAKE_DAILY_REQUEST(543, 20101),
|
||||
/**
|
||||
* <code>MONTHCARD_TAKE_DAILY_RESPONSE = 20102;</code>
|
||||
*/
|
||||
MONTHCARD_TAKE_DAILY_RESPONSE(539, 20102),
|
||||
MONTHCARD_TAKE_DAILY_RESPONSE(544, 20102),
|
||||
/**
|
||||
* <code>MONTHCARD_INDICATION = 20103;</code>
|
||||
*/
|
||||
MONTHCARD_INDICATION(540, 20103),
|
||||
MONTHCARD_INDICATION(545, 20103),
|
||||
/**
|
||||
* <code>EQUIP_COMPLEX_REQUEST = 20111;</code>
|
||||
*
|
||||
|
|
@ -3391,11 +3423,11 @@ public final class MessageTypeProto {
|
|||
*20111 - 20200 装备、
|
||||
* </pre>
|
||||
*/
|
||||
EQUIP_COMPLEX_REQUEST(541, 20111),
|
||||
EQUIP_COMPLEX_REQUEST(546, 20111),
|
||||
/**
|
||||
* <code>EQUIP_COMPLEX_RESPONSE = 20112;</code>
|
||||
*/
|
||||
EQUIP_COMPLEX_RESPONSE(542, 20112),
|
||||
EQUIP_COMPLEX_RESPONSE(547, 20112),
|
||||
/**
|
||||
* <code>FamilyFeteRequest = 30001;</code>
|
||||
*
|
||||
|
|
@ -3403,7 +3435,7 @@ public final class MessageTypeProto {
|
|||
*30000-3300 公会
|
||||
* </pre>
|
||||
*/
|
||||
FamilyFeteRequest(543, 30001),
|
||||
FamilyFeteRequest(548, 30001),
|
||||
/**
|
||||
* <code>FamilyFeteResponse = 30002;</code>
|
||||
*
|
||||
|
|
@ -3411,7 +3443,7 @@ public final class MessageTypeProto {
|
|||
*祭祀
|
||||
* </pre>
|
||||
*/
|
||||
FamilyFeteResponse(544, 30002),
|
||||
FamilyFeteResponse(549, 30002),
|
||||
/**
|
||||
* <code>FamilyGetFeteRewardRequest = 30003;</code>
|
||||
*
|
||||
|
|
@ -3419,14 +3451,14 @@ public final class MessageTypeProto {
|
|||
*领取公会祭祀
|
||||
* </pre>
|
||||
*/
|
||||
FamilyGetFeteRewardRequest(545, 30003),
|
||||
FamilyGetFeteRewardRequest(550, 30003),
|
||||
/**
|
||||
* <code>FamilyGetFeteRewardResponse = 30004;</code>
|
||||
*
|
||||
* <pre>
|
||||
* </pre>
|
||||
*/
|
||||
FamilyGetFeteRewardResponse(546, 30004),
|
||||
FamilyGetFeteRewardResponse(551, 30004),
|
||||
/**
|
||||
* <code>FamilyFeteRewardProcessIndication = 30005;</code>
|
||||
*
|
||||
|
|
@ -3434,7 +3466,7 @@ public final class MessageTypeProto {
|
|||
* 更新公会进度
|
||||
* </pre>
|
||||
*/
|
||||
FamilyFeteRewardProcessIndication(547, 30005),
|
||||
FamilyFeteRewardProcessIndication(552, 30005),
|
||||
/**
|
||||
* <code>ComplexJewelEquipRequest = 30301;</code>
|
||||
*
|
||||
|
|
@ -3442,11 +3474,11 @@ public final class MessageTypeProto {
|
|||
*30301-30330 宝物合成
|
||||
* </pre>
|
||||
*/
|
||||
ComplexJewelEquipRequest(548, 30301),
|
||||
ComplexJewelEquipRequest(553, 30301),
|
||||
/**
|
||||
* <code>ComplexJewelEquipResponse = 30302;</code>
|
||||
*/
|
||||
ComplexJewelEquipResponse(549, 30302),
|
||||
ComplexJewelEquipResponse(554, 30302),
|
||||
/**
|
||||
* <code>GuildSendHelpRequest = 303301;</code>
|
||||
*
|
||||
|
|
@ -3454,11 +3486,11 @@ public final class MessageTypeProto {
|
|||
*30330-30400 公会援助
|
||||
* </pre>
|
||||
*/
|
||||
GuildSendHelpRequest(550, 303301),
|
||||
GuildSendHelpRequest(555, 303301),
|
||||
/**
|
||||
* <code>GuildSendHelpResponse = 303302;</code>
|
||||
*/
|
||||
GuildSendHelpResponse(551, 303302),
|
||||
GuildSendHelpResponse(556, 303302),
|
||||
/**
|
||||
* <code>GuildTakeHelpRewardRequest = 303303;</code>
|
||||
*
|
||||
|
|
@ -3466,11 +3498,11 @@ public final class MessageTypeProto {
|
|||
*领取公会援助奖励
|
||||
* </pre>
|
||||
*/
|
||||
GuildTakeHelpRewardRequest(552, 303303),
|
||||
GuildTakeHelpRewardRequest(557, 303303),
|
||||
/**
|
||||
* <code>GuildTakeHelpRewardRequese = 303304;</code>
|
||||
*/
|
||||
GuildTakeHelpRewardRequese(553, 303304),
|
||||
GuildTakeHelpRewardRequese(558, 303304),
|
||||
/**
|
||||
* <code>GuildSendHelpMessageRequest = 303305;</code>
|
||||
*
|
||||
|
|
@ -3478,11 +3510,11 @@ public final class MessageTypeProto {
|
|||
*发送公会援助信息
|
||||
* </pre>
|
||||
*/
|
||||
GuildSendHelpMessageRequest(554, 303305),
|
||||
GuildSendHelpMessageRequest(559, 303305),
|
||||
/**
|
||||
* <code>GuildSendHelpMessageResponse = 303306;</code>
|
||||
*/
|
||||
GuildSendHelpMessageResponse(555, 303306),
|
||||
GuildSendHelpMessageResponse(560, 303306),
|
||||
/**
|
||||
* <code>GuildTakeHelpBoxRequest = 303307;</code>
|
||||
*
|
||||
|
|
@ -3490,11 +3522,11 @@ public final class MessageTypeProto {
|
|||
*领取公会求援宝盒
|
||||
* </pre>
|
||||
*/
|
||||
GuildTakeHelpBoxRequest(556, 303307),
|
||||
GuildTakeHelpBoxRequest(561, 303307),
|
||||
/**
|
||||
* <code>GuildTakeHelpBoxResponse = 303308;</code>
|
||||
*/
|
||||
GuildTakeHelpBoxResponse(557, 303308),
|
||||
GuildTakeHelpBoxResponse(562, 303308),
|
||||
/**
|
||||
* <code>GuildHelpHelpOtherRequest = 303309;</code>
|
||||
*
|
||||
|
|
@ -3502,11 +3534,11 @@ public final class MessageTypeProto {
|
|||
*援助他人
|
||||
* </pre>
|
||||
*/
|
||||
GuildHelpHelpOtherRequest(558, 303309),
|
||||
GuildHelpHelpOtherRequest(563, 303309),
|
||||
/**
|
||||
* <code>GuildHelpHelpOtherResponse = 303310;</code>
|
||||
*/
|
||||
GuildHelpHelpOtherResponse(559, 303310),
|
||||
GuildHelpHelpOtherResponse(564, 303310),
|
||||
/**
|
||||
* <code>GuildHelpInfoIndication = 303311;</code>
|
||||
*
|
||||
|
|
@ -3514,7 +3546,39 @@ public final class MessageTypeProto {
|
|||
*修改和5点推送
|
||||
* </pre>
|
||||
*/
|
||||
GuildHelpInfoIndication(560, 303311),
|
||||
GuildHelpInfoIndication(565, 303311),
|
||||
/**
|
||||
* <code>GuildHelpGetAllRequest = 303312;</code>
|
||||
*
|
||||
* <pre>
|
||||
*获取成员援助信息
|
||||
* </pre>
|
||||
*/
|
||||
GuildHelpGetAllRequest(566, 303312),
|
||||
/**
|
||||
* <code>GuildHelpGetAllResponse = 303313;</code>
|
||||
*/
|
||||
GuildHelpGetAllResponse(567, 303313),
|
||||
/**
|
||||
* <code>GuildGetHelpLogRequest = 303314;</code>
|
||||
*
|
||||
* <pre>
|
||||
*请求援助日志
|
||||
* </pre>
|
||||
*/
|
||||
GuildGetHelpLogRequest(568, 303314),
|
||||
/**
|
||||
* <code>GuildGetHelpLogResponse = 303315;</code>
|
||||
*/
|
||||
GuildGetHelpLogResponse(569, 303315),
|
||||
/**
|
||||
* <code>GuildHelpLogIndication = 303316;</code>
|
||||
*
|
||||
* <pre>
|
||||
*新的援助会推
|
||||
* </pre>
|
||||
*/
|
||||
GuildHelpLogIndication(570, 303316),
|
||||
;
|
||||
|
||||
/**
|
||||
|
|
@ -6508,6 +6572,18 @@ public final class MessageTypeProto {
|
|||
* <code>TREASURE_REFRESH_TIME_RESPONSE = 11919;</code>
|
||||
*/
|
||||
public static final int TREASURE_REFRESH_TIME_RESPONSE_VALUE = 11919;
|
||||
/**
|
||||
* <code>TAKE_RANDOM_HERO_BOX_REQUEST = 11920;</code>
|
||||
*
|
||||
* <pre>
|
||||
*领取抽卡英雄宝箱奖励
|
||||
* </pre>
|
||||
*/
|
||||
public static final int TAKE_RANDOM_HERO_BOX_REQUEST_VALUE = 11920;
|
||||
/**
|
||||
* <code>TAKE_RANDOM_HERO_BOX_RESPONSE = 11921;</code>
|
||||
*/
|
||||
public static final int TAKE_RANDOM_HERO_BOX_RESPONSE_VALUE = 11921;
|
||||
/**
|
||||
* <code>UP_HERO_LEVEL_REQUEST = 12000;</code>
|
||||
*
|
||||
|
|
@ -6872,6 +6948,26 @@ public final class MessageTypeProto {
|
|||
* </pre>
|
||||
*/
|
||||
public static final int EXPEDITION_NOINFO_INDICATION_VALUE = 20017;
|
||||
/**
|
||||
* <code>EXPEDITION_TAKE_TREASURE_REWARD_REQUEST = 20018;</code>
|
||||
*
|
||||
* <pre>
|
||||
*领取积分奖励
|
||||
* </pre>
|
||||
*/
|
||||
public static final int EXPEDITION_TAKE_TREASURE_REWARD_REQUEST_VALUE = 20018;
|
||||
/**
|
||||
* <code>EXPEDITION_TAKE_TREASURE_REWARD_RESPONSE = 20019;</code>
|
||||
*/
|
||||
public static final int EXPEDITION_TAKE_TREASURE_REWARD_RESPONSE_VALUE = 20019;
|
||||
/**
|
||||
* <code>EXPEDITION_TREASURE_STATE_INDICATION = 20020;</code>
|
||||
*
|
||||
* <pre>
|
||||
* 积分状态推送
|
||||
* </pre>
|
||||
*/
|
||||
public static final int EXPEDITION_TREASURE_STATE_INDICATION_VALUE = 20020;
|
||||
/**
|
||||
* <code>MONTHCARD_TAKE_DAILY_REQUEST = 20101;</code>
|
||||
*
|
||||
|
|
@ -7019,6 +7115,38 @@ public final class MessageTypeProto {
|
|||
* </pre>
|
||||
*/
|
||||
public static final int GuildHelpInfoIndication_VALUE = 303311;
|
||||
/**
|
||||
* <code>GuildHelpGetAllRequest = 303312;</code>
|
||||
*
|
||||
* <pre>
|
||||
*获取成员援助信息
|
||||
* </pre>
|
||||
*/
|
||||
public static final int GuildHelpGetAllRequest_VALUE = 303312;
|
||||
/**
|
||||
* <code>GuildHelpGetAllResponse = 303313;</code>
|
||||
*/
|
||||
public static final int GuildHelpGetAllResponse_VALUE = 303313;
|
||||
/**
|
||||
* <code>GuildGetHelpLogRequest = 303314;</code>
|
||||
*
|
||||
* <pre>
|
||||
*请求援助日志
|
||||
* </pre>
|
||||
*/
|
||||
public static final int GuildGetHelpLogRequest_VALUE = 303314;
|
||||
/**
|
||||
* <code>GuildGetHelpLogResponse = 303315;</code>
|
||||
*/
|
||||
public static final int GuildGetHelpLogResponse_VALUE = 303315;
|
||||
/**
|
||||
* <code>GuildHelpLogIndication = 303316;</code>
|
||||
*
|
||||
* <pre>
|
||||
*新的援助会推
|
||||
* </pre>
|
||||
*/
|
||||
public static final int GuildHelpLogIndication_VALUE = 303316;
|
||||
|
||||
|
||||
public final int getNumber() { return value; }
|
||||
|
|
@ -7504,6 +7632,8 @@ public final class MessageTypeProto {
|
|||
case 11917: return TREASURE_LEVELUP_INDICATION;
|
||||
case 11918: return TREASURE_REFRESH_TIME_REQUEST;
|
||||
case 11919: return TREASURE_REFRESH_TIME_RESPONSE;
|
||||
case 11920: return TAKE_RANDOM_HERO_BOX_REQUEST;
|
||||
case 11921: return TAKE_RANDOM_HERO_BOX_RESPONSE;
|
||||
case 12000: return UP_HERO_LEVEL_REQUEST;
|
||||
case 12001: return UP_HERO_LEVEL_RESPONSE;
|
||||
case 12002: return UP_HERO_STAR_REQUEST;
|
||||
|
|
@ -7563,6 +7693,9 @@ public final class MessageTypeProto {
|
|||
case 20015: return EXPEDITION_RECOVER_HERO_RESONSE;
|
||||
case 20016: return EXPEDITION_HOLY_BAG_INDICATION;
|
||||
case 20017: return EXPEDITION_NOINFO_INDICATION;
|
||||
case 20018: return EXPEDITION_TAKE_TREASURE_REWARD_REQUEST;
|
||||
case 20019: return EXPEDITION_TAKE_TREASURE_REWARD_RESPONSE;
|
||||
case 20020: return EXPEDITION_TREASURE_STATE_INDICATION;
|
||||
case 20101: return MONTHCARD_TAKE_DAILY_REQUEST;
|
||||
case 20102: return MONTHCARD_TAKE_DAILY_RESPONSE;
|
||||
case 20103: return MONTHCARD_INDICATION;
|
||||
|
|
@ -7586,6 +7719,11 @@ public final class MessageTypeProto {
|
|||
case 303309: return GuildHelpHelpOtherRequest;
|
||||
case 303310: return GuildHelpHelpOtherResponse;
|
||||
case 303311: return GuildHelpInfoIndication;
|
||||
case 303312: return GuildHelpGetAllRequest;
|
||||
case 303313: return GuildHelpGetAllResponse;
|
||||
case 303314: return GuildGetHelpLogRequest;
|
||||
case 303315: return GuildGetHelpLogResponse;
|
||||
case 303316: return GuildHelpLogIndication;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
|
@ -7647,7 +7785,7 @@ public final class MessageTypeProto {
|
|||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\026MessageTypeProto.proto\022\032com.ljsd.jieli" +
|
||||
"ng.protocols*\223\217\001\n\013MessageType\022\027\n\022HEART_B" +
|
||||
"ng.protocols*\375\221\001\n\013MessageType\022\027\n\022HEART_B" +
|
||||
"EAT_REQUEST\020\350\007\022\030\n\023HEART_BEAT_RESPONSE\020\351\007" +
|
||||
"\022\036\n\031ACTIVITE_WORKSHOP_REQUEST\020\224N\022\037\n\032ACTI" +
|
||||
"VITE_WORKSHOP_RESPONSE\020\225N\022\027\n\022ARENA_INFO_" +
|
||||
|
|
@ -8036,76 +8174,85 @@ public final class MessageTypeProto {
|
|||
"\033TREASURE_REFRESH_INDICATION\020\214]\022 \n\033TREAS" +
|
||||
"URE_LEVELUP_INDICATION\020\215]\022\"\n\035TREASURE_RE" +
|
||||
"FRESH_TIME_REQUEST\020\216]\022#\n\036TREASURE_REFRES",
|
||||
"H_TIME_RESPONSE\020\217]\022\032\n\025UP_HERO_LEVEL_REQU" +
|
||||
"EST\020\340]\022\033\n\026UP_HERO_LEVEL_RESPONSE\020\341]\022\031\n\024U" +
|
||||
"P_HERO_STAR_REQUEST\020\342]\022\032\n\025UP_HERO_STAR_R" +
|
||||
"ESPONSE\020\343]\022 \n\033USER_AND_PRICE_ITEM_REQUES" +
|
||||
"T\020\344]\022!\n\034USER_AND_PRICE_ITEM_RESPONSE\020\345]\022" +
|
||||
"\036\n\031USER_FORCE_CHANGE_REQUEST\020\346]\022\037\n\032USER_" +
|
||||
"FORCE_CHANGE_RESPONSE\020\347]\022\032\n\025UPDATE_BAG_I" +
|
||||
"NDICATION\020\350]\022\031\n\024UPDATE_STATE_REQUEST\020\351]\022" +
|
||||
"\032\n\025UPDATE_STATE_RESPONSE\020\352]\022\037\n\032UPDATE_US" +
|
||||
"ER_EXP_INDICATION\020\353]\022(\n#UPDATE_SECRET_BO",
|
||||
"X_SEASON_INDICATION\020\354]\022\036\n\031UPDATE_PHONE_I" +
|
||||
"NFO_REQUEST\020\355]\022\037\n\032UPDATE_PHONE_INFO_RESP" +
|
||||
"ONSE\020\356]\022\034\n\027UPDATE_QUESTION_REQUEST\020\357]\022\035\n" +
|
||||
"\030UPDATE_QUESTION_RESPONSE\020\360]\022 \n\033UP_SOUL_" +
|
||||
"EQUIP_QUICK_REQUEST\020\362]\022\033\n\026UP_SOUL_EQUIP_" +
|
||||
"RESPONSE\020\363]\022\035\n\030VIEW_FIGHTREPLAY_REQUEST\020" +
|
||||
"\304^\022\036\n\031VIEW_FIGHTREPLAY_RESPONSE\020\305^\022\030\n\023VI" +
|
||||
"P_LEVELUP_REQEUST\020\306^\022\031\n\024VIP_LEVELUP_RESP" +
|
||||
"ONSE\020\307^\022\034\n\027VIP_TAKE_REWARD_REQUEST\020\310^\022\035\n" +
|
||||
"\030VIP_TAKE_REWARD_RESPONSE\020\311^\022\033\n\026VIEW_HER",
|
||||
"O_INFO_REQUEST\020\312^\022\034\n\027VIEW_HERO_INFO_RESP" +
|
||||
"ONSE\020\313^\022\033\n\026VIP_TAKE_DAILY_REQUEST\020\314^\022\034\n\027" +
|
||||
"VIP_TAKE_DAILY_RESPONSE\020\315^\022 \n\033WORKSHOP_F" +
|
||||
"OUNDATION_REQUEST\020\250_\022!\n\034WORKSHOP_FOUNDAT" +
|
||||
"ION_RESPONSE\020\251_\022\"\n\035WORKSHOP_EQUIP_CREATE" +
|
||||
"_REQUEST\020\252_\022#\n\036WORKSHOP_EQUIP_CREATE_RES" +
|
||||
"PONSE\020\253_\022\035\n\030WORKSHOP_REBUILD_REQUEST\020\254_\022" +
|
||||
"\036\n\031WORKSHOP_REBUILD_RESPONSE\020\255_\022%\n WORKS" +
|
||||
"HOP_REBUILD_CONFIRM_REQUEST\020\256_\022%\n WORKSH" +
|
||||
"OP_REBUILD_CONFIRM_RESONSE\020\257_\022\035\n\030WORKSHO",
|
||||
"P_LEVELUP_REQUEST\020\260_\022\036\n\031WORKSHOP_LEVELUP" +
|
||||
"_RESPONSE\020\261_\022&\n!WORKSHOP_TECHNOLOGY_LEVE" +
|
||||
"L_REQUEST\020\262_\022!\n\034WORKSHOP_TECHNOLOGY_RESP" +
|
||||
"ONSE\020\263_\022&\n!WORKSHOP_TECHNOLOGY_RESET_REQ" +
|
||||
"UEST\020\264_\022\'\n\"WORKSHOP_TECHNOLOGY_RESET_RES" +
|
||||
"PONSE\020\265_\022\'\n!EXPEDITION_GET_EXPEDITION_RE" +
|
||||
"QUEST\020\242\234\001\022\'\n!EXPEDITION_GET_EXPEDITION_R" +
|
||||
"ESONSE\020\243\234\001\022\'\n!EXPEDITION_TAKE_BOXREWARD_" +
|
||||
"REQUEST\020\244\234\001\022\'\n!EXPEDITION_TAKE_BOXREWARD" +
|
||||
"_RESONSE\020\245\234\001\022$\n\036EXPEDITION_RELIVE_HERO_R",
|
||||
"EQUEST\020\246\234\001\022$\n\036EXPEDITION_RELIVE_HERO_RES" +
|
||||
"ONSE\020\247\234\001\022%\n\037EXPEDITION_START_BATTLE_REQU" +
|
||||
"EST\020\250\234\001\022%\n\037EXPEDITION_START_BATTLE_RESON" +
|
||||
"SE\020\251\234\001\022#\n\035EXPEDITION_END_BATTLE_REQUEST\020" +
|
||||
"\252\234\001\022#\n\035EXPEDITION_END_BATTLE_RESONSE\020\253\234\001" +
|
||||
"\022(\n\"EXPEDITION_TAKE_HOLY_EQUIP_REQUEST\020\254" +
|
||||
"\234\001\022(\n\"EXPEDITION_TAKE_HOLY_EQUIP_RESONSE" +
|
||||
"\020\255\234\001\022%\n\037EXPEDITION_RECOVER_HERO_REQUEST\020" +
|
||||
"\256\234\001\022%\n\037EXPEDITION_RECOVER_HERO_RESONSE\020\257" +
|
||||
"\234\001\022$\n\036EXPEDITION_HOLY_BAG_INDICATION\020\260\234\001",
|
||||
"\022\"\n\034EXPEDITION_NOINFO_INDICATION\020\261\234\001\022\"\n\034" +
|
||||
"MONTHCARD_TAKE_DAILY_REQUEST\020\205\235\001\022#\n\035MONT" +
|
||||
"HCARD_TAKE_DAILY_RESPONSE\020\206\235\001\022\032\n\024MONTHCA" +
|
||||
"RD_INDICATION\020\207\235\001\022\033\n\025EQUIP_COMPLEX_REQUE" +
|
||||
"ST\020\217\235\001\022\034\n\026EQUIP_COMPLEX_RESPONSE\020\220\235\001\022\027\n\021" +
|
||||
"FamilyFeteRequest\020\261\352\001\022\030\n\022FamilyFeteRespo" +
|
||||
"nse\020\262\352\001\022 \n\032FamilyGetFeteRewardRequest\020\263\352" +
|
||||
"\001\022!\n\033FamilyGetFeteRewardResponse\020\264\352\001\022\'\n!" +
|
||||
"FamilyFeteRewardProcessIndication\020\265\352\001\022\036\n" +
|
||||
"\030ComplexJewelEquipRequest\020\335\354\001\022\037\n\031Complex",
|
||||
"JewelEquipResponse\020\336\354\001\022\032\n\024GuildSendHelpR" +
|
||||
"equest\020\305\301\022\022\033\n\025GuildSendHelpResponse\020\306\301\022\022" +
|
||||
" \n\032GuildTakeHelpRewardRequest\020\307\301\022\022 \n\032Gui" +
|
||||
"ldTakeHelpRewardRequese\020\310\301\022\022!\n\033GuildSend" +
|
||||
"HelpMessageRequest\020\311\301\022\022\"\n\034GuildSendHelpM" +
|
||||
"essageResponse\020\312\301\022\022\035\n\027GuildTakeHelpBoxRe" +
|
||||
"quest\020\313\301\022\022\036\n\030GuildTakeHelpBoxResponse\020\314\301" +
|
||||
"\022\022\037\n\031GuildHelpHelpOtherRequest\020\315\301\022\022 \n\032Gu" +
|
||||
"ildHelpHelpOtherResponse\020\316\301\022\022\035\n\027GuildHel" +
|
||||
"pInfoIndication\020\317\301\022B\002H\001"
|
||||
"H_TIME_RESPONSE\020\217]\022!\n\034TAKE_RANDOM_HERO_B" +
|
||||
"OX_REQUEST\020\220]\022\"\n\035TAKE_RANDOM_HERO_BOX_RE" +
|
||||
"SPONSE\020\221]\022\032\n\025UP_HERO_LEVEL_REQUEST\020\340]\022\033\n" +
|
||||
"\026UP_HERO_LEVEL_RESPONSE\020\341]\022\031\n\024UP_HERO_ST" +
|
||||
"AR_REQUEST\020\342]\022\032\n\025UP_HERO_STAR_RESPONSE\020\343" +
|
||||
"]\022 \n\033USER_AND_PRICE_ITEM_REQUEST\020\344]\022!\n\034U" +
|
||||
"SER_AND_PRICE_ITEM_RESPONSE\020\345]\022\036\n\031USER_F" +
|
||||
"ORCE_CHANGE_REQUEST\020\346]\022\037\n\032USER_FORCE_CHA" +
|
||||
"NGE_RESPONSE\020\347]\022\032\n\025UPDATE_BAG_INDICATION" +
|
||||
"\020\350]\022\031\n\024UPDATE_STATE_REQUEST\020\351]\022\032\n\025UPDATE",
|
||||
"_STATE_RESPONSE\020\352]\022\037\n\032UPDATE_USER_EXP_IN" +
|
||||
"DICATION\020\353]\022(\n#UPDATE_SECRET_BOX_SEASON_" +
|
||||
"INDICATION\020\354]\022\036\n\031UPDATE_PHONE_INFO_REQUE" +
|
||||
"ST\020\355]\022\037\n\032UPDATE_PHONE_INFO_RESPONSE\020\356]\022\034" +
|
||||
"\n\027UPDATE_QUESTION_REQUEST\020\357]\022\035\n\030UPDATE_Q" +
|
||||
"UESTION_RESPONSE\020\360]\022 \n\033UP_SOUL_EQUIP_QUI" +
|
||||
"CK_REQUEST\020\362]\022\033\n\026UP_SOUL_EQUIP_RESPONSE\020" +
|
||||
"\363]\022\035\n\030VIEW_FIGHTREPLAY_REQUEST\020\304^\022\036\n\031VIE" +
|
||||
"W_FIGHTREPLAY_RESPONSE\020\305^\022\030\n\023VIP_LEVELUP" +
|
||||
"_REQEUST\020\306^\022\031\n\024VIP_LEVELUP_RESPONSE\020\307^\022\034",
|
||||
"\n\027VIP_TAKE_REWARD_REQUEST\020\310^\022\035\n\030VIP_TAKE" +
|
||||
"_REWARD_RESPONSE\020\311^\022\033\n\026VIEW_HERO_INFO_RE" +
|
||||
"QUEST\020\312^\022\034\n\027VIEW_HERO_INFO_RESPONSE\020\313^\022\033" +
|
||||
"\n\026VIP_TAKE_DAILY_REQUEST\020\314^\022\034\n\027VIP_TAKE_" +
|
||||
"DAILY_RESPONSE\020\315^\022 \n\033WORKSHOP_FOUNDATION" +
|
||||
"_REQUEST\020\250_\022!\n\034WORKSHOP_FOUNDATION_RESPO" +
|
||||
"NSE\020\251_\022\"\n\035WORKSHOP_EQUIP_CREATE_REQUEST\020" +
|
||||
"\252_\022#\n\036WORKSHOP_EQUIP_CREATE_RESPONSE\020\253_\022" +
|
||||
"\035\n\030WORKSHOP_REBUILD_REQUEST\020\254_\022\036\n\031WORKSH" +
|
||||
"OP_REBUILD_RESPONSE\020\255_\022%\n WORKSHOP_REBUI",
|
||||
"LD_CONFIRM_REQUEST\020\256_\022%\n WORKSHOP_REBUIL" +
|
||||
"D_CONFIRM_RESONSE\020\257_\022\035\n\030WORKSHOP_LEVELUP" +
|
||||
"_REQUEST\020\260_\022\036\n\031WORKSHOP_LEVELUP_RESPONSE" +
|
||||
"\020\261_\022&\n!WORKSHOP_TECHNOLOGY_LEVEL_REQUEST" +
|
||||
"\020\262_\022!\n\034WORKSHOP_TECHNOLOGY_RESPONSE\020\263_\022&" +
|
||||
"\n!WORKSHOP_TECHNOLOGY_RESET_REQUEST\020\264_\022\'" +
|
||||
"\n\"WORKSHOP_TECHNOLOGY_RESET_RESPONSE\020\265_\022" +
|
||||
"\'\n!EXPEDITION_GET_EXPEDITION_REQUEST\020\242\234\001" +
|
||||
"\022\'\n!EXPEDITION_GET_EXPEDITION_RESONSE\020\243\234" +
|
||||
"\001\022\'\n!EXPEDITION_TAKE_BOXREWARD_REQUEST\020\244",
|
||||
"\234\001\022\'\n!EXPEDITION_TAKE_BOXREWARD_RESONSE\020" +
|
||||
"\245\234\001\022$\n\036EXPEDITION_RELIVE_HERO_REQUEST\020\246\234" +
|
||||
"\001\022$\n\036EXPEDITION_RELIVE_HERO_RESONSE\020\247\234\001\022" +
|
||||
"%\n\037EXPEDITION_START_BATTLE_REQUEST\020\250\234\001\022%" +
|
||||
"\n\037EXPEDITION_START_BATTLE_RESONSE\020\251\234\001\022#\n" +
|
||||
"\035EXPEDITION_END_BATTLE_REQUEST\020\252\234\001\022#\n\035EX" +
|
||||
"PEDITION_END_BATTLE_RESONSE\020\253\234\001\022(\n\"EXPED" +
|
||||
"ITION_TAKE_HOLY_EQUIP_REQUEST\020\254\234\001\022(\n\"EXP" +
|
||||
"EDITION_TAKE_HOLY_EQUIP_RESONSE\020\255\234\001\022%\n\037E" +
|
||||
"XPEDITION_RECOVER_HERO_REQUEST\020\256\234\001\022%\n\037EX",
|
||||
"PEDITION_RECOVER_HERO_RESONSE\020\257\234\001\022$\n\036EXP" +
|
||||
"EDITION_HOLY_BAG_INDICATION\020\260\234\001\022\"\n\034EXPED" +
|
||||
"ITION_NOINFO_INDICATION\020\261\234\001\022-\n\'EXPEDITIO" +
|
||||
"N_TAKE_TREASURE_REWARD_REQUEST\020\262\234\001\022.\n(EX" +
|
||||
"PEDITION_TAKE_TREASURE_REWARD_RESPONSE\020\263" +
|
||||
"\234\001\022*\n$EXPEDITION_TREASURE_STATE_INDICATI" +
|
||||
"ON\020\264\234\001\022\"\n\034MONTHCARD_TAKE_DAILY_REQUEST\020\205" +
|
||||
"\235\001\022#\n\035MONTHCARD_TAKE_DAILY_RESPONSE\020\206\235\001\022" +
|
||||
"\032\n\024MONTHCARD_INDICATION\020\207\235\001\022\033\n\025EQUIP_COM" +
|
||||
"PLEX_REQUEST\020\217\235\001\022\034\n\026EQUIP_COMPLEX_RESPON",
|
||||
"SE\020\220\235\001\022\027\n\021FamilyFeteRequest\020\261\352\001\022\030\n\022Famil" +
|
||||
"yFeteResponse\020\262\352\001\022 \n\032FamilyGetFeteReward" +
|
||||
"Request\020\263\352\001\022!\n\033FamilyGetFeteRewardRespon" +
|
||||
"se\020\264\352\001\022\'\n!FamilyFeteRewardProcessIndicat" +
|
||||
"ion\020\265\352\001\022\036\n\030ComplexJewelEquipRequest\020\335\354\001\022" +
|
||||
"\037\n\031ComplexJewelEquipResponse\020\336\354\001\022\032\n\024Guil" +
|
||||
"dSendHelpRequest\020\305\301\022\022\033\n\025GuildSendHelpRes" +
|
||||
"ponse\020\306\301\022\022 \n\032GuildTakeHelpRewardRequest\020" +
|
||||
"\307\301\022\022 \n\032GuildTakeHelpRewardRequese\020\310\301\022\022!\n" +
|
||||
"\033GuildSendHelpMessageRequest\020\311\301\022\022\"\n\034Guil",
|
||||
"dSendHelpMessageResponse\020\312\301\022\022\035\n\027GuildTak" +
|
||||
"eHelpBoxRequest\020\313\301\022\022\036\n\030GuildTakeHelpBoxR" +
|
||||
"esponse\020\314\301\022\022\037\n\031GuildHelpHelpOtherRequest" +
|
||||
"\020\315\301\022\022 \n\032GuildHelpHelpOtherResponse\020\316\301\022\022\035" +
|
||||
"\n\027GuildHelpInfoIndication\020\317\301\022\022\034\n\026GuildHe" +
|
||||
"lpGetAllRequest\020\320\301\022\022\035\n\027GuildHelpGetAllRe" +
|
||||
"sponse\020\321\301\022\022\034\n\026GuildGetHelpLogRequest\020\322\301\022" +
|
||||
"\022\035\n\027GuildGetHelpLogResponse\020\323\301\022\022\034\n\026Guild" +
|
||||
"HelpLogIndication\020\324\301\022B\002H\001"
|
||||
};
|
||||
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
||||
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,44 @@
|
|||
package com.ljsd.jieling.config.clazzStaticCfg;
|
||||
|
||||
import config.SWorldBossTreasureConfig;
|
||||
import manager.AbstractClassStaticConfig;
|
||||
import manager.STableManager;
|
||||
import manager.Table;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class WorldBossTreasureStaticConfig extends AbstractClassStaticConfig {
|
||||
@Override
|
||||
public void registConfigs(Set<String> registConfigs) {
|
||||
registConfigs.add(SWorldBossTreasureConfig.class.getAnnotation(Table.class).name());
|
||||
}
|
||||
|
||||
private Map<Integer,Set<SWorldBossTreasureConfig>> idsByPeriods ; //每期对应任务ids
|
||||
private Map<Integer,SWorldBossTreasureConfig> sWorldBossTreasureConfigByIdMap ;
|
||||
|
||||
|
||||
@Override
|
||||
public void figureConfigs() {
|
||||
/* Map<Integer, SWorldBossTreasureConfig> config = STableManager.getConfig(SWorldBossTreasureConfig.class);
|
||||
Map<Integer,Set<SWorldBossTreasureConfig>> idsByPeriodsTmp = new HashMap<>();
|
||||
config.forEach((id,item)->{
|
||||
int[] activityIds = item.getActivityId();
|
||||
Set<SWorldBossTreasureConfig> ids = idsByPeriodsTmp.putIfAbsent(activityIds[0], new HashSet<>());
|
||||
for(int i=1;i<activityIds.length;i++){
|
||||
idsByPeriodsTmp.putIfAbsent(activityIds[i],ids);
|
||||
}
|
||||
ids.add(item);
|
||||
});
|
||||
sWorldBossTreasureConfigByIdMap = config;
|
||||
idsByPeriods = idsByPeriodsTmp;*/
|
||||
|
||||
}
|
||||
|
||||
public Map<Integer, Set<SWorldBossTreasureConfig>> getIdsByPeriods() {
|
||||
return idsByPeriods;
|
||||
}
|
||||
|
||||
public Map<Integer, SWorldBossTreasureConfig> getsWorldBossTreasureConfigByIdMap() {
|
||||
return sWorldBossTreasureConfigByIdMap;
|
||||
}
|
||||
}
|
||||
|
|
@ -26,6 +26,7 @@ public interface VipPrivilegeType {
|
|||
int TOWER_RESRT_NUM= 17; //每日试炼重置次数
|
||||
int TIME_RANDOM_FREE = 32;//东海寻仙每日赠送招募次数
|
||||
int FAST_BUY_COUNT = 33;//极速探索购买次数
|
||||
int COMMON_RANDOM_FREE = 38;//每日普通抽免费次数
|
||||
|
||||
//功能项解锁
|
||||
int UNLOCK_TWO_FIGHT = 501;//解锁2倍速战斗
|
||||
|
|
|
|||
|
|
@ -137,6 +137,8 @@ public interface BIReason {
|
|||
int GUILDHELP_REWARD = 75;//公会援助宝盒
|
||||
int GUILDHELP_GIVE = 76;//公会援助给与
|
||||
|
||||
int EXCEPTION_TREASURE_REWARD = 77;//天空密境积分奖励
|
||||
|
||||
int ADVENTURE_UPLEVEL_CONSUME = 1000;//秘境升级
|
||||
int SECRETBOX_CONSUME = 1001;//秘盒抽卡
|
||||
int DECOMPOSE_ITEM_CONSUME = 1002;//分解道具消耗
|
||||
|
|
|
|||
|
|
@ -0,0 +1,116 @@
|
|||
package com.ljsd.jieling.handler.Expedition;
|
||||
|
||||
import com.ljsd.jieling.config.clazzStaticCfg.WorldBossTreasureStaticConfig;
|
||||
import com.ljsd.jieling.exception.ErrorCode;
|
||||
import com.ljsd.jieling.exception.ErrorCodeException;
|
||||
import com.ljsd.jieling.globals.BIReason;
|
||||
import com.ljsd.jieling.handler.BaseHandler;
|
||||
import com.ljsd.jieling.logic.activity.ActivityType;
|
||||
import com.ljsd.jieling.logic.dao.UserManager;
|
||||
import com.ljsd.jieling.logic.dao.WorldTreasureReward;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import com.ljsd.jieling.logic.expedition.ExpeditionLogic;
|
||||
import com.ljsd.jieling.network.session.ISession;
|
||||
import com.ljsd.jieling.protocols.CommonProto;
|
||||
import com.ljsd.jieling.protocols.Expedition;
|
||||
import com.ljsd.jieling.protocols.MessageTypeProto;
|
||||
import com.ljsd.jieling.util.ItemUtil;
|
||||
import com.ljsd.jieling.util.MessageUtil;
|
||||
import config.SCHero;
|
||||
import config.SExpeditionSetting;
|
||||
import config.STreasureSunlongConfig;
|
||||
import config.SWorldBossTreasureConfig;
|
||||
import manager.STableManager;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class TakeTreasureRewardHandler extends BaseHandler<Expedition.ExpeditionTakeTreasureRequest> {
|
||||
|
||||
@Override
|
||||
public MessageTypeProto.MessageType getMessageCode() {
|
||||
return MessageTypeProto.MessageType.EXPEDITION_TAKE_TREASURE_REWARD_REQUEST;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void processWithProto(ISession iSession, Expedition.ExpeditionTakeTreasureRequest proto) throws Exception {
|
||||
User user = UserManager.getUser(iSession.getUid());
|
||||
int id = proto.getId();
|
||||
WorldBossTreasureStaticConfig worldBossTreasureStaticConfig = STableManager.getFigureConfig(WorldBossTreasureStaticConfig.class);
|
||||
Map<Integer, Set<SWorldBossTreasureConfig>> idsByPeriods = worldBossTreasureStaticConfig.getIdsByPeriods();
|
||||
WorldTreasureReward worldTreasureReward = user.getExpeditionManager().getWorldTreasureReward();
|
||||
int round = worldTreasureReward.getRound();
|
||||
int changeState = getChangeState(user, round);
|
||||
List<int[][]> drops = new ArrayList<>();
|
||||
if(id!=-1){
|
||||
SWorldBossTreasureConfig sWorldBossTreasureConfig = worldBossTreasureStaticConfig.getsWorldBossTreasureConfigByIdMap().get(id);
|
||||
if(sWorldBossTreasureConfig == null){
|
||||
throw new ErrorCodeException(ErrorCode.SYS_ERROR_CODE);
|
||||
}
|
||||
|
||||
boolean match = Arrays.stream(sWorldBossTreasureConfig.getActivityId()).anyMatch((tmp) -> tmp == round);
|
||||
if(!match){
|
||||
throw new ErrorCodeException("已过期");
|
||||
}
|
||||
Integer curState = worldTreasureReward.getRewardStatusMap().getOrDefault(id, 0);
|
||||
if(changeState == curState){
|
||||
throw new ErrorCodeException("已领取");
|
||||
}
|
||||
dropByState(sWorldBossTreasureConfig,drops,curState,changeState);
|
||||
worldTreasureReward.updateMissionStatus(id,changeState);
|
||||
Map<Integer,Integer> stateUpdateMap = new HashMap<>();
|
||||
stateUpdateMap.put(id,changeState);
|
||||
ExpeditionLogic.sendTreasureRewardUpdate(iSession,worldTreasureReward.getScore(),stateUpdateMap);
|
||||
}else{
|
||||
Map<Integer,Integer> stateUpdateMap = new HashMap<>();
|
||||
Set<SWorldBossTreasureConfig> sWorldBossTreasureConfigs = idsByPeriods.get(round);
|
||||
for(SWorldBossTreasureConfig sWorldBossTreasureConfig:sWorldBossTreasureConfigs){
|
||||
Integer curState = worldTreasureReward.getRewardStatusMap().getOrDefault(sWorldBossTreasureConfig.getId(), 0);
|
||||
if(changeState == curState){
|
||||
continue;
|
||||
}
|
||||
dropByState(sWorldBossTreasureConfig,drops,curState,changeState);
|
||||
worldTreasureReward.getRewardStatusMap().put(sWorldBossTreasureConfig.getId(),changeState);
|
||||
stateUpdateMap.put(sWorldBossTreasureConfig.getId(),changeState);
|
||||
}
|
||||
if(drops.isEmpty()){
|
||||
throw new ErrorCodeException("无奖励可领取");
|
||||
}
|
||||
user.getExpeditionManager().onlyUpdateTreasureReward();
|
||||
ExpeditionLogic.sendTreasureRewardUpdate(iSession,worldTreasureReward.getScore(),stateUpdateMap);
|
||||
}
|
||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, drops, BIReason.EXCEPTION_TREASURE_REWARD);
|
||||
Expedition.ExpeditionTakeTreasureResponse build = Expedition.ExpeditionTakeTreasureResponse.newBuilder().setDrop(drop).build();
|
||||
MessageUtil.sendMessage(iSession,1, MessageTypeProto.MessageType.EXPEDITION_TAKE_TREASURE_REWARD_RESPONSE_VALUE,build,true);
|
||||
}
|
||||
|
||||
private int getChangeState(User user,int round){
|
||||
int changeState = ActivityType.HAD_TAKED;
|
||||
SExpeditionSetting sExpeditionSetting = STableManager.getConfig(SExpeditionSetting.class).get(1);
|
||||
int[][] treasureTime = sExpeditionSetting.getTreasureTime();
|
||||
int targetGoodsId = -1;
|
||||
for(int[] item : treasureTime){
|
||||
if(item[0] == round){
|
||||
targetGoodsId = item[2];
|
||||
}
|
||||
}
|
||||
Integer buyTimes = user.getPlayerInfoManager().getRechargeInfo().getBuyGoodsTimes().getOrDefault(targetGoodsId, 0);
|
||||
if(buyTimes != 0){
|
||||
changeState = ActivityType.FINISH_TAKED;
|
||||
}
|
||||
return changeState;
|
||||
}
|
||||
|
||||
private void dropByState( SWorldBossTreasureConfig sWorldBossTreasureConfig,List<int[][]> dropList, int curState, int targetState){
|
||||
if(curState==ActivityType.WILL_TAKE){
|
||||
dropList.add(sWorldBossTreasureConfig.getReward());
|
||||
if(targetState == ActivityType.FINISH_TAKED){
|
||||
dropList.add(sWorldBossTreasureConfig.getTreasureReward());
|
||||
}
|
||||
}else if(curState==ActivityType.HAD_TAKED){
|
||||
if(targetState == ActivityType.FINISH_TAKED){
|
||||
dropList.add(sWorldBossTreasureConfig.getTreasureReward());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
package com.ljsd.jieling.handler;
|
||||
|
||||
import com.ljsd.jieling.logic.dao.UserManager;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import com.ljsd.jieling.netty.cocdex.PacketNetData;
|
||||
import com.ljsd.jieling.network.session.ISession;
|
||||
import com.ljsd.jieling.protocols.MessageTypeProto;
|
||||
|
||||
public class TakeRandomHeroBoxHandler extends BaseHandler{
|
||||
@Override
|
||||
public MessageTypeProto.MessageType getMessageCode() {
|
||||
return MessageTypeProto.MessageType.TAKE_RANDOM_HERO_BOX_REQUEST;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process(ISession iSession, PacketNetData netData) throws Exception {
|
||||
User user = UserManager.getUser(iSession.getUid());
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -156,7 +156,6 @@ public class Cmd_changename extends GmRoleAbstract {
|
|||
ActivityLogic.getInstance().updateActivityMissionProgress(user, ActivityType.RechargeTotal,rechargeInfo.getSaveAmt());
|
||||
//限时累计充值
|
||||
ActivityLogic.getInstance().updateActivityMissionProgress(user, ActivityType.RECHARGE_NUM,hotRechargeMoney);
|
||||
rechargeInfo.setHadBuyFound(rechargeInfoFile.getHadBuyFound());
|
||||
|
||||
Map<Integer, Integer> goodsDurationMap = user.getPlayerInfoManager().getRechargeInfo().getGoodsDurationMap();
|
||||
Integer nowTime =(int)(System.currentTimeMillis()/1000);
|
||||
|
|
|
|||
|
|
@ -236,9 +236,6 @@ public class ActivityLogic implements IEventHandler{
|
|||
}
|
||||
|
||||
activityMission.setOpenType(1);
|
||||
if(activityId == 6){
|
||||
activityMission.setOpenType(0);
|
||||
}
|
||||
activityMission.setActivityState(ActivityType.OPEN_STATE);
|
||||
activityMission.setV(0);
|
||||
}
|
||||
|
|
@ -533,6 +530,8 @@ public class ActivityLogic implements IEventHandler{
|
|||
if(user.getPlayerInfoManager().getLevel()<openRulleValue){
|
||||
state = ActivityType.UNOPEN_STATE;
|
||||
}
|
||||
}else if(openRuleType == 3){
|
||||
state = ActivityType.UNOPEN_STATE;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import com.ljsd.jieling.logic.activity.event.IEvent;
|
|||
import com.ljsd.jieling.logic.activity.event.Poster;
|
||||
import com.ljsd.jieling.logic.dao.UserManager;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import com.ljsd.jieling.logic.expedition.ExpeditionLogic;
|
||||
import com.ljsd.jieling.util.ItemUtil;
|
||||
import com.ljsd.jieling.util.ToolsUtil;
|
||||
import config.SGlobalActivity;
|
||||
|
|
@ -37,9 +38,11 @@ public class FightMainEventHandler implements IEventHandler{
|
|||
|
||||
int uid = fightMainEvent.getUid();
|
||||
User user = UserManager.getUser(uid);
|
||||
if(fightId == 1151){
|
||||
/* if(fightId == 1151){
|
||||
user.getPlayerInfoManager().updateGuidePoint(1,-1);
|
||||
}
|
||||
}*/
|
||||
|
||||
ExpeditionLogic.openTreasure(user,2,fightId);
|
||||
//检测更新vip是否有新开
|
||||
user.getPlayerInfoManager().updateVipInfo(GlobalsDef.MAIN_LEVEL_UNLOCK_PRIVILEGE,10_000_000 * (fightId % 10) + fightId);
|
||||
List<SGlobalActivity> sGlobalActivityList = SGlobalActivity.sGlobalActivityMapByOpenRules.getOrDefault(1, new ArrayList<>(0));
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import com.ljsd.jieling.logic.dao.UserManager;
|
|||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import com.ljsd.jieling.network.session.ISession;
|
||||
import config.SActivityRewardConfig;
|
||||
import config.SGlobalActivity;
|
||||
import config.SMainLevelConfig;
|
||||
|
||||
class GrowthFundActivity extends AbstractActivity {
|
||||
|
|
@ -18,7 +19,9 @@ class GrowthFundActivity extends AbstractActivity {
|
|||
|
||||
int[][] values = sActivityRewardConfig.getValues();
|
||||
User user = UserManager.getUser(session.getUid());
|
||||
if(user.getPlayerInfoManager().getRechargeInfo().getHadBuyFound() == 0){
|
||||
SGlobalActivity sGlobalActivity = SGlobalActivity.getsGlobalActivityMap().get(id);
|
||||
Integer buyTimes = user.getPlayerInfoManager().getRechargeInfo().getBuyGoodsTimes().getOrDefault(sGlobalActivity.getCanBuyRechargeId(), 0);
|
||||
if(buyTimes == 0){
|
||||
return false;
|
||||
}
|
||||
int type = values[0][0];
|
||||
|
|
@ -33,4 +36,10 @@ class GrowthFundActivity extends AbstractActivity {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onActivityEndOnMySelf(User user) throws Exception {
|
||||
SGlobalActivity sGlobalActivity = SGlobalActivity.getsGlobalActivityMap().get(id);
|
||||
user.getPlayerInfoManager().getRechargeInfo().updateBuyGoodsTimes(sGlobalActivity.getCanBuyRechargeId(),0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ package com.ljsd.jieling.logic.activity;
|
|||
import com.ljsd.jieling.config.clazzStaticCfg.CommonStaticConfig;
|
||||
import com.ljsd.jieling.core.GlobalsDef;
|
||||
import com.ljsd.jieling.core.VipPrivilegeType;
|
||||
import com.ljsd.jieling.exception.ErrorCode;
|
||||
import com.ljsd.jieling.exception.ErrorCodeException;
|
||||
import com.ljsd.jieling.globals.BIReason;
|
||||
import com.ljsd.jieling.jbean.ActivityMission;
|
||||
import com.ljsd.jieling.logic.activity.event.ActivityStateChangeEvent;
|
||||
|
|
@ -11,13 +13,11 @@ import com.ljsd.jieling.logic.activity.event.Poster;
|
|||
import com.ljsd.jieling.logic.activity.event.UserLevelEvent;
|
||||
import com.ljsd.jieling.logic.dao.UserManager;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import com.ljsd.jieling.logic.expedition.ExpeditionLogic;
|
||||
import com.ljsd.jieling.logic.fight.CombatLogic;
|
||||
import com.ljsd.jieling.util.ItemUtil;
|
||||
import com.ljsd.jieling.util.ToolsUtil;
|
||||
import config.SGlobalActivity;
|
||||
import config.SGlobalSystemConfig;
|
||||
import config.SMainLevelConfig;
|
||||
import config.SPrivilegeTypeConfig;
|
||||
import config.*;
|
||||
import manager.STableManager;
|
||||
import util.TimeUtils;
|
||||
|
||||
|
|
@ -51,6 +51,8 @@ public class UserLevelEventHandler implements IEventHandler,IPrivilegeChange{
|
|||
}
|
||||
|
||||
}
|
||||
ExpeditionLogic.openTreasure(user,2,level);
|
||||
|
||||
List<SGlobalActivity> sGlobalActivities = SGlobalActivity.sGlobalActivityMapByOpenRules.getOrDefault(2,new ArrayList<>(0));
|
||||
for(SGlobalActivity sGlobalActivity : sGlobalActivities){
|
||||
int[] openRules = sGlobalActivity.getOpenRules();
|
||||
|
|
|
|||
|
|
@ -19,9 +19,11 @@ public class ExpeditionManager extends MongoBase {
|
|||
private int lay = 1;//当前层数
|
||||
private int forceSnap;//战力快照
|
||||
private Set<ExpeditionItem> propertyItems = new HashSet<>();
|
||||
private WorldTreasureReward worldTreasureReward = new WorldTreasureReward() ;
|
||||
@Transient
|
||||
private Map<Integer, SExpeditionHolyConfig> effectItems = new HashMap<>();//圣物叠加 不入库
|
||||
|
||||
|
||||
public void putExpeditionNodeInfos(Integer key, ExpeditionNodeInfo nodeInfo) {
|
||||
this.expeditionNodeInfos.put(nodeInfo.getSortId(), nodeInfo);
|
||||
nodeInfo.init(this.getRootId(), getMongoKey() + ".expeditionNodeInfos." + nodeInfo.getSortId());
|
||||
|
|
@ -101,4 +103,18 @@ public class ExpeditionManager extends MongoBase {
|
|||
return effectItems;
|
||||
}
|
||||
|
||||
public void resetTreasureReward(int round){
|
||||
worldTreasureReward.reset(round);
|
||||
onlyUpdateTreasureReward();
|
||||
}
|
||||
|
||||
public WorldTreasureReward getWorldTreasureReward() {
|
||||
return worldTreasureReward;
|
||||
}
|
||||
|
||||
public void onlyUpdateTreasureReward(){
|
||||
updateString("worldTreasureReward", worldTreasureReward);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ public class RechargeInfo extends MongoBase{
|
|||
private int smonthSaveAmt ; //豪华月卡累计总额
|
||||
private int isFirst;
|
||||
private long createTime;
|
||||
private int hadBuyFound;
|
||||
private int isDayFirst;
|
||||
|
||||
|
||||
|
|
@ -131,6 +130,11 @@ public class RechargeInfo extends MongoBase{
|
|||
this.buyGoodsTimes = buyGoodsTimes;
|
||||
}
|
||||
|
||||
public void updateBuyGoodsTimes(int goodsId,int times) {
|
||||
updateString("buyGoodsTimes."+goodsId,times);
|
||||
this.buyGoodsTimes.put(goodsId,times);
|
||||
}
|
||||
|
||||
public void updateGoodsTypeDuration(int goodsId,int durTime) {
|
||||
updateString("goodseDurationMap." + goodsId,durTime);
|
||||
this.goodseDurationMap.put(goodsId,durTime);
|
||||
|
|
@ -161,15 +165,6 @@ public class RechargeInfo extends MongoBase{
|
|||
return isDayFirst;
|
||||
}
|
||||
|
||||
public int getHadBuyFound() {
|
||||
return hadBuyFound;
|
||||
}
|
||||
|
||||
public void setHadBuyFound(int hadBuyFound) {
|
||||
updateString("hadBuyFound",hadBuyFound);
|
||||
this.hadBuyFound = hadBuyFound;
|
||||
}
|
||||
|
||||
public Map<Integer, Integer> getGoodsDurationMap() {
|
||||
return goodseDurationMap;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,55 @@
|
|||
package com.ljsd.jieling.logic.dao;
|
||||
|
||||
import com.ljsd.common.mogodb.MongoBase;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import util.TimeUtils;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class WorldTreasureReward extends MongoBase {
|
||||
|
||||
private int createTime; //取当天零点 根据其可以推算出期数。
|
||||
private int round;
|
||||
private int score;
|
||||
private Map<Integer,Integer> rewardStatusMap = new HashMap<>(); //领取状态 1:表示领取基础奖励 2:表示领取额外奖励。
|
||||
|
||||
public WorldTreasureReward(){
|
||||
this.setRootCollection(User._COLLECTION_NAME);
|
||||
}
|
||||
|
||||
public void reset(int round){
|
||||
if(createTime == 0){
|
||||
createTime =(int)(TimeUtils.getAppointTime(0));
|
||||
}
|
||||
score = 0;
|
||||
rewardStatusMap = new HashMap<>();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(int id, String mongoKey) {
|
||||
super.init(id, mongoKey);
|
||||
}
|
||||
|
||||
public int getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public int getRound() {
|
||||
return round;
|
||||
}
|
||||
|
||||
public int getScore() {
|
||||
return score;
|
||||
}
|
||||
|
||||
public Map<Integer, Integer> getRewardStatusMap() {
|
||||
return rewardStatusMap;
|
||||
}
|
||||
|
||||
public void updateMissionStatus(int id,int value){
|
||||
rewardStatusMap.put(id,value);
|
||||
updateString("rewardStatusMap."+id, value);
|
||||
}
|
||||
}
|
||||
|
|
@ -3,19 +3,25 @@ package com.ljsd.jieling.logic.expedition;
|
|||
import com.ljsd.jieling.config.clazzStaticCfg.CommonStaticConfig;
|
||||
import com.ljsd.jieling.config.clazzStaticCfg.PlayStaticConfig;
|
||||
import com.ljsd.jieling.config.clazzStaticCfg.SArenaRobotStaticConfig;
|
||||
import com.ljsd.jieling.config.clazzStaticCfg.WorldBossTreasureStaticConfig;
|
||||
import com.ljsd.jieling.core.GlobalsDef;
|
||||
import com.ljsd.jieling.db.redis.RedisKey;
|
||||
import com.ljsd.jieling.db.redis.RedisUtil;
|
||||
import com.ljsd.jieling.exception.ErrorCode;
|
||||
import com.ljsd.jieling.exception.ErrorCodeException;
|
||||
import com.ljsd.jieling.globals.Global;
|
||||
import com.ljsd.jieling.logic.OnlineUserManager;
|
||||
import com.ljsd.jieling.logic.blood.BloodLogic;
|
||||
import com.ljsd.jieling.logic.dao.*;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import com.ljsd.jieling.logic.hero.HeroLogic;
|
||||
import com.ljsd.jieling.logic.mail.MailLogic;
|
||||
import com.ljsd.jieling.network.session.ISession;
|
||||
import com.ljsd.jieling.protocols.CommonProto;
|
||||
import com.ljsd.jieling.protocols.Expedition;
|
||||
import com.ljsd.jieling.protocols.MessageTypeProto;
|
||||
import com.ljsd.jieling.util.ItemUtil;
|
||||
import com.ljsd.jieling.util.MessageUtil;
|
||||
import config.*;
|
||||
import manager.STableManager;
|
||||
import org.slf4j.Logger;
|
||||
|
|
@ -69,6 +75,7 @@ public class ExpeditionLogic {
|
|||
manager.clearRewardBox();
|
||||
manager.clearPropertyItems();
|
||||
manager.getHeroHPWithChange().clear();
|
||||
checkAndResetTreasure(user);
|
||||
// reSetNode(user);
|
||||
}
|
||||
|
||||
|
|
@ -546,4 +553,80 @@ public class ExpeditionLogic {
|
|||
return new HashSet<>(effectItems.values());
|
||||
}
|
||||
|
||||
|
||||
public static void openTreasure(User user,int type,int parm){
|
||||
SExpeditionSetting sExpeditionSetting = STableManager.getConfig(SExpeditionSetting.class).get(1);
|
||||
int openRule = sExpeditionSetting.getOpenRules()[0];
|
||||
if(openRule == type && sExpeditionSetting.getOpenRules()[1] == parm){
|
||||
user.getExpeditionManager().resetTreasureReward(1);
|
||||
sendAllTreasureInfo(user);
|
||||
}
|
||||
}
|
||||
|
||||
public static void checkAndResetTreasure(User user){
|
||||
WorldTreasureReward worldTreasureReward = user.getExpeditionManager().getWorldTreasureReward();
|
||||
int createTime =worldTreasureReward.getCreateTime();
|
||||
if(createTime==0){
|
||||
return;
|
||||
}
|
||||
SExpeditionSetting sExpeditionSetting = STableManager.getConfig(SExpeditionSetting.class).get(1);
|
||||
int[][] treasureTime = sExpeditionSetting.getTreasureTime();
|
||||
int differentDays = TimeUtils.differentDays(createTime * 1000, TimeUtils.now());
|
||||
int sumPeriod = 0;
|
||||
int newRound = 0;
|
||||
int round = worldTreasureReward.getRound();
|
||||
boolean needReset = false;
|
||||
for(int[] item : treasureTime){
|
||||
sumPeriod+=item[1];
|
||||
if(round>item[0]){
|
||||
continue;
|
||||
}
|
||||
differentDays-=item[1];
|
||||
if(differentDays<0){
|
||||
newRound = item[0];
|
||||
needReset =true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(!needReset){
|
||||
differentDays=differentDays % sumPeriod;
|
||||
for(int[] item : treasureTime){
|
||||
differentDays-=item[1];
|
||||
if(differentDays<0){
|
||||
newRound = item[0];
|
||||
break;
|
||||
}
|
||||
}
|
||||
needReset=true;
|
||||
}
|
||||
//重置
|
||||
if(needReset){
|
||||
user.getExpeditionManager().resetTreasureReward(newRound);
|
||||
sendAllTreasureInfo(user);
|
||||
}
|
||||
}
|
||||
|
||||
private static void sendAllTreasureInfo(User user){
|
||||
ISession session = OnlineUserManager.getSessionByUid(user.getId());
|
||||
if(session!=null){
|
||||
WorldTreasureReward worldTreasureReward = user.getExpeditionManager().getWorldTreasureReward();
|
||||
Map<Integer, Integer> rewardStatusMap = worldTreasureReward.getRewardStatusMap();
|
||||
WorldBossTreasureStaticConfig worldBossTreasureStaticConfig = STableManager.getFigureConfig(WorldBossTreasureStaticConfig.class);
|
||||
Map<Integer, Set<SWorldBossTreasureConfig>> idsByPeriods = worldBossTreasureStaticConfig.getIdsByPeriods();
|
||||
Map<Integer,Integer> changeStateMap = new HashMap<>(rewardStatusMap);
|
||||
idsByPeriods.get(worldTreasureReward.getScore()).forEach(item->changeStateMap.putIfAbsent(item.getId(),0));
|
||||
sendTreasureRewardUpdate(session,0,changeStateMap);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void sendTreasureRewardUpdate(ISession iSession,int score,Map<Integer,Integer> changeStatusMap ){
|
||||
Expedition.TreasureStateIndicaion.Builder builder = Expedition.TreasureStateIndicaion.newBuilder().setScore(score);
|
||||
changeStatusMap.forEach((id,status)->{
|
||||
builder.addTreasureRewardState(Expedition.TreasureRewardState.newBuilder().setId(id).setState(status).build());
|
||||
});
|
||||
MessageUtil.sendMessage(iSession,1, MessageTypeProto.MessageType.EXPEDITION_TREASURE_STATE_INDICATION_VALUE,builder.build(),true);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1305,7 +1305,7 @@ public class GuildFightLogic {
|
|||
setBattleStartTime(battleStartTime).setGrabStartTime(grapStartTime).
|
||||
build();
|
||||
sendAllProgressUpdate();
|
||||
System.out.println(JsonFormat.printToString(carDelayProgressIndication));
|
||||
System.out.println(JsonFormat.printToString(carDelayProgressIndication) + "--");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -182,6 +182,11 @@ public class HeroLogic{
|
|||
int uid = session.getUid();
|
||||
User user = UserManager.getUser(uid);
|
||||
SLotterySetting sLotterySetting = STableManager.getConfig(SLotterySetting.class).get(type);
|
||||
int perCount = sLotterySetting.getPerCount();
|
||||
int maxTimes = sLotterySetting.getMaxTimes();
|
||||
if(maxTimes!=0 && !PlayerLogic.getInstance().checkAndUpdate(user,maxTimes, perCount)){
|
||||
throw new ErrorCodeException("已抽取今日最大次数");
|
||||
}
|
||||
HeroManager heroManager = user.getHeroManager();
|
||||
if(type==11&&heroManager.getFirstTenth()==0){
|
||||
heroManager.updateFirstTenth();
|
||||
|
|
@ -199,7 +204,7 @@ public class HeroLogic{
|
|||
}
|
||||
//筛选卡池
|
||||
int pooId =0;
|
||||
int perCount = sLotterySetting.getPerCount();
|
||||
|
||||
if(heroManager!=null&& heroManager.getHeroMap()!=null){
|
||||
if(heroManager.getHeroMap().size() + perCount > STableManager.getFigureConfig(CommonStaticConfig.class).getGameSetting().getHeroNumlimit()){
|
||||
throw new ErrorCodeException(ErrorCode.HERO_MAX);
|
||||
|
|
@ -217,17 +222,7 @@ public class HeroLogic{
|
|||
|
||||
//检验消耗
|
||||
boolean allowFree = false;
|
||||
int privilege = 0;
|
||||
switch (sLotterySetting.getLotteryType()){
|
||||
case 1:
|
||||
privilege = VipPrivilegeType.FREE_HERO_RANDOM;
|
||||
break;
|
||||
case 3:
|
||||
privilege = VipPrivilegeType.TIME_RANDOM_FREE;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
int privilege = sLotterySetting.getFreeTimes();
|
||||
if(privilege!=0){
|
||||
allowFree = PlayerLogic.getInstance().checkAndUpdate(user,privilege, perCount);
|
||||
}
|
||||
|
|
@ -299,19 +294,7 @@ public class HeroLogic{
|
|||
//1群英招募
|
||||
HeroInfoProto.HeroRandResponse.Builder builder = HeroInfoProto.HeroRandResponse.newBuilder();
|
||||
if(sLotterySetting.getLotteryType() == 1){
|
||||
int[] lotterySecurityReward = STableManager.getFigureConfig(CommonStaticConfig.class).getGameSetting().getLotterySecurityReward();
|
||||
int alreadyCount=0;
|
||||
for(Integer id : STableManager.getFigureConfig(HeroStaticConfig.class).getRandomHeroIds()){
|
||||
Integer count = totalCountMap.get(id);
|
||||
if( null!=count){
|
||||
alreadyCount+=count;
|
||||
}
|
||||
}
|
||||
if( (alreadyCount + perCount)/lotterySecurityReward[0] > alreadyCount/lotterySecurityReward[0]){
|
||||
builder.setExtraBox(ItemUtil.drop(user, new int[]{lotterySecurityReward[1]},1F,0,BIReason.HERO_RANDOM));
|
||||
}
|
||||
Poster.getPoster().dispatchEvent(new HeroRandomEvent(uid,perCount));
|
||||
|
||||
}
|
||||
user.getUserMissionManager().onGameEvent(user,GameEvent.RANDOM_HERO,sLotterySetting.getLotteryType(),perCount);
|
||||
heroManager.updateRandCount(type,randCount);
|
||||
|
|
|
|||
|
|
@ -91,12 +91,6 @@ public class BuyGoodsLogic {
|
|||
buyCount=buyCount+1;
|
||||
int limit = sRechargeCommodityConfig.getLimit();
|
||||
int type = sRechargeCommodityConfig.getType();
|
||||
if(type==GiftGoodsType.GROTHFOUND && rechargeInfo.getHadBuyFound()==1){
|
||||
LOGGER.error("the uid={},hadBuyFound",uid);
|
||||
resultRes.setResultCode(0);
|
||||
resultRes.setResultMsg("hadBuyFound");
|
||||
return resultRes;
|
||||
}
|
||||
if(limit!=0){
|
||||
if(buyCount>limit){
|
||||
LOGGER.error("the uid={},the goodId={}, is over limit={}",uid,goodsId,buyCount);
|
||||
|
|
@ -159,10 +153,10 @@ public class BuyGoodsLogic {
|
|||
int length = baseReward.length;
|
||||
String rewardStr="";
|
||||
if(buyCount == 1){
|
||||
if(type==GiftGoodsType.GROTHFOUND){
|
||||
/* if(type==GiftGoodsType.GROTHFOUND){
|
||||
rechargeInfo.setHadBuyFound(1);
|
||||
ActivityLogic.getInstance().openActivityReallyOpen(user, ActivityType.GrowthFund);
|
||||
}
|
||||
}*/
|
||||
int[][] firstMultiple = sRechargeCommodityConfig.getFirstMultiple();
|
||||
if(firstMultiple!=null){
|
||||
length+=firstMultiple.length;
|
||||
|
|
@ -409,7 +403,7 @@ public class BuyGoodsLogic {
|
|||
if(buyTimes ==null){
|
||||
buyTimes=0;
|
||||
}
|
||||
if(sRechargeCommodityConfig.getLimitShow() == 0 && limit!=0){
|
||||
if(limit!=0){
|
||||
if(buyTimes>=limit){
|
||||
boolean isNew = rechargeInfo.addNewSendId(goodsId);
|
||||
if(!isNew){
|
||||
|
|
@ -511,7 +505,7 @@ public class BuyGoodsLogic {
|
|||
}
|
||||
CommonProto.GiftGoodsInfo.Builder builder = CommonProto.GiftGoodsInfo.newBuilder();
|
||||
builder.setGoodsId(goodsId).setStartTime((int)(startTime/1000)).setBuyTimes(buyTimes).setEndTime((int)(endTime/1000));
|
||||
dybuytime = rechargeInfo.getDyGoodsCanBuyTimes().getOrDefault(goodsId,0);
|
||||
dybuytime = rechargeInfo.getDyGoodsCanBuyTimes().getOrDefault(goodsId,-1);
|
||||
if(dybuytime!=-1){
|
||||
builder.setDynamicBuyTimes(dybuytime);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,11 @@ public class SExpeditionSetting implements BaseConfig {
|
|||
|
||||
private int fightTime;
|
||||
|
||||
private int[][] treasureTime;
|
||||
private int[] openRules;
|
||||
|
||||
private int treasureTotalTime;
|
||||
|
||||
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
|
|
@ -69,5 +74,13 @@ public class SExpeditionSetting implements BaseConfig {
|
|||
return fightTime;
|
||||
}
|
||||
|
||||
public int[][] getTreasureTime() {
|
||||
return treasureTime;
|
||||
}
|
||||
|
||||
public int[] getOpenRules() {
|
||||
return openRules;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -37,6 +37,10 @@ public class SLotterySetting implements BaseConfig {
|
|||
|
||||
private int activityId;
|
||||
|
||||
private int freeTimes;
|
||||
|
||||
private int maxTimes;
|
||||
|
||||
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
|
|
@ -107,4 +111,12 @@ public class SLotterySetting implements BaseConfig {
|
|||
public int getActivityId() {
|
||||
return activityId;
|
||||
}
|
||||
|
||||
public int getFreeTimes() {
|
||||
return freeTimes;
|
||||
}
|
||||
|
||||
public int getMaxTimes() {
|
||||
return maxTimes;
|
||||
}
|
||||
}
|
||||
|
|
@ -55,6 +55,8 @@ public class SRechargeCommodityConfig implements BaseConfig {
|
|||
|
||||
private int dailyUpdate;
|
||||
|
||||
private int[] passiveSkill;
|
||||
|
||||
|
||||
|
||||
public static Map<Integer, SRechargeCommodityConfig> rechargeCommodityConfigMap;
|
||||
|
|
@ -215,6 +217,10 @@ public class SRechargeCommodityConfig implements BaseConfig {
|
|||
return dailyUpdate;
|
||||
}
|
||||
|
||||
public int[] getPassiveSkill() {
|
||||
return passiveSkill;
|
||||
}
|
||||
|
||||
public static Set<Integer> getRchargeHeroGet() {
|
||||
return rchargeHeroGet;
|
||||
}
|
||||
|
|
@ -223,6 +229,8 @@ public class SRechargeCommodityConfig implements BaseConfig {
|
|||
return recharegeHeroTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static void setRecharegeHeroTime(Map<Integer, Integer> recharegeHeroTime) {
|
||||
SRechargeCommodityConfig.recharegeHeroTime = recharegeHeroTime;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,56 @@
|
|||
package config;
|
||||
|
||||
import manager.STableManager;
|
||||
import manager.Table;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@Table(name ="WorldBossTreasureConfig")
|
||||
public class SWorldBossTreasureConfig implements BaseConfig {
|
||||
|
||||
private int id;
|
||||
|
||||
private int[] activityId;
|
||||
|
||||
private int level;
|
||||
|
||||
private int integral;
|
||||
|
||||
private int[][] reward;
|
||||
|
||||
private int[][] treasureReward;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public int[] getActivityId() {
|
||||
return activityId;
|
||||
}
|
||||
|
||||
public int getLevel() {
|
||||
return level;
|
||||
}
|
||||
|
||||
public int getIntegral() {
|
||||
return integral;
|
||||
}
|
||||
|
||||
public int[][] getReward() {
|
||||
return reward;
|
||||
}
|
||||
|
||||
public int[][] getTreasureReward() {
|
||||
return treasureReward;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -132,7 +132,7 @@ public class STableManager {
|
|||
/**
|
||||
* 获取类的二次处理配置类
|
||||
*/
|
||||
public static <T> T getFigureConfig(Class<T> tClass) {
|
||||
public static <T extends AbstractClassStaticConfig> T getFigureConfig(Class<T> tClass) {
|
||||
if (!classStaticConfigMap.containsKey(tClass.getName())) {
|
||||
if (ClassLoaderHelper.filter(tClass, AbstractClassStaticConfig.class)) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue