small bugfix

This commit is contained in:
Nekonico 2025-09-26 20:11:34 -07:00 committed by GitHub
parent 56a33004ed
commit 696605b269
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -4258,8 +4258,11 @@ elements.body_457 = {
dir: 1,
panic: 0,
fuel: 500,
alpha: 0,
},
renderer: function(pixel,ctx) {
drawDefault(ctx,pixel);
if (!viewInfo[view].colorEffects) { return }
if (pixel.fuel > 1) {
drawPlus(ctx,"#ff6b21",pixel.x,pixel.y,undefined,Math.min(1,pixel.fuel/8));
drawPlus(ctx,"#ffa600",pixel.x,pixel.y-1,undefined,Math.min(1,pixel.fuel/9));