/// <summary> /// Finds the player's item from its inventory. /// </summary> /// <param Name="type">Type of item being found</param> /// <returns>The item in the player's inventory</returns> public PvPItem FindPlayerItem(int type) => PvPUtils.ConvertToPvPItem(TPlayer.inventory[TPlayer.FindItem(type)]);
/// <summary> /// Finds the player's item from its inventory. /// </summary> public PvPItem FindPlayerItem(int type) => TPlayer.FindItem(type) != -1 ? PvPUtils.ConvertToPvPItem(TPlayer.inventory[TPlayer.FindItem(type)]) : new PvPItem(type) { owner = Index };
/// <summary> /// Finds the player's item from its inventory. /// </summary> public PvPItem FindPlayerItem(int type) => TPlayer.FindItem(type) != -1 ? PvPUtils.ConvertToPvPItem(TPlayer.inventory[TPlayer.FindItem(type)]) : new PvPItem(type) { playerIndexTheItemIsReservedFor = Index };