From: Christian Heller Date: Tue, 10 Mar 2015 19:01:04 +0000 (+0100) Subject: Fix KeyError bug in actor_move. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/cards?a=commitdiff_plain;h=50daf247fd7d5fe6f0071b9fe527526b51421993;p=plomrogue Fix KeyError bug in actor_move. --- diff --git a/roguelike-server b/roguelike-server index 0461c5c..0a44ee6 100755 --- a/roguelike-server +++ b/roguelike-server @@ -626,6 +626,7 @@ def actor_move(t): if len(hitted): hit_id = hitted[0] if t == world_db["Things"][0]: + hitted_type = world_db["Things"][hit_id]["T_TYPE"] hitted_name = world_db["ThingTypes"][hitted_type]["TT_NAME"] strong_write(io_db["file_out"], "LOG You wound " + hitted + ".\n")