Skip to content

Commit

Permalink
Updated check for in-battle row data. Fixes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Shojy committed Oct 10, 2018
1 parent d32267a commit 479ed2e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Tseng/Program.cs
Expand Up @@ -99,6 +99,7 @@ public static Status ExtractStatusFromMap(FF7SaveMap map, FF7BattleMap battleMap
chr.MaxMp = party[i].MaxMp;
chr.Level = party[i].Level;
effect = party[i].Status;
chr.BackRow = party[i].IsBackRow;
}


Expand Down Expand Up @@ -359,7 +360,8 @@ public struct Actor
public short CurrentMp { get; set; } // 0x28
public short MaxMp { get; set; } // 0x2A
public byte Level { get; set; } // 0x09
public StatusEffect Status { get; set; } // 0x??
public StatusEffect Status { get; set; } // 0x00
public bool IsBackRow { get; set; } //0x03

}

Expand All @@ -380,7 +382,8 @@ private Actor[] GetActors(int start, int count)
CurrentMp = BitConverter.ToInt16(_map, offset + 0x28),
MaxMp = BitConverter.ToInt16(_map, offset + 0x2A),
Level = _map[offset+0x09],
Status = (StatusEffect)BitConverter.ToUInt32(_map, offset + 0x00)
Status = (StatusEffect)BitConverter.ToUInt32(_map, offset + 0x00),
IsBackRow = (_map[offset + 0x04] & 0x40) == 0x40
};
acts[i] = a;
}
Expand Down

0 comments on commit 479ed2e

Please sign in to comment.