While modding the spitter, I came across a small inconsistency:
The spitter attack results in a fire splash that adds a sticker to the player (to slow them down).
The way the enemy prototype data is set up, each size of spitter (and worm) have a separate acid stream, each stream has its own (corresponding sized) acid splash. Again, each acid splash has its own (corresponding sized) acid sticker.
The generation of the prototype data itself is generalized in a function for the stream, splash and sticker.
The tints are also generalized on their own, so it can be added as a parameter to the generalized functions.
base/prototypes/entity/spitter-projectiles.lua defines general tints for the stream, splash and sticker.
Further down the same file, the tints are further split up for each sized stream, splash and sticker.
The functions for the acid_stream and the acid_splash_fire are correctly using the parameter data.tint, to make those parts tinted correctly, however the acid_sticker does not use the data.tint parameter, it uses a hardcoded value instead. Furthermore, the hardcoded value is not the same as the specified parameter mentioned earlier.
Post your bugs and problems so we can fix them.
1 post • Page 1 of 1