Skip to content

Commit

Permalink
Ограничения на спавны слотами
Browse files Browse the repository at this point in the history
  • Loading branch information
PhantornRU committed Dec 11, 2023
1 parent c114d9c commit 3350433
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modular_ss220/donor/code/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@
#undef MAX_SAVE_SLOTS_SS220

/client/proc/is_donor_allowed(donator_tier)
switch(C.donator_level)
switch(donator_level)
if(LITTLE_WORKER_TIER)
if(donator_tier > LITTLE_WORKER_LEVEL)
return FALSE
if(BIG_WORKER_TIER)
if(donator_tier > BIG_WORKER_LEVEL)
return FALSE
else
if(donator_tier > C.donator_level) // Tier check
if(donator_tier > donator_level) // Tier check
return FALSE
return TRUE
2 changes: 1 addition & 1 deletion modular_ss220/jobs/code/clothing/security_clothing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
item_color = "sec_ass_f"
body_parts_covered = UPPER_TORSO|LOWER_TORSO|ARMS


/obj/item/clothing/under/rank/security/officer/clown
name = "security clown suit"
icon = 'modular_ss220/jobs/icons/clothing/uniforms.dmi'
icon_override = 'modular_ss220/jobs/icons/clothing/mob/uniform.dmi'
sprite_sheets = null
desc = "<i>'HONK THE LAW!'</i>"
icon_state = "security_clown_s"
item_color = "security_clown"
Expand Down
10 changes: 10 additions & 0 deletions modular_ss220/jobs/code/donor/donor_jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
title = "Т1 должность"
flag = JOB_DONOR_TIER_1
hidden_from_job_prefs = FALSE
total_positions = 5
spawn_positions = 5
donator_tier = 1

/datum/job/donor/tier_1/New()
Expand All @@ -42,6 +44,8 @@
title = "Т2 должность"
flag = JOB_DONOR_TIER_2
hidden_from_job_prefs = FALSE
total_positions = 8
spawn_positions = 5
donator_tier = 2

/datum/job/donor/tier_2/New()
Expand All @@ -53,6 +57,8 @@
title = "Т3 должность"
flag = JOB_DONOR_TIER_3
hidden_from_job_prefs = FALSE
total_positions = 8
spawn_positions = 5
donator_tier = 3

/datum/job/donor/tier_3/New()
Expand All @@ -64,6 +70,8 @@
title = "Т4 должность"
flag = JOB_DONOR_TIER_4
hidden_from_job_prefs = FALSE
total_positions = 4
spawn_positions = 4
donator_tier = 4

/datum/job/donor/tier_4/New()
Expand All @@ -75,6 +83,8 @@
title = "Т5 должность"
flag = JOB_DONOR_TIER_5
hidden_from_job_prefs = FALSE
total_positions = 3
spawn_positions = 3
donator_tier = 5

/datum/job/donor/tier_5/New()
Expand Down
Binary file modified modular_ss220/jobs/icons/clothing/uniforms.dmi
Binary file not shown.

0 comments on commit 3350433

Please sign in to comment.