Skip to content

Commit

Permalink
fix: conflicts with migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipePaluco committed Jan 8, 2025
1 parent 652ab98 commit 195c2e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.lua.dist
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ maxItem = 5000
maxContainer = 500
maxContainerDepth = 200

-- Animus Mastery - SoulPit (Get more info in: TBD)
-- Animus Mastery - SoulPit (Get more info in: https://github.com/opentibiabr/canary/pull/3230)
-- NOTE: animusMasteryMaxMonsterXpMultiplier is the maximum experience the multiplier can be.
-- NOTE: animusMasteryMonsterXpMultiplier is the monster experience multiplier that has the animus mastery unlocked.
-- NOTE: animusMasteryMonstersXpMultiplier is the multiplier for each 'animusMasteryMonstersToIncreaseXpMultiplier' monsters that
Expand Down
5 changes: 5 additions & 0 deletions data-otservbr-global/migrations/49.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function onUpdateDatabase()
logger.info("Updating database to version 48 (feat: animus mastery (soulpit))")

db.query("ALTER TABLE `players` ADD `animus_mastery` mediumblob NOT NULL;")
end
2 changes: 1 addition & 1 deletion src/lua/functions/core/game/game_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ int GameFunctions::luaGameCreateSoulPitMonster(lua_State* L) {
const bool force = Lua::getBoolean(L, 5, false);
if (g_game().placeCreature(monster, position, extended, force)) {
monster->setSoulPitStack(stack);
monster->onSpawn();
monster->onSpawn(position);

Lua::pushUserdata<Monster>(L, monster);
Lua::setMetatable(L, -1, "Monster");
Expand Down

0 comments on commit 195c2e4

Please sign in to comment.