Quellcode durchsuchen

Removed unnecessary check

tags/v0.1.0
Fen Dweller vor 6 Jahren
Ursprung
Commit
083ee3bfa3
2 geänderte Dateien mit 6 neuen und 11 gelöschten Zeilen
  1. +0
    -1
      satiate.js
  2. +6
    -10
      world.js

+ 0
- 1
satiate.js Datei anzeigen

@@ -83,7 +83,6 @@ function init(story) {
initWorld(story, state);
initAudio(story, state);
initGame(story, state);
resetControls(state);

story.intro.setup(state);



+ 6
- 10
world.js Datei anzeigen

@@ -53,17 +53,13 @@ function resetControls(state) {

actionButtons = [];

if (state.player.location) {
if (state.world[state.player.location].actions) {
state.world[state.player.location].actions.forEach(action => {
actionButtons.push(undefined);
});
}
}



const actions = state.world[state.player.location].actions;

if (actions) {
actions.forEach(action => {
actionButtons.push(undefined);
});
}
}




Laden…
Abbrechen
Speichern