@@ -141,3 +141,67 @@ if color and not color_equals(color, BaseDefaultColors["mining-drill-visualizati
141141 update_radius_visualization_color (" mining-drill" , " electric-mining-drill" , color )
142142 update_radius_visualization_color (" mining-drill" , " pumpjack" , color )
143143end
144+
145+ color = config (" acid-splash-color" ) --[[ @as Color]]
146+ if color and not color_equals (color , BaseDefaultColors [" acid-splash" ]) then
147+ for _ , prototype in pairs (data .raw [" fire" ]) do
148+ if prototype .pictures then
149+ for i = 1 , 4 do
150+ if
151+ prototype .pictures [i ]
152+ and prototype .pictures [i ].layers
153+ and prototype .pictures [i ].layers [1 ]
154+ and prototype .pictures [i ].layers [1 ].filename
155+ == " __base__/graphics/entity/acid-splash/acid-splash-" .. i .. " .png"
156+ then
157+ prototype .pictures [i ].layers [1 ].tint = color
158+ end
159+ end
160+ end
161+ if prototype .secondary_pictures then
162+ for i = 1 , 4 do
163+ if
164+ prototype .secondary_pictures [i ]
165+ and prototype .secondary_pictures [i ].layers
166+ and prototype .secondary_pictures [i ].layers [1 ]
167+ and prototype .secondary_pictures [i ].layers [1 ].filename
168+ == " __base__/graphics/entity/acid-splash/acid-splash-" .. i .. " .png"
169+ then
170+ -- 0.7 Source: __base__/prototypes/entity/enemy-constants.lua#L145
171+ prototype .secondary_pictures [i ].layers [1 ].tint = util .multiply_color (color , 0.7 )
172+ end
173+ end
174+ end
175+ end
176+ end
177+ color = config (" acid-stream-color" ) --[[ @as Color]]
178+ if color and not color_equals (color , BaseDefaultColors [" acid-stream" ]) then
179+ for _ , prototype in pairs (data .raw [" stream" ]) do
180+ if
181+ prototype .particle
182+ and prototype .particle
183+ and prototype .particle .filename == " __base__/graphics/entity/acid-projectile/acid-projectile-head.png"
184+ then
185+ prototype .particle .tint = color
186+ end
187+ if
188+ prototype .spine_animation
189+ and prototype .spine_animation
190+ and prototype .spine_animation .filename == " __base__/graphics/entity/acid-projectile/acid-projectile-tail.png"
191+ then
192+ prototype .spine_animation .tint = color
193+ end
194+ end
195+ end
196+ color = config (" acid-sticker-color" ) --[[ @as Color]]
197+ if color and not color_equals (color , BaseDefaultColors [" acid-sticker" ]) then
198+ for _ , prototype in pairs (data .raw [" sticker" ]) do
199+ if
200+ prototype .animation
201+ and prototype .animation
202+ and prototype .animation .filename == " __base__/graphics/entity/acid-sticker/acid-sticker.png"
203+ then
204+ prototype .animation .tint = color
205+ end
206+ end
207+ end
0 commit comments