From f8b67521219970bb40b11f5950cbe02e4a6ca39b Mon Sep 17 00:00:00 2001 From: ReddeyfishVor <36580397+ReddeyfishVor@users.noreply.github.com> Date: Fri, 27 Apr 2018 17:09:48 -0700 Subject: [PATCH] Prevent negative weight events from occuring --- code/modules/events/event_container.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/events/event_container.dm b/code/modules/events/event_container.dm index 3a57a7d753..0aad853867 100644 --- a/code/modules/events/event_container.dm +++ b/code/modules/events/event_container.dm @@ -60,7 +60,7 @@ var/global/list/severity_to_string = list(EVENT_LEVEL_MUNDANE = "Mundane", EVENT var/list/possible_events = list() for(var/datum/event_meta/EM in available_events) var/event_weight = get_weight(EM, active_with_role) - if(event_weight) + if(event_weight > 0) possible_events[EM] = event_weight if(possible_events.len == 0)