1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-17 11:38:05 +00:00

highlights in special modes

This commit is contained in:
Zeno Rogue
2021-02-06 02:55:51 +01:00
parent 2b2bdbdb54
commit c57566f9da
5 changed files with 176 additions and 20 deletions

View File

@@ -136,6 +136,10 @@ EX namespace dialog {
add_key_action(key, action);
}
EX void extend() {
items.back().key = items[isize(items)-2].key;
}
EX void add_action(const reaction_t& action) {
add_key_action_adjust(lastItem().key, action);
}