implement stepup gacha, fix unfulfilled rewards

This commit is contained in:
wish
2023-02-18 12:36:17 +11:00
parent c3306de2ee
commit 0fcacc24a0
3 changed files with 102 additions and 161 deletions

View File

@@ -46,6 +46,7 @@ CREATE TABLE IF NOT EXISTS public.gacha_entries (
weight INTEGER,
rarity INTEGER,
rolls INTEGER,
frontier_points INTEGER,
daily_limit INTEGER
);
@@ -57,4 +58,12 @@ CREATE TABLE IF NOT EXISTS public.gacha_items (
quantity INTEGER
);
DROP TABLE IF EXISTS public.stepup_state;
CREATE TABLE IF NOT EXISTS public.gacha_stepup (
gacha_id INTEGER,
step INTEGER,
character_id INTEGER
);
END;