mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 20:55:52 +12:00
make hands calculations more accurate to swf
This commit is contained in:
parent
d5762c3b07
commit
be88fc102c
3 changed files with 10 additions and 7 deletions
|
@ -515,13 +515,16 @@ namespace HISP.Game.Horse
|
|||
int i = GameServer.RandomNumberGenerator.Next(indx, max);
|
||||
return HorseNames[i];
|
||||
}
|
||||
public static double CalculateHands(int height)
|
||||
public static double CalculateHands(int height, bool isBreedViewer)
|
||||
{
|
||||
return ((double)height / 4.0);
|
||||
if(isBreedViewer)
|
||||
return ((double)height / 4.00);
|
||||
else
|
||||
return ((double)height / 4.08);
|
||||
}
|
||||
public static string BreedViewerSwf(HorseInstance horse, string terrainTileType)
|
||||
{
|
||||
double hands = CalculateHands(horse.AdvancedStats.Height);
|
||||
double hands = CalculateHands(horse.AdvancedStats.Height, true);
|
||||
|
||||
string swf = "breedviewer.swf?terrain=" + terrainTileType + "&breed=" + horse.Breed.Swf + "&color=" + horse.Color + "&hands=" + hands.ToString();
|
||||
if (horse.Equipment.Saddle != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue