533 B
533 B
1 | struct | ItemCost | # All definitions here are intended to be overriden in code, but provide correctly-sized stubs for programs that don't care |
---|---|---|---|
2 | u8 | mantissa | # buy_price = mantissa * int(pow(10, exponent)); sell_price = -1 if not is_sellable else (5 if is_sellprice_5gil else buy_price/2) |
3 | u1 | is_stat_bonus | # 0 -> data is elemental bonus bitfield; 1 -> 4bit toggle fields for affected stats, 3bit selector of bonus enum |
4 | u7 | data | # Meaning changes based on is_stat_bonus |