Highlight required units on sortie minimap
This commit is contained in:
@@ -13247,9 +13247,10 @@ export class CampScene extends Phaser.Scene {
|
||||
deploymentPlan.forEach((entry) => {
|
||||
const dotX = originX + (entry.x + 0.5) * cell;
|
||||
const dotY = originY + (entry.y + 0.5) * cell;
|
||||
const dot = this.trackSortie(this.add.circle(dotX, dotY, entry.unitId === 'liu-bei' ? 4.2 : 3.7, this.sortieRoleDotColor(entry.role), 0.96));
|
||||
const required = entry.unitId ? this.isRequiredSortieUnit(entry.unitId, scenario) : false;
|
||||
const dot = this.trackSortie(this.add.circle(dotX, dotY, required ? 4.2 : 3.7, this.sortieRoleDotColor(entry.role), 0.96));
|
||||
dot.setDepth(depth + 3);
|
||||
dot.setStrokeStyle(1, 0x05070a, 0.82);
|
||||
dot.setStrokeStyle(required ? 1.6 : 1, required ? palette.gold : 0x05070a, required ? 0.92 : 0.82);
|
||||
});
|
||||
|
||||
const legend = [
|
||||
|
||||
Reference in New Issue
Block a user