Merge branch 'general-devel' into otapi3

This commit is contained in:
Lucas Nicodemus 2021-12-08 22:55:11 -08:00
commit dfaad68106
3 changed files with 22 additions and 2 deletions

View file

@ -897,6 +897,18 @@ namespace TShockAPI
}
}
/// <summary>
/// Gets the player's inventory (first 5 rows)
/// </summary>
public IEnumerable<Item> Inventory
{
get
{
for (int i = 0; i < 50; i++)
yield return TPlayer.inventory[i];
}
}
/// <summary>
/// Gets the player's accessories.
/// </summary>