"""Prepare ctypes library at ./libplomrogue.so"""
libpath = ("./libplomrogue.so")
if not os.access(libpath, os.F_OK):
- raise SystemExit("No library " + libpath +
- ", run ./compile-server.sh first?")
+ raise SystemExit("No library " + libpath + ", run ./redo first?")
libpr = ctypes.cdll.LoadLibrary(libpath)
libpr.seed_rrand.restype = ctypes.c_uint32
return libpr
type_id = world_db["Things"][id]["T_TYPE"]
name = world_db["ThingTypes"][type_id]["TT_NAME"]
inventory = inventory + name + "\n"
- string = str(world_db["TURN"]) + "\n" + \
+ ## 7DRL additions: GOD_MOOD, GOD_FAVOR
+ string = str(world_db["GOD_MOOD"]) + "\n" + \
+ str(world_db["GOD_FAVOR"]) + "\n" + \
+ str(world_db["TURN"]) + "\n" + \
str(world_db["Things"][0]["T_LIFEPOINTS"]) + "\n" + \
str(world_db["Things"][0]["T_SATIATION"]) + "\n" + \
inventory + "%\n" + \
"SEED_MAP": (1, False, command_seedmap),
"SEED_RANDOMNESS": (1, False, command_seedrandomness),
"TURN": (1, False, setter(None, "TURN", 0, 65535)),
+ "GOD_MOOD": (1, False, setter(None, "GOD_MOOD", -32768, 32767)), ##
+ "GOD_FAVOR": (1, False, setter(None, "GOD_FAVOR", -32768, 32767)), ##
"PLAYER_TYPE": (1, False, setter(None, "PLAYER_TYPE", 0)),
"MAP_LENGTH": (1, False, command_maplength),
"WORLD_ACTIVE": (1, False, command_worldactive),
"SEED_MAP": 0,
"PLAYER_TYPE": 0,
"WORLD_ACTIVE": 0,
+ "GOD_MOOD": 0, ##
+ "GOD_FAVOR": 0, ##
"ThingActions": {},
"ThingTypes": {},
"Things": {}