Implement 32x32 BFS visitor navigation and daily contracts system with companion .npc journals; add native assembly scenes for Clover slots, Pyramid cards, Blackjack Party and Russian Party; package animation and sprite packs; add comprehensive offline test suites and rebuild shipping binaries.
21 lines
1.3 KiB
PowerShell
21 lines
1.3 KiB
PowerShell
param([string]$MasmRoot = 'F:\MASM32\masm32')
|
|
$ErrorActionPreference = 'Stop'
|
|
$root = (Resolve-Path (Join-Path $PSScriptRoot '..\..')).Path
|
|
Push-Location $root
|
|
try {
|
|
& "$MasmRoot\bin\ml.exe" /c /coff /Cp /nologo /Fobuild\actions\npc-life-probe.obj tools\tests\npc_life_probe.asm
|
|
if ($LASTEXITCODE -ne 0) { throw 'NPC probe assembly failed' }
|
|
$sdkRoot = Join-Path ${env:ProgramFiles(x86)} 'Windows Kits\10\Lib'
|
|
$sdk = Get-ChildItem -LiteralPath $sdkRoot -Directory |
|
|
Sort-Object Name -Descending |
|
|
Where-Object { Test-Path -LiteralPath (Join-Path $_.FullName 'um\x86\kernel32.lib') } |
|
|
Select-Object -First 1
|
|
$libraries = @()
|
|
$libraries += '/LIBPATH:' + (Join-Path $sdk.FullName 'um\x86')
|
|
$libraries += "/LIBPATH:$MasmRoot\lib"
|
|
& "$MasmRoot\bin\link.exe" /nologo /SUBSYSTEM:CONSOLE /ENTRY:RunNpcLifeProbe@0 @libraries /OUT:build\actions\npc-life-probe.exe build\actions\npc-life-probe.obj build\actions\actions-test.obj kernel32.lib winmm.lib user32.lib ws2_32.lib gdi32.lib
|
|
if ($LASTEXITCODE -ne 0) { throw 'NPC probe link failed' }
|
|
& .\build\actions\npc-life-probe.exe
|
|
if ($LASTEXITCODE -ne 0) { throw "NPC assertion failed: $LASTEXITCODE" }
|
|
Write-Output 'PASS: native NPC navigation, rate invariance, profiles, progress, rewards and graphical dialog controls'
|
|
} finally { Pop-Location }
|