Fix hands

This commit is contained in:
Bluzume 2021-11-28 22:56:55 -05:00
parent 9ab8d071d9
commit 46d70a6fac
2 changed files with 2 additions and 2 deletions

View file

@ -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());
}

View file

@ -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)