1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-27 11:57:40 +00:00

removed refs to kohonen from readcolor

This commit is contained in:
Zeno Rogue
2020-03-29 14:37:04 +02:00
parent dc7b19ebc8
commit 9cae1cce92
2 changed files with 19 additions and 14 deletions

View File

@@ -1531,10 +1531,23 @@ bool turn(int delta) {
// shmup::pc[0]->rebase();
}
bool kohonen_color(int& c2, string& lab, FILE *f) {
if(c2 == '+') {
int known_id = kohonen::showsample(lab);
c2 = fgetc(f);
if(c2 == '@') {
legend.push_back(known_id);
return true;
}
}
return false;
}
auto hooks2 = addHook(hooks_frame, 50, levelline::draw)
+ addHook(hooks_mouseover, 100, describe_cell)
+ addHook(shmup::hooks_turn, 100, turn)
+ addHook(rogueviz::hooks_rvmenu, 100, showMenu);
+ addHook(rogueviz::hooks_rvmenu, 100, showMenu)
+ addHook(hooks_readcolor, 100, kohonen_color);
void clear() {
printf("clearing Kohonen...\n");