mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-08 03:36:43 +00:00
rogueviz::seuphorica:: add messages on illegal moves
This commit is contained in:
parent
2fcf902e55
commit
9136e00a9b
@ -925,6 +925,18 @@ void seuphorica_screen() {
|
||||
}
|
||||
if(uni == PSEUDOKEY_RELEASE && among(hold_mode, 1, 2)) {
|
||||
where_is_tile[tile_moved->id] = eupoint(mousex, mousey);
|
||||
if(box_moved == &shop && current_box != box_moved && tile_moved->price > cash) {
|
||||
addMessage("Not enough cash to buy this!");
|
||||
}
|
||||
if(among(box_moved, &deck, &discard) && box_moved != current_box) {
|
||||
addMessage("You can only use the tiles in hand and in shop!");
|
||||
}
|
||||
if(among(current_box, &deck, &discard) && box_moved != current_box) {
|
||||
addMessage("Tiles will be moved to deck and discard automatically!");
|
||||
}
|
||||
if(box_moved != current_box && current_box == &shop && !tile_moved->price) {
|
||||
addMessage("You can only cancel purchases made on the same turn!");
|
||||
}
|
||||
if(box_moved == &shop && current_box == &drawn) {
|
||||
buy(tile_boxid);
|
||||
sort_hand();
|
||||
|
Loading…
x
Reference in New Issue
Block a user