Tg port 2 15 (#230)
* defines/helpers * globalvars, onclick, controllers * datums and game * woooooooooorld. Uh. dm * modules sans mobs client admin * modules/admin * pref shit * modules/mob * icon updates * extra things * Cherrypicked fixes from open PRs * metastation.tgm fix * a better meta fix * reverts async breakings
This commit is contained in:
@@ -121,7 +121,7 @@ def merge_map(newfile, backupfile, tgm):
|
||||
|
||||
#######################
|
||||
#write to file helpers#
|
||||
def write_dictionary_tgm(filename, dictionary, header): #write dictionary in tgm format
|
||||
def write_dictionary_tgm(filename, dictionary, header = None): #write dictionary in tgm format
|
||||
with open(filename, "w") as output:
|
||||
output.write("{}\n".format(tgm_header))
|
||||
if header:
|
||||
@@ -179,7 +179,7 @@ def write_grid_coord_small(filename, grid, maxx, maxy): #thanks to YotaXP for fi
|
||||
output.write("{}\n\"}}\n".format(grid[x,maxy]))
|
||||
|
||||
|
||||
def write_dictionary(filename, dictionary, header): #writes a tile dictionary the same way Dreammaker does
|
||||
def write_dictionary(filename, dictionary, header = None): #writes a tile dictionary the same way Dreammaker does
|
||||
with open(filename, "w") as output:
|
||||
for key, value in dictionary.items():
|
||||
if header:
|
||||
|
||||
Reference in New Issue
Block a user