Created
June 15, 2026 00:41
-
-
Save blopa/9212da355a69b4f41fe5def3434f7da8 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 hidden or 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