Add Pokémon Infinity money and debug-mode helpers.
These scripts edit Essentials save money offline and toggle the in-game debug menu so pokeball shopping does not require manual save hex editing.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Quick money edit for Pokémon Infinity save files.
|
||||
|
||||
.DESCRIPTION
|
||||
Wrapper around scripts/infinity-money-trainer.py. Close the game first.
|
||||
|
||||
.EXAMPLE
|
||||
.\infinity-money.ps1
|
||||
.\infinity-money.ps1 -Amount 500000
|
||||
.\infinity-money.ps1 -Show
|
||||
#>
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[int]$Amount = 999999,
|
||||
[string]$Slot,
|
||||
[switch]$Show,
|
||||
[string]$SaveDir
|
||||
)
|
||||
|
||||
$script = Join-Path $PSScriptRoot 'infinity-money-trainer.py'
|
||||
if (-not (Test-Path -LiteralPath $script)) {
|
||||
throw "Missing trainer script: $script"
|
||||
}
|
||||
|
||||
$args = @($script)
|
||||
if ($SaveDir) { $args += @('--save-dir', $SaveDir) }
|
||||
|
||||
if ($Show) {
|
||||
$args += 'show'
|
||||
} else {
|
||||
$args += @('set', [string]$Amount)
|
||||
if ($Slot) { $args += @('--slot', $Slot) }
|
||||
}
|
||||
|
||||
Write-Host "Pokémon Infinity money trainer" -ForegroundColor Cyan
|
||||
Write-Host "Close the game before continuing." -ForegroundColor Yellow
|
||||
python @args
|
||||
Reference in New Issue
Block a user