make hands calculations more accurate to swf

This commit is contained in:
SilicaAndPina 2021-02-06 20:09:16 +13:00
parent d5762c3b07
commit be88fc102c
3 changed files with 10 additions and 7 deletions

View file

@ -877,9 +877,9 @@ namespace HISP.Game
{
return HorseDescriptionFormat.Replace("%DESCRIPTION%", Description);
}
public static string FormatHorseHandsHigh(string color, string breed,string sex, int handsHigh)
public static string FormatHorseHandsHigh(string color, string breed,string sex, double handsHigh)
{
return HorseHandsHeightFormat.Replace("%COLOR%", color).Replace("%SEX%", sex).Replace("%HANDS%", handsHigh.ToString()).Replace("%BREED%", breed);
return HorseHandsHeightFormat.Replace("%COLOR%", color).Replace("%SEX%", sex).Replace("%HANDS%", handsHigh.ToString("0.0")).Replace("%BREED%", breed);
}
public static string FormatHorseExperience(int experience)
{