diff --git a/LarkatorGUI/ArkReader.cs b/LarkatorGUI/ArkReader.cs index ce2a940..e7d8a3d 100644 --- a/LarkatorGUI/ArkReader.cs +++ b/LarkatorGUI/ArkReader.cs @@ -130,8 +130,8 @@ private Dino ConvertCreature(GameObject obj) var defaultValue = new ArkByteValue(0); dino.WildLevels.Health = status.GetPropertyValue("NumberOfLevelUpPointsApplied", 0, defaultValue).ByteValue; dino.WildLevels.Stamina = status.GetPropertyValue("NumberOfLevelUpPointsApplied", 1, defaultValue).ByteValue; - dino.WildLevels.Oxygen = status.GetPropertyValue("NumberOfLevelUpPointsApplied", 2, defaultValue).ByteValue; - dino.WildLevels.Food = status.GetPropertyValue("NumberOfLevelUpPointsApplied", 3, defaultValue).ByteValue; + dino.WildLevels.Oxygen = status.GetPropertyValue("NumberOfLevelUpPointsApplied", 3, defaultValue).ByteValue; + dino.WildLevels.Food = status.GetPropertyValue("NumberOfLevelUpPointsApplied", 4, defaultValue).ByteValue; dino.WildLevels.Weight = status.GetPropertyValue("NumberOfLevelUpPointsApplied", 7, defaultValue).ByteValue; dino.WildLevels.Melee = status.GetPropertyValue("NumberOfLevelUpPointsApplied", 8, defaultValue).ByteValue; dino.WildLevels.Speed = status.GetPropertyValue("NumberOfLevelUpPointsApplied", 9, defaultValue).ByteValue; diff --git a/LarkatorGUI/Converters.cs b/LarkatorGUI/Converters.cs index ce2745e..cbf1d4c 100644 --- a/LarkatorGUI/Converters.cs +++ b/LarkatorGUI/Converters.cs @@ -132,7 +132,8 @@ public class DinoToTooltipConverter : IValueConverter public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var v = (Dino)value; - return $"{(String.IsNullOrWhiteSpace(v.Name) ? "" : "\"" + v.Name + "\" ")}{v.Type} {(v.Female ? 'F' : 'M')}{v.BaseLevel} @ {v.Location.ToString(PositionFormat.LatLong)} ({v.Location.ToString(PositionFormat.XYZ)})"; + StatPoints temp = v.WildLevels; + return $"{(String.IsNullOrWhiteSpace(v.Name) ? "" : "\"" + v.Name + "\" ")}{v.Type} {(v.Female ? 'F' : 'M')}{v.BaseLevel} @ {v.Location.ToString(PositionFormat.LatLong)} ({v.Location.ToString(PositionFormat.XYZ)}) ({temp})"; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)