Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/Bleeding-Edge' into Bleeding-Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
boy2mantwicethefam committed Jun 14, 2024
2 parents f16e3b6 + f9ec878 commit dcf2694
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
2 changes: 2 additions & 0 deletions __DEFINES/role_datums_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,11 @@

#define LATEJOIN_DELAY_MIN (5 MINUTES)/(SS_WAIT_TICKER)
#define LATEJOIN_DELAY_MAX (30 MINUTES)/(SS_WAIT_TICKER)
#define LATEJOIN_STARTING_ROUND_DELAY 0 MINUTES

#define MIDROUND_DELAY_MIN (5 MINUTES)/(SS_WAIT_TICKER)
#define MIDROUND_DELAY_MAX (30 MINUTES)/(SS_WAIT_TICKER)
#define MIDROUND_STARTING_ROUND_DELAY (30 MINUTES)/(SS_WAIT_TICKER)

#define MIDROUND_EXTENDED_DELAY_MIN (20 MINUTES)/(SS_WAIT_TICKER)
#define MIDROUND_EXTENDED_DELAY_MAX (35 MINUTES)/(SS_WAIT_TICKER)
Expand Down
18 changes: 14 additions & 4 deletions code/datums/gamemode/dynamic/dynamic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ var/stacking_limit = 90

var/latejoin_injection_cooldown = 0
var/midround_injection_cooldown = 0
//Initial starting cooldowns after the round starts, for when you don't want midrounds too early in the round.
//If set to 0 or negative, uses the regular cooldown behavior.
var/latejoin_starting_round_cooldown = LATEJOIN_STARTING_ROUND_DELAY
var/midround_starting_round_cooldown = MIDROUND_STARTING_ROUND_DELAY

var/datum/dynamic_ruleset/latejoin/forced_latejoin_rule = null

Expand Down Expand Up @@ -206,11 +210,17 @@ var/stacking_limit = 90

generate_threat()

var/latejoin_injection_cooldown_middle = 0.5*(LATEJOIN_DELAY_MAX + LATEJOIN_DELAY_MIN)
latejoin_injection_cooldown = round(clamp(exp_distribution(latejoin_injection_cooldown_middle), LATEJOIN_DELAY_MIN, LATEJOIN_DELAY_MAX))
if(latejoin_starting_round_cooldown >= 0)
latejoin_injection_cooldown = latejoin_starting_round_cooldown
else
var/latejoin_injection_cooldown_middle = 0.5*(LATEJOIN_DELAY_MAX + LATEJOIN_DELAY_MIN)
latejoin_injection_cooldown = round(clamp(exp_distribution(latejoin_injection_cooldown_middle), LATEJOIN_DELAY_MIN, LATEJOIN_DELAY_MAX))

var/midround_injection_cooldown_middle = 0.5*(MIDROUND_DELAY_MAX + MIDROUND_DELAY_MIN)
midround_injection_cooldown = round(clamp(exp_distribution(midround_injection_cooldown_middle), MIDROUND_DELAY_MIN, MIDROUND_DELAY_MAX))
if(midround_starting_round_cooldown >= 0)
midround_injection_cooldown = midround_starting_round_cooldown
else
var/midround_injection_cooldown_middle = 0.5*(MIDROUND_DELAY_MAX + MIDROUND_DELAY_MIN)
midround_injection_cooldown = round(clamp(exp_distribution(midround_injection_cooldown_middle), MIDROUND_DELAY_MIN, MIDROUND_DELAY_MAX))

message_admins("Dynamic Mode initialized with a Threat Level of... <font size='8'>[threat_level]</font> and <font size='8'>[midround_threat_level]</font> for midround!")
log_admin("Dynamic Mode initialized with a Threat Level of... [threat_level] and [midround_threat_level]</font> for midround!")
Expand Down
2 changes: 1 addition & 1 deletion code/datums/gamemode/factions/plague_mice.dm
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
plague.color = "#ADAEAA"
plague.pattern = 3
plague.pattern_color = "#EE9A9C"
plague.stage = 4 //4 stages, unlocks the really dangerous symptoms rather than just DNA Degradation
plague.max_stage = 4 //4 stages, unlocks the really dangerous symptoms rather than just DNA Degradation
plague.speed = 4 //Takes about 50 seconds to advance to the next stage

plague.makerandom(list(90,100),list(40,75),anti,bad,null)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var/list/global_deadchat_listeners = list()
log_say("[name]/[key_name(src)] (@[location_text]) Deadsay: [message]")

for(var/mob/M in get_deadchat_hearers())
to_chat(M, "[formatFollow(src)] <span class='name'>[name]</span>[alt_name] <span class='message'>[message]</span></span>")
to_chat(M, "<span class='game deadsay'>[formatFollow(src)] <span class='name'>[name]</span>[alt_name] <span class='message'>[message]</span></span>")

/mob/proc/get_ear()
// returns an atom representing a location on the map from which this
Expand Down

0 comments on commit dcf2694

Please sign in to comment.