ソースを参照

Merge branch 'master' into geta

geta
Fen Dweller 5年前
コミット
4422e9d73e
2個のファイルの変更10行の追加2行の削除
  1. +6
    -1
      stories/demo.js
  2. +4
    -1
      world.js

+ 6
- 1
stories/demo.js ファイルの表示

@@ -63,7 +63,12 @@ stories.push({
"execute": (room) => {
state.player.rooms[room.id].squinted = true;
print(["You stare at the wall and notice a secret door. But where is the key?"]);
}
},
"conditions": [
(room) => {
return !state.player.rooms[room.id].squinted;
}
]
},
{
"name": "Find Keys",


+ 4
- 1
world.js ファイルの表示

@@ -259,7 +259,10 @@ function updateRoom() {
if (action.conditions) {
if (!action.conditions.every(cond => cond(room))) {
button.classList.add("disabled");
button.setAttribute("disabled", "true");
button.setAttribute("disabled", true);
} else {
button.classList.remove("disabled");
button.removeAttribute("disabled");
}
}



読み込み中…
キャンセル
保存