Skip to content

Commit

Permalink
Merge pull request #3432 from ARF-SS13/an-idea
Browse files Browse the repository at this point in the history
peanut butter jelly time
  • Loading branch information
Tk420634 authored Oct 15, 2023
2 parents a03944f + f5be292 commit 40fc8de
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions code/game/gamemodes/dynamic/dynamic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -367,20 +367,23 @@ GLOBAL_VAR_INIT(dynamic_forced_storyteller, null)
initial_threat_level = threat_level
return TRUE


/datum/game_mode/dynamic/pre_setup()
var/peanutbutterjellytime = TRUE
for (var/rule in subtypesof(/datum/dynamic_ruleset))
var/datum/dynamic_ruleset/ruleset = new rule()
// Simple check if the ruleset should be added to the lists.
if(ruleset.name == "")
continue
switch(ruleset.ruletype)
if("Roundstart")
roundstart_rules += ruleset
if ("Latejoin")
latejoin_rules += ruleset
if ("Midround")
if (ruleset.weight)
midround_rules += ruleset
if(peanutbutterjellytime == FALSE)
if(ruleset.name == "")
continue
switch(ruleset.ruletype)
if("Roundstart")
roundstart_rules += ruleset
if ("Latejoin")
latejoin_rules += ruleset
if ("Midround")
if (ruleset.weight)
midround_rules += ruleset
for(var/mob/dead/new_player/player in GLOB.player_list)
if(player.ready == PLAYER_READY_TO_PLAY && player.mind)
roundstart_pop_ready++
Expand Down

0 comments on commit 40fc8de

Please sign in to comment.