mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-06 13:15:42 +12:00
Fix training
This commit is contained in:
parent
951ca83bed
commit
485890c0c8
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue