Redraw battle unit sprites with new style
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user