Skip to content

Commit

Permalink
Update to client 12.60~
Browse files Browse the repository at this point in the history
Fix npc sale data saving
New flag Ammo
New category Quiver
  • Loading branch information
Arch-Mina committed Dec 18, 2020
1 parent 9851345 commit eed3917
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 56 deletions.
117 changes: 83 additions & 34 deletions Assets Editor/Appearances.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static AppearancesReflection() {
"cm91cBgCIAMoCzImLnRpYmlhLnByb3RvYnVmLmFwcGVhcmFuY2VzLkZyYW1l",
"R3JvdXASOgoFZmxhZ3MYAyABKAsyKy50aWJpYS5wcm90b2J1Zi5hcHBlYXJh",
"bmNlcy5BcHBlYXJhbmNlRmxhZ3MSDAoEbmFtZRgEIAEoCRITCgtkZXNjcmlw",
"dGlvbhgFIAEoCSKyDAoPQXBwZWFyYW5jZUZsYWdzEjwKBGJhbmsYASABKAsy",
"dGlvbhgFIAEoCSLADAoPQXBwZWFyYW5jZUZsYWdzEjwKBGJhbmsYASABKAsy",
"Li50aWJpYS5wcm90b2J1Zi5hcHBlYXJhbmNlcy5BcHBlYXJhbmNlRmxhZ0Jh",
"bmsSDAoEY2xpcBgCIAEoCBIOCgZib3R0b20YAyABKAgSCwoDdG9wGAQgASgI",
"EhEKCWNvbnRhaW5lchgFIAEoCBISCgpjdW11bGF0aXZlGAYgASgIEg4KBnVz",
Expand Down Expand Up @@ -90,38 +90,38 @@ static AppearancesReflection() {
"LmFwcGVhcmFuY2VzLkFwcGVhcmFuY2VGbGFnQ2hhbmdlZFRvRXhwaXJlEg4K",
"BmNvcnBzZRgqIAEoCBIVCg1wbGF5ZXJfY29ycHNlGCsgASgIEkwKDmN5Y2xv",
"cGVkaWFpdGVtGCwgASgLMjQudGliaWEucHJvdG9idWYuYXBwZWFyYW5jZXMu",
"QXBwZWFyYW5jZUZsYWdDeWNsb3BlZGlhIicKEkFwcGVhcmFuY2VGbGFnQmFu",
"axIRCgl3YXlwb2ludHMYASABK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",
"cHBlYXJhbmNlRmxhZ0hvb2sSMwoJZGlyZWN0aW9uGAEgASgOMiAudGliaWEu",
"cHJvdG9idWYuc2hhcmVkLkhPT0tfVFlQRSIkChZBcHBlYXJhbmNlRmxhZ0xl",
"bnNoZWxwEgoKAmlkGAEgASgNIj0KHUFwcGVhcmFuY2VGbGFnQ2hhbmdlZFRv",
"RXhwaXJlEhwKFGZvcm1lcl9vYmplY3RfdHlwZWlkGAEgASgNIjMKGEFwcGVh",
"cmFuY2VGbGFnQ3ljbG9wZWRpYRIXCg9jeWNsb3BlZGlhX3R5cGUYASABKA0i",
"sQEKG1NwZWNpYWxNZWFuaW5nQXBwZWFyYW5jZUlkcxIUCgxnb2xkX2NvaW5f",
"aWQYASABKA0SGAoQcGxhdGludW1fY29pbl9pZBgCIAEoDRIXCg9jcnlzdGFs",
"X2NvaW5faWQYAyABKA0SFQoNdGliaWFfY29pbl9pZBgEIAEoDRIZChFzdGFt",
"cGVkX2xldHRlcl9pZBgFIAEoDRIXCg9zdXBwbHlfc3Rhc2hfaWQYBiABKA0q",
"gQEKEUZJWEVEX0ZSQU1FX0dST1VQEiEKHUZJWEVEX0ZSQU1FX0dST1VQX09V",
"VEZJVF9JRExFEAASIwofRklYRURfRlJBTUVfR1JPVVBfT1VURklUX01PVklO",
"RxABEiQKIEZJWEVEX0ZSQU1FX0dST1VQX09CSkVDVF9JTklUSUFMEAI="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tibia.Protobuf.Shared.SharedReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tibia.Protobuf.Appearances.FIXED_FRAME_GROUP), }, null, new pbr::GeneratedClrTypeInfo[] {
Expand All @@ -132,7 +132,7 @@ static AppearancesReflection() {
new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.SpriteInfo), global::Tibia.Protobuf.Appearances.SpriteInfo.Parser, new[]{ "PatternWidth", "PatternHeight", "PatternDepth", "Layers", "SpriteId", "BoundingSquare", "Animation", "IsOpaque", "BoundingBoxPerDirection" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.FrameGroup), global::Tibia.Protobuf.Appearances.FrameGroup.Parser, new[]{ "FixedFrameGroup", "Id", "SpriteInfo" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.Appearance), global::Tibia.Protobuf.Appearances.Appearance.Parser, new[]{ "Id", "FrameGroup", "Flags", "Name", "Description" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlags), global::Tibia.Protobuf.Appearances.AppearanceFlags.Parser, new[]{ "Bank", "Clip", "Bottom", "Top", "Container", "Cumulative", "Usable", "Forceuse", "Multiuse", "Write", "WriteOnce", "Liquidpool", "Unpass", "Unmove", "Unsight", "Avoid", "NoMovementAnimation", "Take", "Liquidcontainer", "Hang", "Hook", "Rotate", "Light", "DontHide", "Translucent", "Shift", "Height", "LyingObject", "AnimateAlways", "Automap", "Lenshelp", "Fullbank", "IgnoreLook", "Clothes", "DefaultAction", "Market", "Wrap", "Unwrap", "Topeffect", "Npcsaledata", "Changedtoexpire", "Corpse", "PlayerCorpse", "Cyclopediaitem" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlags), global::Tibia.Protobuf.Appearances.AppearanceFlags.Parser, new[]{ "Bank", "Clip", "Bottom", "Top", "Container", "Cumulative", "Usable", "Forceuse", "Multiuse", "Write", "WriteOnce", "Liquidpool", "Unpass", "Unmove", "Unsight", "Avoid", "NoMovementAnimation", "Take", "Liquidcontainer", "Hang", "Hook", "Rotate", "Light", "DontHide", "Translucent", "Shift", "Height", "LyingObject", "AnimateAlways", "Automap", "Lenshelp", "Fullbank", "IgnoreLook", "Clothes", "DefaultAction", "Market", "Wrap", "Unwrap", "Topeffect", "Npcsaledata", "Changedtoexpire", "Corpse", "PlayerCorpse", "Cyclopediaitem", "Ammo" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagBank), global::Tibia.Protobuf.Appearances.AppearanceFlagBank.Parser, new[]{ "Waypoints" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagWrite), global::Tibia.Protobuf.Appearances.AppearanceFlagWrite.Parser, new[]{ "MaxTextLength" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagWriteOnce), global::Tibia.Protobuf.Appearances.AppearanceFlagWriteOnce.Parser, new[]{ "MaxTextLengthOnce" }, null, null, null, null),
Expand Down Expand Up @@ -2661,6 +2661,7 @@ public AppearanceFlags(AppearanceFlags other) : this() {
corpse_ = other.corpse_;
playerCorpse_ = other.playerCorpse_;
cyclopediaitem_ = other.cyclopediaitem_ != null ? other.cyclopediaitem_.Clone() : null;
ammo_ = other.ammo_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -3529,6 +3530,30 @@ public void ClearPlayerCorpse() {
}
}

/// <summary>Field number for the "ammo" field.</summary>
public const int AmmoFieldNumber = 45;
private readonly static bool AmmoDefaultValue = false;

private bool ammo_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Ammo {
get { if ((_hasBits0 & 536870912) != 0) { return ammo_; } else { return AmmoDefaultValue; } }
set {
_hasBits0 |= 536870912;
ammo_ = value;
}
}
/// <summary>Gets whether the "ammo" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAmmo {
get { return (_hasBits0 & 536870912) != 0; }
}
/// <summary>Clears the value of the "ammo" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAmmo() {
_hasBits0 &= ~536870912;
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as AppearanceFlags);
Expand Down Expand Up @@ -3586,6 +3611,7 @@ public bool Equals(AppearanceFlags other) {
if (Corpse != other.Corpse) return false;
if (PlayerCorpse != other.PlayerCorpse) return false;
if (!object.Equals(Cyclopediaitem, other.Cyclopediaitem)) return false;
if (Ammo != other.Ammo) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -3636,6 +3662,7 @@ public override int GetHashCode() {
if (HasCorpse) hash ^= Corpse.GetHashCode();
if (HasPlayerCorpse) hash ^= PlayerCorpse.GetHashCode();
if (cyclopediaitem_ != null) hash ^= Cyclopediaitem.GetHashCode();
if (HasAmmo) hash ^= Ammo.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -3825,6 +3852,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(226, 2);
output.WriteMessage(Cyclopediaitem);
}
if (HasAmmo) {
output.WriteRawTag(232, 2);
output.WriteBool(Ammo);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand Down Expand Up @@ -4007,6 +4038,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(226, 2);
output.WriteMessage(Cyclopediaitem);
}
if (HasAmmo) {
output.WriteRawTag(232, 2);
output.WriteBool(Ammo);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand Down Expand Up @@ -4146,6 +4181,9 @@ public int CalculateSize() {
if (cyclopediaitem_ != null) {
size += 2 + pb::CodedOutputStream.ComputeMessageSize(Cyclopediaitem);
}
if (HasAmmo) {
size += 2 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand Down Expand Up @@ -4329,6 +4367,9 @@ public void MergeFrom(AppearanceFlags other) {
}
Cyclopediaitem.MergeFrom(other.Cyclopediaitem);
}
if (other.HasAmmo) {
Ammo = other.Ammo;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -4561,6 +4602,10 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(Cyclopediaitem);
break;
}
case 360: {
Ammo = input.ReadBool();
break;
}
}
}
#endif
Expand Down Expand Up @@ -4793,6 +4838,10 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(Cyclopediaitem);
break;
}
case 360: {
Ammo = input.ReadBool();
break;
}
}
}
}
Expand Down
Loading

0 comments on commit eed3917

Please sign in to comment.