File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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;
256256let pastEvents = [ ] ; // store event IDs
257257let 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
260269function runDayEvents ( ) {
261270 console . log ( `===== DAY ${ currentDay } =====` ) ;
You can’t perform that action at this time.
0 commit comments