env gen minor update

This commit is contained in:
Vasyl Horbachenko 2018-07-18 03:14:25 +03:00
parent 683114f916
commit 8d69724272
2 changed files with 11 additions and 8 deletions

View File

@ -28,10 +28,10 @@ RANDOM_TIME = {
}
RANDOM_WEATHER = {
1: 10, # heavy rain
2: 20, # rain
3: 30, # dynamic
4: 40, # clear
1: 0, # heavy rain
2: 10, # rain
3: 20, # dynamic
4: 30, # clear
5: 100, # random
}

View File

@ -1,8 +1,10 @@
import sys
from dcs.lua.parse import *
from dcs.lua.serialize import *
a = loads(open("build/mission", "r").read())
b = loads(open("build/mission_workin.lua", "r").read())
a = loads(open(sys.argv[1], "r").read())
b = loads(open(sys.argv[2], "r").read())
def get(a, k):
@ -32,7 +34,8 @@ def cycle(kk, ref, v):
cycle(kk + " " + str(i), ref, v)
else:
if get(ref, kk) != v:
print(kk, v)
print(kk)
print(v)
print(get(ref, kk))