Show unit portraits in battle HUD
This commit is contained in:
@@ -430,6 +430,9 @@ function Check-Deployment($Deployment, [string]$ScenarioId, [int]$Width, [int]$H
|
||||
if (-not [string]::IsNullOrWhiteSpace($officerId) -and (-not $officerIds.Contains($officerId))) {
|
||||
Fail "Scenario $ScenarioId deployment $unitId references unknown officer: $officerId"
|
||||
}
|
||||
if (Has-Prop $Deployment "portrait") {
|
||||
Check-Portrait-Path (Get-Prop $Deployment "portrait" "") "Scenario $ScenarioId deployment $unitId portrait"
|
||||
}
|
||||
if (Has-Prop $Deployment "requires_joined") {
|
||||
if (-not ((Get-Prop $Deployment "requires_joined" $false) -is [bool])) {
|
||||
Fail "Scenario $ScenarioId deployment $unitId requires_joined must be boolean."
|
||||
|
||||
Reference in New Issue
Block a user