mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 13:45:42 +12:00
Block lease horses being traded.
This commit is contained in:
parent
ee3fc56839
commit
720cbd516c
1 changed files with 3 additions and 0 deletions
|
@ -414,6 +414,9 @@ namespace HISP.Game
|
|||
message += Messages.TradeOfferHorse;
|
||||
foreach(HorseInstance horse in trade.Trader.HorseInventory.HorseList)
|
||||
{
|
||||
if (horse.Leaser > 0)
|
||||
continue;
|
||||
|
||||
bool tacked = (horse.Equipment.Saddle != null || horse.Equipment.SaddlePad != null || horse.Equipment.Bridle != null || horse.Equipment.Companion != null);
|
||||
message += Messages.FormatTradeOfferHorse(horse.Name, tacked, horse.RandomId);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue