From f74306bc89cf78d3faac8db32a69519a1a11e4de Mon Sep 17 00:00:00 2001 From: FinnHornhoover Date: Thu, 12 Oct 2023 02:11:42 +0300 Subject: [PATCH] updated tabledata comment --- src/TableData.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/TableData.cpp b/src/TableData.cpp index 1ee8322..6e04503 100644 --- a/src/TableData.cpp +++ b/src/TableData.cpp @@ -574,10 +574,12 @@ static void loadDrops(json& dropData) { EPInfo& epInfo = Racing::EPData[EPMap]; - // time limit isn't stored in the XDT, so we include it in the reward table instead - epInfo.maxTime = (int)race["TimeLimit"]; + // max score is specified in the XDT, but can be updated if specified in the drops JSON epInfo.maxScore = (int)race["ScoreCap"]; + // time limit and total pods are not stored in the XDT, so we include it in the drops JSON + epInfo.maxTime = (int)race["TimeLimit"]; epInfo.maxPods = (int)race["TotalPods"]; + // IZ-specific calculated constants included in the drops JSON epInfo.scaleFactor = (double)race["ScaleFactor"]; epInfo.podFactor = (double)race["PodFactor"]; epInfo.timeFactor = (double)race["TimeFactor"];