1 # This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
2 # or any later version. For details on its copyright, license, and warranties,
3 # see the file NOTICE in the root directory of the PlomRogue source package.
7 from server.config.world_data import world_db
8 if world_db["MAP_LENGTH"] < 1:
9 print("Ignoring: No map length >= 1 defined.")
11 player_will_be_generated = False
12 playertype = world_db["PLAYER_TYPE"]
13 for ThingType in world_db["ThingTypes"]:
14 if playertype == ThingType:
15 if 0 < world_db["ThingTypes"][ThingType]["TT_START_NUMBER"]:
16 player_will_be_generated = True
18 if not player_will_be_generated:
19 print("Ignoring: No player type with start number >0 defined.")
22 for ThingAction in world_db["ThingActions"]:
23 if "wait" == world_db["ThingActions"][ThingAction]["TA_NAME"]:
26 print("Ignoring beyond SEED_MAP: " +
27 "No thing action with name 'wait' defined.")