-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
429 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
dofile(DATA_DIRECTORY .. "/lib/others/dawnport.lua") | ||
dofile(DATA_DIRECTORY .. "/lib/others/vip_system.lua") |
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...rver/scripts/game_migrations/20241715984279_move_wheel_scrolls_from_storagename_to_kv.lua
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,24 @@ | ||
local promotionScrolls = { | ||
{ oldScroll = "wheel.scroll.abridged", newScroll = "abridged" }, | ||
{ oldScroll = "wheel.scroll.basic", newScroll = "basic" }, | ||
{ oldScroll = "wheel.scroll.revised", newScroll = "revised" }, | ||
{ oldScroll = "wheel.scroll.extended", newScroll = "extended" }, | ||
{ oldScroll = "wheel.scroll.advanced", newScroll = "advanced" }, | ||
} | ||
|
||
local function migrate(player) | ||
for _, scrollTable in ipairs(promotionScrolls) do | ||
local oldStorage = player:getStorageValueByName(scrollTable.oldScroll) | ||
if oldStorage > 0 then | ||
player:kv():scoped("wheel-of-destiny"):scoped("scrolls"):set(scrollTable.newScroll, true) | ||
end | ||
end | ||
end | ||
|
||
local migration = Migration("20241715984279_move_wheel_scrolls_from_storagename_to_kv") | ||
|
||
function migration:onExecute() | ||
self:forEachPlayer(migrate) | ||
end | ||
|
||
migration:register() |
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
File renamed without changes.
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
Oops, something went wrong.