Skip to content

Commit

Permalink
prevent gathering node from showing minimap icon when on timer
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelday008 committed Feb 21, 2021
1 parent 010569c commit 252b44d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 252b44d

Please sign in to comment.