From: Christian Heller Date: Sun, 15 Mar 2015 20:35:22 +0000 (+0100) Subject: Don't punish the player for moving towards an ocean tile. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/static/conditions?a=commitdiff_plain;h=c1237bb84e12632c7dce4ff5a6ab761ac0b836a2;p=plomrogue Don't punish the player for moving towards an ocean tile. --- diff --git a/roguelike-server b/roguelike-server index 33545c8..87a68b3 100755 --- a/roguelike-server +++ b/roguelike-server @@ -1580,6 +1580,9 @@ def play_commander(action, args=False): t["T_POSY"], t["T_POSX"]) if 1 == move_result[0]: pos = (move_result[1] * world_db["MAP_LENGTH"]) + move_result[2] + if ord("~") == world_db["MAP"][pos]: + log("You can't swim.") + return if (ord("X") == world_db["MAP"][pos] # # or ord("|") == world_db["MAP"][pos]): # # carries_axe = False # #