Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements a fix for donator tokens being unlimited #5098

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

Veth-s
Copy link
Collaborator

@Veth-s Veth-s commented Jan 25, 2025

hi poobs
Hopefully should stop donators from getting a token back if token_month is lost somehow.

Changelog

🆑
fix: fixed donator tokens being buggy (hopefully)
/:cl:

hi poobs
@Kitsunemitsu Kitsunemitsu added the Fix fix da bug label Jan 26, 2025
@@ -101,7 +101,8 @@ GLOBAL_LIST_INIT(patreon_etoken_values, list(
return FALSE

var/month_number = text2num(time2text(world.time, "MM"))

if(owner.prefs.token_month == 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currently this means people wont get a token for their first month as patreon

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any ideas on fixes for first month patreons?

@@ -101,7 +101,8 @@ GLOBAL_LIST_INIT(patreon_etoken_values, list(
return FALSE

var/month_number = text2num(time2text(world.time, "MM"))

if(owner.prefs.token_month == 0)
owner.prefs.token_month = month_number
if(owner.prefs.token_month != month_number)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(owner.prefs.token_month != month_number)
else if(owner.prefs.token_month != month_number)

@flleeppyy
Copy link
Member

???????

@Veth-s
Copy link
Collaborator Author

Veth-s commented Jan 30, 2025

???????

it's a temporary fix, donators were getting unlimited donor tokens because their token_month was being lost at some point during saving/etc & this was the only solution we found so far.

Basically they need to get moved over to DB or something but I have no clue what I'm doing on that side of things

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix fix da bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants