diff --git a/MrBigsock/Assets/Code/PlayerController.cs b/MrBigsock/Assets/Code/PlayerController.cs index 1da5c97e057884dc0bbfd3db7e74e05d06b18fc4..8a5b37fd07d91a2d9d23c1d70307761af7bb36b8 100644 --- a/MrBigsock/Assets/Code/PlayerController.cs +++ b/MrBigsock/Assets/Code/PlayerController.cs @@ -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_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. @@ -61,14 +61,14 @@ namespace BigSock { { base.Start(); - - utilBar?.WithXP((int)xp, (int)maxXp) + + utilBar?.WithXP((int)xp, (int)maxXp) ?.WithHealth(Convert.ToInt32(HP), Convert.ToInt32(MaxHP)); animator = GetComponent<Animator>(); spriteRenderer = GetComponent<SpriteRenderer>(); - + //!! DEBUG: Add item to player at start to test if it works. @@ -81,10 +81,14 @@ namespace BigSock { //var tmp = PrefabService.SINGLETON; //var tmp = SpriteService.SINGLETON; - _testAttack = (IAttack) AbilityService.SINGLETON.Get(104); - _testAttack2 = (IAttack) AbilityService.SINGLETON.Get(102); - _testAttack3 = (IAttack) AbilityService.SINGLETON.Get(101); + _testAttack = (IAttack)AbilityService.SINGLETON.Get(104); + _testAttack2 = (IAttack)AbilityService.SINGLETON.Get(102); + _testAttack3 = (IAttack)AbilityService.SINGLETON.Get(101); _dodge = AbilityService.SINGLETON.Get(201); + + _ = AudioService.SINGLETON; + _ = SpriteService.SINGLETON; + _ = PrefabService.SINGLETON; } diff --git a/MrBigsock/Assets/Resources/Prefabs/Enemy_Slime.prefab b/MrBigsock/Assets/Resources/Prefabs/Enemy_Slime.prefab index 65c081ce1c376acbd62ac5f135eded7a2aa63ea9..bcb42954b8e9e3258b13b2847f57e0e2fd0b6430 100644 --- a/MrBigsock/Assets/Resources/Prefabs/Enemy_Slime.prefab +++ b/MrBigsock/Assets/Resources/Prefabs/Enemy_Slime.prefab @@ -178,7 +178,7 @@ MonoBehaviour: knockbackForce: 3 baseHP: 20 baseMaxHP: 20 - dropXP: 0 + dropXP: 20 xp: 0 maxXp: 0 level: 0 diff --git a/MrBigsock/Assets/Resources/Prefabs/enemy_orc_range.prefab b/MrBigsock/Assets/Resources/Prefabs/enemy_orc_range.prefab index 07f46cc1b832638929d6cd33811e09358141da2f..16f16233be453563253b159247dfac44e8212b2f 100644 --- a/MrBigsock/Assets/Resources/Prefabs/enemy_orc_range.prefab +++ b/MrBigsock/Assets/Resources/Prefabs/enemy_orc_range.prefab @@ -178,7 +178,7 @@ MonoBehaviour: knockbackForce: 2 baseHP: 10 baseMaxHP: 10 - dropXP: 0 + dropXP: 20 xp: 0 maxXp: 0 level: 0 diff --git a/MrBigsock/Assets/Resources/Prefabs/enemy_orc_warrior.prefab b/MrBigsock/Assets/Resources/Prefabs/enemy_orc_warrior.prefab index 2e365bb62850ce29727b4bb76b34a2e52bcd7f9f..ea2aa534130beb238e0b1ba4045e87a40708a7cd 100644 --- a/MrBigsock/Assets/Resources/Prefabs/enemy_orc_warrior.prefab +++ b/MrBigsock/Assets/Resources/Prefabs/enemy_orc_warrior.prefab @@ -151,7 +151,7 @@ MonoBehaviour: knockbackForce: 3 baseHP: 10 baseMaxHP: 10 - dropXP: 0 + dropXP: 20 xp: 0 maxXp: 0 level: 0