Commit graph

17 commits

Author SHA1 Message Date
4260b120e7 Update random code to select a card out of a pool of all series (#54)
All checks were successful
continuous-integration/drone/push Build is passing
# Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

- Update the randomiser code so that instead of selecting a random series, and then selecting by rarity chance, it now selects a rarity chance, then selects a random card out of all
- This will instead make it so when getting a rarity of a lower quantity of cards, if it selects a series with only 2 cards in it of that type, it won't tend to only be a 50:50 of what one you get

#45

## Type of change

Please delete options that are not relevant.

- [x] New feature (non-breaking change which adds functionality)

# How Has This Been Tested?

Please describe the tests that you ran to verify the changes. Provide instructions so we can reproduce. Please also list any relevant details to your test configuration.

- This has been tested by making sure that the drop command still works as expected

# Checklist

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that provde my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules

Reviewed-on: https://gitea.vylpes.xyz/External/card-drop/pulls/54
Reviewed-by: VylpesTester <tester@vylpes.com>
Co-authored-by: Ethan Lane <ethan@vylpes.com>
Co-committed-by: Ethan Lane <ethan@vylpes.com>
2023-10-06 21:08:08 +01:00
8ccd7c33d4 Prevent users from being able to claim the latest card unless you were the one to drop it
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-13 15:06:53 +01:00
ad505b3ea2 Fix users being able to claim a card twice if the user has multiple of it already 2023-09-13 14:37:17 +01:00
0e839992e6 Fix bug where the randomiser would sometimes pick a legendary that does not exist 2023-09-10 13:01:04 +01:00
63911f43b0 Fix reoll button not working
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-09 18:49:44 +01:00
5ec79ee67c Add ability to force a card
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-05 20:45:33 +01:00
476b9ad5f9 Give failsafe to api sending for drop
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-05 20:05:29 +01:00
97dc81df9a Add drop rarity force logic to reroll
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-05 19:42:07 +01:00
ada907e2a4 Make force rarity configurable
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-05 19:34:25 +01:00
bd7b5e7b1a Temporary force legendary
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-05 19:14:12 +01:00
737c804d7e 0.1.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-04 13:00:51 +01:00
b848629f8d Fix gifs not working
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-04 12:59:09 +01:00
8b3fb062f0 Add deployment scripts (#18)
All checks were successful
continuous-integration/drone/push Build is passing
#3

Reviewed-on: https://gitea.vylpes.xyz/External/card-drop/pulls/18
Co-authored-by: Ethan Lane <ethan@vylpes.com>
Co-committed-by: Ethan Lane <ethan@vylpes.com>
2023-09-03 20:52:55 +01:00
58d1541e47 feature/5-drop-command (#17)
#5

Reviewed-on: https://gitea.vylpes.xyz/External/card-drop/pulls/17
Co-authored-by: Ethan Lane <ethan@vylpes.com>
Co-committed-by: Ethan Lane <ethan@vylpes.com>
2023-09-03 20:27:29 +01:00
51d97bacd5 Create timer function to initialise card database from filesystem (#14)
- Create a new datasource for an in-memory sqlite database
- Create a setup function to initialise the card database

#13

Reviewed-on: https://gitea.vylpes.xyz/External/card-drop/pulls/14
Co-authored-by: Ethan Lane <ethan@vylpes.com>
Co-committed-by: Ethan Lane <ethan@vylpes.com>
2023-09-03 17:26:45 +01:00
c2c2998fe8 Create base Google Drive Helper (#12)
Reviewed-on: https://gitea.vylpes.xyz/External/card-drop/pulls/12
Co-authored-by: Ethan Lane <ethan@vylpes.com>
Co-committed-by: Ethan Lane <ethan@vylpes.com>
2023-08-26 11:39:45 +01:00
c706737369 Create initial bot framework (#7)
#1

Reviewed-on: https://gitea.vylpes.xyz/External/card-drop/pulls/7
Co-authored-by: Ethan Lane <ethan@vylpes.com>
Co-committed-by: Ethan Lane <ethan@vylpes.com>
2023-08-19 16:56:22 +01:00