From c905ac69f812e3e57774f0300d471ee96ec8b0c7 Mon Sep 17 00:00:00 2001 From: Ny Bruker <robinhs@stud.ntnu.no> Date: Sat, 1 Oct 2022 15:06:23 +0200 Subject: [PATCH] Changed some testing code --- MrBigsock/Assets/Code/Item/Inventory.cs | 2 +- MrBigsock/Assets/Code/PlayerController.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MrBigsock/Assets/Code/Item/Inventory.cs b/MrBigsock/Assets/Code/Item/Inventory.cs index 7defaf7e..8a5b3f29 100644 --- a/MrBigsock/Assets/Code/Item/Inventory.cs +++ b/MrBigsock/Assets/Code/Item/Inventory.cs @@ -25,7 +25,7 @@ namespace BigSock.Item { /* The max number of items the inventory can hold. */ - public int Cap { get; set; } = 3; + public int Cap { get; set; } = 10; /* diff --git a/MrBigsock/Assets/Code/PlayerController.cs b/MrBigsock/Assets/Code/PlayerController.cs index 723e6cad..5f1a6a4a 100644 --- a/MrBigsock/Assets/Code/PlayerController.cs +++ b/MrBigsock/Assets/Code/PlayerController.cs @@ -49,7 +49,8 @@ namespace BigSock { hpBar.SetHealth(Convert.ToInt32(HP)); //!! DEBUG: Add item to player at start to test if it works. - TryPickUpItem(new ItemFourEyes()); + TryPickUpItem(ItemService.SINGLETON.Get(201)); + TryPickUpItem(ItemService.SINGLETON.Get(201)); } -- GitLab