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

Flat Roundend Monkecoin Bonus for Donators #603

Merged
merged 3 commits into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions code/modules/client/verbs/ooc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ GLOBAL_VAR_INIT(normal_ooc_colour, "#002eb8")
var/datum/asset/spritesheet/sheet = get_asset_datum(/datum/asset/spritesheet/chat)
keyname = "[sheet.icon_tag("patreon")][keyname]"

if(twitch.access_rank > 0)
var/datum/asset/spritesheet/sheet = get_asset_datum(/datum/asset/spritesheet/chat)
keyname = "[sheet.icon_tag("twitch")][keyname]"

//The linkify span classes and linkify=TRUE below make ooc text get clickable chat href links if you pass in something resembling a url
for(var/client/receiver as anything in GLOB.clients)
if(!receiver.prefs) // Client being created or deleted. Despite all, this can be null.
Expand Down
Binary file modified icons/ui_icons/emoji/emoji.dmi
Binary file not shown.
10 changes: 10 additions & 0 deletions monkestation/code/modules/client/preferences/inventory.dm
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#define DONATOR_ROUNDEND_BONUS 25 //25 monkecoin for donators

/datum/preferences/proc/load_inventory(ckey)
if(!ckey || !SSdbcore.IsConnected())
return
Expand Down Expand Up @@ -41,6 +43,14 @@
amount = max_round_coins
max_round_coins -= amount

//Patreon Flat Roundend Bonus
if((parent.patreon?.has_access(2)) && donator_multipler)
amount += DONATOR_ROUNDEND_BONUS

//Twitch Flat Roundend Bonus
if((parent.twitch?.has_access(1)) && donator_multipler)
amount += DONATOR_ROUNDEND_BONUS

//Donator Multiplier
if(amount > 0 && donator_multipler)
switch(parent.patreon.access_rank)
Expand Down
Loading