Skip to content

Commit

Permalink
feat: new "soul cores" item category flag
Browse files Browse the repository at this point in the history
Adding new flag from "13.40"
  • Loading branch information
dudantas committed Nov 9, 2024
1 parent c74545b commit 04567bd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
1 change: 1 addition & 0 deletions Assets Editor/Appearances.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ public enum ITEM_CATEGORY {
[pbr::OriginalName("ITEM_CATEGORY_BACKPACK")] Backpack = 28,
[pbr::OriginalName("ITEM_CATEGORY_ONEHANDWEAPON")] Onehandweapon = 29,
[pbr::OriginalName("ITEM_CATEGORY_ARROW")] Arrow = 30,
[pbr::OriginalName("ITEM_CATEGORY_SOULCORES")] SoulCores = 31,
}

public enum VOCATION {
Expand Down
1 change: 1 addition & 0 deletions Assets Editor/DatEditor.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@
<ComboBoxItem Content="Tibia Coins"/>
<ComboBoxItem Content="Creature Products"/>
<ComboBoxItem Content="Quiver"/>
<ComboBoxItem Content="SoulCores"/>
</ComboBox>
</StackPanel>
<StackPanel Width="320" Orientation="Horizontal" HorizontalAlignment="Left" Height="20">
Expand Down
1 change: 1 addition & 0 deletions Assets Editor/LegacyDatEditor.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@
<ComboBoxItem Content="Tibia Coins"/>
<ComboBoxItem Content="Creature Products"/>
<ComboBoxItem Content="Quiver"/>
<ComboBoxItem Content="SoulCores"/>
</ComboBox>
</StackPanel>
<StackPanel Width="320" Orientation="Horizontal" HorizontalAlignment="Left" Height="20">
Expand Down
29 changes: 15 additions & 14 deletions Assets Editor/appearances.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ message SpriteAnimation {
optional ANIMATION_LOOP_TYPE loop_type = 4;
optional uint32 loop_count = 5;
repeated SpritePhase sprite_phase = 6;
optional ANIMATION_ANIMATION_MODE animation_mode = 7;
optional ANIMATION_ANIMATION_MODE animation_mode = 7;
}

message Box {
Expand All @@ -42,13 +42,13 @@ message SpriteInfo {
optional SpriteAnimation animation = 6;
optional bool is_opaque = 8;
repeated Box bounding_box_per_direction = 9;
optional uint32 pattern_size = 10;
optional uint32 pattern_layers = 11;
optional uint32 pattern_size = 10;
optional uint32 pattern_layers = 11;
optional uint32 pattern_x = 12;
optional uint32 pattern_y = 13;
optional uint32 pattern_z = 14;
optional uint32 pattern_frames = 15;
optional bool is_animation = 16;
optional uint32 pattern_frames = 15;
optional bool is_animation = 16;
}

message FrameGroup {
Expand All @@ -63,8 +63,8 @@ message Appearance {
optional AppearanceFlags flags = 3;
optional string name = 4;
optional string description = 5;
optional APPEARANCE_TYPE appearance_type = 6;
repeated bytes sprite_data = 7;
optional APPEARANCE_TYPE appearance_type = 6;
repeated bytes sprite_data = 7;
}

message AppearanceFlags {
Expand Down Expand Up @@ -125,7 +125,7 @@ message AppearanceFlags {
optional bool expire = 55;
optional bool expirestop = 56;
optional bool deco_item_kit = 57;
optional bool hook_south = 58;
optional bool hook_south = 58;
optional bool hook_east = 59;

}
Expand Down Expand Up @@ -170,8 +170,8 @@ message AppearanceFlagMarket {
optional uint32 show_as_object_id = 3;
repeated VOCATION restrict_to_vocation = 5;
optional uint32 minimum_level = 6;
optional string name = 7;
optional VOCATION vocation = 8;
optional string name = 7;
optional VOCATION vocation = 8;
}

message AppearanceFlagNPC {
Expand Down Expand Up @@ -263,11 +263,12 @@ enum ITEM_CATEGORY {
ITEM_CATEGORY_TIBIA_COINS = 23;
ITEM_CATEGORY_CREATURE_PRODUCTS = 24;
ITEM_CATEGORY_QUIVER = 25;
ITEM_CATEGORY_TWOHANDWEAPON = 26;
ITEM_CATEGORY_HELMETS = 27;
ITEM_CATEGORY_BACKPACK = 28;
ITEM_CATEGORY_ONEHANDWEAPON = 29;
ITEM_CATEGORY_TWOHANDWEAPON = 26;
ITEM_CATEGORY_HELMETS = 27;
ITEM_CATEGORY_BACKPACK = 28;
ITEM_CATEGORY_ONEHANDWEAPON = 29;
ITEM_CATEGORY_ARROW = 30;
ITEM_CATEGORY_SOULCORES = 31;
}

enum VOCATION {
Expand Down

0 comments on commit 04567bd

Please sign in to comment.