Skip to content

Commit

Permalink
Возврат очков в случае нехватки игроков для купленного гост ивента
Browse files Browse the repository at this point in the history
  • Loading branch information
msw7007 committed Dec 20, 2024
1 parent 47cd38b commit c8fd363
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/modules/events/ghost_role/_ghost_role.dm
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
if(NOT_ENOUGH_PLAYERS)
message_admins("[role_name] cannot be spawned due to lack of players signing up.")
deadchat_broadcast(" did not get enough candidates ([minimum_required]) to spawn.", "<b>[role_name]</b>", message_type=DEADCHAT_ANNOUNCEMENT)
SSgamemode.refill_roleset()
kill()
return
if(SUCCESSFUL_SPAWN)
Expand Down
4 changes: 4 additions & 0 deletions modular_bandastation/storyteller/code/gamemode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,10 @@ SUBSYSTEM_DEF(gamemode)
event.try_start()
INVOKE_ASYNC(event, TYPE_PROC_REF(/datum/round_event, try_start))

/// Для восполнения очков ролсета
/datum/controller/subsystem/gamemode/proc/refill_roleset()
event_track_points[EVENT_TRACK_ROLESET] = point_thresholds[EVENT_TRACK_ROLESET]

/// Schedules an event to run later.
/datum/controller/subsystem/gamemode/proc/schedule_event(datum/round_event_control/passed_event, passed_time, passed_cost, passed_ignore, passed_announce, _forced = FALSE)
if(_forced)
Expand Down

0 comments on commit c8fd363

Please sign in to comment.