From 6bbee1645116e0d310152d33e50bcdc9b43c4d95 Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Wed, 5 Aug 2020 14:37:09 -0700
Subject: [PATCH] Add safety clamp to slave.intelligenceImplant in
 saTakeClasses.

---
 src/endWeek/saTakeClasses.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/endWeek/saTakeClasses.js b/src/endWeek/saTakeClasses.js
index 03ed4cb0dbc..109cb7c3551 100644
--- a/src/endWeek/saTakeClasses.js
+++ b/src/endWeek/saTakeClasses.js
@@ -434,6 +434,7 @@ App.SlaveAssignment.takeClasses = (function() {
 				}
 			}
 		}
+		slave.intelligenceImplant = Math.clamp(slave.intelligenceImplant, -15, 30);
 	}
 
 	/**
-- 
GitLab