Created
July 28, 2026 03:08
-
-
Save DamianDominoDavis/4828d9d0fd5febac12f36cdc6216aa4e to your computer and use it in GitHub Desktop.
kolmafia snippet to identify incomplete outfits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| boolean[string] zero,some,all; | |
| foreach _,o in all_normal_outfits() { | |
| int i = 0; | |
| foreach _,k in outfit_pieces(o) | |
| if (available_amount(k) > 0) i++; | |
| int lim = outfit_pieces(o).count(); | |
| switch (i) { | |
| case (0): zero[o] = true; break; | |
| case (lim): all[o] = true; break; | |
| default: some[o] = true; | |
| } | |
| } | |
| foreach o in some { | |
| int i = 0; | |
| foreach _,k in outfit_pieces(o) | |
| if (available_amount(k) > 0) i++; | |
| print(`{o}: {i}/{outfit_pieces(o).count()}`); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment