mirror of
https://github.com/Oreolek/gamebookformat.git
synced 2024-06-29 05:05:13 +03:00
Allow player to follow a link if not having a specific codeword.
This commit is contained in:
parent
4d1728cda8
commit
9cb51eddae
|
@ -128,6 +128,9 @@
|
|||
} else if (c.className === 'hascodeword') {
|
||||
var codeword = c.dataset.has;
|
||||
enableNextLink = gamebook.player.has(codeword);
|
||||
} else if (c.className === 'hasnotcodeword') {
|
||||
var codeword = c.dataset.has;
|
||||
enableNextLink = !gamebook.player.has(codeword);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
4
todo.org
4
todo.org
|
@ -1,4 +1,4 @@
|
|||
* TODO [19/47] [40%]
|
||||
* TODO [20/47] [42%]
|
||||
- [X] Debug output
|
||||
- [X] DOT output
|
||||
- [X] LaTeX output
|
||||
|
@ -20,7 +20,7 @@
|
|||
- [X] Check if has codeword
|
||||
- [X] Remove item from inventory (forced by instructions)
|
||||
- [X] Enable link if not having an item
|
||||
- [ ] Enable link if not having a codeword
|
||||
- [X] Enable link if not having a codeword
|
||||
- [ ] Make sure dropped items can not be picked up again
|
||||
- [ ] Make inventory and codewords generic
|
||||
They are the same, sort of, and it might be good to be able to
|
||||
|
|
Loading…
Reference in a new issue