1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 17:40:36 +00:00

edit minefield colors in minefield config

This commit is contained in:
Zeno Rogue 2024-05-10 19:28:26 +02:00
parent 6b0dd547bd
commit 10184f9087
2 changed files with 3 additions and 3 deletions

View File

@ -181,9 +181,7 @@ EX bool monstersnear(cell *c, eMonster who) {
} }
// consider normal monsters // consider normal monsters
if(c2 && if(c2 && isArmedEnemy(c2, who)) {
isArmedEnemy(c2, who) &&
(c2->monst != moLancer || isUnarmed(who) || !logical_adjacent(c, who, c2))) {
eMonster m = c2->monst; eMonster m = c2->monst;
if(elec::affected(c2)) continue; if(elec::affected(c2)) continue;
if(fast && c2->monst != moWitchSpeed) continue; if(fast && c2->monst != moWitchSpeed) continue;

View File

@ -562,6 +562,8 @@ void mine_dialog() {
add_edit(mine_opacity); add_edit(mine_opacity);
add_edit(mine_hollow); add_edit(mine_hollow);
add_edit(mine_markers); add_edit(mine_markers);
dialog::addItem(XLAT("minefield colors"), 'c');
dialog::add_action_push([] { edit_color_table(minecolors); });
dialog::display(); dialog::display();
} }