mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Merge pull request #2525 from CIB/feature
Crew transfer votes now have a bias depending on how far into the round.
This commit is contained in:
@@ -75,6 +75,24 @@ datum/controller/vote
|
|||||||
choices[master_mode] += non_voters
|
choices[master_mode] += non_voters
|
||||||
if(choices[master_mode] >= greatest_votes)
|
if(choices[master_mode] >= greatest_votes)
|
||||||
greatest_votes = choices[master_mode]
|
greatest_votes = choices[master_mode]
|
||||||
|
else if(mode == "crew_transfer")
|
||||||
|
var/factor = 0.5
|
||||||
|
switch(world.time / (10 * 60)) // minutes
|
||||||
|
if(0 to 60)
|
||||||
|
factor = 0.5
|
||||||
|
if(61 to 120)
|
||||||
|
factor = 0.8
|
||||||
|
if(121 to 240)
|
||||||
|
factor = 1
|
||||||
|
if(241 to 300)
|
||||||
|
factor = 1.2
|
||||||
|
else
|
||||||
|
factor = 1.4
|
||||||
|
choices["Initiate Crew Transfer"] = round(choices["Initiate Crew Transfer"] * factor)
|
||||||
|
world << "<font color='purple'>Crew Transfer Factor: [factor]</font>"
|
||||||
|
greatest_votes = max(choices["Initiate Crew Transfer"], choices["Continue The Round"])
|
||||||
|
|
||||||
|
|
||||||
//get all options with that many votes and return them in a list
|
//get all options with that many votes and return them in a list
|
||||||
. = list()
|
. = list()
|
||||||
if(greatest_votes)
|
if(greatest_votes)
|
||||||
|
|||||||
@@ -88,3 +88,22 @@ mob/living/carbon/human/proc/handle_pain()
|
|||||||
if(I.damage > 2) if(prob(2))
|
if(I.damage > 2) if(prob(2))
|
||||||
var/datum/organ/external/parent = get_organ(I.parent_organ)
|
var/datum/organ/external/parent = get_organ(I.parent_organ)
|
||||||
src.custom_pain("You feel a sharp pain in your [parent.display_name]", 1)
|
src.custom_pain("You feel a sharp pain in your [parent.display_name]", 1)
|
||||||
|
|
||||||
|
var/toxDamageMessage = null
|
||||||
|
var/toxMessageProb = 1
|
||||||
|
switch(getToxLoss())
|
||||||
|
if(1 to 5)
|
||||||
|
toxMessageProb = 1
|
||||||
|
toxDamageMessage = "Your body stings slightly."
|
||||||
|
if(6 to 10)
|
||||||
|
toxMessageProb = 2
|
||||||
|
toxDamageMessage = "Your whole body hurts a little."
|
||||||
|
if(11 to 15)
|
||||||
|
toxMessageProb = 2
|
||||||
|
toxDamageMessage = "Your whole body hurts."
|
||||||
|
else
|
||||||
|
toxMessageProb = 5
|
||||||
|
toxDamageMessage = "Your body aches all over, it's driving you mad."
|
||||||
|
|
||||||
|
if(toxDamageMessage && prob(toxMessageProb))
|
||||||
|
src.custom_pain(toxDamageMessage, getToxLoss() >= 15)
|
||||||
Reference in New Issue
Block a user