Skip to content

Commit

Permalink
Merge pull request #22 from Karlovsky120/Bug-Fixes-0.16.3.1
Browse files Browse the repository at this point in the history
Bugfixes 0.16.3.1
  • Loading branch information
Keith Smith authored Jul 16, 2017
2 parents e272626 + 3894f7e commit 7745fe4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions 7DaysProfileEditor/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.16.3.0")]
[assembly: AssemblyFileVersion("0.16.3.0")]
[assembly: AssemblyVersion("0.16.3.1")]
[assembly: AssemblyFileVersion("0.16.3.1")]
6 changes: 3 additions & 3 deletions 7DaysProfileEditor/version.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>0.16.3.0</version>
<url>https://github.com/Karlovsky120/7DaysProfileEditor/releases/download/0.16.3.0/7DaysProfileEditor.exe</url>
<changelog>https://github.com/Karlovsky120/7DaysProfileEditor/releases/tag/0.16.3.0</changelog>
<version>0.16.3.1</version>
<url>https://github.com/Karlovsky120/7DaysProfileEditor/releases/download/0.16.3.1/7DaysProfileEditor.exe</url>
<changelog></changelog>
<mandatory>false</mandatory>
</item>
12 changes: 12 additions & 0 deletions 7DaysSaveManipulator/source/PlayerData/Quest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public class Quest {
//ID
public string id;

//CurrentQuestVersion
public Value<byte> CurrentPhase;

//Q
public Value<bool> isTracked;

Expand All @@ -47,6 +50,10 @@ public void Read(BinaryReader reader) {
isTracked = new Value<bool>(reader.ReadBoolean());
finishTime = new Value<ulong>(reader.ReadUInt64());

//Issue 21, A16 added Current Phase.
if (this.currentFileVersion.Get() > 1) {
this.CurrentPhase = new Value<byte>(reader.ReadByte());
}
//num
int objectiveCount = reader.ReadByte();
for (int i = 0; i < objectiveCount; i++) {
Expand Down Expand Up @@ -77,6 +84,11 @@ public void Write(BinaryWriter writer) {
writer.Write(isTracked.Get());
writer.Write(finishTime.Get());

//Issue 21, A16 added Current Phase.
if (this.currentFileVersion.Get() > 1) {
writer.Write(CurrentPhase.Get());
}

writer.Write((byte)objectives.Count);
for (int i = 0; i < objectives.Count; i++) {
objectives[i].Write(writer);
Expand Down

0 comments on commit 7745fe4

Please sign in to comment.