Skip to content
Snippets Groups Projects
Commit 6f308a0b authored by Robin Halseth Sandvik's avatar Robin Halseth Sandvik
Browse files

Added new properties to player for the skills system.

parent 6e4e4df1
No related branches found
No related tags found
1 merge request!38Juliuses nye super branch merge
......@@ -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?
};
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment