Fix training

This commit is contained in:
Bluzume 2021-11-10 00:05:57 -05:00
parent 951ca83bed
commit 485890c0c8
2 changed files with 3 additions and 3 deletions

View file

@ -251,7 +251,7 @@ namespace HISP.Game.Horse
set
{
if (value > ((baseHorse.Breed.BaseStats.Speed * 2) - baseHorse.Breed.BaseStats.Speed))
value = (baseHorse.Breed.BaseStats.Speed - baseHorse.Breed.BaseStats.Speed * 2);
value = ((baseHorse.Breed.BaseStats.Speed * 2) - baseHorse.Breed.BaseStats.Speed);
Database.SetHorseSpeed(baseHorse.RandomId, value);
speed = value;
}
@ -265,7 +265,7 @@ namespace HISP.Game.Horse
}
set
{
if (value > ((baseHorse.Breed.BaseStats.Strength * 2)- baseHorse.Breed.BaseStats.Strength))
if (value > ((baseHorse.Breed.BaseStats.Strength * 2) - baseHorse.Breed.BaseStats.Strength))
value = ((baseHorse.Breed.BaseStats.Strength * 2) - baseHorse.Breed.BaseStats.Strength);
Database.SetHorseStrength(baseHorse.RandomId, value);
strength = value;

View file

@ -2701,7 +2701,7 @@ namespace HISP.Game
break;
}
if(statCalculator.BreedValue < statCalculator.MaxValue)
if((statCalculator.BreedValue + trainer.ImprovesAmount) < statCalculator.MaxValue)
message += Messages.FormatTrainerTrainInEntry(horse.Name, statCalculator.BreedValue, statCalculator.MaxValue, horse.RandomId);
else
message += Messages.FormatTrainerFullyTrained(horse.Name, statCalculator.BreedValue);