소스 검색

Removed unnecessary check

tags/v0.1.0
Fen Dweller 6 년 전
부모
커밋
083ee3bfa3
2개의 변경된 파일6개의 추가작업 그리고 11개의 파일을 삭제
  1. +0
    -1
      satiate.js
  2. +6
    -10
      world.js

+ 0
- 1
satiate.js 파일 보기

@@ -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 파일 보기

@@ -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);
});
}
}




불러오는 중...
취소
저장