|
|
@@ -54,12 +54,16 @@ function resetControls(state) { |
|
|
actionButtons = []; |
|
|
actionButtons = []; |
|
|
|
|
|
|
|
|
if (state.player.location) { |
|
|
if (state.player.location) { |
|
|
state.world[state.player.location].actions.forEach(action => { |
|
|
|
|
|
actionButtons.push(undefined); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
if (state.world[state.player.location].actions) { |
|
|
|
|
|
state.world[state.player.location].actions.forEach(action => { |
|
|
|
|
|
actionButtons.push(undefined); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|