scmJS docs

UPGS

Upgrade costs and research times for the 46 upgrades of the original game. Each upgrade has a cost for its first level and an amount added for each level after. Brood War reads UPGx instead.

Name UPGS (55 50 47 53)
Size 598 bytes.
Read by The game.
Required In a StarCraft 1.00 or hybrid file (VER below 205).
More than one copy Only the last copy counts.
In scmJS Read, and written again when you change what it holds.

Layout:

Offset Type Holds
0 u8 × 46 Per upgrade: 1 to use the game's own values
46 u16 × 46 Mineral cost of the first level
138 u16 × 46 Minerals added for each further level
230 u16 × 46 Gas cost of the first level
322 u16 × 46 Gas added for each further level
414 u16 × 46 Research time of the first level, in game frames
506 u16 × 46 Time added for each further level