From a67b698ddb5b7c3c1cec7238d6cae02c85ff1f7b Mon Sep 17 00:00:00 2001 From: rcorex <218065218+rcorex@users.noreply.github.com> Date: Sun, 14 Sep 2025 16:32:26 +0700 Subject: [PATCH 1/3] adjust doombringer spawn timing for > 20 queens adjust doombringer spawn timing for > 20 queens --- lua/tweakdefs4.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lua/tweakdefs4.lua b/lua/tweakdefs4.lua index e689c81..057950c 100644 --- a/lua/tweakdefs4.lua +++ b/lua/tweakdefs4.lua @@ -32,8 +32,15 @@ end local mqNumQueens = spring.GetModOptions().raptor_queen_count or 1 local mqDoomAngerScale = 1 -if nbQhpMult > 1.3 then mqDoomAngerScale = math.min(10, nbQhpMult / 1.3 * 0.9) end -local mqDoomAnger = math.ceil(mqDoomAngerScale * (10 * (1.06 ^ math.max(0, mqNumQueens - 8)))) +mqDoomAngerScale = math.min(10, nbQhpMult / 1.3 * 0.9) + +-- Compact logic for hybrid exponential/linear growth +local queenThreshold = 20 +local exponentialPart = 10 * (1.06 ^ math.max(0, math.min(mqNumQueens, queenThreshold) - 8)) +local linearPart = math.max(0, mqNumQueens - queenThreshold) +local baseQueenAnger = exponentialPart + linearPart + +local mqDoomAnger = math.ceil(mqDoomAngerScale * baseQueenAnger) local mqAngerBoss = mqTimeMult * 100 + mqDoomAnger local maxDoombringers = math.max(3, scaledMax(math.floor((21 * mqNumQueens + 36) / 19))) From ce9d2f989004f8598e883c76089f39f9be3c6452 Mon Sep 17 00:00:00 2001 From: rcorex <218065218+rcorex@users.noreply.github.com> Date: Sun, 14 Sep 2025 16:35:19 +0700 Subject: [PATCH 2/3] update version number --- lua/tweakdefs4.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/tweakdefs4.lua b/lua/tweakdefs4.lua index 057950c..22cea47 100644 --- a/lua/tweakdefs4.lua +++ b/lua/tweakdefs4.lua @@ -1,4 +1,4 @@ ---Mini Bosses v2e +--Mini Bosses v2f -- Authors: RCore -- docs.google.com/spreadsheets/d/1QSVsuAAMhBrhiZdTihVfSCwPzbbZWDLCtXWP23CU0ko local unitDefs, tableMerge, tableCopy, raptor_matriarch_basic, customfusionexplo, spring = UnitDefs or {}, table.merge, table.copy, 'raptor_matriarch_basic', 'customfusionexplo', Spring From 86b0093a5efc1564c5219d7712e399396593433f Mon Sep 17 00:00:00 2001 From: rcorex <218065218+rcorex@users.noreply.github.com> Date: Fri, 28 Nov 2025 02:31:04 +0700 Subject: [PATCH 3/3] adjust doombringer spawn time earlier for > 20 queens adjust doombringer spawn time earlier for > 20 queens --- lua/tweakdefs4.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/tweakdefs4.lua b/lua/tweakdefs4.lua index 22cea47..0746464 100644 --- a/lua/tweakdefs4.lua +++ b/lua/tweakdefs4.lua @@ -1,4 +1,4 @@ ---Mini Bosses v2f +--Mini Bosses v2g -- Authors: RCore -- docs.google.com/spreadsheets/d/1QSVsuAAMhBrhiZdTihVfSCwPzbbZWDLCtXWP23CU0ko local unitDefs, tableMerge, tableCopy, raptor_matriarch_basic, customfusionexplo, spring = UnitDefs or {}, table.merge, table.copy, 'raptor_matriarch_basic', 'customfusionexplo', Spring @@ -37,7 +37,8 @@ mqDoomAngerScale = math.min(10, nbQhpMult / 1.3 * 0.9) -- Compact logic for hybrid exponential/linear growth local queenThreshold = 20 local exponentialPart = 10 * (1.06 ^ math.max(0, math.min(mqNumQueens, queenThreshold) - 8)) -local linearPart = math.max(0, mqNumQueens - queenThreshold) +local x = math.max(0, mqNumQueens - queenThreshold) +local linearPart = (x <= 80) and (0.6 * x - x*x/270) or (24.3 + (x - 80) * 0.15) local baseQueenAnger = exponentialPart + linearPart local mqDoomAnger = math.ceil(mqDoomAngerScale * baseQueenAnger)