Skip to content

Commit 51e71db

Browse files
committed
Run Prettier
1 parent 8ed05fa commit 51e71db

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/interactions/map_start/drink_machine.interaction.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ export const interactionWithDrinksMachine = (player, k, map) => {
99
// Trigger the custom prompt when the player collides with the drinks machine
1010
showCustomPrompt(
1111
'What would you like to drink?', // Prompt message
12-
['Coke (8 coins)', 'Soda (8 coins)', 'Water (5 coins)', 'Sprite (8 coins)'], // Options
12+
[
13+
'Coke (8 coins)',
14+
'Soda (8 coins)',
15+
'Water (5 coins)',
16+
'Sprite (8 coins)',
17+
], // Options
1318
(selectedOption) => {
1419
// Callback when an option is selected
1520
// Logic based on the selected option

src/utils.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ export async function displayPermissionBox({
133133
const statsUI = document.getElementById('stats-container');
134134
const miniMapUI = document.getElementById('minimap');
135135
closeBtn.innerHTML = 'No';
136-
nextBtn.innerHTML = purchaseCost !== undefined ? `Yes (${purchaseCost} coin${purchaseCost !== 1 ? "s" : ""})` : 'Yes';
136+
nextBtn.innerHTML =
137+
purchaseCost !== undefined
138+
? `Yes (${purchaseCost} coin${purchaseCost !== 1 ? 's' : ''})`
139+
: 'Yes';
137140
statsUI.style.display = 'none';
138141
miniMapUI.style.display = 'none';
139142
dialogUI.style.display = 'block';

0 commit comments

Comments
 (0)