Skip to content

Commit

Permalink
parse new conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
iBowie committed Feb 7, 2021
1 parent 4d87098 commit 237f54d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions BowieD.Unturned.NPCMaker/Parsing/ParseTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,20 @@ private Condition[] ParseConditions(string prefix, string postfix = "Condition_"
Value = asset.ReadInt16(tp + "Value")
};
break;
case Condition_Type.Weather_Blend_Alpha:
c[num] = new ConditionWeatherBlendAlpha()
{
GUID = asset.ReadString(tp + "GUID"),
Value = asset.ReadSingle(tp + "Value")
};
break;
case Condition_Type.Weather_Status:
c[num] = new ConditionWeatherStatus()
{
GUID = asset.ReadString(tp + "GUID"),
Value = asset.ReadEnum(tp + "Value", ENPCWeatherStatus.Active)
};
break;
}
c[num].Localization = desc ?? "";
c[num].Reset = needToReset;
Expand Down
4 changes: 2 additions & 2 deletions BowieD.Unturned.NPCMaker/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
[assembly: AssemblyVersion("1.15.1.2")]
[assembly: AssemblyFileVersion("1.15.1.2")]
[assembly: AssemblyVersion("1.15.1.3")]
[assembly: AssemblyFileVersion("1.15.1.3")]
[assembly: NeutralResourcesLanguage("en-US")]

0 comments on commit 237f54d

Please sign in to comment.