🐛 Makes hex start a little better. Not done
This commit is contained in:
@ -157,6 +157,17 @@ def makeFiles():
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
# Creates hexGames.json if it doesn't exist
|
||||
try:
|
||||
f = open("resources/games/hexGames.json","r")
|
||||
except:
|
||||
logThis("hexGames.json didn't exist. Making it now.")
|
||||
data = {}
|
||||
with open("resources/games/hexGames.json","w") as f:
|
||||
json.dump(data,f,indent = 4)
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
# Creates monsters.json if it doesn't exist
|
||||
try:
|
||||
f = open("resources/lookup/monsters.json","r")
|
||||
|
Reference in New Issue
Block a user