pokerogue/scripts/asset-tooling/update-exp-sprites.ps1
Sirz Benjie 6766940fa1
[Misc] Make the repo REUSE compliant (#6474)
* Add license information

* Add reuse lint workflow

* Add snippets for spdx

* fix: minor wording adjustments and typo fixes

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* chore: add FileContributor attributions for Bertie

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>

* begin licensing some audio assets

* Add pokemon reborn sound affect attribution

* Annotate Leavannite's section

* Add more licensing info

* Add license info to license files ._.

* Move ps1 files out of public

* Add license for animation jsons

* Add license for bat scripts in public

* Update licensing in scripts

* Fix typo in license ref

* Fix AGPL-3.0-or-later

* Add license info to typedoc.config.js

* Add MIT license for snippets

* chore: update license info for files in scripts

* chore: update license info

* chore: update license info

* chore: update license info

* Remove licenses used only by public before linting with reuse

* Add license info to new files added by docker PR

* chore: apply biome

* fix: add back linting workflow lost during merge

* Add attribution based on Hanniel's information

* Add attribution based on Officer Porkchop and Green Ninja's information

* add attribution to unicorn_power for reshiram/zekrom/kyurem epic variant

* Fixup minor typo

* Adjust sprite test to not think REUSE.toml is a sprite json

* Add missing continue-on-error to workflow

* fix: address kev's comments from code review

* docs: minor touchups

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-09-23 08:49:03 -05:00

29 lines
873 B
PowerShell

# SPDX-FileCopyrightText: 2024-2025 Pagefault Games
# SPDX-FileContributor: FlashfyreDev
#
# SPDX-License-Identifier: AGPL-3.0-only
[string[]] $keys = @()
Get-ChildItem -Path '.\public\images\pokemon' -Recurse -Directory | Where-Object { $_.Name -eq 'exp' } | ForEach-Object {
Get-ChildItem -Path $_.FullName -Recurse -File | ForEach-Object {
$attr = ""
if ($_.FullName.Contains('\shiny\')) {
$attr += "s"
}
if ($_.FullName.Contains("\back\")) {
$attr += "b"
}
if ($_.FullName.Contains("\female\")) {
$attr += "f"
}
$keyParts = $_.BaseName.Split("-")
$key = $keyParts[0] + $attr
if ($keyParts[1]) {
$key += "-" + $keyParts[1]
}
$keys += $key
}
}
$keys | ConvertTo-Json | Out-File -encoding ASCII .\public\exp-sprites.json