UNIS
Unit settings for the original game. For each unit type that does not use the game's own
values: hit points, shields, armour, build time, costs, name and weapon damage. Brood War
reads UNIx instead.
| Name | UNIS (55 4E 49 53) |
|---|---|
| Size | 4048 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 × 228 | Per unit type: 1 to use the game's own values and ignore the rest of this section |
| 228 | u32 × 228 | Hit points × 256 |
| 1140 | u16 × 228 | Shields |
| 1596 | u8 × 228 | Armour |
| 1824 | u16 × 228 | Build time, in game frames |
| 2280 | u16 × 228 | Mineral cost |
| 2736 | u16 × 228 | Gas cost |
| 3192 | u16 × 228 | Name, a string number; 0 for the default name |
| 3648 | u16 × 100 | Per weapon: base damage |
| 3848 | u16 × 100 | Per weapon: damage added by each upgrade level |