Skip to content

Commit

Permalink
Add free donation tier for admins
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene committed Dec 29, 2023
1 parent 7d41ad4 commit 9a87830
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/__defines/~mods/~master_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#define DONATION_TIER_TWO "Tier 2"
#define DONATION_TIER_THREE "Tier 3"
#define DONATION_TIER_FOUR "Tier 4"
#define DONATION_TIER_ADMIN "Admin"

#define DONATION_TIER_ONE_SUM 100
#define DONATION_TIER_TWO_SUM 300
Expand All @@ -35,7 +36,7 @@
#define DONATION_TIER_ALL_TIERS list(\
DONATION_TIER_NONE, DONATION_TIER_ONE, \
DONATION_TIER_TWO, DONATION_TIER_THREE, \
DONATION_TIER_FOUR)
DONATION_TIER_FOUR, DONATION_TIER_ADMIN)
// DON_LOADOUT - End

// GLIDING - Start
Expand Down
1 change: 1 addition & 0 deletions code/modules/goonchat/browserassets/css/browserOutput.css
Original file line number Diff line number Diff line change
Expand Up @@ -440,3 +440,4 @@ h1.alert, h2.alert {color: #a4bad6;}
color: rgb(229, 25, 219);
text-shadow: 0 0 8px rgba(229, 25, 219, .6);
}
.dt_a { /* Nothing in the chat for admins, sorry */}
Original file line number Diff line number Diff line change
Expand Up @@ -437,3 +437,4 @@ h1.alert, h2.alert {color: #000080;}
color: rgb(229, 25, 219);
text-shadow: 0 0 8px rgba(229, 25, 219, .6);
}
.dt_a { /* Nothing in the chat for admins, sorry */}
5 changes: 5 additions & 0 deletions html/browser/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -449,3 +449,8 @@ a.linkOff.selected { box-shadow: inset 0 0 0 1px #ebebeb; }
color: rgb(229, 25, 219);
text-shadow: 0 0 8px rgba(229, 25, 219, .6);
}
.dt_a {
font-weight: bold;
color: rgb(229, 25, 69);
text-shadow: 0 0 8px rgba(229, 25, 42, 0.6);
}
2 changes: 2 additions & 0 deletions mods/don_loadout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#### Список PRов:

- https://github.com/SierraBay/SierraBay12/pull/892
- https://github.com/SierraBay/SierraBay12/pull/1738
<!--
Ссылки на PRы, связанные с модом:
- Создание
Expand Down Expand Up @@ -57,6 +58,7 @@ ID мода: DON_LOADOUT
- `DONATION_TIER_TWO`
- `DONATION_TIER_THREE`
- `DONATION_TIER_FOUR`
- `DONATION_TIER_ADMIN`
- `DONATION_TIER_ONE_SUM`
- `DONATION_TIER_TWO_SUM`
- `DONATION_TIER_THREE_SUM`
Expand Down
3 changes: 3 additions & 0 deletions mods/don_loadout/code/donations/donations.dm
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
donator_level = DONATION_TIER_FOUR
player.donator_info.donation_type = donator_level

if(player.holder?.rights & R_FUN)
player.donator_info.donation_type = DONATION_TIER_ADMIN

if(!was_donator)
player.donator_info.on_donation_tier_loaded(player)

Expand Down
2 changes: 2 additions & 0 deletions mods/don_loadout/code/donations/donator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
if(DONATION_TIER_TWO) return "dt_2"
if(DONATION_TIER_THREE) return "dt_3"
if(DONATION_TIER_FOUR) return "dt_4"
if(DONATION_TIER_ADMIN) return "dt_a"

/proc/donation_tier_decorated(tier)
if(tier == DONATION_TIER_NONE)
Expand All @@ -15,6 +16,7 @@
if(DONATION_TIER_TWO) . = "Tier II"
if(DONATION_TIER_THREE) . = "Tier III"
if(DONATION_TIER_FOUR) . = "Tier IV"
if(DONATION_TIER_ADMIN) . = "Admin"

return SPAN_CLASS(donation_tier_to_css_class(tier), .)

Expand Down

0 comments on commit 9a87830

Please sign in to comment.