10 lines
533 B
Plaintext
10 lines
533 B
Plaintext
struct ItemCost # All definitions here are intended to be overriden in code, but provide correctly-sized stubs for programs that don't care
|
|
u1 is_sellable
|
|
u1 is_sellprice_5gil
|
|
u6 exponent
|
|
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)
|
|
|
|
struct EquipStatBonus
|
|
u1 is_stat_bonus # 0 -> data is elemental bonus bitfield; 1 -> 4bit toggle fields for affected stats, 3bit selector of bonus enum
|
|
u7 data # Meaning changes based on is_stat_bonus
|