Refresh early unit sprite samples
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 992 KiB |
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 1.7 MiB |
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1020 KiB |
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.3 MiB |
@@ -965,7 +965,7 @@ const signatureUnitTextureIds = new Set([
|
|||||||
'dingjun-officer-wang-ping'
|
'dingjun-officer-wang-ping'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const earlyRebelTexturePrefixes = ['rebel-', 'pursuit-'];
|
const earlyRebelTexturePrefixes = ['rebel-', 'pursuit-', 'guangzong-'];
|
||||||
|
|
||||||
const wuTexturePrefixes = [
|
const wuTexturePrefixes = [
|
||||||
'jing-defense-wu-',
|
'jing-defense-wu-',
|
||||||
@@ -9023,6 +9023,11 @@ export class BattleScene extends Phaser.Scene {
|
|||||||
return signatureTexture;
|
return signatureTexture;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const earlyRebelTexture = this.earlyRebelTextureKey(unit);
|
||||||
|
if (earlyRebelTexture) {
|
||||||
|
return earlyRebelTexture;
|
||||||
|
}
|
||||||
|
|
||||||
const factionTexture = this.unitFactionTextureKey(unit);
|
const factionTexture = this.unitFactionTextureKey(unit);
|
||||||
if (factionTexture) {
|
if (factionTexture) {
|
||||||
return factionTexture;
|
return factionTexture;
|
||||||
@@ -9058,6 +9063,14 @@ export class BattleScene extends Phaser.Scene {
|
|||||||
return this.resolveUnitTextureVariant(unitTexture[unit.id] ?? unitTextureByClass[unit.classKey] ?? 'unit-rebel', unit.id);
|
return this.resolveUnitTextureVariant(unitTexture[unit.id] ?? unitTextureByClass[unit.classKey] ?? 'unit-rebel', unit.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private earlyRebelTextureKey(unit: UnitData) {
|
||||||
|
if (unit.faction !== 'enemy' || !earlyRebelTexturePrefixes.some((prefix) => unit.id.startsWith(prefix))) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
return unitTexture[unit.id] ?? unitTextureByClass[unit.classKey] ?? 'unit-rebel';
|
||||||
|
}
|
||||||
|
|
||||||
private signatureUnitTextureKey(unit: UnitData) {
|
private signatureUnitTextureKey(unit: UnitData) {
|
||||||
if (unit.id.includes('sima-yi') || unit.name === '사마의') {
|
if (unit.id.includes('sima-yi') || unit.name === '사마의') {
|
||||||
return 'unit-sima-yi';
|
return 'unit-sima-yi';
|
||||||
|
|||||||