scmJS docs

UPGx

UPGS for Brood War: the same tables for 61 upgrades, with one unused byte after the first column.

Name UPGx (55 50 47 78)
Size 794 bytes.
Read by The game, at the start of a Use Map Settings game, in a file of any revision.
Required For Use Map Settings in a Brood War file (VER 205, or Remastered's 206). In a VER 59, 63 or 64 file it is optional, and read after the original table when present.
The game accepts Exactly 794 bytes. Any other length refuses the map.
More than one copy Combined entry by entry: a copy changes only the entries it marks as not using the game's own values, and every other entry keeps what an earlier copy gave it.
In scmJS Read, and written again when you change what it holds.

Layout:

Offset Type Holds
0 u8 × 61 Per upgrade: 0 to use this section's values; anything else for the game's own
61 u8 Unused
62 u16 × 61 Mineral cost of the first level
184 u16 × 61 Minerals added for each further level
306 u16 × 61 Gas cost of the first level
428 u16 × 61 Gas added for each further level
550 u16 × 61 Research time of the first level, in game frames
672 u16 × 61 Time added for each further level