Skip to content

Commit

Permalink
Added extended campus interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
fullspeccoder committed Oct 30, 2024
1 parent 3c482df commit 90ce6c7
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { interactionHandler } from '../handler.interactions';
import { displayDialogue } from '../../utils';

export const campusTreeInteraction = (player, k) => {
interactionHandler(player, 'campus_tree', k, async () => {
displayDialogue({
k,
player,
text: [
'The tree seems to emit a faint glow. There are carvings on its trunk, suggesting that students from years past have left messages or markings here.',
],
});
});
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { interactionHandler } from '../handler.interactions';
import { displayDialogue } from '../../utils';

export const fountainInteraction = (player, k) => {
interactionHandler(player, 'fountain', k, async () => {
displayDialogue({
k,
player,
text: [
'The fountain\'s gentle flow seems to whisper, "May your journey be as calm as these waters."',
],
});
});
};
15 changes: 14 additions & 1 deletion src/interactions/map_extended_campus/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
import { enterMapCityLeft } from './enterMapCityLeft.interactions';
import { enterMapCityTop } from './enterMapCityTop.interactions';
import { campusTreeInteraction } from './campusTreeInteraction.interactions';
import { fountainInteraction } from './fountainInteraction.interactions';
import { signLeftInteraction } from './signLeftInteraction.interactions';
import { signRightInteraction } from './signRightInteraction.interactions';
import { treeSignInteraction } from './treeSignInteraction.interactions';

const interactions = [enterMapCityLeft, enterMapCityTop];
const interactions = [
enterMapCityLeft,
enterMapCityTop,
campusTreeInteraction,
fountainInteraction,
signLeftInteraction,
signRightInteraction,
treeSignInteraction,
];

export default interactions;
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { interactionHandler } from '../handler.interactions';
import { displayDialogue } from '../../utils';

export const signLeftInteraction = (player, k) => {
interactionHandler(player, 'sign_left', k, async () => {
displayDialogue({
k,
player,
text: ['"Finding your dream home, one step at a time."'],
});
});
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { interactionHandler } from '../handler.interactions';
import { displayDialogue } from '../../utils';

export const signRightInteraction = (player, k) => {
interactionHandler(player, 'sign_right', k, async () => {
displayDialogue({
k,
player,
text: [
'"Your future awaits—let us help you find the perfect place to call home."',
],
});
});
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { interactionHandler } from '../handler.interactions';
import { displayDialogue } from '../../utils';

export const treeSignInteraction = (player, k) => {
interactionHandler(player, 'tree_sign', k, async () => {
displayDialogue({
k,
player,
text: [
'These trees were planted by students, each one a symbol of growth, resilience, and hope for the future.',
'May they stand tall and strong, shading those who come after.',
],
});
});
};

0 comments on commit 90ce6c7

Please sign in to comment.