-
-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature/Enhancement] - Prey system rework (CPP) + Hunting task system (
#172) Complete rewrite of old prey system from LUA to CPP and implementation of Hunting Tasks system. Do not test with GOD char or with low amount of creatures registered on bestiary. The PR already include the necessary amount of then. Addition of hunting task system and entire rework of prey system. All working on CPP with few LUA integration.
- Loading branch information
1 parent
b87372f
commit 42af88d
Showing
44 changed files
with
2,119 additions
and
1,816 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,53 @@ | ||
-- return true = There are others migrations file | ||
-- return false = This is the last migration file | ||
function onUpdateDatabase() | ||
return false | ||
Spdlog.info("Updating database to version 19 (Prey system rework + Task hunting system)") | ||
db.query([[ | ||
ALTER TABLE `players` | ||
DROP `prey_stamina_1`, | ||
DROP `prey_stamina_2`, | ||
DROP `prey_stamina_3`, | ||
DROP `prey_column`, | ||
ADD `prey_wildcard` bigint(21) NOT NULL DEFAULT 0, | ||
ADD `task_points` bigint(21) NOT NULL DEFAULT 0; | ||
]]) | ||
|
||
db.query([[ | ||
DROP TABLE `player_prey`; | ||
]]) | ||
|
||
db.query([[ | ||
DROP TABLE `prey_slots`; | ||
]]) | ||
|
||
db.query([[ | ||
CREATE TABLE IF NOT EXISTS `player_taskhunt` ( | ||
`player_id` int(11) NOT NULL, | ||
`slot` tinyint(1) NOT NULL, | ||
`state` tinyint(1) NOT NULL, | ||
`raceid` varchar(250) NOT NULL, | ||
`upgrade` tinyint(1) NOT NULL, | ||
`rarity` tinyint(1) NOT NULL, | ||
`kills` varchar(250) NOT NULL, | ||
`disabled_time` bigint(20) NOT NULL, | ||
`free_reroll` bigint(20) NOT NULL, | ||
`monster_list` BLOB NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
]]) | ||
|
||
db.query([[ | ||
CREATE TABLE IF NOT EXISTS `player_prey` ( | ||
`player_id` int(11) NOT NULL, | ||
`slot` tinyint(1) NOT NULL, | ||
`state` tinyint(1) NOT NULL, | ||
`raceid` varchar(250) NOT NULL, | ||
`option` tinyint(1) NOT NULL, | ||
`bonus_type` tinyint(1) NOT NULL, | ||
`bonus_rarity` tinyint(1) NOT NULL, | ||
`bonus_percentage` varchar(250) NOT NULL, | ||
`bonus_time` varchar(250) NOT NULL, | ||
`free_reroll` bigint(20) NOT NULL, | ||
`monster_list` BLOB NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
]]) | ||
|
||
return true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- return true = There are others migrations file | ||
-- return false = This is the last migration file | ||
function onUpdateDatabase() | ||
return false | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.