Skip to content

fix: Do not trigger the Interaction cooldown when Triggers Actions pe… - #349

Open
Zemux1613 wants to merge 2 commits into
FancyInnovations:mainfrom
Zemux1613:issue/100
Open

Zemux1613 wants to merge 2 commits into
FancyInnovations:mainfrom
Zemux1613:issue/100

Conversation

@Zemux1613

@Zemux1613 Zemux1613 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

…rform no action #100

📋 Description

Please include a summary of the changes and the related issue(s).
What is this PR solving? Why is it needed?

✅ Checklist

  • My code follows the project's coding style and guidelines
  • I have tested my changes locally and they work as expected
  • I have added necessary documentation (if applicable)
  • I have linked related issues using Fixes #issue_number or Closes #issue_number
  • I have rebased/merged with the latest main branch

🔍 Changes

Please provide a brief summary of the changes made in this PR.

I've implemented #100


🧪 How to Test

Please describe how to manually test the changes made in this PR.

Interact with an NPC that has an action for this interaction, and you'll see that the cooldown doesn't apply if another interaction with an available action follows immediately afterward.

@OliverSchlueter

Copy link
Copy Markdown
Member

The check doesn't include whether NpcData#onClick is set.

If a npc has something in onClick and no actions, the interaction cooldown wouldn't work anymore, right?

The thing is, we can't know if the onClick has logic in it or not, since it's just:

this.onClick = p -> {
        };

as default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants