idk
This commit is contained in:
@@ -19,8 +19,14 @@ public partial class Armor : InventoryItem
|
||||
Pickup.BodyEntered += OnEntered;
|
||||
}
|
||||
|
||||
public void OnEntered(Node3D body)
|
||||
public void OnEntered(Node body)
|
||||
{
|
||||
if (GameRepo.InventoryItems.Value.Count() >= GameRepo.MaxItemSize)
|
||||
{
|
||||
AnimationPlayer.Play("drop");
|
||||
return;
|
||||
}
|
||||
|
||||
var inventoryList = GameRepo.InventoryItems.Value.Append(this).ToList();
|
||||
GameRepo.InventoryItems.OnNext(inventoryList);
|
||||
QueueFree();
|
||||
|
||||
Reference in New Issue
Block a user