X-Git-Url: https://plomlompom.com/repos/?p=plomrogue;a=blobdiff_plain;f=server%2Fnew_thing.py;h=5c48177307d26fef4edf6f0092c353aab624ff5d;hp=84bc5917d15ec5abc385fd080579088e0c357504;hb=5cdce6d500080008b097435e2891674c16fde208;hpb=aa19546b06e90c2e6c25a66c4e8c84d84e0c2889 diff --git a/server/new_thing.py b/server/new_thing.py index 84bc591..5c48177 100644 --- a/server/new_thing.py +++ b/server/new_thing.py @@ -16,6 +16,7 @@ def new_Thing(_type, pos=(0, 0)): thing["T_TYPE"] = _type thing["T_POSY"] = pos[0] thing["T_POSX"] = pos[1] + thing["pos"] = thing["T_POSY"] * world_db["MAP_LENGTH"] + thing["T_POSX"] if world_db["WORLD_ACTIVE"] and thing["T_LIFEPOINTS"]: build_fov_map(thing) return thing