Fix tooltip issue; Fix unlock issue; Fix spoopy HP bar not updating; Fix res speed boosts

This commit is contained in:
William 2025-11-09 11:51:12 -05:00
parent fd002a54a8
commit 00f9dd2910
8 changed files with 25 additions and 21 deletions

View File

@ -14,22 +14,14 @@ MonoBehaviour:
m_EditorClassIdentifier:
_constantSpawn:
- _enemy: {fileID: 80204295746100150, guid: 1be769d6ef642314b8846bed35e7297c, type: 3}
_count: 30
_count: 10
_nestedGroupSpawn:
- groupSpawn:
- _enemy: {fileID: 80204295746100150, guid: 2419a879bd4e47d4fa8b30de0fcdde42, type: 3}
_count: 2
triggerTime: 0.25
- groupSpawn:
- _enemy: {fileID: 80204295746100150, guid: 2419a879bd4e47d4fa8b30de0fcdde42, type: 3}
_count: 9
triggerTime: 1.5
- groupSpawn:
- _enemy: {fileID: 80204295746100150, guid: 1be769d6ef642314b8846bed35e7297c, type: 3}
_count: 7
triggerTime: 2
_count: 10
triggerTime: 0.5
- groupSpawn:
- _enemy: {fileID: 80204295746100150, guid: 1be769d6ef642314b8846bed35e7297c, type: 3}
_count: 14
triggerTime: 3
_gameDuration: 3
triggerTime: 1
_gameDuration: 1

View File

@ -14,7 +14,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
_wood: 0
_rock: 0
_food: 10
_food: 140
_cooldownInSeconds: 1
_tooltipString: "Chevalier jouteur\nAttaque m\xEAl\xE9e + attaque per\xE7ante dans
la rang\xE9e"

View File

@ -104,7 +104,7 @@ MonoBehaviour:
_enemy: {fileID: 0}
rangeOutline: {fileID: 4877144423808268021}
_range: 1
_multiplier: 10
_multiplier: 1.15
--- !u!1 &5799165302180276253
GameObject:
m_ObjectHideFlags: 0

View File

@ -104,7 +104,7 @@ MonoBehaviour:
_enemy: {fileID: 0}
rangeOutline: {fileID: 4877144423808268021}
_range: 1
_multiplier: 10
_multiplier: 1.15
--- !u!1 &1371331378727130647
GameObject:
m_ObjectHideFlags: 0

View File

@ -104,7 +104,7 @@ MonoBehaviour:
_enemy: {fileID: 0}
rangeOutline: {fileID: 4877144423808268021}
_range: 1
_multiplier: 10
_multiplier: 1.15
--- !u!1 &5799165302180276253
GameObject:
m_ObjectHideFlags: 0

View File

@ -98,7 +98,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 9accc3bbf43ac664d99f80d0f5302897, type: 3}
m_Name:
m_EditorClassIdentifier:
_lifeBar: {fileID: 2442999547823700946, guid: d72a1a133f548b64ab31d4b0fe743dec, type: 3}
_lifeBar: {fileID: 2442999547823700946}
_hp: 30
_speed: 0.07
_attack_damage: 2

View File

@ -16,13 +16,18 @@ public class TooltipText : MonoBehaviour
[SerializeField]
private TextMeshProUGUI _tooltipAttackSpeed;
private const string EMPTY_STRING = "";
private void Start()
{
_tooltipManager = TooltipManager.Instance;
EventAggregator.Instance.GetEvent<TooltipChangedEvent>().Attach(OnEventUpdate);
}
// Update is called once per frame
private void OnDestroy()
{
EventAggregator.Instance.GetEvent<TooltipChangedEvent>().Detach(OnEventUpdate);
}
private void OnEventUpdate()
{
if (_tooltipManager.TooltipVisibility)

View File

@ -84,8 +84,15 @@ public class WorldMapSave
return;
}
levelUnlocked[GetSavedLevelIndex() + 1] = LevelState.SAVED;
levelUnlocked[GetSavedLevelIndex()] = LevelState.UNLOCKED;
int savedLevelIndex = GetSavedLevelIndex();
if (savedLevelIndex + 1 >= levelUnlocked.Length)
{
Debug.Log("All levels already unlocked! savedLevelIndex: " + savedLevelIndex);
return;
}
levelUnlocked[savedLevelIndex + 1] = LevelState.SAVED;
levelUnlocked[savedLevelIndex] = LevelState.UNLOCKED;
WriteData();
}