From 552a842b0096d5b7df3dbb8ec5d7e79cd7e6a3b9 Mon Sep 17 00:00:00 2001 From: Caroline Foy Date: Tue, 29 Apr 2025 14:00:36 -0500 Subject: [PATCH] Added student A/B comments --- files/combat.js | 2 ++ files/encounters.js | 2 ++ files/functions.js | 2 ++ files/inventory.js | 2 ++ files/main.js | 2 ++ files/poiscreens.js | 2 ++ files/shops.js | 2 ++ files/variables.js | 2 ++ 8 files changed, 16 insertions(+) diff --git a/files/combat.js b/files/combat.js index a3ccc76..16ab897 100644 --- a/files/combat.js +++ b/files/combat.js @@ -1,3 +1,5 @@ +//Created by student A + import './variables.js'; import { randomNumber, userInput } from './functions.js'; import { inventoryMenuM } from './inventory.js'; diff --git a/files/encounters.js b/files/encounters.js index 4666507..faae37d 100644 --- a/files/encounters.js +++ b/files/encounters.js @@ -1,3 +1,5 @@ +//Created by student B + // Holds encounter code, seperate from poiscreens.js import { randomNumber } from "./functions.js"; diff --git a/files/functions.js b/files/functions.js index 3764756..4e8f05c 100755 --- a/files/functions.js +++ b/files/functions.js @@ -1,3 +1,5 @@ +//Created by student A and B collaboratively + // Holds all functions used in multiple files import { createRequire } from 'module'; const require = createRequire(import.meta.url); diff --git a/files/inventory.js b/files/inventory.js index 21ceccd..9c60fe1 100644 --- a/files/inventory.js +++ b/files/inventory.js @@ -1,3 +1,5 @@ +//Created by student A + import { userInput } from "./functions.js"; import "./variables.js"; diff --git a/files/main.js b/files/main.js index e3540ea..5020329 100755 --- a/files/main.js +++ b/files/main.js @@ -1,3 +1,5 @@ +//Created by student A and B collaobratively + // Program is started from here, runs functions from other files. import { userInput, sleep, disableRawMode, walkPathMain, randomNumber } from './functions.js'; import { forcedEncounter, naturalEncounter } from './encounters.js'; diff --git a/files/poiscreens.js b/files/poiscreens.js index 31c3dab..9bf132b 100644 --- a/files/poiscreens.js +++ b/files/poiscreens.js @@ -1,3 +1,5 @@ +//Created by student B + // Holds poi code, seperate from encounters.js import { userInput, pauseScreen, enableRawMode, disableRawMode, sleep } from "./functions.js"; diff --git a/files/shops.js b/files/shops.js index e0052e1..bf4639b 100644 --- a/files/shops.js +++ b/files/shops.js @@ -1,3 +1,5 @@ +//Created by student A + import { randomNumber, userInput } from "./functions.js"; import "./variables.js"; diff --git a/files/variables.js b/files/variables.js index 08d963c..c860b98 100644 --- a/files/variables.js +++ b/files/variables.js @@ -1,3 +1,5 @@ +//Created by students A and B collaboratively + // Now holds only variables // Items