Created
February 2, 2025 18:47
-
-
Save blopa/0d97e8ea9ebfbe6e6a451a590a68a35a to your computer and use it in GitHub Desktop.
Code for post "I built a retro RPG game shop extension for my Magento 2 store"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
methods: { | |
onMenuItemClick(selection) { | |
if (selection === 'Talk') { | |
const randomIndex = Math.floor(Math.random() * this.talkLines.length); | |
this.currentTalkLine = this.talkLines[randomIndex]; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment