GraylinKim/sc2reader — Issue #42: Fix resource transfer events
Author: GraylinKim
Created: 2012-02-05 22:03:04+00:00
State: open

The multiplier probably needs to be shifted down 4 bits. Thanks @tec27.

```python
def read_resource(buffer):
block = buffer.read_int(BIG_ENDIAN)
base, multiplier, extension = block >> 8, (block & 0xF0) >> 4, block & 0x0F
return base*multiplier+extension
```

See: https://github.com/GraylinKim/sc2reader/blob/new_data/sc2reader/readers.py#L382