From 46d70a6facff88723deb3c773369a88ca249a146 Mon Sep 17 00:00:00 2001 From: Bluzume <39113159+KuromeSan@users.noreply.github.com> Date: Sun, 28 Nov 2021 22:56:55 -0500 Subject: [PATCH] Fix hands --- HorseIsleServer/HorseIsleServer/Game/Messages.cs | 2 +- HorseIsleServer/HorseIsleServer/Game/Meta.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HorseIsleServer/HorseIsleServer/Game/Messages.cs b/HorseIsleServer/HorseIsleServer/Game/Messages.cs index ca8b6f8..9e823ef 100644 --- a/HorseIsleServer/HorseIsleServer/Game/Messages.cs +++ b/HorseIsleServer/HorseIsleServer/Game/Messages.cs @@ -2333,7 +2333,7 @@ namespace HISP.Game { return HorseBreedDetailsFormat.Replace("%BREED%", breedName).Replace("%DESCRIPTION%", description); } - public static string FormatHorseHeight(int minHeight, int maxHeight) + public static string FormatHorseHeight(double minHeight, double maxHeight) { return HorseHeightRangeFormat.Replace("%MIN%", minHeight.ToString()).Replace("%MAX%", maxHeight.ToString()); } diff --git a/HorseIsleServer/HorseIsleServer/Game/Meta.cs b/HorseIsleServer/HorseIsleServer/Game/Meta.cs index b0b6a74..7fade56 100644 --- a/HorseIsleServer/HorseIsleServer/Game/Meta.cs +++ b/HorseIsleServer/HorseIsleServer/Game/Meta.cs @@ -2424,7 +2424,7 @@ namespace HISP.Game message += Messages.FormatHorseAdvancedStat(personalityStat.BreedValue, personalityStat.CompanionOffset, personalityStat.TackOffset, personalityStat.MaxValue); message += Messages.FormatHorseBreedDetails(horse.Breed.Name, horse.Breed.Description); - message += Messages.FormatHorseHeight(Convert.ToInt32(Math.Floor(HorseInfo.CalculateHands(horse.Breed.BaseStats.MinHeight,false))), Convert.ToInt32(Math.Floor(HorseInfo.CalculateHands(horse.Breed.BaseStats.MaxHeight,false)))); + message += Messages.FormatHorseHeight(HorseInfo.CalculateHands(horse.Breed.BaseStats.MinHeight, false), HorseInfo.CalculateHands(horse.Breed.BaseStats.MaxHeight, false)); message += Messages.FormatPossibleColors(horse.Breed.Colors); if (horse.Leaser == 0)