Skip to content

Commit 04f31d7

Browse files
committed
EEEEEEK
1 parent dc80f22 commit 04f31d7

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

script.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async function fetchServantData() {
5858
id: servant.id,
5959
name: servant.name,
6060
image: servant.face, // This contains their default portrait
61-
hasIndependentAction: false // Placeholder, since this isn't in basic_servant.json
61+
hasIndependentAction: servant.hasIndependentAction || false
6262
}));
6363

6464
console.log("Final Servant Data Array:", servantDataArray);
@@ -256,6 +256,15 @@ let currentDay = 1;
256256
let pastEvents = []; // store event IDs
257257
let participants = JSON.parse(localStorage.getItem("participants")) || [];
258258

259+
function appendEventLog(message) {
260+
const logDiv = document.getElementById("event-log");
261+
if (logDiv) {
262+
logDiv.innerHTML += `<p>${message}</p>`;
263+
} else {
264+
console.error("Event log div not found.");
265+
}
266+
}
267+
259268

260269
function runDayEvents() {
261270
console.log(`===== DAY ${currentDay} =====`);

0 commit comments

Comments
 (0)