From 252b44dfaba0f2a46427989793f1c1431fa0f8e3 Mon Sep 17 00:00:00 2001 From: Michael Day Date: Sat, 20 Feb 2021 21:50:25 -0800 Subject: [PATCH] prevent gathering node from showing minimap icon when on timer --- .../System/Scripts/Interactables/GatheringNodeComponent.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/AnyRPG/Engine/Core/System/Scripts/Interactables/GatheringNodeComponent.cs b/Assets/AnyRPG/Engine/Core/System/Scripts/Interactables/GatheringNodeComponent.cs index 8db869169..a3850b168 100644 --- a/Assets/AnyRPG/Engine/Core/System/Scripts/Interactables/GatheringNodeComponent.cs +++ b/Assets/AnyRPG/Engine/Core/System/Scripts/Interactables/GatheringNodeComponent.cs @@ -116,7 +116,9 @@ public override void DropLoot() { public override int GetCurrentOptionCount() { //Debug.Log(gameObject.name + ".GatheringNode.GetCurrentOptionCount()"); - return ((PlayerManager.MyInstance.MyCharacter.CharacterAbilityManager.HasAbility(GatheringNodeProps.BaseAbility) == true && interactable.MySpawnReference != null) ? 1 : 0); + return ((PlayerManager.MyInstance.MyCharacter.CharacterAbilityManager.HasAbility(GatheringNodeProps.BaseAbility) == true + && interactable.MySpawnReference != null + && currentTimer <= 0f) ? 1 : 0); } /*