Redraw battle unit sprites with new style

This commit is contained in:
2026-06-29 00:07:27 +09:00
parent 501a97706f
commit cd4102a7c2
186 changed files with 630 additions and 25 deletions

View File

@@ -3199,7 +3199,6 @@ export class BattleScene extends Phaser.Scene {
baseScaleY: sprite.scaleY
};
this.unitViews.set(unit.id, view);
this.applyUnitTone(view);
this.syncUnitMotion(unit, view);
});
}
@@ -8618,7 +8617,6 @@ export class BattleScene extends Phaser.Scene {
return;
}
view.sprite.postFX.clear();
this.applyUnitTone(view);
view.sprite.clearTint();
view.sprite.setAlpha(1);
if (unit) {
@@ -9145,13 +9143,6 @@ export class BattleScene extends Phaser.Scene {
});
}
private applyUnitTone(view: UnitView) {
const tone = view.sprite.postFX.addColorMatrix();
tone.saturate(-0.32);
tone.contrast(0.03, true);
tone.brightness(0.97, true);
}
private isMountedUnit(unit: UnitData) {
return unit.classKey === 'cavalry';
}
@@ -9337,7 +9328,6 @@ export class BattleScene extends Phaser.Scene {
}
view.sprite.postFX.clear();
this.applyUnitTone(view);
view.sprite.clearTint();
view.sprite.setAlpha(1);
this.syncUnitMotion(unit, view);