Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mr BigSock
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gard Aleksander Furre
Mr BigSock
Commits
6f308a0b
Commit
6f308a0b
authored
2 years ago
by
Robin Halseth Sandvik
Browse files
Options
Downloads
Patches
Plain Diff
Added new properties to player for the skills system.
parent
6e4e4df1
No related branches found
Branches containing commit
No related tags found
1 merge request
!38
Juliuses nye super branch merge
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MrBigsock/Assets/Code/PlayerController.cs
+61
-1
61 additions, 1 deletion
MrBigsock/Assets/Code/PlayerController.cs
with
61 additions
and
1 deletion
MrBigsock/Assets/Code/PlayerController.cs
+
61
−
1
View file @
6f308a0b
...
...
@@ -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?
};
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment