Use cached Game more for performance improvement (#879)

This commit is contained in:
kittenchilly authored and GitHub committed 2025-06-11 19:38:02 +02:00
1 parent 8a9c4358b7
commit 3c26ff782c
5 files changed
+14 -9

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
local game = Game()
local showDebugChars = false
@@ -198,7 +199,7 @@ EID:removeIgnoredEntity(5,100,10) -- un-Ignore "Halo of flies" collectible entit
EID:addColor("ColorTwitterBlue", KColor(0, 0.671875, 0.9296875, 1), nil)
EID:addColor("ColorBlackBlink", nil, function(color)
local maxAnimTime = 30
local animTime = Game():GetFrameCount() % maxAnimTime
local animTime = game:GetFrameCount() % maxAnimTime
color = EID:copyKColor(color) or EID:getTextColor()
if animTime < maxAnimTime / 2 then
color = KColor(0, 0, 0, 1 * color.Alpha)