diff --git a/apps/web/public/images/combat/icons/raider-captain-128.png b/apps/web/public/images/combat/icons/raider-captain-128.png index 24d8d00..cbcaad5 100644 Binary files a/apps/web/public/images/combat/icons/raider-captain-128.png and b/apps/web/public/images/combat/icons/raider-captain-128.png differ diff --git a/tools/derive-monster-assets.ps1 b/tools/derive-monster-assets.ps1 index b989941..9fcc26a 100644 --- a/tools/derive-monster-assets.ps1 +++ b/tools/derive-monster-assets.ps1 @@ -126,15 +126,23 @@ foreach ($monster in $monsters) { -TargetPath (Join-Path $webImages "combat\sprites\$key-$($monster.spriteHeight).png") ` -TargetWidth $monster.spriteHeight -Format 'png' - Save-Icon -SourcePath $cutout ` - -TargetPath (Join-Path $webImages "combat\icons\$key-128.png") ` - -CropX $monster.cropX -CropY $monster.cropY -CropSize $monster.cropSize + # The Raider Captain's icon comes from hand-made art below, not a generated + # crop of the body art, so skip the crop step for that key here. + if ($key -ne 'raider-captain') { + Save-Icon -SourcePath $cutout ` + -TargetPath (Join-Path $webImages "combat\icons\$key-128.png") ` + -CropX $monster.cropX -CropY $monster.cropY -CropSize $monster.cropSize + } } -# The Raider Captain has a hand-made icon. Authored art beats a crop. -Copy-Item -Force (Join-Path $artEnemies 'PluendererhauptmannIcon.png') ` - (Join-Path $webImages 'combat\icons\raider-captain-128.png') -Write-Host 'wrote raider-captain-128.png (hand-made)' +# The Raider Captain has a hand-made icon. Authored art beats a generated +# crop, but it still has to ship at icon size: resize the 1254x1254 source +# down to 128x128 rather than copying it verbatim. It's already a square +# portrait, so a straight bicubic resize preserves the authored composition +# with no re-cropping. +Save-Scaled -SourcePath (Join-Path $artEnemies 'PluendererhauptmannIcon.png') ` + -TargetPath (Join-Path $webImages 'combat\icons\raider-captain-128.png') ` + -TargetWidth 128 -Format 'png' foreach ($background in 'Wachturm', 'Aschengrube') { $source = Join-Path $artBackgrounds "$background.png"