diff options
author | HoraK-FDF <horak-fdf@web.de> | 2023-04-14 17:02:36 +0000 |
---|---|---|
committer | Led Mitz <smoothshifter@tuta.io> | 2023-04-14 17:02:36 +0000 |
commit | 34c8f9d0c646de4c71d8689f16849bf49635f6f0 (patch) | |
tree | f66486c62ff6435eaf7d3a85a78a79505803dfea | |
parent | 44536183f98feaa25df6c4e8813950128d60f42b (diff) | |
download | tools-34c8f9d0c646de4c71d8689f16849bf49635f6f0.tar.gz tools-34c8f9d0c646de4c71d8689f16849bf49635f6f0.tar.bz2 tools-34c8f9d0c646de4c71d8689f16849bf49635f6f0.tar.xz tools-34c8f9d0c646de4c71d8689f16849bf49635f6f0.zip |
Evolved.py gender support
-rwxr-xr-x | evolved.py | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -120,6 +120,12 @@ struct Item ast::script::ScriptBody use_script; ast::script::ScriptBody equip_script; }; + +# Gender + SEX_FEMALE: 0 + SEX_MALE: 1 + SEX_ANY: 2 + enum class SEX : uint8_t { FEMALE = 0, @@ -310,6 +316,14 @@ def newItemDB(): #x.sl=sti(a) elif "\tGender:" in a: # allways 2 in tmwa atm x.gender=sti(a) + if x.gender == "SEX_FEMALE" or x.gender == "0": + x.gender="0" + elif x.gender == "SEX_MALE" or x.gender == "1": + x.gender="1" + elif x.gender == "SEX_ANY" or x.gender == "2": + x.gender="2" + else: + x.gender="2" elif "\tSubtype:" in a: x.subtype=sti(a) elif "\tDisabled: true" in a: |