Skip to content

Commit

Permalink
Revert "update with game code"
Browse files Browse the repository at this point in the history
This reverts commit 86f121d.
  • Loading branch information
ced777ric committed Jul 14, 2024
1 parent ea0fb76 commit 5cc74bc
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions NwPluginAPI/Core/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ public string RoleName
/// </summary>
[Obsolete("Use UnitId instead of UnitName, this method will return null", true)]
public string UnitName => null;

/// <summary>
/// Gets the player unit Id, -1 if unset
/// </summary>
Expand Down Expand Up @@ -1124,15 +1124,7 @@ public void IntercomUnmute(bool revokeMute)
/// </summary>
/// <param name="item">ItemType</param>
/// <returns>Returns the added item.</returns>
public ItemBase AddItem(ItemType item) => ReferenceHub.inventory.ServerAddItem(item, ItemAddReason.Undefined);

/// <summary>
/// Adds an Item of specific item type.
/// </summary>
/// <param name="item">ItemType</param>
/// <param name="reason">ItemAddReason</param>
/// <returns>Returns the added item.</returns>
public ItemBase AddItem(ItemType item, ItemAddReason reason) => ReferenceHub.inventory.ServerAddItem(item, reason);
public ItemBase AddItem(ItemType item) => ReferenceHub.inventory.ServerAddItem(item);

/// <summary>
/// Removes an specific item.
Expand Down

0 comments on commit 5cc74bc

Please sign in to comment.