Skip to content

Commit

Permalink
Remove unused donations data
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene committed Dec 10, 2023
1 parent 7b9bd5e commit dd72455
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions mods/don_loadout/code/donations/donator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
/datum/donator_info
var/donator = FALSE
var/donation_type = DONATION_TIER_NONE
var/list/items = new

/datum/donator_info/proc/on_donation_tier_loaded(client/C)
return
Expand Down Expand Up @@ -65,6 +64,3 @@
return FALSE

CRASH("This code should not be accessible")

/datum/donator_info/proc/has_item(type)
return "[type]" in items
2 changes: 1 addition & 1 deletion mods/don_loadout/code/loadout/loadout.dm
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
entry += "</td></tr>"

if(!hide_unavailable_gear || allowed_to_see || ticked)
if(user.client.donator_info.has_item(G.type) || (G.donation_tier && user.client.donator_info.donation_tier_available(G.donation_tier)))
if(G.donation_tier && user.client.donator_info.donation_tier_available(G.donation_tier))
purchased_gears += entry
else if(G.donation_tier)
paid_gears += entry
Expand Down

0 comments on commit dd72455

Please sign in to comment.