From 8e00f633b849118f15d3300774aa95c3266a6c94 Mon Sep 17 00:00:00 2001 From: Putnam Date: Thu, 7 Nov 2019 23:38:51 -0800 Subject: [PATCH] Made curve width formula be less stupid, less admin spam --- code/controllers/subsystem/vote.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/controllers/subsystem/vote.dm b/code/controllers/subsystem/vote.dm index 8f280140a0..605782535b 100644 --- a/code/controllers/subsystem/vote.dm +++ b/code/controllers/subsystem/vote.dm @@ -157,10 +157,8 @@ SUBSYSTEM_DEF(vote) return message_admins("Nobody voted in the dynamic vote; using default dynamic settings.") var/mean = (choices[PEACE]*-1+choices[CHAOS])/voted.len GLOB.dynamic_curve_centre = mean*20 - var/magic_curve_constant = (4-(abs((choices[PEACE])-choices[CHAOS])/(voted.len)*4)) //magic as hell. - GLOB.dynamic_curve_width = CLAMP(magic_curve_constant,0.5,4) + GLOB.dynamic_curve_width = CLAMP(4-abs(mean*3.5),0.5,4) to_chat(world,"Dynamic curve centre set to [GLOB.dynamic_curve_centre] and width set to [GLOB.dynamic_curve_width].") - message_admins("Dynamic curve centre set to [GLOB.dynamic_curve_centre] and width set to [GLOB.dynamic_curve_width]") log_admin("Dynamic curve centre set to [GLOB.dynamic_curve_centre] and width set to [GLOB.dynamic_curve_width]") if("map") var/datum/map_config/VM = config.maplist[.]