X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=server%2Fconfig%2Fworld_data.py;h=f9e5494149b38fcae8da4d7d7d7ff8dec9c54b25;hb=5b2e37b6247c2853a7cedaa70e0de37815365d18;hp=193da78a4367286e575b0fb4eb77010f0764b608;hpb=599249e2b0b374b12e65fb92a9a6dc524afba40f;p=plomrogue diff --git a/server/config/world_data.py b/server/config/world_data.py index 193da78..f9e5494 100644 --- a/server/config/world_data.py +++ b/server/config/world_data.py @@ -13,7 +13,13 @@ world_db = { "PLUGIN": [], "ThingActions": {}, "ThingTypes": {}, - "Things": {} + "Things": {}, + "terrain_names": { + " ": "UNKNOWN", + "X": "TREE", + "~": "SEA", + ".": "EARTH" + } } """Mapping of direction names to internal direction chars.""" @@ -21,14 +27,30 @@ directions_db = {"east": "d", "south-east": "c", "south-west": "x", "west": "s", "north-west": "w", "north-east": "e"} thing_defaults = { - "T_ARGUMENT": 0, - "T_PROGRESS": 0, - "T_SATIATION": 0, - "T_COMMAND": 0, - "T_CARRIES": [], - "carried": False, - "T_MEMTHING": [], - "T_MEMMAP": False, - "T_MEMDEPTHMAP": False, - "fovmap": False + "T_ARGUMENT": 0, + "T_PROGRESS": 0, + "T_SATIATION": 0, + "T_COMMAND": 0, + "T_CARRIES": [], + "carried": False, + "T_MEMTHING": [], + "T_MEMMAP": False, + "T_MEMDEPTHMAP": False, + "fovmap": False } + +thingtype_defaults = { + "TT_NAME": "(none)", + "TT_TOOLPOWER": 0, + "TT_LIFEPOINTS": 0, + "TT_PROLIFERATE": 0, + "TT_START_NUMBER": 0, + "TT_SYMBOL": "?", + "TT_TOOL": "" +} + +symbols_passable = "." + +thingprol_field_spreadable = lambda x, y: x in symbols_passable +thingprol_test_hook = lambda x: True +thingprol_post_create_hook = lambda x: None