We want to add an adjustable limit on how often a user can roll for characters. This not only helps fight spam, but also lends artificial scarsity to the characters obtained through the gacha, meaning players will value their pulls more.
Update the rolling function to query the DB, retreiving the timestamp of the most recent pull done by that player.
Update the config file to add an adjustable roll timeout, which will dictate how long a player must wait between pulls.
Only allow the player to roll if the time elapsed between now and the timestamp of the last pull exceeds the roll timeout.
I think 20 hours will be a good starting timeout. This is long enough for players to integrate gamba into their daily routine, while being short enough to allow for minor fluctuations in a player's schedule without punishing them. Sometimes life gets in the way of an addiction.
We could also implement a special 'weekly' roll that players can do. This can refresh every Sunday and let a player grab 7 or 10 rolls at once, sort of an equivelant to the 10-pulls some gacha games let you do, only we don't charge you for it! Might run into attachment limits on some instances, though. cough mastodon cough
We want to add an adjustable limit on how often a user can roll for characters. This not only helps fight spam, but also lends artificial scarsity to the characters obtained through the gacha, meaning players will value their pulls more.
---
- Update the rolling function to query the DB, retreiving the timestamp of the most recent pull done by that player.
- Update the config file to add an adjustable roll timeout, which will dictate how long a player must wait between pulls.
- Only allow the player to roll if the time elapsed between now and the timestamp of the last pull exceeds the roll timeout.
I think 20 hours will be a good starting timeout. This is long enough for players to integrate gamba into their daily routine, while being short enough to allow for minor fluctuations in a player's schedule without punishing them. Sometimes life gets in the way of an addiction.
We could also implement a special 'weekly' roll that players can do. This can refresh every Sunday and let a player grab 7 or 10 rolls at once, sort of an equivelant to the 10-pulls some gacha games let you do, only we don't charge you for it! Might run into attachment limits on some instances, though. *cough* mastodon *cough*
We want to add an adjustable limit on how often a user can roll for characters. This not only helps fight spam, but also lends artificial scarsity to the characters obtained through the gacha, meaning players will value their pulls more.
I think 20 hours will be a good starting timeout. This is long enough for players to integrate gamba into their daily routine, while being short enough to allow for minor fluctuations in a player's schedule without punishing them. Sometimes life gets in the way of an addiction.
We could also implement a special 'weekly' roll that players can do. This can refresh every Sunday and let a player grab 7 or 10 rolls at once, sort of an equivelant to the 10-pulls some gacha games let you do, only we don't charge you for it! Might run into attachment limits on some instances, though. cough mastodon cough