python3 compatibility + webapp to flask refactoring

This commit is contained in:
Kaan Soral
2024-01-27 20:37:44 +03:00
parent 5180a9c31c
commit 53b3de28ab
81 changed files with 11213 additions and 1085 deletions
+5 -2
View File
@@ -538,7 +538,10 @@ animations={
},
}
from projectiles import projectiles
try:
from projectiles import projectiles
except:
from design.projectiles import projectiles
for id in projectiles:
if projectiles[id].has_key("animation") and animations[projectiles[id]["animation"]].has_key("speed"):
if "animation" in projectiles[id] and "speed" in animations[projectiles[id]["animation"]]:
animations[projectiles[id]["animation"]]["speed"]=projectiles[id]["speed"]