Skip to content

Commit

Permalink
feat: protocol 13.21
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Aug 29, 2023
1 parent 347a8a5 commit 9cc674d
Show file tree
Hide file tree
Showing 13 changed files with 289 additions and 11,539 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ function spell.onCastSpell(creature, var)
end

local grade = creature:revelationStageWOD("Executioner's Throw")
Spdlog.info(grade)
if grade == 0 then
creature:sendCancelMessage("You cannot cast this spell")
creature:getPosition():sendMagicEffect(CONST_ME_POFF)
Expand Down
Binary file modified data/items/appearances.dat
Binary file not shown.
2 changes: 1 addition & 1 deletion src/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static constexpr auto STATUS_SERVER_DEVELOPERS = "OpenTibiaBR Organization";
static constexpr auto AUTHENTICATOR_DIGITS = 6U;
static constexpr auto AUTHENTICATOR_PERIOD = 30U;

static constexpr auto CLIENT_VERSION = 1320;
static constexpr auto CLIENT_VERSION = 1321;

#define CLIENT_VERSION_UPPER (CLIENT_VERSION / 100)
#define CLIENT_VERSION_LOWER (CLIENT_VERSION % 100)
2 changes: 1 addition & 1 deletion src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "creatures/npcs/npc.hpp"
#include "creatures/npcs/npcs.hpp"
#include "server/network/webhook/webhook.hpp"
#include "protobuf/appearances.pb.hpp"
#include "protobuf/appearances.pb.h"
#include "server/network/protocol/protocollogin.hpp"
#include "server/network/protocol/protocolstatus.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/game/game.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "creatures/players/grouping/team_finder.hpp"
#include "utils/wildcardtree.hpp"
#include "items/items_classification.hpp"
#include "protobuf/appearances.pb.hpp"
#include "protobuf/appearances.pb.h"

class ServiceManager;
class Creature;
Expand Down
1 change: 1 addition & 0 deletions src/items/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ void Items::loadFromProtobuf() {
iType.clockExpire = object.flags().clockexpire();
iType.expire = object.flags().expire();
iType.expireStop = object.flags().expirestop();
iType.isWrapKit = object.flags().wrapkit();

if (!iType.name.empty()) {
nameToItems.insert({ asLowerCaseString(iType.name),
Expand Down
2 changes: 2 additions & 0 deletions src/items/items.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ class ItemType {
bool isCorpse = false;
bool loaded = false;
bool spellbook = false;

bool isWrapKit = false;
};

class Items {
Expand Down
2 changes: 1 addition & 1 deletion src/protobuf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ add_custom_command(
${CMAKE_CURRENT_BINARY_DIR}/appearances.pb.cc
${CMAKE_CURRENT_SOURCE_DIR}/appearances.pb.cc

# Copy files "appearances.pb.hpp" to the "src/protobuf" folder
# Copy files "appearances.pb.h" to the "src/protobuf" folder
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_BINARY_DIR}/appearances.pb.h
${CMAKE_CURRENT_SOURCE_DIR}/appearances.pb.h
Expand Down
289 changes: 176 additions & 113 deletions src/protobuf/appearances.pb.cc

Large diffs are not rendered by default.

86 changes: 86 additions & 0 deletions src/protobuf/appearances.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9cc674d

Please sign in to comment.