Skip to content

Commit

Permalink
Изменение множителя СБ
Browse files Browse the repository at this point in the history
  • Loading branch information
msw7007 committed Feb 22, 2025
1 parent 957ffa4 commit 7a1658e
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions modular_bandastation/storyteller/code/gamemode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -520,20 +520,11 @@ SUBSYSTEM_DEF(gamemode)
return can_run

/datum/controller/subsystem/gamemode/proc/get_sec_mult()
var/sec_mult
var/sec_mult = 1
if(length(full_department_roles[STS_SEC]))
sec_mult = length(department_crew_count[STS_SEC]) / length(full_department_roles[STS_SEC])
var/avg_count = length(full_department_roles[STS_SEC]) / 2
var/antags_count = get_antag_count()
if(antags_count)
var/mult1 = length(department_crew_count[STS_SEC]) / antags_count
sec_mult *= mult1
else
sec_mult *= length(full_department_roles[STS_SEC])
var/mult2 = department_crew_power[STS_SEC] / (length(full_department_roles[STS_SEC]) * max_depart_power / 2)
sec_mult *= mult2
sec_mult = clamp(sec_mult, 1, length(full_department_roles[STS_SEC]))
else
sec_mult = 1
sec_mult = antags_count ? avg_count / antags_count : length(full_department_roles[STS_SEC]) * 100
return sec_mult

/datum/controller/subsystem/gamemode/proc/update_pop_scaling()
Expand Down

0 comments on commit 7a1658e

Please sign in to comment.