diff --git a/changelog/3807.md b/changelog/3807.md index 9b5cb55e1d..c1f78b223c 100644 --- a/changelog/3807.md +++ b/changelog/3807.md @@ -20,6 +20,10 @@ Previously, the cost of enhancements for an SACU preset was added to the veteran Previously the Ythotha would use the same texture that the ACU does, but scaled up. It now uses a custom made texture that better fits the shape. It's not perfect, if you're interested in improving it then do get in touch with us! +# AI + +- (6052) Remove rounding performed on AI unit threat level calculations to improve threat assignment and variation between units. + ## Other Changes - (#6037) Various smaller improvements to the additional unit details displayed when `Show Armament Detail in Build Menu` is enabled in the settings. diff --git a/lua/system/blueprints-ai.lua b/lua/system/blueprints-ai.lua index b52c80b6d6..1b50445699 100644 --- a/lua/system/blueprints-ai.lua +++ b/lua/system/blueprints-ai.lua @@ -269,16 +269,6 @@ function SetUnitThreatValues(unitBPs) end end - -- Sanitise the table - for i, v in cache do - -- Round appropriately - if v < 1 then - cache[i] = 0 - else - cache[i] = MathFloor(v + 0.5) - end - end - -- transfer information to blueprint table for k, v in cache do bp.Defense[k] = v