Skip to content

Commit 3dc5a06

Browse files
committed
Keep all constants in one place
1 parent 382d55c commit 3dc5a06

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Loenn/entities/nonReturnKevin.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ local nPatchOptions = {
7878
borderMode = "repeat"
7979
}
8080

81-
local kevinColor = { 98 / 255, 34 / 255, 43 / 255 }
82-
local altKevinColor = { 36 / 255, 34 / 255, 98 / 255 }
83-
8481
local function isempty(s)
8582
return s == nil or s == ""
8683
end
@@ -93,8 +90,8 @@ local function getBlockStyle(entity)
9390
local smallFaceTexture = entitySpriteDir .. "/idle_face"
9491
local giantFaceTexture = entitySpriteDir .. "/giant_block00"
9592
local fillColor = entity.altTexture
96-
and (isempty(entity.fillColor) and altKevinColor or utils.getColor(entity.fillColor))
97-
or kevinColor
93+
and (isempty(entity.fillColor) and { 36 / 255, 34 / 255, 98 / 255 } or utils.getColor(entity.fillColor))
94+
or { 98 / 255, 34 / 255, 43 / 255 }
9895

9996
return {
10097
spriteDir = entitySpriteDir,

0 commit comments

Comments
 (0)