From 6f308a0bad346b159a4fb56f2e1d01d574d17382 Mon Sep 17 00:00:00 2001
From: Ny Bruker <robinhs@stud.ntnu.no>
Date: Sat, 15 Oct 2022 15:16:05 +0200
Subject: [PATCH] Added new properties to player for the skills system.

---
 MrBigsock/Assets/Code/PlayerController.cs | 62 ++++++++++++++++++++++-
 1 file changed, 61 insertions(+), 1 deletion(-)

diff --git a/MrBigsock/Assets/Code/PlayerController.cs b/MrBigsock/Assets/Code/PlayerController.cs
index 0846bcf0..15c7d2c6 100644
--- a/MrBigsock/Assets/Code/PlayerController.cs
+++ b/MrBigsock/Assets/Code/PlayerController.cs
@@ -13,7 +13,7 @@ using BigSock.Service;
 namespace BigSock {
 
 	// Takes and handles input and movement for a player character
-	public class PlayerController : Character
+	public partial class PlayerController : Character
 	{
 
 			public UtilBar utilBar;
@@ -226,4 +226,64 @@ namespace BigSock {
 				}
 			}
 	}
+
+
+	/*
+		Skills related code.
+	*/
+	public partial class PlayerController {
+		
+
+		/*
+			The number of skill points the user has at their disposal.
+		*/
+		public int SkillPoints { get; set; }
+
+		/*
+			The amount of points the user has currently spent on each skill.
+		*/
+		public Skills Skills { get; set; } = new Skills();
+
+		/*
+			The maximum amount of points the user can spend on each skill.
+		*/
+		public Skills MaxSkills { get; set; } = new Skills{
+			HP        = 10,
+			SP        = 10,
+			MP        = 10,
+			Damage    = 10,
+			Speed     = 10,
+			Luck      = 10,
+			Inventory = 10,
+		};
+
+		/*
+			How much a stat will increas each skill point.
+		*/
+		public CharacterStats StatIncreasePrSkillLevel { get; protected set; } = new CharacterStats {
+			//HP
+			MaxHP = 3f,
+			// MP
+			MaxMana = 2f,
+			RegenMana = 0.1f,
+			// SP
+			MaxStamina = 2f,
+			RegenStamina = 0.1f,
+			// Damage
+			Damage = 0.1f,
+			Knockback = 0.1f,
+			Range = 0.1f,
+			// Speed
+			MoveSpeed = 0.1f,
+			AttackSpeed = 0.1f,
+			ProjectileSpeed = 0.1f,
+			// Luck?
+			CritChance = 0.05f,
+			CritDamageModifier = 0.1f,
+			// Inventory?
+		};
+
+
+	}
+
 }
-- 
GitLab