Player Inventory #32
Labels
No labels
Bug
Feature
Feedback Wanted
Refactoring
Won't Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: waifu/kemoverse#32
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This details an overhaul and formalization of the cards a PLAYER has in their inventory. Currently a PLAYER is thought to 'own' a CARD if there is a PULL in the PULL table that corresponds to both their ID and the CARD's ID.
This represents a problem if we want to transfer ownership of CARDs between PLAYERs: just because a PLAYER ROLLed a card some time in the past, doesn't mean that they currently own it. We'll want a more robust mechanism if we want to add more features.
Database Representation
The
pulls
table should be split into two tables,rolls
andpulls
:rolls
:pulls
:This approach also allows for a many-to-one relationship between PULLs and ROLLs, allowing us to be more flexible in our implementation of ROLLs. For example, we could add a 10-ROLL feature, common in many gacha games, where PLAYERs may ROLL for 10 PULLs at once.