Fixing Code Typos in Readme for XYZContrib

The previous code block contained programmatic errors.
This commit is contained in:
Jake 2023-11-22 00:40:37 -07:00 committed by GitHub
parent 40a4bd0592
commit 469b29d9e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -269,26 +269,28 @@ LEGEND = {}
# the '*' are wildcards and allows for giving defaults on this map. # the '*' are wildcards and allows for giving defaults on this map.
PROTOTYPES = { PROTOTYPES = {
(0, 0): { (0, 0): {
"prototype_parent": "xyz_room", "prototype_parent": "xyz_room",
"key": "A nice glade", "key": "A nice glade",
"desc": "Sun shines through the branches above.} "desc": "Sun shines through the branches above.",
},
(0, 0, 'e'): { (0, 0, 'e'): {
"prototype_parent": "xyz_exit", "prototype_parent": "xyz_exit",
"desc": "A quiet path through the foilage" "desc": "A quiet path through the foilage",
} },
('*', '*'): { ('*', '*'): {
"prototype_parent": "xyz_room", "prototype_parent": "xyz_room",
"key": "In a bright forest", "key": "In a bright forest",
"desc": "There is green all around." "desc": "There is green all around.",
}, },
('*', '*', '*'): { ('*', '*', '*'): {
"prototype_parent": "xyz_exit", "prototype_parent": "xyz_exit",
"desc": "The path leads further into the forest." "desc": "The path leads further into the forest.",
},
} }
# collect all info for this one map # collect all info for this one map
XYMAP_DATA = { XYMAP_DATA = {
"zcoord": "mymap" # important! "zcoord": "mymap", # important!
"map": MAPSTR, "map": MAPSTR,
"legend": LEGEND, "legend": LEGEND,
"prototypes": PROTOTYPES, "prototypes": PROTOTYPES,
@ -299,7 +301,6 @@ XYMAP_DATA = {
XYMAP_DATA_LIST = [ XYMAP_DATA_LIST = [
XYMAP_DATA XYMAP_DATA
] ]
``` ```
The above map would be added to the grid with The above map would be added to the grid with