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