Skip to content

Commit d0e6732

Browse files
authored
Fix PlyRom structure (#128)
1 parent eff2313 commit d0e6732

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

core/fh/FFX/plyrom.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
namespace Fahrenheit.FFX;
22

3+
[Flags]
4+
public enum PlyGender {
5+
NONE = 0,
6+
MAN = 1,
7+
WOMAN = 2,
8+
AEON = 4,
9+
}
10+
311
/// <summary>
412
/// As the name <c>PlyRom</c> (Player Read-Only Memory) indicates,<br/>
513
/// this struct contains a few constants player characters use.
@@ -15,6 +23,11 @@ public struct PlyRom {
1523
/// </summary>
1624
public ExcelSimplifiableTextOffset scan_text;
1725

26+
/// <summary>
27+
/// The gender of the player: man, woman, or aeon.
28+
/// </summary>
29+
public PlyGender gender;
30+
1831
/// <summary>
1932
/// The cubic multiplier in the formula for the next level requirement.<br/>
2033
/// The formula is ax<sup>3</sup>/100 + bx<sup>2</sup>/10 + c(x + 1),<br/>
@@ -53,5 +66,5 @@ public struct PlyRom {
5366
public byte doom_duration;
5467

5568
// chr.ram.__0x199 is set to this
56-
private byte __0x2B;
69+
public byte __0x2B;
5770
}

0 commit comments

Comments
 (0)