-
Notifications
You must be signed in to change notification settings - Fork 284
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
Conversation
hi poobs
@@ -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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(owner.prefs.token_month != month_number) | |
else if(owner.prefs.token_month != month_number) |
??????? |
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 |
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: