Commit Graph

32 Commits

Author SHA1 Message Date
7bb02e2d3d Drop: Revert change that limited drops to specific IDs
This was meant to be removed after debugging, oops
2023-03-16 00:37:20 +01:00
92807bc4db Drop: Add wishlist pings to drops 2023-03-16 00:30:38 +01:00
b8ffa9fd94 Drop: Fix for patreon perks not applying
same as in 3d1ed01
We also move up the action handler hoping that persisting early helps with
multiple drops happening quickly
2023-03-15 11:23:58 +01:00
3d1ed01bcb Cooldowns: Fix for patreon perks not applying
if cooldown resets are trigered by a drop.
The tier parameter wasn't passed from within thedrop command.
We should probably move the tier fetch logic into getCooldown.
2023-03-14 10:52:58 +01:00
cecc9c4c9d Claim: Fix wrong user passed to actionHandler 2023-03-13 16:57:40 +01:00
a096d288f6 Drop: Revert permission threshold change
to restore cooldown bypass for admins
2023-03-13 16:07:42 +01:00
da78623a05 Drop: Add Patreon muti drop/pickup support 2023-03-13 03:30:56 +01:00
c93ffee69c Drop: Increase timeout to a minute 2023-03-09 10:05:36 +01:00
5be326d56a Added permission levels to all commands 2022-09-29 11:23:15 +02:00
d8905a279a Drop: Added icons if drop contains FPs or shiny cards as well as the droppers name 2022-09-26 12:22:53 +02:00
a49a478972 History: Add currency and XP tracking 2022-09-21 17:18:12 +02:00
dcb7e334e2 History: Add details to drop history and split by type
that being 0 for drops and 1 for claims.
Fixes #16
2022-09-21 13:35:43 +02:00
4d97215891 Drop: Fix cooldown formatting (fixes #15)
Formatted cooldown strings are now properly pluralized
trimmed for zero values and also include seconds.
2022-09-21 11:51:58 +02:00
f0a0bef7e9 Drop: Always defer drop replies 2022-09-21 11:50:45 +02:00
73a2df6e74 Drop: Select quality of cards based on drop rates 2022-09-21 11:17:11 +02:00
83947eeafd Drop: Hightlight first prints and shiny cards in claim messages 2022-09-14 09:27:25 +02:00
ed7096fac0 User: Add experience / levels
Each drop and claim hands out 10 and 5 xp respectively.
The profile then renders the users current level based on
the formula 0.5 * sqrt(exp)
2022-09-12 03:37:45 +02:00
6ce583c8fb Drop: Make cards claimable by other users
Cards couldn't be claimed by users other than the dropper because we
were using the wrong user and permissionlevel object from the upper scrope
Fixes #12
2022-09-08 13:30:04 +02:00
d8fb5d0a62 Drop: Show cooldown times in minutes instead of ms 2022-09-08 13:30:01 +02:00
fb5faf727e Drop: Use random sorting to pick dropped characters
this fixes the problem of choosing disabled cards or IDs which
are not assigned to any character. Fixes #7
2022-09-07 20:01:28 +02:00
e1f1ad79e8 Drop: Update claim messages to show the character name once cards are revealed 2022-08-31 23:57:06 +02:00
de326e3cd5 Drop/Render: Fix button sorting issue
Buttons would not correspond to the correct card
in a rendered card-stack.
2022-08-28 23:27:23 +02:00
566a9c5818 Drop/Render: Add card quality
Assign random card quality on drop
Render different border colors based on quality
2022-08-28 22:52:52 +02:00
dea943bee4 Drop: Add drop history 2022-08-28 22:19:03 +02:00
cf7c2769e3 Drop/Rendering: Move stack sorting from rendering to drop 2022-08-28 21:40:52 +02:00
6c781785c3 StackRendering: Only reveal cards once the drop expired 2022-08-28 21:31:15 +02:00
3f53e33598 WIP Card rendering
Render card stacks on drops
Unclaimed cards are hidden, when expired they are shown as grayscale
2022-08-20 03:35:36 +02:00
e21fc57f22 Add drop and pull cooldowns 2022-08-19 14:41:48 +02:00
ae60732836 WIP basic card dropping 2022-08-18 19:24:44 +02:00
317230c9c3 Upgrade discord.js from v13 to v14 2022-08-18 11:26:51 +02:00
05804cb78a Updated models and migrations to new spec 2022-08-17 19:36:47 +02:00
cfc9e2ba6b Add card dropping and collection command 2022-04-17 19:39:03 +02:00