From b7e8dc029e6f9bb91ce1e7e7ceab097a6a4ed018 Mon Sep 17 00:00:00 2001 From: Ny Bruker <robinhs@stud.ntnu.no> Date: Fri, 14 Oct 2022 20:20:13 +0200 Subject: [PATCH] Minor reordering of stuff for readability. --- MrBigsock/Assets/Code/Item/Inventory.cs | 27 ++++++++++--------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/MrBigsock/Assets/Code/Item/Inventory.cs b/MrBigsock/Assets/Code/Item/Inventory.cs index 2db7ecf1..7cb54a3b 100644 --- a/MrBigsock/Assets/Code/Item/Inventory.cs +++ b/MrBigsock/Assets/Code/Item/Inventory.cs @@ -34,6 +34,16 @@ Notes for using the inventory system: namespace BigSock.Item { + /* + The different areas of the inventory. + */ + public enum InventoryType { + Backpack, + Tool, + Accessory, + Equipment, + } + /* An inventory of a character. */ @@ -238,16 +248,6 @@ namespace BigSock.Item { } - /* - The different areas of the inventory. - */ - public enum InventoryType { - Backpack, - Tool, - Accessory, - Equipment, - } - /* @@ -427,13 +427,8 @@ namespace BigSock.Item { /* ToDo: - - Change the caps so they scale up the list itself instead. - - Get => Lst.Count; - - Set => if(val > Lst.Count) add nulls; else try to remove nulls, throw if can't trim. - - Move method. + - SectionCap.set => Shrink. - Way to extract abilities from the tools. - - New pick up and drop methods. (Take into account that slots are managed wildly now) - */ } -- GitLab