Skip to content

Commit

Permalink
Save Intelligence2 for male characters
Browse files Browse the repository at this point in the history
Fixes hozuki#1

Thanks DawidKorach for the tip.
  • Loading branch information
Splendide-Imaginarius committed Dec 23, 2022
1 parent 2071252 commit 29767ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ public void SetPercentage([NotNull] string key, int value) {
[CanBeNull]
public byte[] Unknown3 { get; internal set; }

// Intelligence field for females. Do not read from Parameters.
[CanBeNull]
public int? Intelligence2 { get; internal set; }

Expand Down
5 changes: 3 additions & 2 deletions KoikatuGameSaveEditor.Entities/Entities/MaleCharacter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ internal MaleCharacter([NotNull] KkCharacter character)
public override Gender Gender => Gender.Male;

// 0 to 100
// WTF not Intelligence?
public int Intelligence {
get => InternalCharacter.Intellect ?? 0;
set => InternalCharacter.Intellect = value;
get => InternalCharacter.Intelligence2 ?? 0;
set => InternalCharacter.Intelligence2 = value;
}

// 0 to 100
Expand Down

0 comments on commit 29767ea

Please sign in to comment.