Skip to content

Commit

Permalink
перенес присчитывание порога кармы
Browse files Browse the repository at this point in the history
  • Loading branch information
FatFatFat1 committed Sep 17, 2024
1 parent 53d6801 commit 2d63f33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion code/controllers/subsystem/ticker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ SUBSYSTEM_DEF(ticker)

/datum/controller/subsystem/ticker/proc/setup()
to_chat(world, "<span class='boldannounce'>Игра начинается...</span>")
global.social_credit_threshold = (totalPlayersReady/10) + 3
// Discuss your stuff after the round ends.
if(config.ooc_round_autotoggle)
to_chat(world, "<span class='warning bold'>OOC-канал отключен для всех на время раунда!</span>")
Expand Down
2 changes: 2 additions & 0 deletions code/modules/mob/living/carbon/human/death.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
/mob/living/carbon/human/proc/check_pluvian_credits()
if(iscultist(src) && ischangeling(src) && isshadowthrall(src) || !mind)
return
if(isnull(social_credit_threshold))
social_credit_threshold = (SSticker.totalPlayersReady/10) + 3
if(mind.blessed || mind.social_credit >= social_credit_threshold)
reborn()
else
Expand Down

0 comments on commit 2d63f33

Please sign in to comment.