Skip to content
Snippets Groups Projects
Commit df846f46 authored by Julius Fredrik Einum's avatar Julius Fredrik Einum
Browse files

Fixed xp drop

parent 27664489
No related branches found
No related tags found
1 merge request!79Ruud1
...@@ -17,7 +17,7 @@ namespace BigSock { ...@@ -17,7 +17,7 @@ namespace BigSock {
{ {
public const int SKILL_POINTS_PR_LVL = 3; // Skill points to gain pr level up. public const int SKILL_POINTS_PR_LVL = 3; // Skill points to gain pr level up.
public const int SKILL_POINTS_START = 5; // Skill points to start with. public const int SKILL_POINTS_START = 0; // Skill points to start with.
public const float XP_SCALE_RATE = 3.0f; // Multiplier for xp gain, helps test system while game is tiny. public const float XP_SCALE_RATE = 3.0f; // Multiplier for xp gain, helps test system while game is tiny.
...@@ -61,14 +61,14 @@ namespace BigSock { ...@@ -61,14 +61,14 @@ namespace BigSock {
{ {
base.Start(); base.Start();
utilBar?.WithXP((int)xp, (int)maxXp)
utilBar?.WithXP((int)xp, (int)maxXp)
?.WithHealth(Convert.ToInt32(HP), Convert.ToInt32(MaxHP)); ?.WithHealth(Convert.ToInt32(HP), Convert.ToInt32(MaxHP));
animator = GetComponent<Animator>(); animator = GetComponent<Animator>();
spriteRenderer = GetComponent<SpriteRenderer>(); spriteRenderer = GetComponent<SpriteRenderer>();
//!! DEBUG: Add item to player at start to test if it works. //!! DEBUG: Add item to player at start to test if it works.
...@@ -81,10 +81,14 @@ namespace BigSock { ...@@ -81,10 +81,14 @@ namespace BigSock {
//var tmp = PrefabService.SINGLETON; //var tmp = PrefabService.SINGLETON;
//var tmp = SpriteService.SINGLETON; //var tmp = SpriteService.SINGLETON;
_testAttack = (IAttack) AbilityService.SINGLETON.Get(104); _testAttack = (IAttack)AbilityService.SINGLETON.Get(104);
_testAttack2 = (IAttack) AbilityService.SINGLETON.Get(102); _testAttack2 = (IAttack)AbilityService.SINGLETON.Get(102);
_testAttack3 = (IAttack) AbilityService.SINGLETON.Get(101); _testAttack3 = (IAttack)AbilityService.SINGLETON.Get(101);
_dodge = AbilityService.SINGLETON.Get(201); _dodge = AbilityService.SINGLETON.Get(201);
_ = AudioService.SINGLETON;
_ = SpriteService.SINGLETON;
_ = PrefabService.SINGLETON;
} }
......
...@@ -178,7 +178,7 @@ MonoBehaviour: ...@@ -178,7 +178,7 @@ MonoBehaviour:
knockbackForce: 3 knockbackForce: 3
baseHP: 20 baseHP: 20
baseMaxHP: 20 baseMaxHP: 20
dropXP: 0 dropXP: 20
xp: 0 xp: 0
maxXp: 0 maxXp: 0
level: 0 level: 0
......
...@@ -178,7 +178,7 @@ MonoBehaviour: ...@@ -178,7 +178,7 @@ MonoBehaviour:
knockbackForce: 2 knockbackForce: 2
baseHP: 10 baseHP: 10
baseMaxHP: 10 baseMaxHP: 10
dropXP: 0 dropXP: 20
xp: 0 xp: 0
maxXp: 0 maxXp: 0
level: 0 level: 0
......
...@@ -151,7 +151,7 @@ MonoBehaviour: ...@@ -151,7 +151,7 @@ MonoBehaviour:
knockbackForce: 3 knockbackForce: 3
baseHP: 10 baseHP: 10
baseMaxHP: 10 baseMaxHP: 10
dropXP: 0 dropXP: 20
xp: 0 xp: 0
maxXp: 0 maxXp: 0
level: 0 level: 0
......
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