rougeGen.py 193 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757
  1. import os
  2. import random
  3. import asyncio
  4. from concurrent.futures import ThreadPoolExecutor
  5. import game.const.rouge as R
  6. from game.algo import shapeGen as S
  7. from game.const import rouge_theme as T
  8. from game.algo.special_map import eden_boss_map_json, destiny_boss_map_json, ocean_boss_map_json
  9. from game.algo.skyland_map import generate_skyland_map
  10. last_theme = {
  11. "theme_1": [None, None], # [i-1, i-2]
  12. "theme_2": [None, None],
  13. "theme_3": [None, None],
  14. }
  15. theme_map = {
  16. "theme_1": {"A": T.theme1_A_mon_dic, "B": T.theme1_B_mon_dic, "C": T.theme1_C_mon_dic, "D": T.theme1_D_mon_dic},
  17. "theme_2": {"A": T.theme2_A_mon_dic, "B": T.theme2_B_mon_dic, "C": T.theme2_C_mon_dic},
  18. "theme_3": {"A": T.theme3_A_mon_dic, "B": T.theme3_B_mon_dic, "C": T.theme3_C_mon_dic},
  19. }
  20. def get_random_theme(theme):
  21. global last_theme
  22. if theme == "theme_1":
  23. candidates = ["A", "B", "C", "D"]
  24. else:
  25. candidates = ["A", "B", "C"]
  26. if last_theme[theme][0] is not None and last_theme[theme][1] is not None:
  27. if last_theme[theme][0] == last_theme[theme][1]:
  28. candidates.remove(last_theme[theme][0])
  29. new_theme = random.choice(candidates)
  30. last_theme[theme][1] = last_theme[theme][0]
  31. last_theme[theme][0] = new_theme
  32. return theme_map[theme][new_theme]
  33. # 除去rest的60*60坐标
  34. def A60x60list(rest):
  35. res = []
  36. for i in range(1, 61):
  37. for j in range(1, 61):
  38. res.append((i, j))
  39. return list(set(res) - set(rest))
  40. # 在0~61范围内随机分配地板坐标
  41. def allocate_coordinates_for_types(types: list):
  42. # 生成所有可能的坐标列表
  43. all_coordinates = [(x, y) for x in range(62) for y in range(62)]
  44. # 用于存储已分配坐标的集合
  45. allocated_coordinates = set()
  46. # 结果列表,存储每个type对应的坐标列表
  47. result = []
  48. for count in types:
  49. # 生成当前type可用的坐标列表(排除已分配的坐标)
  50. available_coordinates = [coord for coord in all_coordinates if coord not in allocated_coordinates]
  51. # 从可用坐标中随机选择count个不重复的坐标
  52. selected_coordinates = random.sample(available_coordinates, count)
  53. # 更新已分配坐标集合
  54. allocated_coordinates.update(selected_coordinates)
  55. # 将选中的坐标添加到结果列表
  56. result.append(selected_coordinates)
  57. return result
  58. # 用于下面一个函数
  59. def adjust_types_to_fit_pool(types, pool_length):
  60. total_count = sum(types)
  61. if total_count > pool_length:
  62. # 计算需要减少的比例
  63. reduction_ratio = pool_length / total_count
  64. # 调整types中的每个数字
  65. adjusted_types = [max(int(count * reduction_ratio), 1) for count in types]
  66. # 如果调整后的总数仍然超过pool长度,从头开始逐个减少直到符合条件
  67. while sum(adjusted_types) > pool_length:
  68. for i in range(len(adjusted_types)):
  69. if sum(adjusted_types) <= pool_length:
  70. break
  71. adjusted_types[i] -= 1
  72. adjusted_types[i] = max(adjusted_types[i], 1) # 确保不会减到小于1
  73. else:
  74. adjusted_types = types
  75. return adjusted_types
  76. # 从pool里为每个types中的元素进行随机分配
  77. def allocate_coordinates_from_pool(types: list, pool: list):
  78. adjusted_types = adjust_types_to_fit_pool(types, len(pool))
  79. # 打乱pool以随机分配
  80. random.shuffle(pool)
  81. result = []
  82. start_index = 0
  83. for count in adjusted_types:
  84. # 为当前type分配坐标
  85. allocated_coordinates = pool[start_index:start_index + count]
  86. result.append(allocated_coordinates)
  87. start_index += count
  88. return result
  89. # 根据权重分配的列表
  90. def allocate_according_to_weights(n, weights):
  91. total_weight = sum(weights)
  92. # 计算每个权重的比例
  93. proportions = [weight / total_weight for weight in weights]
  94. # 使用比例乘以n来得到初步分配的数量
  95. preliminary_allocations = [n * proportion for proportion in proportions]
  96. # 对初步分配的数量进行舍入并转换为整数
  97. allocations = [round(allocation) for allocation in preliminary_allocations]
  98. # 调整分配以确保总和为n
  99. while sum(allocations) != n:
  100. difference = n - sum(allocations)
  101. adjustment_indices = sorted(range(len(allocations)), key=lambda i: (
  102. allocations[i] - preliminary_allocations[i], difference * (allocations[i] - preliminary_allocations[i])),
  103. reverse=True)
  104. for i in adjustment_indices:
  105. if difference > 0 and allocations[i] < preliminary_allocations[i]:
  106. allocations[i] += 1
  107. difference -= 1
  108. elif difference < 0 and allocations[i] > preliminary_allocations[i]:
  109. allocations[i] -= 1
  110. difference += 1
  111. if difference == 0:
  112. break
  113. return allocations
  114. def shortest_path(start, end):
  115. x1, y1 = start
  116. x2, y2 = end
  117. path = [start]
  118. while x1 != x2:
  119. if random.randint(1, 100) > 50 and y1 != y2:
  120. if y1 < y2:
  121. y1 += 1
  122. else:
  123. y1 -= 1
  124. path.append((x1, y1))
  125. if x1 < x2:
  126. x1 += 1
  127. else:
  128. x1 -= 1
  129. path.append((x1, y1))
  130. while y1 != y2:
  131. if y1 < y2:
  132. y1 += 1
  133. else:
  134. y1 -= 1
  135. path.append((x1, y1))
  136. return path
  137. # 生成4*4内二元组列
  138. def district_list_gen(last_direction):
  139. def path_gen():
  140. start = (random.randint(0, 3), 0)
  141. path = [start]
  142. if start[0] == 1:
  143. target = random.choice([(0, 2), (0, 3), (1, 3), (2, 3), (3, 3), (3, 2), (3, 1)])
  144. elif start[0] == 2:
  145. target = random.choice([(0, 1), (0, 2), (0, 3), (1, 3), (2, 3), (3, 3), (3, 2)])
  146. elif start[0] == 0:
  147. target = random.choice([(0, 3), (1, 3), (2, 3), (3, 3), (3, 2), (3, 1), (3, 0)])
  148. else:
  149. target = random.choice([(0, 0), (0, 1), (0, 2), (0, 3), (1, 3), (2, 3), (3, 3)])
  150. # print(shortest_path(start, target))
  151. return shortest_path(start, target), [start, target]
  152. def rotate_points(points):
  153. rotated_points = []
  154. for x, y in points:
  155. new_x = (3 / 2) + (3 / 2 - y)
  156. new_y = (3 / 2) + (x - 3 / 2)
  157. rotated_points.append((int(new_x), int(new_y)))
  158. return rotated_points
  159. def compose(f, x, n):
  160. for i in range(n):
  161. x = f(x)
  162. return x
  163. def dig_se(list, start_end):
  164. result = []
  165. for i in list:
  166. if i not in start_end:
  167. result.append(i)
  168. return result
  169. def additional_points(main_path, start_end):
  170. total_point = main_path
  171. total_point_no_se = dig_se(total_point, start_end)
  172. add_point = []
  173. add_num = 0
  174. if len(main_path) <= 4:
  175. add_num = random.randint(2, 5)
  176. elif len(main_path) == 5:
  177. add_num = random.randint(1, 4)
  178. elif len(main_path) == 6:
  179. add_num = random.randint(1, 3)
  180. elif len(main_path) == 7:
  181. add_num = random.randint(0, 3)
  182. for i in range(add_num):
  183. neighbours = []
  184. for x, y in total_point_no_se:
  185. # 初始化当前格子的邻接格子列表
  186. # 检查上下左右四个方向的格子是否在范围内,并添加到邻接格子列表中
  187. if x > 0:
  188. if (x - 1, y) not in total_point:
  189. neighbours.append((x - 1, y)) # 左
  190. if x < 3:
  191. if (x + 1, y) not in total_point:
  192. neighbours.append((x + 1, y)) # 右
  193. if y > 0:
  194. if (x, y - 1) not in total_point:
  195. neighbours.append((x, y - 1)) # 上
  196. if y < 3:
  197. if (x, y + 1) not in total_point:
  198. neighbours.append((x, y + 1)) # 下
  199. if len(neighbours) == 0:
  200. print("无法添加", total_point)
  201. break
  202. random_point = random.choice(neighbours)
  203. total_point.append(random_point)
  204. total_point_no_se.append(random_point)
  205. add_point.append(random_point)
  206. return total_point, add_point
  207. def next_direction(main_start_end):
  208. start = main_start_end[1] # 实际上是end,懒得改名了就用start
  209. if (start[0] + start[1]) % 3 == 0:
  210. if start[0] == 0 and start[1] == 0:
  211. return 3
  212. elif start[0] == 3 and start[1] == 0:
  213. return 0
  214. elif start[0] == 3 and start[1] == 3:
  215. return 1
  216. else:
  217. return 2
  218. else:
  219. if start[0] == 0:
  220. return 3
  221. elif start[0] == 3:
  222. return 1
  223. elif start[1] == 0:
  224. return 0
  225. else:
  226. return 2
  227. path, start_end = path_gen()
  228. if last_direction == -1:
  229. direction_num = random.randint(0, 3) # 需指定复合次数来拟合方向
  230. else:
  231. direction_num = random.randint(0, 3) # 需指定复合次数来拟合方向
  232. main_path = compose(rotate_points, path, direction_num)
  233. main_start_end = compose(rotate_points, start_end, direction_num)
  234. total_point, add_point = additional_points(main_path, main_start_end)
  235. return total_point, main_start_end, next_direction(main_start_end) # 这里输出的不是最终坐标,而是4*4格点坐标
  236. # 生成区域所需xy条件
  237. def district_condition(p, xy):
  238. return (15 * p[0] + 2 <= xy[0] <= 15 * p[0] + 14) and (15 * p[1] + 2 <= xy[1] <= 15 * p[1] + 14)
  239. def lane_condition(adjacent_couple, xy):
  240. (p1, p2) = adjacent_couple
  241. if p1[0] != p2[0]:
  242. p = (min(p1[0], p2[0]), p1[1])
  243. return (15 * p[0] + 16 - 1 <= xy[0] <= 15 * p[0] + 17 - 1) and (15 * p[1] + 8 - 1 <= xy[1] <= 15 * p[1] + 10 - 1)
  244. else:
  245. p = (p1[0], min(p1[1], p2[1]))
  246. return (15 * p[0] + 8 - 1 <= xy[0] <= 15 * p[0] + 10 - 1) and (15 * p[1] + 16 - 1 <= xy[1] <= 15 * p[1] + 17 - 1)
  247. def start_end_condition(main_start_end, xy):
  248. start, end = main_start_end
  249. start_con = False
  250. end_con = False
  251. if (start[0] + start[1]) % 3 == 0:
  252. if start[0] == 0 and start[1] == 0:
  253. start_con = (0 <= xy[0] <= 1) and (7 <= xy[1] <= 9)
  254. elif start[0] == 3 and start[1] == 0:
  255. start_con = (52 <= xy[0] <= 54) and (0 <= xy[1] <= 1)
  256. elif start[0] == 3 and start[1] == 3:
  257. start_con = (60 <= xy[0] <= 61) and (52 <= xy[1] <= 54)
  258. else:
  259. start_con = (7 <= xy[0] <= 9) and (60 <= xy[1] <= 61)
  260. else:
  261. if start[0] == 0:
  262. start_con = (0 <= xy[0] <= 1) and (15 * start[1] + 8 - 1 <= xy[1] <= 15 * start[1] + 10 - 1)
  263. elif start[0] == 3:
  264. start_con = (60 <= xy[0] <= 61) and (15 * start[1] + 8 - 1 <= xy[1] <= 15 * start[1] + 10 - 1)
  265. elif start[1] == 0:
  266. start_con = (15 * start[0] + 8 - 1 <= xy[0] <= 15 * start[0] + 10 - 1) and (0 <= xy[1] <= 1)
  267. else:
  268. start_con = (15 * start[0] + 8 - 1 <= xy[0] <= 15 * start[0] + 10 - 1) and (60 <= xy[1] <= 61)
  269. if (end[0] + end[1]) % 3 == 0:
  270. if end[0] == 0 and end[1] == 0:
  271. end_con = (0 <= xy[0] <= 1) and (7 <= xy[1] <= 9)
  272. elif end[0] == 3 and end[1] == 0:
  273. end_con = (52 <= xy[0] <= 54) and (0 <= xy[1] <= 1)
  274. elif end[0] == 3 and end[1] == 3:
  275. end_con = (60 <= xy[0] <= 61) and (52 <= xy[1] <= 54)
  276. else:
  277. end_con = (7 <= xy[0] <= 9) and (60 <= xy[1] <= 61)
  278. else:
  279. if end[0] == 0:
  280. end_con = (0 <= xy[0] <= 1) and (15 * end[1] + 8 - 1 <= xy[1] <= 15 * end[1] + 10 - 1)
  281. elif end[0] == 3:
  282. end_con = (60 <= xy[0] <= 61) and (15 * end[1] + 8 - 1 <= xy[1] <= 15 * end[1] + 10 - 1)
  283. elif end[1] == 0:
  284. end_con = (15 * end[0] + 8 - 1 <= xy[0] <= 15 * end[0] + 10 - 1) and (0 <= xy[1] <= 1)
  285. else:
  286. end_con = (15 * end[0] + 8 - 1 <= xy[0] <= 15 * end[0] + 10 - 1) and (60 <= xy[1] <= 61)
  287. return (start_con or end_con)
  288. def start_point(start):
  289. if (start[0] + start[1]) % 3 == 0:
  290. if start[0] == 0 and start[1] == 0:
  291. return (0, 8)
  292. elif start[0] == 3 and start[1] == 0:
  293. return (53, 0)
  294. elif start[0] == 3 and start[1] == 3:
  295. return (61, 53)
  296. else:
  297. return (8, 61)
  298. else:
  299. if start[0] == 0:
  300. return (0, 15 * start[1] + 9 - 1)
  301. elif start[0] == 3:
  302. return (61, 15 * start[1] + 9 - 1)
  303. elif start[1] == 0:
  304. return (15 * start[0] + 9 - 1, 0)
  305. else:
  306. return (15 * start[0] + 9 - 1, 61)
  307. # 找到相邻区域连接
  308. def find_adjacent_cells(coordinates):
  309. # 创建一个字典,用于存储每个格子的邻接格子
  310. adjacent_cells = {}
  311. # 遍历每个格子的坐标
  312. for x, y in coordinates:
  313. # 初始化当前格子的邻接格子列表
  314. neighbors = []
  315. # 检查上下左右四个方向的格子是否在范围内,并添加到邻接格子列表中
  316. if x > 0:
  317. neighbors.append((x - 1, y)) # 左
  318. if x < 3:
  319. neighbors.append((x + 1, y)) # 右
  320. if y > 0:
  321. neighbors.append((x, y - 1)) # 上
  322. if y < 3:
  323. neighbors.append((x, y + 1)) # 下
  324. # 将当前格子的邻接格子列表存储到字典中
  325. adjacent_cells[(x, y)] = neighbors
  326. # 创建两个列表,分别用于存储上下和左右邻接的线段
  327. vertical_lines = []
  328. horizontal_lines = []
  329. # 遍历每个格子,查找上下和左右邻接的线段
  330. for (x, y), neighbors in adjacent_cells.items():
  331. for neighbor_x, neighbor_y in neighbors:
  332. if (neighbor_x, neighbor_y) not in coordinates:
  333. continue
  334. # 如果邻接格子的x坐标相同,说明是左右邻接
  335. if x == neighbor_x:
  336. if ((x, y), (neighbor_x, neighbor_y)) not in vertical_lines and \
  337. ((neighbor_x, neighbor_y), (x, y)) not in vertical_lines:
  338. vertical_lines.append(((x, y), (neighbor_x, neighbor_y)))
  339. # 如果邻接格子的y坐标相同,说明是上下邻接
  340. elif y == neighbor_y:
  341. if ((x, y), (neighbor_x, neighbor_y)) not in horizontal_lines and \
  342. ((neighbor_x, neighbor_y), (x, y)) not in horizontal_lines:
  343. horizontal_lines.append(((x, y), (neighbor_x, neighbor_y)))
  344. # 返回上下和左右邻接的线段列表
  345. return vertical_lines, horizontal_lines
  346. '''
  347. # 生成区域所需xy条件
  348. def district_area_xy(total_dis_point):
  349. dis_list = []
  350. for p in total_dis_point:
  351. dis_list.append({"x1": 15*p[0]+2, "y1": 15*p[1]+2, "x2": 15*p[0]+14, "y2": 15*p[1]+14})
  352. return dis_list
  353. def district_json_generate(dislist):
  354. jsonlist = []
  355. for d in dislist:
  356. jsonlist.append({
  357. "square": {"x1": d["x1"], "y1": d["y1"], "x2": d["x2"], "y2": d["y2"]},
  358. "npcs": [{"name": "MoFaCuXian", "y": int((d["y1"]+d["y2"])/2), "x": int((d["x1"]+d["x2"])/2)}]
  359. })
  360. return jsonlist
  361. '''
  362. # 总砖块
  363. def NNmap(n):
  364. result = []
  365. for x in range(n):
  366. for y in range(n):
  367. result.append((x, y))
  368. return result
  369. # 去除条件f的砖块
  370. def filter_points(list, f):
  371. # 初始化一个空列表来存储满足条件的整数二元组
  372. result = []
  373. # 使用嵌套循环生成所有可能的二元组 (x, y)
  374. for (x, y) in list:
  375. if not f((x, y)):
  376. # 如果不满足条件,将该二元组添加到结果列表中
  377. result.append((x, y))
  378. return result
  379. # 具体区域内砖块生成
  380. def district_obstacles_allocation(total_dis_point: list, total_s_e, diff, theme_dic, cell_type, shop_level, has_boss, level_num):
  381. # battle_type_list = ["random", "random", "random", "random", "x_symmetric", "y_symmetric", "xy_symmetric", "rotational_symmetric"]
  382. # optional_type_list = ["surprise", "shop", "treasure_trick"]
  383. if R.difficulty in {"Baby", "Easy"}:
  384. sym_weight = 2
  385. else:
  386. sym_weight = 4
  387. battle_type_list = ["random"] * 24 + ["xy_symmetric"] * sym_weight + ["rotation_symmetric"]
  388. # battle_type_list = ["xy_symmetric"]
  389. optional_type_list = ["shop"] * 4 + ["combat", "combat", "treasure", "treasure"] * 5
  390. # optional_type_list = ["combat"]
  391. # optional_type_list = ["shop"]
  392. optional_num = 1
  393. shop_num = 0
  394. treasure_num = 0
  395. combat_num = 0
  396. casino_num = 0
  397. ttp = []
  398. for i in total_dis_point:
  399. ttp.append(i)
  400. # ttp = total_dis_point
  401. if len(total_dis_point) <= 5:
  402. optional_num = 1
  403. elif len(total_dis_point) == 6:
  404. optional_num = random.randint(1, 2)
  405. elif len(total_dis_point) == 7:
  406. optional_num = 2
  407. elif len(total_dis_point) == 8:
  408. optional_num = 3
  409. else:
  410. optional_num = 3
  411. has_exercise = False
  412. if level_num in [8, 13, 18]:
  413. if random.randint(1, 100) <= 70:
  414. optional_num += 1
  415. has_exercise = True
  416. op_points = total_dis_point
  417. op_points.remove(total_s_e[0])
  418. op_points.remove(total_s_e[1])
  419. final_op = []
  420. for i in range(optional_num):
  421. opt = random.choice(op_points)
  422. final_op.append(opt)
  423. op_points.remove(opt)
  424. battle_points = op_points
  425. battle_points.append(total_s_e[0])
  426. battle_points.append(total_s_e[1])
  427. # 现在battle_points为所有战斗点,而op_points为所有其他节点
  428. battle_dict = {}
  429. opt_dict = {}
  430. general_dict = {}
  431. for room in final_op:
  432. # 对于每个坐标,随机选择一个种类
  433. chosen_category = random.choice(optional_type_list)
  434. if has_exercise:
  435. has_exercise = False
  436. chosen_category = "exercise"
  437. else:
  438. if shop_num >= 1:
  439. chosen_category = random.choice(["treasure", "treasure", "combat"])
  440. if combat_num >= 2:
  441. chosen_category = random.choice(["treasure", "treasure", "shop"])
  442. if treasure_num >= 2:
  443. chosen_category = random.choice(["combat", "combat", "shop"])
  444. if level_num in [4, 9, 14, 19] and casino_num == 0 and random.randint(1, 100) >= 50:
  445. chosen_category = "casino"
  446. if chosen_category == "shop":
  447. shop_num += 1
  448. elif chosen_category == "treasure":
  449. treasure_num += 1
  450. elif chosen_category == "combat":
  451. combat_num += 1
  452. elif chosen_category == "casino":
  453. casino_num += 1
  454. # chosen_category = "casino"
  455. opt_dict[room] = chosen_category
  456. general_dict[room] = chosen_category
  457. for room in battle_points:
  458. # 对于每个坐标,随机选择一个种类
  459. chosen_category = random.choice(battle_type_list)
  460. if level_num in [1, 2, 3, 6, 7, 8, 11, 12, 13]:
  461. if room == total_s_e[0]:
  462. chosen_category = "random"
  463. if R.difficulty in {"Baby", "Easy"} and level_num in [4, 5, 9, 10, 14, 15]:
  464. if room == total_s_e[0]:
  465. chosen_category = "random"
  466. if room == total_s_e[1] and R.difficulty not in {"Baby", "Easy"}:
  467. chosen_category = "xy_symmetric"
  468. if has_boss and room == total_s_e[1]:
  469. chosen_category = "boss"
  470. battle_dict[room] = chosen_category
  471. general_dict[room] = chosen_category
  472. if R.print_mode:
  473. print("节点区域:", opt_dict)
  474. print("战斗区域:", battle_dict)
  475. districtJsonList = []
  476. final_wall = []
  477. final_cube = []
  478. for room in ttp:
  479. cube = []
  480. if general_dict[room] == "random":
  481. wall, cube, district = S.random_cell_generate(diff, theme_dic, cell_type, room)
  482. elif general_dict[room] == "xy_symmetric":
  483. wall, cube, district = S.xy_symmetric_cell_generate(diff, theme_dic, cell_type, room, level_num)
  484. elif general_dict[room] == "rotation_symmetric":
  485. wall, cube, district = S.rotationalSymmetric_cell_generate(diff, theme_dic, cell_type, room, level_num)
  486. elif general_dict[room] == "boss":
  487. wall, cube, district = S.boss_cell_generate(diff, theme_dic, cell_type, room)
  488. elif general_dict[room] == "shop":
  489. wall, district = S.shop_cell_generate(room, shop_level, level_num)
  490. elif general_dict[room] == "exercise":
  491. wall, cube, district = S.exercise_cell_generate(room)
  492. elif general_dict[room] == "casino":
  493. wall, cube, district = S.casino(room)
  494. elif general_dict[room] == "treasure":
  495. wall, cube, district = S.treasure_cell_generate(room, shop_level)
  496. elif general_dict[room] == "combat":
  497. wall, cube, district = S.combat_decision(room, level_num)
  498. else:
  499. wall, cube, district = S.random_cell_generate(diff, theme_dic, cell_type, room)
  500. for w in wall:
  501. if w not in final_wall:
  502. final_wall.append(w)
  503. for c in cube:
  504. if c not in final_cube:
  505. final_cube.append(c)
  506. if R.difficulty == "Hell+":
  507. if general_dict[room] in {"random", "xy_symmetric", "rotation_symmetric", "boss"}:
  508. if random.randint(0, 100) >= 98:
  509. for monster in district:
  510. monster["variant"] = True
  511. else:
  512. for monster in district:
  513. if random.randint(0, 100) >= 94:
  514. monster["variant"] = True
  515. districtJsonList.append({
  516. "square": {
  517. "x1": 15 * room[0] + 2,
  518. "y1": 15 * room[1] + 2,
  519. "x2": 15 * room[0] + 14,
  520. "y2": 15 * room[1] + 14
  521. },
  522. "npcs": district
  523. })
  524. # print(districtJsonList)
  525. return final_wall, final_cube, districtJsonList
  526. # 总结生成所有不可炸障碍的列表
  527. def conditional_point(n, total_dis_point, total_s_e, diff, theme_dic, cell_type, shop_level, has_boss, level_num):
  528. # 初始化
  529. map = NNmap(n)
  530. result = []
  531. vertical, horizontal = find_adjacent_cells(total_dis_point)
  532. for point in map:
  533. is_conditional = False
  534. for p in total_dis_point:
  535. if district_condition(p, point):
  536. is_conditional = True
  537. break
  538. for adjacent in vertical:
  539. if lane_condition(adjacent, point):
  540. is_conditional = True
  541. break
  542. for adjacent in horizontal:
  543. if lane_condition(adjacent, point):
  544. is_conditional = True
  545. break
  546. if start_end_condition(total_s_e, point):
  547. is_conditional = True
  548. if not is_conditional:
  549. result.append(point)
  550. final_wall, final_cube, district = district_obstacles_allocation(total_dis_point, total_s_e, diff, theme_dic,
  551. cell_type, shop_level, has_boss, level_num)
  552. for p in final_wall:
  553. result.append(p)
  554. final_fog = random.sample(A60x60list(result + final_cube), 240)
  555. return result, final_cube, district, final_fog
  556. # 所有可炸砖障碍的列表
  557. def cube_point(wallList):
  558. result = []
  559. for p in wallList:
  560. result.append(p)
  561. return result
  562. def Points2JSON(points):
  563. js = []
  564. for p in points:
  565. js.append({"y": p[1], "x": p[0]})
  566. return js
  567. def scroll_point(start):
  568. def minmax(x):
  569. return max(0, min(x, 61))
  570. x, y = start
  571. if x == 0:
  572. return [0, minmax(y - 6)]
  573. elif x == 61:
  574. return [42, minmax(y - 6)]
  575. elif y == 0:
  576. return [minmax(x - 11), 0]
  577. else:
  578. return [minmax(x - 11), 49]
  579. def generalMapJson(start_end, wallType, wallName, cubeType, cubeName, floorType, floorName, music, final_wall,
  580. final_cube, district, fogType, fogName, final_fog, special_param=None, ambience=None,
  581. environment=None, level_skill=None):
  582. start = start_point(start_end[0])
  583. end = start_point(start_end[1])
  584. if special_param == None:
  585. special = {"defense": 0, "damage": 0, "speed": 1}
  586. else:
  587. special = special_param
  588. # 首个地板作为打底,其余后面作为点缀,平均分配给600个位置
  589. floor_list = []
  590. if len(floorType) > 1:
  591. floors_points = allocate_coordinates_for_types([int(600 / (len(floorType) - 1))] * (len(floorType) - 1))
  592. for i in range(len(floors_points)):
  593. single_floor = Points2JSON(floors_points[i])
  594. floor_list.append({"type": floorType[i + 1], "name": floorName[i + 1], "points": single_floor})
  595. wall_list = []
  596. if len(wallType) > 0:
  597. wl = allocate_according_to_weights(len(final_wall), [len(wallType)] + [1] * (len(wallType) - 1))
  598. walls_points = allocate_coordinates_from_pool(wl, final_wall)
  599. for i in range(len(walls_points)):
  600. single_wall = Points2JSON(walls_points[i])
  601. wall_list.append({"type": wallType[i], "name": wallName[i], "points": single_wall})
  602. cube_list = []
  603. if len(cubeType) > 0:
  604. wl = allocate_according_to_weights(len(final_cube), [len(cubeType)] + [1] * (len(cubeType) - 1))
  605. cubes_points = allocate_coordinates_from_pool(wl, final_cube)
  606. for i in range(len(cubes_points)):
  607. single_cube = Points2JSON(cubes_points[i])
  608. cube_list.append({"type": cubeType[i], "name": cubeName[i], "points": single_cube})
  609. fog_list = []
  610. if len(fogType) > 0:
  611. if len(fogType) <= 7:
  612. final_fog_adj = random.sample(final_fog, min(len(fogType) * 30, len(final_fog)))
  613. else:
  614. final_fog_adj = final_fog
  615. wl = allocate_according_to_weights(len(final_fog_adj), [1] * (len(fogType)))
  616. fogs_points = allocate_coordinates_from_pool(wl, final_fog_adj)
  617. for i in range(len(fogs_points)):
  618. single_fog = Points2JSON(fogs_points[i])
  619. fog_list.append({"type": fogType[i], "name": fogName[i], "points": single_fog})
  620. data = {
  621. "basic": {
  622. "name": "map",
  623. "width": 62,
  624. "height": 62,
  625. "scroll": scroll_point(start),
  626. "music": music,
  627. "begin": [start[0], start[1]],
  628. "finish": [end[0], end[1]],
  629. "special": special
  630. },
  631. "floors": [{"type": floorType[0], "name": floorName[0], "squares": [{"x1": 0, "y1": 0, "x2": 61, "y2": 61}]}],
  632. "floor": floor_list + [{"type": "common", "name": "elem45", "points": [{"x": end[0], "y": end[1]}]}],
  633. "obstacles": [],
  634. "obstacle": wall_list + cube_list + fog_list,
  635. "districts": district
  636. }
  637. if ambience is not None:
  638. data["basic"]["ambience"] = ambience
  639. if environment is not None:
  640. data["basic"]["environment_effect"] = [environment]
  641. if level_skill is not None:
  642. data["basic"]["level_skill"] = level_skill
  643. return data
  644. # 关卡夹层选择加成处
  645. def OptionalMapJson(direction, wallType, wallName, floorType, floorName, music, must_speed=False, special_param=None,
  646. ambience=None, environment=None, level_skill=None):
  647. def randomLVup():
  648. l = ["RougeLVUPBlood", "RougeLVUPBlood", "RougeLVUPBlood", "RougeLVUPDamage", "RougeLVUPDamage",
  649. "RougeLVUPDamage", "RougeLVUPBomb", "RougeLVUPSpeed"]
  650. if must_speed:
  651. choice1 = "RougeLVUPSpeed"
  652. l.remove(choice1)
  653. choice2 = "RougeLVUPBomb"
  654. l.remove(choice2)
  655. else:
  656. choice1 = random.choice(l)
  657. l.remove(choice1)
  658. choice2 = random.choice(l)
  659. return [choice1, choice2]
  660. special = None
  661. if special_param == None:
  662. special = {"defense": 0, "damage": 0, "speed": 1}
  663. else:
  664. special = special_param
  665. if direction == 0:
  666. start = (10, 12)
  667. end = (9, 0)
  668. elif direction == 1:
  669. start = (0, 6)
  670. end = (19, 6)
  671. elif direction == 2:
  672. start = (9, 0)
  673. end = (10, 12)
  674. else:
  675. start = (19, 6)
  676. end = (0, 6)
  677. choices_list = randomLVup()
  678. squares_list = [
  679. {"x1": 0, "y1": 0, "x2": 5, "y2": 4},
  680. {"x1": 6, "y1": 0, "x2": 8, "y2": 2},
  681. {"x1": 11, "y1": 0, "x2": 13, "y2": 2},
  682. {"x1": 14, "y1": 0, "x2": 19, "y2": 4},
  683. {"x1": 0, "y1": 8, "x2": 5, "y2": 12},
  684. {"x1": 6, "y1": 10, "x2": 8, "y2": 12},
  685. {"x1": 11, "y1": 10, "x2": 13, "y2": 12},
  686. {"x1": 14, "y1": 8, "x2": 19, "y2": 12},
  687. {"x1": 7, "y1": 4, "x2": 7, "y2": 8},
  688. {"x1": 12, "y1": 4, "x2": 12, "y2": 8}
  689. ]
  690. if direction == 0 or direction == 2:
  691. squares_list.append({"x1": 0, "y1": 5, "x2": 5, "y2": 7})
  692. squares_list.append({"x1": 14, "y1": 5, "x2": 19, "y2": 7})
  693. else:
  694. squares_list.append({"x1": 9, "y1": 0, "x2": 10, "y2": 2})
  695. squares_list.append({"x1": 9, "y1": 10, "x2": 10, "y2": 12})
  696. points_list = [
  697. {"x": 8, "y": 4},
  698. {"x": 8, "y": 8},
  699. {"x": 11, "y": 4},
  700. {"x": 11, "y": 8},
  701. {"x": 9, "y": 6},
  702. {"x": 9, "y": 7},
  703. {"x": 9, "y": 8},
  704. {"x": 10, "y": 4},
  705. {"x": 10, "y": 5},
  706. {"x": 10, "y": 6}
  707. ]
  708. data = {
  709. "basic": {
  710. "name": "map",
  711. "width": 20,
  712. "height": 13,
  713. "scroll": [0, 0],
  714. "music": music,
  715. "begin": [start[0], start[1]],
  716. "finish": [end[0], end[1]],
  717. "special": special
  718. },
  719. "floors": [
  720. {
  721. "type": floorType[0], "name": floorName[0],
  722. "squares": [
  723. {"x1": 0, "y1": 0, "x2": 61, "y2": 61}
  724. ]}],
  725. "floor": [
  726. {
  727. "type": "common", "name": "elem45",
  728. "points": [
  729. {"x": end[0], "y": end[1]}
  730. ]
  731. }],
  732. "obstacles": [{
  733. "type": wallType[0], "name": wallName[0],
  734. "squares": squares_list}],
  735. "obstacle": [
  736. {
  737. "type": wallType[0], "name": wallName[0],
  738. "points": points_list
  739. }
  740. ],
  741. "districts": [
  742. {
  743. "square": {"x1": 6, "y1": 3, "x2": 13, "y2": 9},
  744. "npcs": [
  745. {"name": choices_list[0], "y": 7, "x": 8},
  746. {"name": choices_list[1], "y": 5, "x": 11}
  747. ]
  748. }]
  749. }
  750. if ambience is not None:
  751. data["basic"]["ambience"] = ambience
  752. if environment is not None:
  753. data["basic"]["environment_effect"] = [environment]
  754. if level_skill is not None:
  755. data["basic"]["level_skill"] = level_skill
  756. return data
  757. def FinalMapJson(direction, wallType, wallName, floorType, floorName, music, ambience=None, environment=None,
  758. level_skill=None):
  759. if direction == 0:
  760. start = (10, 12)
  761. elif direction == 1:
  762. start = (0, 6)
  763. elif direction == 2:
  764. start = (9, 0)
  765. else:
  766. start = (19, 6)
  767. squares_list = [
  768. {"x1": 0, "y1": 0, "x2": 5, "y2": 4},
  769. {"x1": 6, "y1": 0, "x2": 8, "y2": 2},
  770. {"x1": 11, "y1": 0, "x2": 13, "y2": 2},
  771. {"x1": 14, "y1": 0, "x2": 19, "y2": 4},
  772. {"x1": 0, "y1": 8, "x2": 5, "y2": 12},
  773. {"x1": 6, "y1": 10, "x2": 8, "y2": 12},
  774. {"x1": 11, "y1": 10, "x2": 13, "y2": 12},
  775. {"x1": 14, "y1": 8, "x2": 19, "y2": 12},
  776. {"x1": 7, "y1": 4, "x2": 7, "y2": 8},
  777. {"x1": 12, "y1": 4, "x2": 12, "y2": 8}
  778. ]
  779. if direction == 0 or direction == 2:
  780. squares_list.append({"x1": 0, "y1": 5, "x2": 5, "y2": 7})
  781. squares_list.append({"x1": 14, "y1": 5, "x2": 19, "y2": 7})
  782. else:
  783. squares_list.append({"x1": 9, "y1": 0, "x2": 10, "y2": 2})
  784. squares_list.append({"x1": 9, "y1": 10, "x2": 10, "y2": 12})
  785. points_list = [
  786. {"x": 8, "y": 4},
  787. {"x": 8, "y": 8},
  788. {"x": 11, "y": 4},
  789. {"x": 11, "y": 8},
  790. {"x": 9, "y": 6},
  791. {"x": 9, "y": 7},
  792. {"x": 9, "y": 8},
  793. {"x": 10, "y": 4},
  794. {"x": 10, "y": 5},
  795. {"x": 10, "y": 6}
  796. ]
  797. data = {
  798. "basic": {
  799. "name": "map",
  800. "width": 20,
  801. "height": 13,
  802. "scroll": [0, 0],
  803. "music": music,
  804. "begin": [start[0], start[1]],
  805. },
  806. "floors": [
  807. {
  808. "type": floorType[0], "name": floorName[0],
  809. "squares": [
  810. {"x1": 0, "y1": 0, "x2": 61, "y2": 61}
  811. ]}],
  812. "floor": [],
  813. "obstacles": [{
  814. "type": wallType[0], "name": wallName[0],
  815. "squares": squares_list}],
  816. "obstacle": [
  817. {
  818. "type": wallType[0], "name": wallName[0],
  819. "points": points_list
  820. }
  821. ],
  822. "districts": []
  823. }
  824. if ambience is not None:
  825. data["basic"]["ambience"] = ambience
  826. if environment is not None:
  827. data["basic"]["environment_effect"] = [environment]
  828. if level_skill is not None:
  829. data["basic"]["level_skill"] = level_skill
  830. return data
  831. def map_gen(direction, diff, theme_dic, cell_type, shop_level, has_boss, level_num):
  832. testp, test_se, direction_num = district_list_gen(direction)
  833. # print(test_se, testp)
  834. vertical, horizontal = find_adjacent_cells(testp)
  835. # print("上下邻接的线段:", len(vertical), vertical)
  836. # print("左右邻接的线段:", len(horizontal), horizontal)
  837. final_point, final_cube, district, final_fog = conditional_point(62, testp, test_se, diff, theme_dic, cell_type, shop_level, has_boss, level_num)
  838. R.se_district.append(test_se)
  839. return testp, test_se, direction_num, vertical, horizontal, final_point, final_cube, district, final_fog
  840. def main_func():
  841. # theme_1 = random.choice([T.theme1_A_mon_dic, T.theme1_B_mon_dic, T.theme1_C_mon_dic, T.theme1_D_mon_dic])
  842. # theme_2 = random.choice([T.theme2_A_mon_dic, T.theme2_B_mon_dic, T.theme2_C_mon_dic])
  843. # theme_3 = random.choice([T.theme3_A_mon_dic, T.theme3_B_mon_dic, T.theme3_C_mon_dic])
  844. theme_1 = get_random_theme("theme_1")
  845. theme_2 = get_random_theme("theme_2")
  846. theme_3 = get_random_theme("theme_3")
  847. theme_eden = T.theme_eden_mon_dic
  848. theme_destiny = T.theme_destiny_mon_dic
  849. theme_ocean = T.theme_ocean_mon_dic
  850. # theme_3 = T.theme3_C_mon_dic
  851. # theme_2 = T.theme2_C_mon_dic
  852. if theme_1 == T.theme1_A_mon_dic:
  853. R.rouge_theme_1 = "魔法王国"
  854. elif theme_1 == T.theme1_B_mon_dic:
  855. R.rouge_theme_1 = "静涛海原"
  856. elif theme_1 == T.theme1_C_mon_dic:
  857. R.rouge_theme_1 = "废铁乐园"
  858. elif theme_1 == T.theme1_D_mon_dic:
  859. R.rouge_theme_1 = "絮语森林"
  860. if theme_2 == T.theme2_A_mon_dic:
  861. R.rouge_theme_2 = "魔法古堡"
  862. elif theme_2 == T.theme2_B_mon_dic:
  863. R.rouge_theme_2 = "永东寒原"
  864. elif theme_2 == T.theme2_C_mon_dic:
  865. R.rouge_theme_2 = "迷雾古林"
  866. if theme_3 == T.theme3_A_mon_dic:
  867. R.rouge_story = "地狱矿工"
  868. R.rouge_theme_3 = "熔岩深矿"
  869. elif theme_3 == T.theme3_B_mon_dic:
  870. R.rouge_story = "时空沙漏"
  871. R.rouge_theme_3 = "赤砂遗迹"
  872. elif theme_3 == T.theme3_C_mon_dic:
  873. R.rouge_story = "轮齿之怒"
  874. R.rouge_theme_3 = "械城之心"
  875. # 不同难度的难度系数(顺序: 第一层/ 第二层/ 第三层/ 艾登层/ 命运层/ 深海层/ 空岛)
  876. Easy_diff_list = [10, 16, 20, 25, 32, 20, 25, 30, 35, 42, 30, 35, 40, 45, 50, 30, 35, 40, 45, 50, 35, 40, 45, 50, 56, 50, 56, 64, 75, 88, 56, 50, 56, 64, 75, 88]
  877. Hard_diff_list = [12, 18, 24, 30, 40, 24, 30, 36, 42, 54, 36, 42, 52, 56, 64, 36, 42, 52, 64, 75, 40, 48, 60, 70, 80, 70, 80, 90, 100, 108, 70, 80, 90, 100, 108]
  878. Hell_diff_list = [18, 24, 30, 40, 50, 30, 36, 42, 50, 60, 36, 42, 52, 64, 75, 42, 52, 64, 75, 88, 50, 60, 72, 80, 96, 80, 92, 108, 120, 140, 80, 92, 108, 120, 140]
  879. Hell_p_diff_list = [20, 26, 33, 44, 55, 33, 40, 46, 55, 66, 42, 52, 64, 75, 88, 46, 57, 70, 82, 98, 55, 66, 80, 88, 102, 88, 100, 118, 132, 156, 88, 100, 118, 132, 156]
  880. diff_dic = {"Baby": Easy_diff_list, "Easy": Easy_diff_list, "Normal": Hard_diff_list, "Hell": Hell_diff_list, "Hell+": Hell_p_diff_list}
  881. map1, map1_se, direction_1, vertical_1, horizontal_1, final_point_1, final_cube_1, district_1, final_fog_1 = \
  882. map_gen(direction=-1, diff=diff_dic[R.difficulty][0], theme_dic=theme_1, cell_type="normal", shop_level=1, has_boss=False, level_num=1)
  883. map2, map2_se, direction_2, vertical_2, horizontal_2, final_point_2, final_cube_2, district_2, final_fog_2 = \
  884. map_gen(direction=direction_1, diff=diff_dic[R.difficulty][1], theme_dic=theme_1, cell_type="normal", shop_level=1, has_boss=False, level_num=2)
  885. map3, map3_se, direction_3, vertical_3, horizontal_3, final_point_3, final_cube_3, district_3, final_fog_3 = \
  886. map_gen(direction=direction_2, diff=diff_dic[R.difficulty][2], theme_dic=theme_1, cell_type="normal", shop_level=1, has_boss=False, level_num=3)
  887. map4, map4_se, direction_4, vertical_4, horizontal_4, final_point_4, final_cube_4, district_4, final_fog_4 = \
  888. map_gen(direction=direction_3, diff=diff_dic[R.difficulty][3], theme_dic=theme_1, cell_type="normal_elite", shop_level=1, has_boss=False, level_num=4)
  889. map5, map5_se, direction_5, vertical_5, horizontal_5, final_point_5, final_cube_5, district_5, final_fog_5 = \
  890. map_gen(direction=direction_4, diff=diff_dic[R.difficulty][4], theme_dic=theme_1, cell_type="elite", shop_level=1, has_boss=True, level_num=5)
  891. map6, map6_se, direction_6, vertical_6, horizontal_6, final_point_6, final_cube_6, district_6, final_fog_6 = \
  892. map_gen(direction=direction_5, diff=diff_dic[R.difficulty][5], theme_dic=theme_2, cell_type="normal", shop_level=2, has_boss=False, level_num=6)
  893. map7, map7_se, direction_7, vertical_7, horizontal_7, final_point_7, final_cube_7, district_7, final_fog_7 = \
  894. map_gen(direction=direction_6, diff=diff_dic[R.difficulty][6], theme_dic=theme_2, cell_type="normal", shop_level=2, has_boss=False, level_num=7)
  895. map8, map8_se, direction_8, vertical_8, horizontal_8, final_point_8, final_cube_8, district_8, final_fog_8 = \
  896. map_gen(direction=direction_7, diff=diff_dic[R.difficulty][7], theme_dic=theme_2, cell_type="normal", shop_level=2, has_boss=False, level_num=8)
  897. map9, map9_se, direction_9, vertical_9, horizontal_9, final_point_9, final_cube_9, district_9, final_fog_9 = \
  898. map_gen(direction=direction_8, diff=diff_dic[R.difficulty][8], theme_dic=theme_2, cell_type="normal_elite", shop_level=2, has_boss=False, level_num=9)
  899. map10, map10_se, direction_10, vertical_10, horizontal_10, final_point_10, final_cube_10, district_10, final_fog_10 = \
  900. map_gen(direction=direction_9, diff=diff_dic[R.difficulty][9], theme_dic=theme_2, cell_type="elite", shop_level=2, has_boss=True, level_num=10)
  901. map11, map11_se, direction_11, vertical_11, horizontal_11, final_point_11, final_cube_11, district_11, final_fog_11 = \
  902. map_gen(direction=direction_10, diff=diff_dic[R.difficulty][10], theme_dic=theme_3, cell_type="normal", shop_level=3, has_boss=False, level_num=11)
  903. map12, map12_se, direction_12, vertical_12, horizontal_12, final_point_12, final_cube_12, district_12, final_fog_12 = \
  904. map_gen(direction=direction_11, diff=diff_dic[R.difficulty][11], theme_dic=theme_3, cell_type="normal", shop_level=3, has_boss=False, level_num=12)
  905. map13, map13_se, direction_13, vertical_13, horizontal_13, final_point_13, final_cube_13, district_13, final_fog_13 = \
  906. map_gen(direction=direction_12, diff=diff_dic[R.difficulty][12], theme_dic=theme_3, cell_type="normal", shop_level=3, has_boss=False, level_num=13)
  907. map14, map14_se, direction_14, vertical_14, horizontal_14, final_point_14, final_cube_14, district_14, final_fog_14 = \
  908. map_gen(direction=direction_13, diff=diff_dic[R.difficulty][13], theme_dic=theme_3, cell_type="normal_elite", shop_level=3, has_boss=False, level_num=14)
  909. map15, map15_se, direction_15, vertical_15, horizontal_15, final_point_15, final_cube_15, district_15, final_fog_15 = \
  910. map_gen(direction=direction_14, diff=diff_dic[R.difficulty][14], theme_dic=theme_3, cell_type="elite", shop_level=3, has_boss=True, level_num=15)
  911. map_eden16, map_eden16_se, direction_16, vertical_eden_16, horizontal_eden_16, final_point_eden_16, final_cube_eden_16, district_eden_16, final_fog_eden_16 = \
  912. map_gen(direction=direction_15, diff=diff_dic[R.difficulty][15], theme_dic=theme_eden, cell_type="normal", shop_level=3, has_boss=False, level_num=16)
  913. map_eden17, map_eden17_se, direction_17, vertical_eden_17, horizontal_eden_17, final_point_eden_17, final_cube_eden_17, district_eden_17, final_fog_eden_17 = \
  914. map_gen(direction=direction_16, diff=diff_dic[R.difficulty][16], theme_dic=theme_eden, cell_type="normal", shop_level=3, has_boss=False, level_num=17)
  915. map_eden18, map_eden18_se, direction_18, vertical_eden_18, horizontal_eden_18, final_point_eden_18, final_cube_eden_18, district_eden_18, final_fog_eden_18 = \
  916. map_gen(direction=direction_17, diff=diff_dic[R.difficulty][17], theme_dic=theme_eden, cell_type="normal_elite", shop_level=3, has_boss=False, level_num=18)
  917. map_eden19, map_eden19_se, direction_19, vertical_eden_19, horizontal_eden_19, final_point_eden_19, final_cube_eden_19, district_eden_19, final_fog_eden_19 = \
  918. map_gen(direction=direction_18, diff=diff_dic[R.difficulty][18], theme_dic=theme_eden, cell_type="elite", shop_level=3, has_boss=False, level_num=19)
  919. map_eden20, map_eden20_se, direction_20, vertical_eden_20, horizontal_eden_20, final_point_eden_20, final_cube_eden_20, district_eden_20, final_fog_eden_20 = \
  920. map_gen(direction=direction_19, diff=diff_dic[R.difficulty][19], theme_dic=theme_eden, cell_type="elite", shop_level=3, has_boss=True, level_num=20)
  921. map_destiny16, map_destiny16_se, direction_16, vertical_destiny_16, horizontal_destiny_16, final_point_destiny_16, final_cube_destiny_16, district_destiny_16, final_fog_destiny_16 = \
  922. map_gen(direction=direction_15, diff=diff_dic[R.difficulty][20], theme_dic=theme_destiny, cell_type="normal", shop_level=3, has_boss=False, level_num=16)
  923. map_destiny17, map_destiny17_se, direction_17, vertical_destiny_17, horizontal_destiny_17, final_point_destiny_17, final_cube_destiny_17, district_destiny_17, final_fog_destiny_17 = \
  924. map_gen(direction=direction_16, diff=diff_dic[R.difficulty][21], theme_dic=theme_destiny, cell_type="normal", shop_level=3, has_boss=False, level_num=17)
  925. map_destiny18, map_destiny18_se, direction_18, vertical_destiny_18, horizontal_destiny_18, final_point_destiny_18, final_cube_destiny_18, district_destiny_18, final_fog_destiny_18 = \
  926. map_gen(direction=direction_17, diff=diff_dic[R.difficulty][22], theme_dic=theme_destiny, cell_type="normal_elite", shop_level=3, has_boss=False, level_num=18)
  927. map_destiny19, map_destiny19_se, direction_19, vertical_destiny_19, horizontal_destiny_19, final_point_destiny_19, final_cube_destiny_19, district_destiny_19, final_fog_destiny_19 = \
  928. map_gen(direction=direction_18, diff=diff_dic[R.difficulty][23], theme_dic=theme_destiny, cell_type="normal_elite", shop_level=3, has_boss=False, level_num=19)
  929. map_destiny20, map_destiny20_se, direction_20, vertical_destiny_20, horizontal_destiny_20, final_point_destiny_20, final_cube_destiny_20, district_destiny_20, final_fog_destiny_20 = \
  930. map_gen(direction=direction_19, diff=diff_dic[R.difficulty][24], theme_dic=theme_destiny, cell_type="elite", shop_level=3, has_boss=True, level_num=20)
  931. map_ocean16, map_ocean16_se, direction_16, vertical_ocean_16, horizontal_ocean_16, final_point_ocean_16, final_cube_ocean_16, district_ocean_16, final_fog_ocean_16 = \
  932. map_gen(direction=direction_15, diff=diff_dic[R.difficulty][25], theme_dic=theme_ocean, cell_type="normal", shop_level=3, has_boss=False, level_num=16)
  933. map_ocean17, map_ocean17_se, direction_17, vertical_ocean_17, horizontal_ocean_17, final_point_ocean_17, final_cube_ocean_17, district_ocean_17, final_fog_ocean_17 = \
  934. map_gen(direction=direction_16, diff=diff_dic[R.difficulty][26], theme_dic=theme_ocean, cell_type="normal_elite", shop_level=3, has_boss=False, level_num=17)
  935. map_ocean18, map_ocean18_se, direction_18, vertical_ocean_18, horizontal_ocean_18, final_point_ocean_18, final_cube_ocean_18, district_ocean_18, final_fog_ocean_18 = \
  936. map_gen(direction=direction_17, diff=diff_dic[R.difficulty][27], theme_dic=theme_ocean, cell_type="normal_elite", shop_level=3, has_boss=False, level_num=18)
  937. map_ocean19, map_ocean19_se, direction_19, vertical_ocean_19, horizontal_ocean_19, final_point_ocean_19, final_cube_ocean_19, district_ocean_19, final_fog_ocean_19 = \
  938. map_gen(direction=direction_18, diff=diff_dic[R.difficulty][28], theme_dic=theme_ocean, cell_type="elite", shop_level=3, has_boss=False, level_num=19)
  939. map_ocean20, map_ocean20_se, direction_20, vertical_ocean_20, horizontal_ocean_20, final_point_ocean_20, final_cube_ocean_20, district_ocean_20, final_fog_ocean_20 = \
  940. map_gen(direction=direction_19, diff=diff_dic[R.difficulty][29], theme_dic=theme_ocean, cell_type="elite", shop_level=3, has_boss=True, level_num=20)
  941. if theme_1 == T.theme1_A_mon_dic:
  942. data_map1 = generalMapJson(map1_se, ["snow", "snow", "snow"], ["elem40", "elem41", "elem19"], ["common"],
  943. ["elem43"], ["snow", "snow", "snow"], ["elem39", "elem18", "elem29"], "magic.ogg",
  944. final_point_1, final_cube_1, district_1, [], [], final_fog_1)
  945. data_att1 = OptionalMapJson(direction_1, ["snow"], ["elem41"], ["snow"], ["elem39"], "magic.ogg")
  946. data_map2 = generalMapJson(map2_se, ["snow", "snow", "snow"], ["elem40", "elem41", "elem19"], ["common"],
  947. ["elem43"], ["snow", "snow", "snow"], ["elem39", "elem18", "elem29"], "magic.ogg",
  948. final_point_2, final_cube_2, district_2, [], [], final_fog_2)
  949. data_att2 = OptionalMapJson(direction_2, ["snow"], ["elem41"], ["snow"], ["elem39"], "magic.ogg")
  950. data_map3 = generalMapJson(map3_se, ["snow", "snow", "snow"], ["elem40", "elem41", "elem19"], ["common"],
  951. ["elem43"], ["snow", "snow", "snow"], ["elem39", "elem18", "elem29"], "magic.ogg",
  952. final_point_3, final_cube_3, district_3, [], [], final_fog_3)
  953. data_att3 = OptionalMapJson(direction_3, ["snow"], ["elem41"], ["snow"], ["elem39"], "magic.ogg")
  954. data_map4 = generalMapJson(map4_se, ["snow", "common", "common"], ["elem40", "elem62", "elem69"], ["common"],
  955. ["elem44"], ["snow"], ["elem17"], "scene2.ogg", final_point_4, final_cube_4,
  956. district_4, [], [], final_fog_4)
  957. data_att4 = OptionalMapJson(direction_4, ["snow"], ["elem41"], ["snow"], ["elem17"], "scene2.ogg")
  958. data_map5 = generalMapJson(map5_se, ["snow", "common", "common"], ["elem40", "elem62", "elem69"], ["common"],
  959. ["elem44"], ["snow"], ["elem17"], "scene2.ogg", final_point_5, final_cube_5,
  960. district_5, [], [], final_fog_5)
  961. data_att5 = OptionalMapJson(direction_5, ["snow"], ["elem41"], ["snow"], ["elem17"], "scene2.ogg",
  962. must_speed=True)
  963. elif theme_1 == T.theme1_B_mon_dic:
  964. data_map1 = generalMapJson(map1_se, ["ocean", "ocean", "ocean", "ocean", "ocean"],
  965. ["elem7", "elem15", "elem18", "elem6", "elem12"], ["ocean", "ocean"],
  966. ["elem2", "elem4"], ["ocean", "ocean", "ocean"], ["elem56", "elem58", "elem59"],
  967. "ocean1.ogg", final_point_1, final_cube_1, district_1, ["ocean", "ocean", "ocean"],
  968. ["elem105", "elem810", "elem811"], final_fog_1, ambience="ocean.mp3")
  969. data_att1 = OptionalMapJson(direction_1, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg",
  970. ambience="ocean.mp3")
  971. data_map2 = generalMapJson(map2_se, ["ocean", "ocean", "ocean", "ocean", "ocean"],
  972. ["elem7", "elem15", "elem18", "elem6", "elem12"], ["ocean", "ocean"],
  973. ["elem2", "elem4"], ["ocean", "ocean", "ocean"], ["elem56", "elem58", "elem59"],
  974. "ocean1.ogg", final_point_2, final_cube_2, district_2, ["ocean", "ocean", "ocean"],
  975. ["elem105", "elem810", "elem811"], final_fog_2, ambience="ocean.mp3")
  976. data_att2 = OptionalMapJson(direction_2, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg",
  977. ambience="ocean.mp3")
  978. data_map3 = generalMapJson(map3_se, ["ocean", "ocean", "ocean", "ocean", "ocean"],
  979. ["elem7", "elem15", "elem18", "elem6", "elem12"], ["ocean", "ocean"],
  980. ["elem2", "elem4"], ["ocean", "ocean", "ocean"], ["elem56", "elem58", "elem59"],
  981. "ocean1.ogg", final_point_3, final_cube_3, district_3, ["ocean", "ocean", "ocean"],
  982. ["elem105", "elem810", "elem811"], final_fog_3, ambience="ocean.mp3")
  983. data_att3 = OptionalMapJson(direction_3, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg",
  984. ambience="ocean.mp3")
  985. data_map4 = generalMapJson(map4_se, ["mine", "mine"], ["elem207", "elem201"], ["ocean", "ocean", "ocean"],
  986. ["elem14", "elem4", "elem2"], ["ocean", "ocean", "ocean"],
  987. ["elem56", "elem58", "elem59"], "ocean2.mp3", final_point_4, final_cube_4,
  988. district_4, ["ocean", "ocean", "ocean", "ocean", "ocean"],
  989. ["elem105", "elem107", "elem810", "elem811", "elem811"], final_fog_4,
  990. ambience="ocean.mp3")
  991. data_att4 = OptionalMapJson(direction_4, ["mine"], ["elem207"], ["ocean"], ["elem56"], "ocean2.mp3",
  992. ambience="ocean.mp3")
  993. data_map5 = generalMapJson(map5_se, ["mine", "mine"], ["elem207", "elem201"], ["ocean", "ocean", "ocean"],
  994. ["elem14", "elem4", "elem2"], ["ocean", "ocean", "ocean"],
  995. ["elem56", "elem58", "elem59"], "ocean2.mp3", final_point_5, final_cube_5,
  996. district_5, ["ocean", "ocean", "ocean", "ocean", "ocean"],
  997. ["elem105", "elem107", "elem810", "elem811", "elem811"], final_fog_5,
  998. ambience="ocean.mp3")
  999. data_att5 = OptionalMapJson(direction_5, ["mine"], ["elem207"], ["ocean"], ["elem56"], "ocean2.mp3",
  1000. must_speed=True, ambience="ocean.mp3")
  1001. elif theme_1 == T.theme1_C_mon_dic:
  1002. data_map1 = generalMapJson(map1_se,
  1003. ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
  1004. ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
  1005. ["machine", "machine", "machine", "machine"],
  1006. ["elem64", "elem65", "elem66", "elem67"], ["machine", "machine", "machine"],
  1007. ["elem48", "elem51", "elem47"], "steamacity2.ogg", final_point_1, final_cube_1,
  1008. district_1, [], [], final_fog_1)
  1009. data_att1 = OptionalMapJson(direction_1,
  1010. ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
  1011. ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
  1012. ["machine", "machine", "machine"], ["elem48", "elem51", "elem47"],
  1013. "steamacity2.ogg")
  1014. data_map2 = generalMapJson(map2_se,
  1015. ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
  1016. ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
  1017. ["machine", "machine", "machine", "machine"],
  1018. ["elem64", "elem65", "elem66", "elem67"], ["machine", "machine", "machine"],
  1019. ["elem48", "elem51", "elem47"], "steamacity2.ogg", final_point_2, final_cube_2,
  1020. district_2, [], [], final_fog_2)
  1021. data_att2 = OptionalMapJson(direction_2,
  1022. ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
  1023. ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
  1024. ["machine", "machine", "machine"], ["elem48", "elem51", "elem47"],
  1025. "steamacity2.ogg")
  1026. data_map3 = generalMapJson(map3_se,
  1027. ["machine", "machine", "machine", "machine", "machine", "machine", "machine",
  1028. "machine", "machine", "machine"],
  1029. ["elem63", "elem11", "elem14", "elem57", "elem58", "elem70", "elem71", "elem72",
  1030. "elem73", "elem74"], ["machine", "machine", "machine", "machine"],
  1031. ["elem64", "elem65", "elem66", "elem67"], ["machine", "machine", "machine"],
  1032. ["elem51", "elem48", "elem47"], "steamacity2.ogg", final_point_3, final_cube_3,
  1033. district_3, [], [], final_fog_3)
  1034. data_att3 = OptionalMapJson(direction_3,
  1035. ["machine", "machine", "machine", "machine", "machine", "machine", "machine",
  1036. "machine", "machine", "machine"],
  1037. ["elem63", "elem11", "elem14", "elem57", "elem58", "elem70", "elem71", "elem72",
  1038. "elem73", "elem74"], ["machine", "machine", "machine"],
  1039. ["elem51", "elem48", "elem47"], "steamacity2.ogg")
  1040. data_map4 = generalMapJson(map4_se, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
  1041. ["elem740", "elem705", "elem703", "elem701", "elem308"],
  1042. ["machine", "machine", "machine", "machine"],
  1043. ["elem64", "elem65", "elem66", "elem67"],
  1044. ["machine_dark", "steamacity", "steamacity", "steamacity"],
  1045. ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg", final_point_4,
  1046. final_cube_4, district_4, ["steamacity"], ["elem702"], final_fog_4)
  1047. data_att4 = OptionalMapJson(direction_4, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
  1048. ["elem740", "elem705", "elem703", "elem701", "elem308"],
  1049. ["machine_dark", "steamacity", "steamacity", "steamacity"],
  1050. ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg")
  1051. data_map5 = generalMapJson(map5_se, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
  1052. ["elem740", "elem705", "elem703", "elem701", "elem308"],
  1053. ["machine", "machine", "machine", "machine"],
  1054. ["elem64", "elem65", "elem66", "elem67"],
  1055. ["machine_dark", "steamacity", "steamacity", "steamacity"],
  1056. ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg", final_point_5,
  1057. final_cube_5, district_5, ["steamacity"], ["elem702"], final_fog_5)
  1058. data_att5 = OptionalMapJson(direction_5, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
  1059. ["elem740", "elem705", "elem703", "elem701", "elem308"],
  1060. ["machine_dark", "steamacity", "steamacity", "steamacity"],
  1061. ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg", must_speed=True)
  1062. elif theme_1 == T.theme1_D_mon_dic:
  1063. data_map1 = generalMapJson(
  1064. map1_se,
  1065. ["skyland", "skyland", "skyland", "skyland", "field", "field", "exploration"],
  1066. ["elem1410", "elem1104", "elem1412", "elem1412", "elem7", "elem8", "elem105"],
  1067. ["field", "field", "exploration", "exploration", "exploration", "skyland"],
  1068. ["elem2", "elem4", "elem108", "elem109", "elem103", "elem1405"],
  1069. ["skyland"],
  1070. ["elem1001"],
  1071. "T3.ogg", final_point_1, final_cube_1,
  1072. district_1, ["exploration", "skyland"], ["elem104", "elem1003"], final_fog_1
  1073. )
  1074. data_att1 = OptionalMapJson(direction_1, ["skyland"], ["elem1410"], ["skyland"], ["elem1001"], "T3.ogg")
  1075. data_map2 = generalMapJson(
  1076. map2_se,
  1077. ["skyland", "skyland", "skyland", "skyland", "skyland", "field", "field", "exploration"],
  1078. ["elem1410", "elem1104", "elem1104", "elem1412", "elem1412", "elem7", "elem8", "elem105"],
  1079. ["field", "field", "exploration", "exploration", "exploration", "skyland"],
  1080. ["elem2", "elem4", "elem108", "elem109", "elem103", "elem1405"],
  1081. ["skyland"],
  1082. ["elem1001"],
  1083. "T3.ogg", final_point_2, final_cube_2,
  1084. district_2, ["exploration", "skyland"], ["elem104", "elem1003"], final_fog_2
  1085. )
  1086. data_att2 = OptionalMapJson(direction_2, ["skyland"], ["elem1410"], ["skyland"], ["elem1001"], "T3.ogg")
  1087. data_map3 = generalMapJson(
  1088. map3_se,
  1089. ["skyland", "skyland", "skyland", "skyland", "skyland", "skyland", "field", "field", "exploration"],
  1090. ["elem1410", "elem1104", "elem1104", "elem1104", "elem1412", "elem1412", "elem7", "elem8", "elem105"],
  1091. ["field", "field", "exploration", "exploration", "exploration", "skyland", "skyland", "skyland"],
  1092. ["elem2", "elem4", "elem108", "elem109", "elem103", "elem1405", "elem1405", "elem1405"],
  1093. ["skyland"],
  1094. ["elem1001"],
  1095. "T3.ogg", final_point_3, final_cube_3,
  1096. district_3, ["exploration","exploration","skyland"], ["elem104","elem104","elem1003"], final_fog_3
  1097. )
  1098. data_att3 = OptionalMapJson(direction_3, ["skyland"], ["elem1410"], ["skyland"], ["elem1001"], "T3.ogg")
  1099. data_map4 = generalMapJson(
  1100. map4_se,
  1101. ["skyland", "skyland", "skyland", "skyland", "skyland", "skyland", "skyland", "field", "field", "exploration"],
  1102. ["elem1410", "elem1104", "elem1104", "elem1104", "elem1104", "elem1412", "elem1412", "elem7", "elem8", "elem105"],
  1103. ["field", "field", "exploration", "exploration", "exploration", "skyland", "skyland", "skyland", "skyland"],
  1104. ["elem2", "elem4", "elem108", "elem109", "elem103", "elem1405", "elem1405", "elem1405", "elem1405"],
  1105. ["skyland"],
  1106. ["elem1001"],
  1107. "rogue_field1.ogg", final_point_4, final_cube_4,
  1108. district_4, ["exploration","exploration","exploration","skyland"], ["elem104","elem104","elem104","elem1003"], final_fog_4
  1109. )
  1110. data_att4 = OptionalMapJson(direction_4, ["skyland"], ["elem1410"], ["skyland"], ["elem1001"], "rogue_field1.ogg")
  1111. data_map5 = generalMapJson(
  1112. map5_se,
  1113. ["skyland", "skyland", "skyland", "skyland", "field", "field", "exploration"],
  1114. ["elem1104", "elem1410", "elem1412", "elem1412", "elem7", "elem8", "elem105"],
  1115. ["field", "field", "exploration", "exploration", "exploration", "skyland", "skyland", "skyland", "skyland"],
  1116. ["elem2", "elem4", "elem108", "elem109", "elem103", "elem1405", "elem1405", "elem1405", "elem1405"],
  1117. ["skyland"],
  1118. ["elem1001"],
  1119. "rogue_field1.ogg", final_point_5, final_cube_5,
  1120. district_5, ["exploration","exploration","exploration","skyland"], ["elem104","elem104","elem104","elem1003"], final_fog_5
  1121. )
  1122. data_att5 = OptionalMapJson(direction_5, ["skyland"], ["elem1104"], ["skyland"], ["elem1001"], "rogue_field1.ogg", must_speed=True)
  1123. if theme_2 == T.theme2_A_mon_dic:
  1124. data_map6 = generalMapJson(map6_se, ["mine", "common", "common"], ["elem151", "elem62", "elem53"],
  1125. ["common", "common"], ["elem101", "elem42"], ["mine"], ["elem56"], "magic.ogg",
  1126. final_point_6, final_cube_6, district_6, [], [], final_fog_6)
  1127. data_att6 = OptionalMapJson(direction_6, ["mine"], ["elem151"], ["mine"], ["elem56"], "magic.ogg")
  1128. data_map7 = generalMapJson(map7_se, ["mine", "common", "common"], ["elem151", "elem62", "elem53"],
  1129. ["common", "common"], ["elem101", "elem42"], ["mine"], ["elem56"], "magic.ogg",
  1130. final_point_7, final_cube_7, district_7, [], [], final_fog_7)
  1131. data_att7 = OptionalMapJson(direction_7, ["mine"], ["elem151"], ["mine"], ["elem56"], "magic.ogg")
  1132. data_map8 = generalMapJson(map8_se, ["mine", "common", "common"], ["elem151", "elem62", "elem53"],
  1133. ["common", "common"], ["elem101", "elem42"], ["mine"], ["elem56"], "magic.ogg",
  1134. final_point_8, final_cube_8, district_8, [], [], final_fog_8)
  1135. data_att8 = OptionalMapJson(direction_8, ["mine"], ["elem151"], ["mine"], ["elem56"], "magic.ogg")
  1136. data_map9 = generalMapJson(map9_se, ["mine", "mine"], ["elem151", "elem51"], ["common"], ["elem42"],
  1137. ["mine", "mine"], ["elem35", "elem31"], "shatterpoint.ogg", final_point_9,
  1138. final_cube_9, district_9, [], [], final_fog_9)
  1139. data_att9 = OptionalMapJson(direction_9, ["mine"], ["elem51"], ["mine"], ["elem35"], "shatterpoint.ogg")
  1140. data_map10 = generalMapJson(map10_se, ["mine", "mine"], ["elem151", "elem51"], ["common", "treasure"],
  1141. ["elem42", "elem5"], ["mine", "mine"], ["elem35", "elem31"], "shatterpoint.ogg",
  1142. final_point_10, final_cube_10, district_10, [], [], final_fog_10)
  1143. data_att10 = OptionalMapJson(direction_10, ["mine"], ["elem51"], ["mine"], ["elem35"], "shatterpoint.ogg",
  1144. must_speed=True)
  1145. elif theme_2 == T.theme2_B_mon_dic:
  1146. data_map6 = generalMapJson(map6_se, ["glacier", "glacier", "glacier"], ["elem217", "elem216", "elem205"],
  1147. ["glacier", "glacier", "glacier"], ["elem225", "elem226", "elem227"],
  1148. ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
  1149. "g1.ogg", final_point_6, final_cube_6, district_6, [], [], final_fog_6,
  1150. special_param={"defense": -200, "damage": 0, "speed": 1})
  1151. data_att6 = OptionalMapJson(direction_6, ["glacier", "glacier", "glacier"], ["elem217", "elem216", "elem205"],
  1152. ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
  1153. "g1.ogg", special_param={"defense": -200, "damage": 0, "speed": 1})
  1154. data_map7 = generalMapJson(map7_se, ["exploration", "glacier", "glacier"], ["elem212", "elem216", "elem21"],
  1155. ["glacier", "glacier", "glacier"], ["elem225", "elem226", "elem227"],
  1156. ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
  1157. "g2.ogg", final_point_7, final_cube_7, district_7, [], [], final_fog_7,
  1158. special_param={"defense": -200, "damage": 0, "speed": 1})
  1159. data_att7 = OptionalMapJson(direction_7, ["exploration", "glacier", "glacier"],
  1160. ["elem212", "elem216", "elem21"], ["glacier", "glacier", "glacier", "glacier"],
  1161. ["elem1", "elem2", "elem3", "elem4"], "g2.ogg",
  1162. special_param={"defense": -200, "damage": 0, "speed": 1})
  1163. data_map8 = generalMapJson(map8_se, ["exploration", "glacier", "glacier"], ["elem212", "elem216", "elem21"],
  1164. ["glacier", "glacier", "glacier"], ["elem225", "elem226", "elem227"],
  1165. ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
  1166. "g2.ogg", final_point_8, final_cube_8, district_8, [], [], final_fog_8,
  1167. special_param={"defense": -200, "damage": 0, "speed": 1})
  1168. data_att8 = OptionalMapJson(direction_8, ["exploration", "glacier", "glacier"],
  1169. ["elem212", "elem216", "elem21"], ["glacier", "glacier", "glacier", "glacier"],
  1170. ["elem1", "elem2", "elem3", "elem4"], "g2.ogg",
  1171. special_param={"defense": -200, "damage": 0, "speed": 1})
  1172. data_map9 = generalMapJson(map9_se, ["tundra", "tundra", "tundra", "tundra"],
  1173. ["elem212", "elem217", "elem216", "elem205"], ["tundra", "tundra", "tundra"],
  1174. ["elem225", "elem226", "elem227"], ["tundra", "tundra", "tundra", "tundra"],
  1175. ["elem1", "elem2", "elem3", "elem4"], "g3.ogg", final_point_9, final_cube_9,
  1176. district_9, ["tundra"], ["elem260"], final_fog_9,
  1177. special_param={"defense": -200, "damage": 0, "speed": 1})
  1178. data_att9 = OptionalMapJson(direction_9, ["tundra", "tundra", "tundra", "tundra"],
  1179. ["elem212", "elem217", "elem216", "elem205"],
  1180. ["tundra", "tundra", "tundra", "tundra"], ["elem1", "elem2", "elem3", "elem4"],
  1181. "g3.ogg", special_param={"defense": -200, "damage": 0, "speed": 1})
  1182. data_map10 = generalMapJson(map10_se, ["tundra", "tundra", "tundra", "tundra", "tundra", "tundra"],
  1183. ["elem217", "elem212", "elem216", "elem205", "elem202", "elem301"],
  1184. ["tundra", "tundra", "tundra"], ["elem225", "elem226", "elem227"], ["tundra"],
  1185. ["elem300"], "g3.ogg", final_point_10, final_cube_10, district_10, ["tundra"],
  1186. ["elem260"], final_fog_10, special_param={"defense": -200, "damage": 0, "speed": 1})
  1187. data_att10 = OptionalMapJson(direction_10, ["tundra", "tundra", "tundra", "tundra", "tundra", "tundra"],
  1188. ["elem217", "elem212", "elem216", "elem205", "elem202", "elem301"], ["tundra"],
  1189. ["elem300"], "g3.ogg", must_speed=True,
  1190. special_param={"defense": -200, "damage": 0, "speed": 1})
  1191. elif theme_2 == T.theme2_C_mon_dic:
  1192. data_map6 = generalMapJson(map6_se, ["forest", "forest", "forest", "forest", "forest", "forest"],
  1193. ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  1194. ["forest", "forest", "forest", "forest"],
  1195. ["elem109", "elem102", "elem106", "elem103"],
  1196. ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"], "field.ogg",
  1197. final_point_6, final_cube_6, district_6, ["fog", "forest"], ["elem39", "elem3"],
  1198. final_fog_6, special_param={"defense": -200, "damage": 0, "speed": 1})
  1199. data_att6 = OptionalMapJson(direction_6, ["forest", "forest", "forest", "forest", "forest", "forest"],
  1200. ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  1201. ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"],
  1202. "field.ogg")
  1203. data_map7 = generalMapJson(map7_se, ["forest", "forest", "forest", "forest", "forest", "forest", "forest"],
  1204. ["elem201", "elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  1205. ["forest", "forest", "forest", "forest"], ["elem2", "elem102", "elem106", "elem103"],
  1206. ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"], "field.ogg",
  1207. final_point_7, final_cube_7, district_7, ["fog", "fog", "forest"],
  1208. ["elem39", "elem39", "elem3"], final_fog_7,
  1209. special_param={"defense": -200, "damage": 0, "speed": 1})
  1210. data_att7 = OptionalMapJson(direction_7, ["forest", "forest", "forest", "forest", "forest", "forest"],
  1211. ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  1212. ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"],
  1213. "field.ogg")
  1214. data_map8 = generalMapJson(map8_se, ["forest", "forest", "forest", "forest", "forest", "forest", "forest"],
  1215. ["elem201", "elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  1216. ["forest", "forest", "forest", "forest"], ["elem2", "elem102", "elem106", "elem103"],
  1217. ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"], "field.ogg",
  1218. final_point_8, final_cube_8, district_8, ["fog", "fog", "fog", "forest"],
  1219. ["elem39", "elem39", "elem39", "elem3"], final_fog_8,
  1220. special_param={"defense": -200, "damage": 0, "speed": 1})
  1221. data_att8 = OptionalMapJson(direction_8, ["forest", "forest", "forest", "forest", "forest", "forest"],
  1222. ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  1223. ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"],
  1224. "field.ogg")
  1225. data_map9 = generalMapJson(map9_se,
  1226. ["forest", "forest", "forest", "forest", "forest", "forest", "forest", "forest",
  1227. "forest"],
  1228. ["elem202", "elem206", "elem201", "elem8", "elem69", "elem70", "elem105", "elem7",
  1229. "elem75"], ["forest", "forest", "forest", "forest", "forest"],
  1230. ["elem46", "elem2", "elem102", "elem106", "elem103"],
  1231. ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
  1232. "wallemd.ogg", final_point_9, final_cube_9, district_9,
  1233. ["fog", "fog", "fog", "forest", "forest"],
  1234. ["elem39", "elem39", "elem39", "elem3", "elem3"], final_fog_9,
  1235. special_param={"defense": -200, "damage": 0, "speed": 1})
  1236. data_att9 = OptionalMapJson(direction_9, ["forest", "forest", "forest", "forest", "forest", "forest"],
  1237. ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  1238. ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
  1239. "wallemd.ogg")
  1240. data_map10 = generalMapJson(map10_se,
  1241. ["forest", "forest", "forest", "forest", "forest", "forest", "forest", "forest",
  1242. "forest"],
  1243. ["elem202", "elem206", "elem201", "elem8", "elem69", "elem70", "elem105", "elem7",
  1244. "elem75"], ["forest", "forest", "forest", "forest", "forest"],
  1245. ["elem46", "elem2", "elem102", "elem106", "elem103"],
  1246. ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
  1247. "wallemd.ogg", final_point_10, final_cube_10, district_10,
  1248. ["fog", "fog", "fog", "fog", "forest", "forest"],
  1249. ["elem39", "elem39", "elem39", "elem39", "elem3", "elem3"], final_fog_10,
  1250. special_param={"defense": -200, "damage": 0, "speed": 1})
  1251. data_att10 = OptionalMapJson(direction_10, ["forest", "forest", "forest", "forest", "forest", "forest"],
  1252. ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  1253. ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
  1254. "wallemd.ogg", must_speed=True)
  1255. if theme_3 == T.theme3_A_mon_dic:
  1256. data_map11 = generalMapJson(map11_se, ["mine", "mine"], ["elem5", "elem201"], ["mine", "mine", "mine"],
  1257. ["elem4", "elem6", "elem8"], ["mine"], ["elem3"], "mine.ogg", final_point_11,
  1258. final_cube_11, district_11, [], [], final_fog_11,
  1259. special_param={"defense": -200, "damage": -200, "speed": 1})
  1260. data_att11 = OptionalMapJson(direction_11, ["mine"], ["elem5"], ["mine"], ["elem3"], "mine.ogg",
  1261. special_param={"defense": -200, "damage": -200, "speed": 1})
  1262. data_map12 = generalMapJson(map12_se, ["mine", "mine", "mine", "mine", "mine"],
  1263. ["elem207", "elem221", "elem201", "elem202", "elem5"], ["mine", "mine", "mine"],
  1264. ["elem4", "elem12", "elem8"], ["mine"], ["elem3"], "mine.ogg", final_point_12,
  1265. final_cube_12, district_12, [], [], final_fog_12,
  1266. special_param={"defense": -200, "damage": -200, "speed": 1})
  1267. data_att12 = OptionalMapJson(direction_12, ["mine"], ["elem207"], ["mine"], ["elem3"], "mine.ogg",
  1268. special_param={"defense": -200, "damage": -200, "speed": 1})
  1269. data_map13 = generalMapJson(map13_se, ["mine", "mine", "mine", "mine", "mine"],
  1270. ["elem207", "elem221", "elem201", "elem202", "elem5"], ["mine", "mine", "mine"],
  1271. ["elem4", "elem12", "elem8"], ["mine"], ["elem3"], "mine.ogg", final_point_13,
  1272. final_cube_13, district_13, [], [], final_fog_13,
  1273. special_param={"defense": -200, "damage": -200, "speed": 1})
  1274. data_att13 = OptionalMapJson(direction_13, ["mine"], ["elem207"], ["mine"], ["elem3"], "mine.ogg",
  1275. special_param={"defense": -200, "damage": -200, "speed": 1})
  1276. data_map14 = generalMapJson(map14_se, ["mine", "mine", "mine"], ["elem248", "elem252", "elem247"],
  1277. ["mine", "exploration"], ["elem243", "elem25"], ["mine", "mine", "mine"],
  1278. ["elem246", "elem245", "elem254"], "mine.ogg", final_point_14, final_cube_14,
  1279. district_14, [], [], final_fog_14,
  1280. special_param={"defense": -200, "damage": -200, "speed": 1})
  1281. data_att14 = OptionalMapJson(direction_14, ["mine"], ["elem248"], ["mine"], ["elem246"], "mine.ogg",
  1282. special_param={"defense": -200, "damage": -200, "speed": 1})
  1283. data_map15 = generalMapJson(map15_se, ["exploration", "mine", "mine"], ["elem2", "elem252", "elem248"],
  1284. ["mine", "exploration"], ["elem243", "elem25"], ["mine", "mine", "mine"],
  1285. ["elem246", "elem245", "elem254"], "mine.ogg", final_point_15, final_cube_15,
  1286. district_15, [], [], final_fog_15,
  1287. special_param={"defense": -200, "damage": -200, "speed": 1})
  1288. data_att15 = FinalMapJson(direction_15, ["exploration"], ["elem2"], ["mine"], ["elem246"], "mine.ogg")
  1289. data_att_continue15 = OptionalMapJson(direction_15, ["exploration"], ["elem2"], ["mine"], ["elem246"],
  1290. "mine.ogg", must_speed=True,
  1291. special_param={"defense": -200, "damage": -200, "speed": 1})
  1292. elif theme_3 == T.theme3_B_mon_dic:
  1293. data_map11 = generalMapJson(map11_se, ["gobi", "gobi", "gobi", "gobi", "gobi"],
  1294. ["elem201", "elem5", "elem5", "elem201", "elem6"], ["gobi", "desert", "desert"],
  1295. ["elem20", "elem2", "elem6"], ["gobi"], ["elem1"], "d1.ogg", final_point_11,
  1296. final_cube_11, district_11, [], [], final_fog_11,
  1297. special_param={"defense": -200, "damage": -200, "speed": 1})
  1298. data_att11 = OptionalMapJson(direction_11, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  1299. ["elem201", "elem201", "elem5", "elem201", "elem6", "elem24"], ["gobi"], ["elem1"],
  1300. "d1.ogg", special_param={"defense": -200, "damage": -200, "speed": 1})
  1301. data_map12 = generalMapJson(map12_se, ["gobi", "gobi", "gobi", "gobi", "gobi"],
  1302. ["elem201", "elem5", "elem5", "elem201", "elem6"], ["gobi", "desert", "desert"],
  1303. ["elem20", "elem2", "elem6"], ["gobi"], ["elem1"], "d1.ogg", final_point_12,
  1304. final_cube_12, district_12, [], [], final_fog_12,
  1305. special_param={"defense": -200, "damage": -200, "speed": 1})
  1306. data_att12 = OptionalMapJson(direction_12, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  1307. ["elem201", "elem201", "elem5", "elem201", "elem6", "elem24"], ["gobi"], ["elem1"],
  1308. "d1.ogg", special_param={"defense": -200, "damage": -200, "speed": 1})
  1309. data_map13 = generalMapJson(map13_se, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  1310. ["elem5", "elem201", "elem5", "elem201", "elem6", "elem21"],
  1311. ["gobi", "desert", "desert"], ["elem20", "elem2", "elem6"], ["gobi", "gobi"],
  1312. ["elem3", "elem4"], "d3.ogg", final_point_13, final_cube_13, district_13, [], [],
  1313. final_fog_13, special_param={"defense": -200, "damage": -200, "speed": 1})
  1314. data_att13 = OptionalMapJson(direction_13, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  1315. ["elem5", "elem201", "elem5", "elem201", "elem6", "elem21"], ["gobi", "gobi"],
  1316. ["elem3", "elem4"], "d3.ogg",
  1317. special_param={"defense": -200, "damage": -200, "speed": 1})
  1318. data_map14 = generalMapJson(map14_se, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  1319. ["elem28", "elem28", "elem28", "elem110", "elem110", "elem810"], ["gobi", "gobi"],
  1320. ["elem29", "elem202"], ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"],
  1321. "d3.ogg", final_point_14, final_cube_14, district_14, [], [], final_fog_14,
  1322. special_param={"defense": -200, "damage": -200, "speed": 1})
  1323. data_att14 = OptionalMapJson(direction_14, ["gobi", "gobi", "gobi"], ["elem28", "elem110", "elem810"],
  1324. ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"], "d3.ogg",
  1325. special_param={"defense": -200, "damage": -200, "speed": 1})
  1326. data_map15 = generalMapJson(map15_se, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  1327. ["elem110", "elem28", "elem28", "elem28", "elem810", "elem46"], ["gobi", "gobi"],
  1328. ["elem29", "elem202"], ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"],
  1329. "d4.ogg", final_point_15, final_cube_15, district_15, ["gobi"], ["elem410"],
  1330. final_fog_15, special_param={"defense": -200, "damage": -200, "speed": 1})
  1331. data_att15 = FinalMapJson(direction_15, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  1332. ["elem110", "elem28", "elem28", "elem28", "elem810", "elem46"],
  1333. ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"], "d4.ogg")
  1334. data_att_continue15 = OptionalMapJson(direction_15, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  1335. ["elem110", "elem28", "elem28", "elem28", "elem810", "elem46"],
  1336. ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"], "d4.ogg",
  1337. must_speed=True,
  1338. special_param={"defense": -200, "damage": -200, "speed": 1})
  1339. elif theme_3 == T.theme3_C_mon_dic:
  1340. data_map11 = generalMapJson(map11_se,
  1341. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  1342. "queer", "queer"], ["elem401", "elem315", "elem501", "elem307", "elem1", "elem1"],
  1343. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1344. ["elem402", "elem403", "elem404"],
  1345. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1346. ["elem2", "elem1", "elem0"], "steamacity5.ogg", final_point_11, final_cube_11,
  1347. district_11, [], [], final_fog_11)
  1348. data_att11 = OptionalMapJson(direction_11,
  1349. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1350. ["elem401", "elem315", "elem501", "elem307"],
  1351. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1352. ["elem2", "elem1", "elem0"], "steamacity5.ogg")
  1353. data_map12 = generalMapJson(map12_se,
  1354. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  1355. "queer", "queer"], ["elem401", "elem315", "elem501", "elem307", "elem1", "elem1"],
  1356. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1357. ["elem402", "elem403", "elem404"],
  1358. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1359. ["elem2", "elem1", "elem0"], "steamacity5.ogg", final_point_12, final_cube_12,
  1360. district_12, [], [], final_fog_12)
  1361. data_att12 = OptionalMapJson(direction_12,
  1362. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1363. ["elem401", "elem315", "elem501", "elem307"],
  1364. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1365. ["elem2", "elem1", "elem0"], "steamacity5.ogg")
  1366. data_map13 = generalMapJson(map13_se,
  1367. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  1368. "machine_dark", "machine_dark", "queer", "queer"],
  1369. ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13", "elem1", "elem1"],
  1370. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1371. ["elem402", "elem403", "elem404"],
  1372. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1373. ["elem600", "elem601", "elem602"], "steamacity6.ogg", final_point_13, final_cube_13,
  1374. district_13, [], [], final_fog_13)
  1375. data_att13 = OptionalMapJson(direction_13,
  1376. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  1377. "machine_dark", "machine_dark"],
  1378. ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13"],
  1379. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1380. ["elem600", "elem601", "elem602"], "steamacity6.ogg")
  1381. data_map14 = generalMapJson(map14_se,
  1382. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  1383. "machine_dark", "machine_dark", "queer", "queer"],
  1384. ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13", "elem1", "elem1"],
  1385. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1386. ["elem402", "elem403", "elem404"],
  1387. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1388. ["elem600", "elem601", "elem602"], "steamacity6.ogg", final_point_14, final_cube_14,
  1389. district_14, [], [], final_fog_14)
  1390. data_att14 = OptionalMapJson(direction_14,
  1391. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  1392. "machine_dark", "machine_dark"],
  1393. ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13"],
  1394. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1395. ["elem600", "elem601", "elem602"], "steamacity6.ogg")
  1396. data_map15 = generalMapJson(map15_se, ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  1397. "steamacity_dark", "machine_dark", "machine_dark", "queer", "queer"],
  1398. ["elem14", "elem401", "elem315", "elem501", "elem307", "elem11", "elem13", "elem1",
  1399. "elem1"],
  1400. ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1401. ["elem8", "elem402", "elem403", "elem404"],
  1402. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1403. ["elem600", "elem601", "elem602"], "steamacity7.ogg", final_point_15, final_cube_15,
  1404. district_15, [], [], final_fog_15)
  1405. data_att15 = FinalMapJson(direction_15,
  1406. ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  1407. "steamacity_dark", "machine_dark", "machine_dark"],
  1408. ["elem14", "elem401", "elem315", "elem501", "elem307", "elem11", "elem13"],
  1409. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1410. ["elem600", "elem601", "elem602"], "steamacity7.ogg")
  1411. data_att_continue15 = OptionalMapJson(direction_15,
  1412. ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  1413. "steamacity_dark", "machine_dark", "machine_dark"],
  1414. ["elem14", "elem401", "elem315", "elem501", "elem307", "elem11",
  1415. "elem13"], ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  1416. ["elem600", "elem601", "elem602"], "steamacity7.ogg", must_speed=True)
  1417. # 艾登结局
  1418. data_map_eden16 = generalMapJson(map_eden16_se, ["common", "common", "common", "autumnSnow", "autumnSnow"],
  1419. ["elem69", "elem75", "elem188", "elem55", "elem56"], ["autumnSnow", "autumnSnow"],
  1420. ["elem43", "elem3"], ["autumnSnow", "autumnSnow", "autumnSnow"],
  1421. ["elem39", "elem29", "elem18"], "rogue_eden1.ogg", final_point_eden_16,
  1422. final_cube_eden_16, district_eden_16, ["autumnSnow"], ["elem6"], final_fog_eden_16)
  1423. data_att_eden16 = OptionalMapJson(direction_16, ["common", "common", "common", "autumnSnow", "autumnSnow"],
  1424. ["elem69", "elem75", "elem188", "elem55", "elem56"],
  1425. ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem39", "elem29", "elem18"],
  1426. "rogue_eden1.ogg")
  1427. data_map_eden17 = generalMapJson(map_eden17_se, ["common", "common", "common", "autumnSnow", "autumnSnow"],
  1428. ["elem69", "elem75", "elem188", "elem55", "elem56"], ["autumnSnow", "autumnSnow"],
  1429. ["elem43", "elem3"], ["autumnSnow", "autumnSnow", "autumnSnow"],
  1430. ["elem39", "elem29", "elem18"], "rogue_eden1.ogg", final_point_eden_17,
  1431. final_cube_eden_17, district_eden_17, ["autumnSnow"], ["elem6"], final_fog_eden_17)
  1432. data_att_eden17 = OptionalMapJson(direction_17, ["common", "common", "common", "autumnSnow", "autumnSnow"],
  1433. ["elem69", "elem75", "elem188", "elem55", "elem56"],
  1434. ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem39", "elem29", "elem18"],
  1435. "rogue_eden1.ogg")
  1436. data_map_eden18 = generalMapJson(map_eden18_se, ["common", "common", "common", "autumnSnow", "autumnSnow"],
  1437. ["elem69", "elem75", "elem188", "elem55", "elem56"], ["autumnSnow", "autumnSnow"],
  1438. ["elem43", "elem3"], ["autumnSnow", "autumnSnow", "autumnSnow"],
  1439. ["elem39", "elem29", "elem18"], "rogue_eden1.ogg", final_point_eden_18,
  1440. final_cube_eden_18, district_eden_18, ["autumnSnow", "autumnSnow"],
  1441. ["elem6", "elem6"], final_fog_eden_18)
  1442. data_att_eden18 = OptionalMapJson(direction_18, ["common", "common", "common", "autumnSnow", "autumnSnow"],
  1443. ["elem69", "elem75", "elem188", "elem55", "elem56"],
  1444. ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem39", "elem29", "elem18"],
  1445. "rogue_eden1.ogg")
  1446. data_map_eden19 = generalMapJson(map_eden19_se,
  1447. ["autumnSnow", "common", "common", "common", "autumnSnow", "autumnSnow",
  1448. "autumnSnow"],
  1449. ["elem55", "elem75", "elem188", "elem69", "elem56", "elem202", "elem1"],
  1450. ["autumnSnow", "autumnSnow", "forest"], ["elem43", "elem4", "elem116"],
  1451. ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem29", "elem39", "elem18"],
  1452. "rogue_eden2.ogg", final_point_eden_19, final_cube_eden_19, district_eden_19,
  1453. ["autumnSnow", "autumnSnow"], ["elem6", "elem6"], final_fog_eden_19)
  1454. data_att_eden19 = OptionalMapJson(direction_19,
  1455. ["autumnSnow", "common", "common", "common", "autumnSnow", "autumnSnow",
  1456. "autumnSnow"],
  1457. ["elem55", "elem75", "elem188", "elem69", "elem56", "elem202", "elem1"],
  1458. ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem29", "elem39", "elem18"],
  1459. "rogue_eden2.ogg")
  1460. # data_map_eden20 = generalMapJson(map_eden20_se, ["autumnSnow","common","common","common","autumnSnow","autumnSnow","autumnSnow"], ["elem55","elem75","elem188","elem69","elem56","elem202","elem1"], ["autumnSnow","autumnSnow","forest"], ["elem43","elem4","elem116"], ["autumnSnow","autumnSnow","autumnSnow"], ["elem29","elem39","elem18"], "rogue_eden2.ogg", final_point_eden_20, final_cube_eden_20, district_eden_20, ["autumnSnow","autumnSnow","autumnSnow"], ["elem6","elem6","elem6"], final_fog_eden_20)
  1461. data_map_eden20 = eden_boss_map_json()
  1462. data_att_eden20 = FinalMapJson(direction_20,
  1463. ["autumnSnow", "common", "common", "common", "autumnSnow", "autumnSnow",
  1464. "autumnSnow"],
  1465. ["elem55", "elem75", "elem188", "elem69", "elem56", "elem202", "elem1"],
  1466. ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem29", "elem39", "elem18"],
  1467. "rogue_eden2.ogg")
  1468. # 逆命结局
  1469. data_map_destiny16 = generalMapJson(map_destiny16_se,
  1470. ["site", "site", "site", "site", "common", "common", "forest", "forest",
  1471. "forest", "forest"],
  1472. ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
  1473. "elem44", "elem45"], ["common", "common", "common", "exploration"],
  1474. ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
  1475. ["elem1", "elem2"], "rogue_destiny1.ogg", final_point_destiny_16,
  1476. final_cube_destiny_16, district_destiny_16, ["fog"], ["elem39"],
  1477. final_fog_destiny_16, ambience="rain.mp3", environment="rain",
  1478. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
  1479. data_att_destiny16 = OptionalMapJson(direction_16,
  1480. ["site", "site", "site", "site", "common", "common", "forest", "forest",
  1481. "forest", "forest"],
  1482. ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
  1483. "elem44", "elem45"], ["site", "site"], ["elem1", "elem2"],
  1484. "rogue_destiny1.ogg", ambience="rain.mp3", environment="rain",
  1485. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
  1486. data_map_destiny17 = generalMapJson(map_destiny17_se,
  1487. ["site", "site", "site", "site", "common", "common", "forest", "forest",
  1488. "forest", "forest"],
  1489. ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
  1490. "elem44", "elem45"], ["common", "common", "common", "exploration"],
  1491. ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
  1492. ["elem1", "elem2"], "rogue_destiny1.ogg", final_point_destiny_17,
  1493. final_cube_destiny_17, district_destiny_17, ["fog"], ["elem39"],
  1494. final_fog_destiny_17, ambience="rain.mp3", environment="rain",
  1495. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
  1496. data_att_destiny17 = OptionalMapJson(direction_17,
  1497. ["site", "site", "site", "site", "common", "common", "forest", "forest",
  1498. "forest", "forest"],
  1499. ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
  1500. "elem44", "elem45"], ["site", "site"], ["elem1", "elem2"],
  1501. "rogue_destiny1.ogg", ambience="rain.mp3", environment="rain",
  1502. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
  1503. data_map_destiny18 = generalMapJson(map_destiny18_se,
  1504. ["site", "site", "site", "site", "common", "common", "forest", "forest",
  1505. "forest", "forest"],
  1506. ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
  1507. "elem44", "elem45"], ["common", "common", "common", "exploration"],
  1508. ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
  1509. ["elem1", "elem2"], "rogue_destiny2.ogg", final_point_destiny_18,
  1510. final_cube_destiny_18, district_destiny_18, ["fog", "fog"],
  1511. ["elem39", "elem39"], final_fog_destiny_18, ambience="rain.mp3",
  1512. environment="rain",
  1513. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000],
  1514. ["Level3x3RandomThunder", [800, 3], 5600, 8000]])
  1515. data_att_destiny18 = OptionalMapJson(direction_18,
  1516. ["site", "site", "site", "site", "common", "common", "forest", "forest",
  1517. "forest", "forest"],
  1518. ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
  1519. "elem44", "elem45"], ["site", "site"], ["elem1", "elem2"],
  1520. "rogue_destiny2.ogg", ambience="rain.mp3", environment="rain",
  1521. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
  1522. data_map_destiny19 = generalMapJson(map_destiny19_se,
  1523. ["site", "site", "site", "site", "site", "site", "site", "site", "common",
  1524. "common", "forest", "forest", "forest", "forest"],
  1525. ["elem4", "elem3", "elem7", "elem8", "elem9", "elem10", "elem5", "elem6",
  1526. "elem69", "elem75", "elem42", "elem43", "elem44", "elem45"],
  1527. ["common", "common", "common", "exploration"],
  1528. ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
  1529. ["elem2", "elem1"], "rogue_destiny2.ogg", final_point_destiny_19,
  1530. final_cube_destiny_19, district_destiny_19, ["fog", "fog"],
  1531. ["elem39", "elem39"], final_fog_destiny_19, ambience="rain.mp3",
  1532. environment="rain",
  1533. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000],
  1534. ["Level3x3RandomThunder", [800, 3], 5600, 8000]])
  1535. data_att_destiny19 = OptionalMapJson(direction_19,
  1536. ["site", "site", "site", "site", "site", "site", "site", "site", "common",
  1537. "common", "forest", "forest", "forest", "forest"],
  1538. ["elem4", "elem3", "elem7", "elem8", "elem9", "elem10", "elem5", "elem6",
  1539. "elem69", "elem75", "elem42", "elem43", "elem44", "elem45"], ["site", "site"],
  1540. ["elem2", "elem1"], "rogue_destiny2.ogg", ambience="rain.mp3",
  1541. environment="rain",
  1542. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
  1543. data_map_destiny20 = destiny_boss_map_json()
  1544. data_att_destiny20 = FinalMapJson(direction_20,
  1545. ["site", "site", "site", "site", "site", "site", "site", "site", "common",
  1546. "common", "forest", "forest", "forest", "forest"],
  1547. ["elem4", "elem3", "elem7", "elem8", "elem9", "elem10", "elem5", "elem6",
  1548. "elem69", "elem75", "elem42", "elem43", "elem44", "elem45"], ["site", "site"],
  1549. ["elem2", "elem1"], "rogue_destiny3.ogg", ambience="rain.mp3", environment="rain")
  1550. # 深海结局
  1551. data_map_ocean16 = generalMapJson(map_ocean16_se, ["mine", "mine", "mine", "ocean", "ocean", "ocean"],
  1552. ["elem207", "elem201", "elem202", "elem115", "elem118", "elem206"],
  1553. ["ocean", "ocean"], ["elem14", "elem202"], ["ocean", "ocean"],
  1554. ["elem51", "elem61"], "ocean4.ogg", final_point_ocean_16, final_cube_ocean_16,
  1555. district_ocean_16, ["ocean", "ocean", "ocean", "ocean"],
  1556. ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_16,
  1557. ambience="ocean.mp3")
  1558. data_att_ocean16 = OptionalMapJson(direction_16, ["mine"], ["elem201"], ["ocean"], ["elem51"], "ocean4.ogg",
  1559. ambience="ocean.mp3")
  1560. data_map_ocean17 = generalMapJson(map_ocean17_se, ["mine", "mine", "mine", "ocean"],
  1561. ["elem207", "elem201", "elem202", "elem206"], ["ocean"], ["elem202"],
  1562. ["ocean", "ocean"], ["elem51", "elem61"], "ocean4.ogg", final_point_ocean_17,
  1563. final_cube_ocean_17, district_ocean_17, ["ocean", "ocean", "ocean", "ocean"],
  1564. ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_17,
  1565. ambience="ocean.mp3")
  1566. data_att_ocean17 = OptionalMapJson(direction_17, ["mine"], ["elem201"], ["ocean"], ["elem51"], "ocean4.ogg",
  1567. ambience="ocean.mp3")
  1568. data_map_ocean18 = generalMapJson(map_ocean18_se, ["ocean", "ocean", "ocean", "ocean", "mine", "mine", "ocean"],
  1569. ["elem161", "elem161", "elem161", "elem161", "elem201", "elem202", "elem206"],
  1570. ["ocean", "ocean"], ["elem202", "elem203"], ["ocean", "ocean"],
  1571. ["elem152", "elem154"], "ocean14.ogg", final_point_ocean_18, final_cube_ocean_18,
  1572. district_ocean_18, ["ocean", "ocean", "ocean", "ocean"],
  1573. ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_18,
  1574. ambience="ocean.mp3")
  1575. data_att_ocean18 = OptionalMapJson(direction_18, ["ocean"], ["elem161"], ["ocean"], ["elem152"], "ocean14.ogg",
  1576. ambience="ocean.mp3")
  1577. data_map_ocean19 = generalMapJson(map_ocean19_se, ["ocean", "ocean", "ocean", "ocean", "mine", "mine", "ocean"],
  1578. ["elem161", "elem161", "elem161", "elem161", "elem201", "elem202", "elem206"],
  1579. ["ocean", "ocean"], ["elem203", "elem202"], ["ocean", "ocean"],
  1580. ["elem154", "elem152"], "ocean14.ogg", final_point_ocean_19, final_cube_ocean_19,
  1581. district_ocean_19, ["ocean", "ocean", "ocean", "ocean"],
  1582. ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_19,
  1583. ambience="ocean.mp3")
  1584. data_att_ocean19 = OptionalMapJson(direction_19, ["ocean"], ["elem161"], ["ocean"], ["elem154"], "ocean14.ogg",
  1585. ambience="ocean.mp3")
  1586. data_map_ocean20 = ocean_boss_map_json()
  1587. data_att_ocean20 = FinalMapJson(direction_20, ["ocean"], ["elem161"], ["ocean"], ["elem154"], "ocean13.ogg",
  1588. ambience="ocean.mp3")
  1589. generate_skyland_map()
  1590. R.general_mon_dic = {"1": {"normal": [], "elite": []}, "2": {"normal": [], "elite": []},
  1591. "3": {"normal": [], "elite": []}, "4": {"normal": [], "elite": []}}
  1592. for i, dic in enumerate([theme_1, theme_2, theme_3]):
  1593. for key, value in dic.items():
  1594. if value['type'] == 'normal':
  1595. R.general_mon_dic[str(i + 1)]["normal"].append(key)
  1596. if value['type'] == 'elite':
  1597. R.general_mon_dic[str(i + 1)]["elite"].append(key)
  1598. # 获取当前文件的路径
  1599. current_folder_path = os.getcwd()
  1600. # 获取父级文件夹的路径
  1601. parent_folder_path = os.path.dirname(current_folder_path)
  1602. # 获取父父级文件夹的路径
  1603. pparent_folder_path = current_folder_path
  1604. # pparent_folder_path = os.path.dirname(parent_folder_path)
  1605. # 数据写入
  1606. R.map_json_dic["rogueMap1"] = data_map1
  1607. R.map_json_dic["rogueMap2"] = data_map2
  1608. R.map_json_dic["rogueMap3"] = data_map3
  1609. R.map_json_dic["rogueMap4"] = data_map4
  1610. R.map_json_dic["rogueMap5"] = data_map5
  1611. R.map_json_dic["rogueMap6"] = data_map6
  1612. R.map_json_dic["rogueMap7"] = data_map7
  1613. R.map_json_dic["rogueMap8"] = data_map8
  1614. R.map_json_dic["rogueMap9"] = data_map9
  1615. R.map_json_dic["rogueMap10"] = data_map10
  1616. R.map_json_dic["rogueMap11"] = data_map11
  1617. R.map_json_dic["rogueMap12"] = data_map12
  1618. R.map_json_dic["rogueMap13"] = data_map13
  1619. R.map_json_dic["rogueMap14"] = data_map14
  1620. R.map_json_dic["rogueMap15"] = data_map15
  1621. R.map_json_dic["rogueMap16_eden"] = data_map_eden16
  1622. R.map_json_dic["rogueMap17_eden"] = data_map_eden17
  1623. R.map_json_dic["rogueMap18_eden"] = data_map_eden18
  1624. R.map_json_dic["rogueMap19_eden"] = data_map_eden19
  1625. R.map_json_dic["rogueMap20_eden"] = data_map_eden20
  1626. R.map_json_dic["rogueMap16_destiny"] = data_map_destiny16
  1627. R.map_json_dic["rogueMap17_destiny"] = data_map_destiny17
  1628. R.map_json_dic["rogueMap18_destiny"] = data_map_destiny18
  1629. R.map_json_dic["rogueMap19_destiny"] = data_map_destiny19
  1630. R.map_json_dic["rogueMap20_destiny"] = data_map_destiny20
  1631. R.map_json_dic["rogueMap16_ocean"] = data_map_ocean16
  1632. R.map_json_dic["rogueMap17_ocean"] = data_map_ocean17
  1633. R.map_json_dic["rogueMap18_ocean"] = data_map_ocean18
  1634. R.map_json_dic["rogueMap19_ocean"] = data_map_ocean19
  1635. R.map_json_dic["rogueMap20_ocean"] = data_map_ocean20
  1636. R.map_json_dic["rogueAttMap1"] = data_att1
  1637. R.map_json_dic["rogueAttMap2"] = data_att2
  1638. R.map_json_dic["rogueAttMap3"] = data_att3
  1639. R.map_json_dic["rogueAttMap4"] = data_att4
  1640. R.map_json_dic["rogueAttMap5"] = data_att5
  1641. R.map_json_dic["rogueAttMap6"] = data_att6
  1642. R.map_json_dic["rogueAttMap7"] = data_att7
  1643. R.map_json_dic["rogueAttMap8"] = data_att8
  1644. R.map_json_dic["rogueAttMap9"] = data_att9
  1645. R.map_json_dic["rogueAttMap10"] = data_att10
  1646. R.map_json_dic["rogueAttMap11"] = data_att11
  1647. R.map_json_dic["rogueAttMap12"] = data_att12
  1648. R.map_json_dic["rogueAttMap13"] = data_att13
  1649. R.map_json_dic["rogueAttMap14"] = data_att14
  1650. R.map_json_dic["rogueAttMap15"] = data_att15
  1651. R.map_json_dic["rogueAttMap15_continue"] = data_att_continue15
  1652. R.map_json_dic["rogueAttMap16_eden"] = data_att_eden16
  1653. R.map_json_dic["rogueAttMap17_eden"] = data_att_eden17
  1654. R.map_json_dic["rogueAttMap18_eden"] = data_att_eden18
  1655. R.map_json_dic["rogueAttMap19_eden"] = data_att_eden19
  1656. R.map_json_dic["rogueAttMap20_eden"] = data_att_eden20
  1657. R.map_json_dic["rogueAttMap16_destiny"] = data_att_destiny16
  1658. R.map_json_dic["rogueAttMap17_destiny"] = data_att_destiny17
  1659. R.map_json_dic["rogueAttMap18_destiny"] = data_att_destiny18
  1660. R.map_json_dic["rogueAttMap19_destiny"] = data_att_destiny19
  1661. R.map_json_dic["rogueAttMap20_destiny"] = data_att_destiny20
  1662. R.map_json_dic["rogueAttMap16_ocean"] = data_att_ocean16
  1663. R.map_json_dic["rogueAttMap17_ocean"] = data_att_ocean17
  1664. R.map_json_dic["rogueAttMap18_ocean"] = data_att_ocean18
  1665. R.map_json_dic["rogueAttMap19_ocean"] = data_att_ocean19
  1666. R.map_json_dic["rogueAttMap20_ocean"] = data_att_ocean20
  1667. '''
  1668. # 获取当前文件的路径
  1669. current_folder_path = os.getcwd()
  1670. # 获取父级文件夹的路径
  1671. parent_folder_path = os.path.dirname(current_folder_path)
  1672. # 获取父父级文件夹的路径
  1673. pparent_folder_path = current_folder_path
  1674. # pparent_folder_path = os.path.dirname(parent_folder_path)
  1675. # 数据写入
  1676. with open(pparent_folder_path+"/game/map"+"/rogueMap9.json", "w") as outfile:
  1677. json.dump(data_map9, outfile, indent=2, ensure_ascii=False)
  1678. with open(pparent_folder_path+"/game/map"+"/rogueMap10.json", "w") as outfile:
  1679. json.dump(data_map10, outfile, indent=2, ensure_ascii=False)
  1680. plt.scatter([final_point[i][0] for i in range(len(final_point))], [final_point[i][1] for i in range(len(final_point))], color='black', marker='o')
  1681. plt.gca().invert_yaxis()
  1682. plt.xlim([-1,63])
  1683. plt.ylim([-1,63])
  1684. plt.xlabel('X')
  1685. plt.ylabel('Y')
  1686. plt.title('Path on 62x62 Grid')
  1687. plt.show()
  1688. '''
  1689. def main_func_new(): # 暂时没用
  1690. theme_1 = random.choice([T.theme1_A_mon_dic, T.theme1_B_mon_dic, T.theme1_C_mon_dic])
  1691. theme_2 = random.choice([T.theme2_A_mon_dic, T.theme2_B_mon_dic, T.theme2_C_mon_dic])
  1692. theme_3 = random.choice([T.theme3_A_mon_dic, T.theme3_B_mon_dic, T.theme3_C_mon_dic])
  1693. theme_eden = T.theme_eden_mon_dic
  1694. theme_destiny = T.theme_destiny_mon_dic
  1695. theme_ocean = T.theme_ocean_mon_dic
  1696. # theme_3 = T.theme3_C_mon_dic
  1697. # theme_2 = T.theme2_C_mon_dic
  1698. if theme_1 == T.theme1_A_mon_dic:
  1699. R.rouge_theme_1 = "魔法王国"
  1700. elif theme_1 == T.theme1_B_mon_dic:
  1701. R.rouge_theme_1 = "静涛海原"
  1702. elif theme_1 == T.theme1_C_mon_dic:
  1703. R.rouge_theme_1 = "废铁乐园"
  1704. if theme_2 == T.theme2_A_mon_dic:
  1705. R.rouge_theme_2 = "魔法古堡"
  1706. elif theme_2 == T.theme2_B_mon_dic:
  1707. R.rouge_theme_2 = "永东寒原"
  1708. elif theme_2 == T.theme2_C_mon_dic:
  1709. R.rouge_theme_2 = "迷雾古林"
  1710. if theme_3 == T.theme3_A_mon_dic:
  1711. R.rouge_story = "地狱矿工"
  1712. R.rouge_theme_3 = "熔岩深矿"
  1713. elif theme_3 == T.theme3_B_mon_dic:
  1714. R.rouge_story = "时空沙漏"
  1715. R.rouge_theme_3 = "赤砂遗迹"
  1716. elif theme_3 == T.theme3_C_mon_dic:
  1717. R.rouge_story = "轮齿之怒"
  1718. R.rouge_theme_3 = "械城之心"
  1719. # 不同难度的难度系数(顺序: 第一层/ 第二层/ 第三层/ 艾登层/ 命运层/ 深海层)
  1720. Easy_diff_list = [10, 16, 20, 25, 32, 20, 25, 30, 35, 42, 30, 35, 40, 45, 50, 30, 35, 40, 45, 50, 35, 40, 45, 50,
  1721. 56, 50, 56, 64, 75, 88]
  1722. Hard_diff_list = [12, 18, 24, 30, 40, 24, 30, 36, 42, 54, 36, 42, 52, 64, 75, 36, 42, 52, 64, 75, 40, 48, 60, 70,
  1723. 80, 70, 80, 90, 100, 108]
  1724. Hell_diff_list = [18, 24, 30, 40, 50, 30, 36, 42, 50, 60, 42, 52, 64, 75, 88, 42, 52, 64, 75, 88, 50, 60, 72, 80,
  1725. 96, 80, 92, 108, 120, 140]
  1726. diff_dic = {"Baby": Easy_diff_list, "Easy": Easy_diff_list, "Normal": Hard_diff_list, "Hell": Hell_diff_list}
  1727. # import time
  1728. # start_t = time.time()
  1729. # map_gen: 1.8402907848358154 s
  1730. # map_json: 0.32413291931152344 s
  1731. def async_map_gen(diff, theme_dic, cell_type, shop_level, has_boss, level_num):
  1732. # 包装原始的 map_gen 调用
  1733. return map_gen(-1, diff, theme_dic, cell_type, shop_level, has_boss, level_num)
  1734. async def run_map_gen_parallel():
  1735. # 使用线程池并行处理所有的 map_gen 调用
  1736. with ThreadPoolExecutor() as executor:
  1737. loop = asyncio.get_event_loop()
  1738. tasks = [
  1739. loop.run_in_executor(
  1740. executor, async_map_gen,
  1741. diff_dic[R.difficulty][0], theme_1, "normal", 1, False, 1),
  1742. loop.run_in_executor(
  1743. executor, async_map_gen,
  1744. diff_dic[R.difficulty][1], theme_1, "normal", 1, False, 2),
  1745. loop.run_in_executor(
  1746. executor, async_map_gen,
  1747. diff_dic[R.difficulty][2], theme_1, "normal", 1, False, 3),
  1748. loop.run_in_executor(
  1749. executor, async_map_gen,
  1750. diff_dic[R.difficulty][3], theme_1, "normal_elite", 1, False, 4),
  1751. loop.run_in_executor(
  1752. executor, async_map_gen,
  1753. diff_dic[R.difficulty][4], theme_1, "elite", 1, True, 5),
  1754. loop.run_in_executor(
  1755. executor, async_map_gen,
  1756. diff_dic[R.difficulty][5], theme_2, "normal", 2, False, 6),
  1757. loop.run_in_executor(
  1758. executor, async_map_gen,
  1759. diff_dic[R.difficulty][6], theme_2, "normal", 2, False, 7),
  1760. loop.run_in_executor(
  1761. executor, async_map_gen,
  1762. diff_dic[R.difficulty][7], theme_2, "normal", 2, False, 8),
  1763. loop.run_in_executor(
  1764. executor, async_map_gen,
  1765. diff_dic[R.difficulty][8], theme_2, "normal_elite", 2, False, 9),
  1766. loop.run_in_executor(
  1767. executor, async_map_gen,
  1768. diff_dic[R.difficulty][9], theme_2, "elite", 2, True, 10),
  1769. loop.run_in_executor(
  1770. executor, async_map_gen,
  1771. diff_dic[R.difficulty][10], theme_3, "normal", 3, False, 11),
  1772. loop.run_in_executor(
  1773. executor, async_map_gen,
  1774. diff_dic[R.difficulty][11], theme_3, "normal", 3, False, 12),
  1775. loop.run_in_executor(
  1776. executor, async_map_gen,
  1777. diff_dic[R.difficulty][12], theme_3, "normal", 3, False, 13),
  1778. loop.run_in_executor(
  1779. executor, async_map_gen,
  1780. diff_dic[R.difficulty][13], theme_3, "normal_elite", 3, False, 14),
  1781. loop.run_in_executor(
  1782. executor, async_map_gen,
  1783. diff_dic[R.difficulty][14], theme_3, "elite", 3, True, 15),
  1784. loop.run_in_executor(
  1785. executor, async_map_gen,
  1786. diff_dic[R.difficulty][15], theme_eden, "normal", 3, False, 16),
  1787. loop.run_in_executor(
  1788. executor, async_map_gen,
  1789. diff_dic[R.difficulty][16], theme_eden, "normal", 3, False, 17),
  1790. loop.run_in_executor(
  1791. executor, async_map_gen,
  1792. diff_dic[R.difficulty][17], theme_eden, "normal", 3, False, 18),
  1793. loop.run_in_executor(
  1794. executor, async_map_gen,
  1795. diff_dic[R.difficulty][18], theme_eden, "normal_elite", 3, False, 19),
  1796. loop.run_in_executor(
  1797. executor, async_map_gen,
  1798. diff_dic[R.difficulty][19], theme_eden, "elite", 3, True, 20),
  1799. loop.run_in_executor(
  1800. executor, async_map_gen,
  1801. diff_dic[R.difficulty][20], theme_destiny, "normal", 3, False, 16),
  1802. loop.run_in_executor(
  1803. executor, async_map_gen,
  1804. diff_dic[R.difficulty][21], theme_destiny, "normal", 3, False, 17),
  1805. loop.run_in_executor(
  1806. executor, async_map_gen,
  1807. diff_dic[R.difficulty][22], theme_destiny, "normal", 3, False, 18),
  1808. loop.run_in_executor(
  1809. executor, async_map_gen,
  1810. diff_dic[R.difficulty][23], theme_destiny, "normal_elite", 3, False, 19),
  1811. loop.run_in_executor(
  1812. executor, async_map_gen,
  1813. diff_dic[R.difficulty][24], theme_destiny, "elite", 3, True, 20),
  1814. loop.run_in_executor(
  1815. executor, async_map_gen,
  1816. diff_dic[R.difficulty][25], theme_ocean, "normal", 3, False, 16),
  1817. loop.run_in_executor(
  1818. executor, async_map_gen,
  1819. diff_dic[R.difficulty][26], theme_ocean, "normal_elite", 3, False, 17),
  1820. loop.run_in_executor(
  1821. executor, async_map_gen,
  1822. diff_dic[R.difficulty][27], theme_ocean, "normal_elite", 3, False, 18),
  1823. loop.run_in_executor(
  1824. executor, async_map_gen,
  1825. diff_dic[R.difficulty][28], theme_ocean, "elite", 3, False, 19),
  1826. loop.run_in_executor(
  1827. executor, async_map_gen,
  1828. diff_dic[R.difficulty][29], theme_ocean, "elite", 3, True, 20)
  1829. ]
  1830. # 等待所有的任务完成并收集结果
  1831. results = await asyncio.gather(*tasks)
  1832. return results
  1833. results = asyncio.run(run_map_gen_parallel())
  1834. map1, map1_se, direction_1, vertical_1, horizontal_1, final_point_1, final_cube_1, district_1, final_fog_1 = \
  1835. results[0]
  1836. map2, map2_se, direction_2, vertical_2, horizontal_2, final_point_2, final_cube_2, district_2, final_fog_2 = \
  1837. results[1]
  1838. map3, map3_se, direction_3, vertical_3, horizontal_3, final_point_3, final_cube_3, district_3, final_fog_3 = \
  1839. results[2]
  1840. map4, map4_se, direction_4, vertical_4, horizontal_4, final_point_4, final_cube_4, district_4, final_fog_4 = \
  1841. results[3]
  1842. map5, map5_se, direction_5, vertical_5, horizontal_5, final_point_5, final_cube_5, district_5, final_fog_5 = \
  1843. results[4]
  1844. map6, map6_se, direction_6, vertical_6, horizontal_6, final_point_6, final_cube_6, district_6, final_fog_6 = \
  1845. results[5]
  1846. map7, map7_se, direction_7, vertical_7, horizontal_7, final_point_7, final_cube_7, district_7, final_fog_7 = \
  1847. results[6]
  1848. map8, map8_se, direction_8, vertical_8, horizontal_8, final_point_8, final_cube_8, district_8, final_fog_8 = \
  1849. results[7]
  1850. map9, map9_se, direction_9, vertical_9, horizontal_9, final_point_9, final_cube_9, district_9, final_fog_9 = \
  1851. results[8]
  1852. map10, map10_se, direction_10, vertical_10, horizontal_10, final_point_10, final_cube_10, district_10, final_fog_10 = \
  1853. results[9]
  1854. map11, map11_se, direction_11, vertical_11, horizontal_11, final_point_11, final_cube_11, district_11, final_fog_11 = \
  1855. results[10]
  1856. map12, map12_se, direction_12, vertical_12, horizontal_12, final_point_12, final_cube_12, district_12, final_fog_12 = \
  1857. results[11]
  1858. map13, map13_se, direction_13, vertical_13, horizontal_13, final_point_13, final_cube_13, district_13, final_fog_13 = \
  1859. results[12]
  1860. map14, map14_se, direction_14, vertical_14, horizontal_14, final_point_14, final_cube_14, district_14, final_fog_14 = \
  1861. results[13]
  1862. map15, map15_se, direction_15, vertical_15, horizontal_15, final_point_15, final_cube_15, district_15, final_fog_15 = \
  1863. results[14]
  1864. map_eden16, map_eden16_se, direction_16, vertical_eden_16, horizontal_eden_16, final_point_eden_16, final_cube_eden_16, district_eden_16, final_fog_eden_16 = \
  1865. results[15]
  1866. map_eden17, map_eden17_se, direction_17, vertical_eden_17, horizontal_eden_17, final_point_eden_17, final_cube_eden_17, district_eden_17, final_fog_eden_17 = \
  1867. results[16]
  1868. map_eden18, map_eden18_se, direction_18, vertical_eden_18, horizontal_eden_18, final_point_eden_18, final_cube_eden_18, district_eden_18, final_fog_eden_18 = \
  1869. results[17]
  1870. map_eden19, map_eden19_se, direction_19, vertical_eden_19, horizontal_eden_19, final_point_eden_19, final_cube_eden_19, district_eden_19, final_fog_eden_19 = \
  1871. results[18]
  1872. map_eden20, map_eden20_se, direction_20, vertical_eden_20, horizontal_eden_20, final_point_eden_20, final_cube_eden_20, district_eden_20, final_fog_eden_20 = \
  1873. results[19]
  1874. map_destiny16, map_destiny16_se, direction_16, vertical_destiny_16, horizontal_destiny_16, final_point_destiny_16, final_cube_destiny_16, district_destiny_16, final_fog_destiny_16 = \
  1875. results[20]
  1876. map_destiny17, map_destiny17_se, direction_17, vertical_destiny_17, horizontal_destiny_17, final_point_destiny_17, final_cube_destiny_17, district_destiny_17, final_fog_destiny_17 = \
  1877. results[21]
  1878. map_destiny18, map_destiny18_se, direction_18, vertical_destiny_18, horizontal_destiny_18, final_point_destiny_18, final_cube_destiny_18, district_destiny_18, final_fog_destiny_18 = \
  1879. results[22]
  1880. map_destiny19, map_destiny19_se, direction_19, vertical_destiny_19, horizontal_destiny_19, final_point_destiny_19, final_cube_destiny_19, district_destiny_19, final_fog_destiny_19 = \
  1881. results[23]
  1882. map_destiny20, map_destiny20_se, direction_20, vertical_destiny_20, horizontal_destiny_20, final_point_destiny_20, final_cube_destiny_20, district_destiny_20, final_fog_destiny_20 = \
  1883. results[24]
  1884. map_ocean16, map_ocean16_se, direction_16, vertical_ocean_16, horizontal_ocean_16, final_point_ocean_16, final_cube_ocean_16, district_ocean_16, final_fog_ocean_16 = \
  1885. results[25]
  1886. map_ocean17, map_ocean17_se, direction_17, vertical_ocean_17, horizontal_ocean_17, final_point_ocean_17, final_cube_ocean_17, district_ocean_17, final_fog_ocean_17 = \
  1887. results[26]
  1888. map_ocean18, map_ocean18_se, direction_18, vertical_ocean_18, horizontal_ocean_18, final_point_ocean_18, final_cube_ocean_18, district_ocean_18, final_fog_ocean_18 = \
  1889. results[27]
  1890. map_ocean19, map_ocean19_se, direction_19, vertical_ocean_19, horizontal_ocean_19, final_point_ocean_19, final_cube_ocean_19, district_ocean_19, final_fog_ocean_19 = \
  1891. results[28]
  1892. map_ocean20, map_ocean20_se, direction_20, vertical_ocean_20, horizontal_ocean_20, final_point_ocean_20, final_cube_ocean_20, district_ocean_20, final_fog_ocean_20 = \
  1893. results[29]
  1894. # print(f"map_gen: {time.time() - start_t} s")
  1895. # map1, map1_se, direction_1, vertical_1, horizontal_1, final_point_1, final_cube_1, district_1, final_fog_1 = \
  1896. # map_gen(direction=-1, diff=diff_dic[R.difficulty][0], theme_dic=theme_1, cell_type="normal", shop_level=1, has_boss=False, level_num=1)
  1897. # map2, map2_se, direction_2, vertical_2, horizontal_2, final_point_2, final_cube_2, district_2, final_fog_2 = \
  1898. # map_gen(direction=direction_1, diff=diff_dic[R.difficulty][1], theme_dic=theme_1, cell_type="normal", shop_level=1, has_boss=False, level_num=2)
  1899. # map3, map3_se, direction_3, vertical_3, horizontal_3, final_point_3, final_cube_3, district_3, final_fog_3 = \
  1900. # map_gen(direction=direction_2, diff=diff_dic[R.difficulty][2], theme_dic=theme_1, cell_type="normal", shop_level=1, has_boss=False, level_num=3)
  1901. # map4, map4_se, direction_4, vertical_4, horizontal_4, final_point_4, final_cube_4, district_4, final_fog_4 = \
  1902. # map_gen(direction=direction_3, diff=diff_dic[R.difficulty][3], theme_dic=theme_1, cell_type="normal_elite", shop_level=1, has_boss=False, level_num=4)
  1903. # map5, map5_se, direction_5, vertical_5, horizontal_5, final_point_5, final_cube_5, district_5, final_fog_5 = \
  1904. # map_gen(direction=direction_4, diff=diff_dic[R.difficulty][4], theme_dic=theme_1, cell_type="elite", shop_level=1, has_boss=True, level_num=5)
  1905. #
  1906. # map6, map6_se, direction_6, vertical_6, horizontal_6, final_point_6, final_cube_6, district_6, final_fog_6 = \
  1907. # map_gen(direction=direction_5, diff=diff_dic[R.difficulty][5], theme_dic=theme_2, cell_type="normal", shop_level=2, has_boss=False, level_num=6)
  1908. # map7, map7_se, direction_7, vertical_7, horizontal_7, final_point_7, final_cube_7, district_7, final_fog_7 = \
  1909. # map_gen(direction=direction_6, diff=diff_dic[R.difficulty][6], theme_dic=theme_2, cell_type="normal", shop_level=2, has_boss=False, level_num=7)
  1910. # map8, map8_se, direction_8, vertical_8, horizontal_8, final_point_8, final_cube_8, district_8, final_fog_8 = \
  1911. # map_gen(direction=direction_7, diff=diff_dic[R.difficulty][7], theme_dic=theme_2, cell_type="normal", shop_level=2, has_boss=False, level_num=8)
  1912. # map9, map9_se, direction_9, vertical_9, horizontal_9, final_point_9, final_cube_9, district_9, final_fog_9 = \
  1913. # map_gen(direction=direction_8, diff=diff_dic[R.difficulty][8], theme_dic=theme_2, cell_type="normal_elite", shop_level=2, has_boss=False, level_num=9)
  1914. # map10, map10_se, direction_10, vertical_10, horizontal_10, final_point_10, final_cube_10, district_10, final_fog_10 = \
  1915. # map_gen(direction=direction_9, diff=diff_dic[R.difficulty][9], theme_dic=theme_2, cell_type="elite", shop_level=2, has_boss=True, level_num=10)
  1916. #
  1917. # map11, map11_se, direction_11, vertical_11, horizontal_11, final_point_11, final_cube_11, district_11, final_fog_11 = \
  1918. # map_gen(direction=direction_10, diff=diff_dic[R.difficulty][10], theme_dic=theme_3, cell_type="normal", shop_level=3, has_boss=False, level_num=11)
  1919. # map12, map12_se, direction_12, vertical_12, horizontal_12, final_point_12, final_cube_12, district_12, final_fog_12 = \
  1920. # map_gen(direction=direction_11, diff=diff_dic[R.difficulty][11], theme_dic=theme_3, cell_type="normal", shop_level=3, has_boss=False, level_num=12)
  1921. # map13, map13_se, direction_13, vertical_13, horizontal_13, final_point_13, final_cube_13, district_13, final_fog_13 = \
  1922. # map_gen(direction=direction_12, diff=diff_dic[R.difficulty][12], theme_dic=theme_3, cell_type="normal", shop_level=3, has_boss=False, level_num=13)
  1923. # map14, map14_se, direction_14, vertical_14, horizontal_14, final_point_14, final_cube_14, district_14, final_fog_14 = \
  1924. # map_gen(direction=direction_13, diff=diff_dic[R.difficulty][13], theme_dic=theme_3, cell_type="normal_elite", shop_level=3, has_boss=False, level_num=14)
  1925. # map15, map15_se, direction_15, vertical_15, horizontal_15, final_point_15, final_cube_15, district_15, final_fog_15 = \
  1926. # map_gen(direction=direction_14, diff=diff_dic[R.difficulty][14], theme_dic=theme_3, cell_type="elite", shop_level=3, has_boss=True, level_num=15)
  1927. #
  1928. # map_eden16, map_eden16_se, direction_16, vertical_eden_16, horizontal_eden_16, final_point_eden_16, final_cube_eden_16, district_eden_16, final_fog_eden_16 = \
  1929. # map_gen(direction=direction_15, diff=diff_dic[R.difficulty][15], theme_dic=theme_eden, cell_type="normal", shop_level=3, has_boss=False, level_num=16)
  1930. # map_eden17, map_eden17_se, direction_17, vertical_eden_17, horizontal_eden_17, final_point_eden_17, final_cube_eden_17, district_eden_17, final_fog_eden_17 = \
  1931. # map_gen(direction=direction_16, diff=diff_dic[R.difficulty][16], theme_dic=theme_eden, cell_type="normal", shop_level=3, has_boss=False, level_num=17)
  1932. # map_eden18, map_eden18_se, direction_18, vertical_eden_18, horizontal_eden_18, final_point_eden_18, final_cube_eden_18, district_eden_18, final_fog_eden_18 = \
  1933. # map_gen(direction=direction_17, diff=diff_dic[R.difficulty][17], theme_dic=theme_eden, cell_type="normal", shop_level=3, has_boss=False, level_num=18)
  1934. # map_eden19, map_eden19_se, direction_19, vertical_eden_19, horizontal_eden_19, final_point_eden_19, final_cube_eden_19, district_eden_19, final_fog_eden_19 = \
  1935. # map_gen(direction=direction_18, diff=diff_dic[R.difficulty][18], theme_dic=theme_eden, cell_type="normal_elite", shop_level=3, has_boss=False, level_num=19)
  1936. # map_eden20, map_eden20_se, direction_20, vertical_eden_20, horizontal_eden_20, final_point_eden_20, final_cube_eden_20, district_eden_20, final_fog_eden_20 = \
  1937. # map_gen(direction=direction_19, diff=diff_dic[R.difficulty][19], theme_dic=theme_eden, cell_type="elite", shop_level=3, has_boss=True, level_num=20)
  1938. #
  1939. # map_destiny16, map_destiny16_se, direction_16, vertical_destiny_16, horizontal_destiny_16, final_point_destiny_16, final_cube_destiny_16, district_destiny_16, final_fog_destiny_16 = \
  1940. # map_gen(direction=direction_15, diff=diff_dic[R.difficulty][20], theme_dic=theme_destiny, cell_type="normal", shop_level=3, has_boss=False, level_num=16)
  1941. # map_destiny17, map_destiny17_se, direction_17, vertical_destiny_17, horizontal_destiny_17, final_point_destiny_17, final_cube_destiny_17, district_destiny_17, final_fog_destiny_17 = \
  1942. # map_gen(direction=direction_16, diff=diff_dic[R.difficulty][21], theme_dic=theme_destiny, cell_type="normal", shop_level=3, has_boss=False, level_num=17)
  1943. # map_destiny18, map_destiny18_se, direction_18, vertical_destiny_18, horizontal_destiny_18, final_point_destiny_18, final_cube_destiny_18, district_destiny_18, final_fog_destiny_18 = \
  1944. # map_gen(direction=direction_17, diff=diff_dic[R.difficulty][22], theme_dic=theme_destiny, cell_type="normal", shop_level=3, has_boss=False, level_num=18)
  1945. # map_destiny19, map_destiny19_se, direction_19, vertical_destiny_19, horizontal_destiny_19, final_point_destiny_19, final_cube_destiny_19, district_destiny_19, final_fog_destiny_19 = \
  1946. # map_gen(direction=direction_18, diff=diff_dic[R.difficulty][23], theme_dic=theme_destiny, cell_type="normal_elite", shop_level=3, has_boss=False, level_num=19)
  1947. # map_destiny20, map_destiny20_se, direction_20, vertical_destiny_20, horizontal_destiny_20, final_point_destiny_20, final_cube_destiny_20, district_destiny_20, final_fog_destiny_20 = \
  1948. # map_gen(direction=direction_19, diff=diff_dic[R.difficulty][24], theme_dic=theme_destiny, cell_type="elite", shop_level=3, has_boss=True, level_num=20)
  1949. #
  1950. # map_ocean16, map_ocean16_se, direction_16, vertical_ocean_16, horizontal_ocean_16, final_point_ocean_16, final_cube_ocean_16, district_ocean_16, final_fog_ocean_16 = \
  1951. # map_gen(direction=direction_15, diff=diff_dic[R.difficulty][20], theme_dic=theme_ocean, cell_type="normal", shop_level=3, has_boss=False, level_num=16)
  1952. # map_ocean17, map_ocean17_se, direction_17, vertical_ocean_17, horizontal_ocean_17, final_point_ocean_17, final_cube_ocean_17, district_ocean_17, final_fog_ocean_17 = \
  1953. # map_gen(direction=direction_16, diff=diff_dic[R.difficulty][21], theme_dic=theme_ocean, cell_type="normal_elite", shop_level=3, has_boss=False, level_num=17)
  1954. # map_ocean18, map_ocean18_se, direction_18, vertical_ocean_18, horizontal_ocean_18, final_point_ocean_18, final_cube_ocean_18, district_ocean_18, final_fog_ocean_18 = \
  1955. # map_gen(direction=direction_17, diff=diff_dic[R.difficulty][22], theme_dic=theme_ocean, cell_type="normal_elite", shop_level=3, has_boss=False, level_num=18)
  1956. # map_ocean19, map_ocean19_se, direction_19, vertical_ocean_19, horizontal_ocean_19, final_point_ocean_19, final_cube_ocean_19, district_ocean_19, final_fog_ocean_19 = \
  1957. # map_gen(direction=direction_18, diff=diff_dic[R.difficulty][23], theme_dic=theme_ocean, cell_type="elite", shop_level=3, has_boss=False, level_num=19)
  1958. # map_ocean20, map_ocean20_se, direction_20, vertical_ocean_20, horizontal_ocean_20, final_point_ocean_20, final_cube_ocean_20, district_ocean_20, final_fog_ocean_20 = \
  1959. # map_gen(direction=direction_19, diff=diff_dic[R.difficulty][24], theme_dic=theme_ocean, cell_type="elite", shop_level=3, has_boss=True, level_num=20)
  1960. if theme_1 == T.theme1_A_mon_dic:
  1961. data_map1 = generalMapJson(map1_se, ["snow", "snow", "snow"], ["elem40", "elem41", "elem19"], ["common"],
  1962. ["elem43"], ["snow", "snow", "snow"], ["elem39", "elem18", "elem29"], "magic.ogg",
  1963. final_point_1, final_cube_1, district_1, [], [], final_fog_1)
  1964. data_att1 = OptionalMapJson(direction_1, ["snow"], ["elem41"], ["snow"], ["elem39"], "magic.ogg")
  1965. data_map2 = generalMapJson(map2_se, ["snow", "snow", "snow"], ["elem40", "elem41", "elem19"], ["common"],
  1966. ["elem43"], ["snow", "snow", "snow"], ["elem39", "elem18", "elem29"], "magic.ogg",
  1967. final_point_2, final_cube_2, district_2, [], [], final_fog_2)
  1968. data_att2 = OptionalMapJson(direction_2, ["snow"], ["elem41"], ["snow"], ["elem39"], "magic.ogg")
  1969. data_map3 = generalMapJson(map3_se, ["snow", "snow", "snow"], ["elem40", "elem41", "elem19"], ["common"],
  1970. ["elem43"], ["snow", "snow", "snow"], ["elem39", "elem18", "elem29"], "magic.ogg",
  1971. final_point_3, final_cube_3, district_3, [], [], final_fog_3)
  1972. data_att3 = OptionalMapJson(direction_3, ["snow"], ["elem41"], ["snow"], ["elem39"], "magic.ogg")
  1973. data_map4 = generalMapJson(map4_se, ["snow", "common", "common"], ["elem40", "elem62", "elem69"], ["common"],
  1974. ["elem44"], ["snow"], ["elem17"], "scene2.ogg", final_point_4, final_cube_4,
  1975. district_4, [], [], final_fog_4)
  1976. data_att4 = OptionalMapJson(direction_4, ["snow"], ["elem41"], ["snow"], ["elem17"], "scene2.ogg")
  1977. data_map5 = generalMapJson(map5_se, ["snow", "common", "common"], ["elem40", "elem62", "elem69"], ["common"],
  1978. ["elem44"], ["snow"], ["elem17"], "scene2.ogg", final_point_5, final_cube_5,
  1979. district_5, [], [], final_fog_5)
  1980. data_att5 = OptionalMapJson(direction_5, ["snow"], ["elem41"], ["snow"], ["elem17"], "scene2.ogg",
  1981. must_speed=True)
  1982. elif theme_1 == T.theme1_B_mon_dic:
  1983. data_map1 = generalMapJson(map1_se, ["ocean", "ocean", "ocean", "ocean", "ocean"],
  1984. ["elem7", "elem15", "elem18", "elem6", "elem12"], ["ocean", "ocean"],
  1985. ["elem2", "elem4"], ["ocean", "ocean", "ocean"], ["elem56", "elem58", "elem59"],
  1986. "ocean1.ogg", final_point_1, final_cube_1, district_1, ["ocean", "ocean", "ocean"],
  1987. ["elem105", "elem810", "elem811"], final_fog_1, ambience="ocean.mp3")
  1988. data_att1 = OptionalMapJson(direction_1, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg",
  1989. ambience="ocean.mp3")
  1990. data_map2 = generalMapJson(map2_se, ["ocean", "ocean", "ocean", "ocean", "ocean"],
  1991. ["elem7", "elem15", "elem18", "elem6", "elem12"], ["ocean", "ocean"],
  1992. ["elem2", "elem4"], ["ocean", "ocean", "ocean"], ["elem56", "elem58", "elem59"],
  1993. "ocean1.ogg", final_point_2, final_cube_2, district_2, ["ocean", "ocean", "ocean"],
  1994. ["elem105", "elem810", "elem811"], final_fog_2, ambience="ocean.mp3")
  1995. data_att2 = OptionalMapJson(direction_2, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg",
  1996. ambience="ocean.mp3")
  1997. data_map3 = generalMapJson(map3_se, ["ocean", "ocean", "ocean", "ocean", "ocean"],
  1998. ["elem7", "elem15", "elem18", "elem6", "elem12"], ["ocean", "ocean"],
  1999. ["elem2", "elem4"], ["ocean", "ocean", "ocean"], ["elem56", "elem58", "elem59"],
  2000. "ocean1.ogg", final_point_3, final_cube_3, district_3, ["ocean", "ocean", "ocean"],
  2001. ["elem105", "elem810", "elem811"], final_fog_3, ambience="ocean.mp3")
  2002. data_att3 = OptionalMapJson(direction_3, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg",
  2003. ambience="ocean.mp3")
  2004. data_map4 = generalMapJson(map4_se, ["mine", "mine"], ["elem207", "elem201"], ["ocean", "ocean", "ocean"],
  2005. ["elem14", "elem4", "elem2"], ["ocean", "ocean", "ocean"],
  2006. ["elem56", "elem58", "elem59"], "ocean2.mp3", final_point_4, final_cube_4,
  2007. district_4, ["ocean", "ocean", "ocean", "ocean", "ocean"],
  2008. ["elem105", "elem107", "elem810", "elem811", "elem811"], final_fog_4,
  2009. ambience="ocean.mp3")
  2010. data_att4 = OptionalMapJson(direction_4, ["mine"], ["elem207"], ["ocean"], ["elem56"], "ocean2.mp3",
  2011. ambience="ocean.mp3")
  2012. data_map5 = generalMapJson(map5_se, ["mine", "mine"], ["elem207", "elem201"], ["ocean", "ocean", "ocean"],
  2013. ["elem14", "elem4", "elem2"], ["ocean", "ocean", "ocean"],
  2014. ["elem56", "elem58", "elem59"], "ocean2.mp3", final_point_5, final_cube_5,
  2015. district_5, ["ocean", "ocean", "ocean", "ocean", "ocean"],
  2016. ["elem105", "elem107", "elem810", "elem811", "elem811"], final_fog_5,
  2017. ambience="ocean.mp3")
  2018. data_att5 = OptionalMapJson(direction_5, ["mine"], ["elem207"], ["ocean"], ["elem56"], "ocean2.mp3",
  2019. must_speed=True, ambience="ocean.mp3")
  2020. elif theme_1 == T.theme1_C_mon_dic:
  2021. data_map1 = generalMapJson(map1_se,
  2022. ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
  2023. ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
  2024. ["machine", "machine", "machine", "machine"],
  2025. ["elem64", "elem65", "elem66", "elem67"], ["machine", "machine", "machine"],
  2026. ["elem48", "elem51", "elem47"], "steamacity2.ogg", final_point_1, final_cube_1,
  2027. district_1, [], [], final_fog_1)
  2028. data_att1 = OptionalMapJson(direction_1,
  2029. ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
  2030. ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
  2031. ["machine", "machine", "machine"], ["elem48", "elem51", "elem47"],
  2032. "steamacity2.ogg")
  2033. data_map2 = generalMapJson(map2_se,
  2034. ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
  2035. ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
  2036. ["machine", "machine", "machine", "machine"],
  2037. ["elem64", "elem65", "elem66", "elem67"], ["machine", "machine", "machine"],
  2038. ["elem48", "elem51", "elem47"], "steamacity2.ogg", final_point_2, final_cube_2,
  2039. district_2, [], [], final_fog_2)
  2040. data_att2 = OptionalMapJson(direction_2,
  2041. ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
  2042. ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
  2043. ["machine", "machine", "machine"], ["elem48", "elem51", "elem47"],
  2044. "steamacity2.ogg")
  2045. data_map3 = generalMapJson(map3_se,
  2046. ["machine", "machine", "machine", "machine", "machine", "machine", "machine",
  2047. "machine", "machine", "machine"],
  2048. ["elem63", "elem11", "elem14", "elem57", "elem58", "elem70", "elem71", "elem72",
  2049. "elem73", "elem74"], ["machine", "machine", "machine", "machine"],
  2050. ["elem64", "elem65", "elem66", "elem67"], ["machine", "machine", "machine"],
  2051. ["elem51", "elem48", "elem47"], "steamacity2.ogg", final_point_3, final_cube_3,
  2052. district_3, [], [], final_fog_3)
  2053. data_att3 = OptionalMapJson(direction_3,
  2054. ["machine", "machine", "machine", "machine", "machine", "machine", "machine",
  2055. "machine", "machine", "machine"],
  2056. ["elem63", "elem11", "elem14", "elem57", "elem58", "elem70", "elem71", "elem72",
  2057. "elem73", "elem74"], ["machine", "machine", "machine"],
  2058. ["elem51", "elem48", "elem47"], "steamacity2.ogg")
  2059. data_map4 = generalMapJson(map4_se, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
  2060. ["elem740", "elem705", "elem703", "elem701", "elem308"],
  2061. ["machine", "machine", "machine", "machine"],
  2062. ["elem64", "elem65", "elem66", "elem67"],
  2063. ["machine_dark", "steamacity", "steamacity", "steamacity"],
  2064. ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg", final_point_4,
  2065. final_cube_4, district_4, ["steamacity"], ["elem702"], final_fog_4)
  2066. data_att4 = OptionalMapJson(direction_4, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
  2067. ["elem740", "elem705", "elem703", "elem701", "elem308"],
  2068. ["machine_dark", "steamacity", "steamacity", "steamacity"],
  2069. ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg")
  2070. data_map5 = generalMapJson(map5_se, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
  2071. ["elem740", "elem705", "elem703", "elem701", "elem308"],
  2072. ["machine", "machine", "machine", "machine"],
  2073. ["elem64", "elem65", "elem66", "elem67"],
  2074. ["machine_dark", "steamacity", "steamacity", "steamacity"],
  2075. ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg", final_point_5,
  2076. final_cube_5, district_5, ["steamacity"], ["elem702"], final_fog_5)
  2077. data_att5 = OptionalMapJson(direction_5, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
  2078. ["elem740", "elem705", "elem703", "elem701", "elem308"],
  2079. ["machine_dark", "steamacity", "steamacity", "steamacity"],
  2080. ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg", must_speed=True)
  2081. if theme_2 == T.theme2_A_mon_dic:
  2082. data_map6 = generalMapJson(map6_se, ["mine", "common", "common"], ["elem151", "elem62", "elem53"],
  2083. ["common", "common"], ["elem101", "elem42"], ["mine"], ["elem56"], "magic.ogg",
  2084. final_point_6, final_cube_6, district_6, [], [], final_fog_6)
  2085. data_att6 = OptionalMapJson(direction_6, ["mine"], ["elem151"], ["mine"], ["elem56"], "magic.ogg")
  2086. data_map7 = generalMapJson(map7_se, ["mine", "common", "common"], ["elem151", "elem62", "elem53"],
  2087. ["common", "common"], ["elem101", "elem42"], ["mine"], ["elem56"], "magic.ogg",
  2088. final_point_7, final_cube_7, district_7, [], [], final_fog_7)
  2089. data_att7 = OptionalMapJson(direction_7, ["mine"], ["elem151"], ["mine"], ["elem56"], "magic.ogg")
  2090. data_map8 = generalMapJson(map8_se, ["mine", "common", "common"], ["elem151", "elem62", "elem53"],
  2091. ["common", "common"], ["elem101", "elem42"], ["mine"], ["elem56"], "magic.ogg",
  2092. final_point_8, final_cube_8, district_8, [], [], final_fog_8)
  2093. data_att8 = OptionalMapJson(direction_8, ["mine"], ["elem151"], ["mine"], ["elem56"], "magic.ogg")
  2094. data_map9 = generalMapJson(map9_se, ["mine", "mine"], ["elem151", "elem51"], ["common"], ["elem42"],
  2095. ["mine", "mine"], ["elem35", "elem31"], "shatterpoint.ogg", final_point_9,
  2096. final_cube_9, district_9, [], [], final_fog_9)
  2097. data_att9 = OptionalMapJson(direction_9, ["mine"], ["elem51"], ["mine"], ["elem35"], "shatterpoint.ogg")
  2098. data_map10 = generalMapJson(map10_se, ["mine", "mine"], ["elem151", "elem51"], ["common", "treasure"],
  2099. ["elem42", "elem5"], ["mine", "mine"], ["elem35", "elem31"], "shatterpoint.ogg",
  2100. final_point_10, final_cube_10, district_10, [], [], final_fog_10)
  2101. data_att10 = OptionalMapJson(direction_10, ["mine"], ["elem51"], ["mine"], ["elem35"], "shatterpoint.ogg",
  2102. must_speed=True)
  2103. elif theme_2 == T.theme2_B_mon_dic:
  2104. data_map6 = generalMapJson(map6_se, ["glacier", "glacier", "glacier"], ["elem217", "elem216", "elem205"],
  2105. ["glacier", "glacier", "glacier"], ["elem225", "elem226", "elem227"],
  2106. ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
  2107. "g1.ogg", final_point_6, final_cube_6, district_6, [], [], final_fog_6,
  2108. special_param={"defense": -200, "damage": 0, "speed": 1})
  2109. data_att6 = OptionalMapJson(direction_6, ["glacier", "glacier", "glacier"], ["elem217", "elem216", "elem205"],
  2110. ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
  2111. "g1.ogg", special_param={"defense": -200, "damage": 0, "speed": 1})
  2112. data_map7 = generalMapJson(map7_se, ["exploration", "glacier", "glacier"], ["elem212", "elem216", "elem21"],
  2113. ["glacier", "glacier", "glacier"], ["elem225", "elem226", "elem227"],
  2114. ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
  2115. "g2.ogg", final_point_7, final_cube_7, district_7, [], [], final_fog_7,
  2116. special_param={"defense": -200, "damage": 0, "speed": 1})
  2117. data_att7 = OptionalMapJson(direction_7, ["exploration", "glacier", "glacier"],
  2118. ["elem212", "elem216", "elem21"], ["glacier", "glacier", "glacier", "glacier"],
  2119. ["elem1", "elem2", "elem3", "elem4"], "g2.ogg",
  2120. special_param={"defense": -200, "damage": 0, "speed": 1})
  2121. data_map8 = generalMapJson(map8_se, ["exploration", "glacier", "glacier"], ["elem212", "elem216", "elem21"],
  2122. ["glacier", "glacier", "glacier"], ["elem225", "elem226", "elem227"],
  2123. ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
  2124. "g2.ogg", final_point_8, final_cube_8, district_8, [], [], final_fog_8,
  2125. special_param={"defense": -200, "damage": 0, "speed": 1})
  2126. data_att8 = OptionalMapJson(direction_8, ["exploration", "glacier", "glacier"],
  2127. ["elem212", "elem216", "elem21"], ["glacier", "glacier", "glacier", "glacier"],
  2128. ["elem1", "elem2", "elem3", "elem4"], "g2.ogg",
  2129. special_param={"defense": -200, "damage": 0, "speed": 1})
  2130. data_map9 = generalMapJson(map9_se, ["tundra", "tundra", "tundra", "tundra"],
  2131. ["elem212", "elem217", "elem216", "elem205"], ["tundra", "tundra", "tundra"],
  2132. ["elem225", "elem226", "elem227"], ["tundra", "tundra", "tundra", "tundra"],
  2133. ["elem1", "elem2", "elem3", "elem4"], "g3.ogg", final_point_9, final_cube_9,
  2134. district_9, ["tundra"], ["elem260"], final_fog_9,
  2135. special_param={"defense": -200, "damage": 0, "speed": 1})
  2136. data_att9 = OptionalMapJson(direction_9, ["tundra", "tundra", "tundra", "tundra"],
  2137. ["elem212", "elem217", "elem216", "elem205"],
  2138. ["tundra", "tundra", "tundra", "tundra"], ["elem1", "elem2", "elem3", "elem4"],
  2139. "g3.ogg", special_param={"defense": -200, "damage": 0, "speed": 1})
  2140. data_map10 = generalMapJson(map10_se, ["tundra", "tundra", "tundra", "tundra", "tundra", "tundra"],
  2141. ["elem217", "elem212", "elem216", "elem205", "elem202", "elem301"],
  2142. ["tundra", "tundra", "tundra"], ["elem225", "elem226", "elem227"], ["tundra"],
  2143. ["elem300"], "g3.ogg", final_point_10, final_cube_10, district_10, ["tundra"],
  2144. ["elem260"], final_fog_10, special_param={"defense": -200, "damage": 0, "speed": 1})
  2145. data_att10 = OptionalMapJson(direction_10, ["tundra", "tundra", "tundra", "tundra", "tundra", "tundra"],
  2146. ["elem217", "elem212", "elem216", "elem205", "elem202", "elem301"], ["tundra"],
  2147. ["elem300"], "g3.ogg", must_speed=True,
  2148. special_param={"defense": -200, "damage": 0, "speed": 1})
  2149. elif theme_2 == T.theme2_C_mon_dic:
  2150. data_map6 = generalMapJson(map6_se, ["forest", "forest", "forest", "forest", "forest", "forest"],
  2151. ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  2152. ["forest", "forest", "forest", "forest"],
  2153. ["elem109", "elem102", "elem106", "elem103"],
  2154. ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"], "field.ogg",
  2155. final_point_6, final_cube_6, district_6, ["fog", "forest"], ["elem39", "elem3"],
  2156. final_fog_6, special_param={"defense": -200, "damage": 0, "speed": 1})
  2157. data_att6 = OptionalMapJson(direction_6, ["forest", "forest", "forest", "forest", "forest", "forest"],
  2158. ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  2159. ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"],
  2160. "field.ogg")
  2161. data_map7 = generalMapJson(map7_se, ["forest", "forest", "forest", "forest", "forest", "forest", "forest"],
  2162. ["elem201", "elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  2163. ["forest", "forest", "forest", "forest"], ["elem2", "elem102", "elem106", "elem103"],
  2164. ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"], "field.ogg",
  2165. final_point_7, final_cube_7, district_7, ["fog", "fog", "forest"],
  2166. ["elem39", "elem39", "elem3"], final_fog_7,
  2167. special_param={"defense": -200, "damage": 0, "speed": 1})
  2168. data_att7 = OptionalMapJson(direction_7, ["forest", "forest", "forest", "forest", "forest", "forest"],
  2169. ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  2170. ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"],
  2171. "field.ogg")
  2172. data_map8 = generalMapJson(map8_se, ["forest", "forest", "forest", "forest", "forest", "forest", "forest"],
  2173. ["elem201", "elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  2174. ["forest", "forest", "forest", "forest"], ["elem2", "elem102", "elem106", "elem103"],
  2175. ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"], "field.ogg",
  2176. final_point_8, final_cube_8, district_8, ["fog", "fog", "fog", "forest"],
  2177. ["elem39", "elem39", "elem39", "elem3"], final_fog_8,
  2178. special_param={"defense": -200, "damage": 0, "speed": 1})
  2179. data_att8 = OptionalMapJson(direction_8, ["forest", "forest", "forest", "forest", "forest", "forest"],
  2180. ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  2181. ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"],
  2182. "field.ogg")
  2183. data_map9 = generalMapJson(map9_se,
  2184. ["forest", "forest", "forest", "forest", "forest", "forest", "forest", "forest",
  2185. "forest"],
  2186. ["elem202", "elem206", "elem201", "elem8", "elem69", "elem70", "elem105", "elem7",
  2187. "elem75"], ["forest", "forest", "forest", "forest", "forest"],
  2188. ["elem46", "elem2", "elem102", "elem106", "elem103"],
  2189. ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
  2190. "wallemd.ogg", final_point_9, final_cube_9, district_9,
  2191. ["fog", "fog", "fog", "forest", "forest"],
  2192. ["elem39", "elem39", "elem39", "elem3", "elem3"], final_fog_9,
  2193. special_param={"defense": -200, "damage": 0, "speed": 1})
  2194. data_att9 = OptionalMapJson(direction_9, ["forest", "forest", "forest", "forest", "forest", "forest"],
  2195. ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  2196. ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
  2197. "wallemd.ogg")
  2198. data_map10 = generalMapJson(map10_se,
  2199. ["forest", "forest", "forest", "forest", "forest", "forest", "forest", "forest",
  2200. "forest"],
  2201. ["elem202", "elem206", "elem201", "elem8", "elem69", "elem70", "elem105", "elem7",
  2202. "elem75"], ["forest", "forest", "forest", "forest", "forest"],
  2203. ["elem46", "elem2", "elem102", "elem106", "elem103"],
  2204. ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
  2205. "wallemd.ogg", final_point_10, final_cube_10, district_10,
  2206. ["fog", "fog", "fog", "fog", "forest", "forest"],
  2207. ["elem39", "elem39", "elem39", "elem39", "elem3", "elem3"], final_fog_10,
  2208. special_param={"defense": -200, "damage": 0, "speed": 1})
  2209. data_att10 = OptionalMapJson(direction_10, ["forest", "forest", "forest", "forest", "forest", "forest"],
  2210. ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
  2211. ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
  2212. "wallemd.ogg", must_speed=True)
  2213. if theme_3 == T.theme3_A_mon_dic:
  2214. data_map11 = generalMapJson(map11_se, ["mine", "mine"], ["elem5", "elem201"], ["mine", "mine", "mine"],
  2215. ["elem4", "elem6", "elem8"], ["mine"], ["elem3"], "mine.ogg", final_point_11,
  2216. final_cube_11, district_11, [], [], final_fog_11,
  2217. special_param={"defense": -200, "damage": -200, "speed": 1})
  2218. data_att11 = OptionalMapJson(direction_11, ["mine"], ["elem5"], ["mine"], ["elem3"], "mine.ogg",
  2219. special_param={"defense": -200, "damage": -200, "speed": 1})
  2220. data_map12 = generalMapJson(map12_se, ["mine", "mine", "mine", "mine", "mine"],
  2221. ["elem207", "elem221", "elem201", "elem202", "elem5"], ["mine", "mine", "mine"],
  2222. ["elem4", "elem12", "elem8"], ["mine"], ["elem3"], "mine.ogg", final_point_12,
  2223. final_cube_12, district_12, [], [], final_fog_12,
  2224. special_param={"defense": -200, "damage": -200, "speed": 1})
  2225. data_att12 = OptionalMapJson(direction_12, ["mine"], ["elem207"], ["mine"], ["elem3"], "mine.ogg",
  2226. special_param={"defense": -200, "damage": -200, "speed": 1})
  2227. data_map13 = generalMapJson(map13_se, ["mine", "mine", "mine", "mine", "mine"],
  2228. ["elem207", "elem221", "elem201", "elem202", "elem5"], ["mine", "mine", "mine"],
  2229. ["elem4", "elem12", "elem8"], ["mine"], ["elem3"], "mine.ogg", final_point_13,
  2230. final_cube_13, district_13, [], [], final_fog_13,
  2231. special_param={"defense": -200, "damage": -200, "speed": 1})
  2232. data_att13 = OptionalMapJson(direction_13, ["mine"], ["elem207"], ["mine"], ["elem3"], "mine.ogg",
  2233. special_param={"defense": -200, "damage": -200, "speed": 1})
  2234. data_map14 = generalMapJson(map14_se, ["mine", "mine", "mine"], ["elem248", "elem252", "elem247"],
  2235. ["mine", "exploration"], ["elem243", "elem25"], ["mine", "mine", "mine"],
  2236. ["elem246", "elem245", "elem254"], "mine.ogg", final_point_14, final_cube_14,
  2237. district_14, [], [], final_fog_14,
  2238. special_param={"defense": -200, "damage": -200, "speed": 1})
  2239. data_att14 = OptionalMapJson(direction_14, ["mine"], ["elem248"], ["mine"], ["elem246"], "mine.ogg",
  2240. special_param={"defense": -200, "damage": -200, "speed": 1})
  2241. data_map15 = generalMapJson(map15_se, ["exploration", "mine", "mine"], ["elem2", "elem252", "elem248"],
  2242. ["mine", "exploration"], ["elem243", "elem25"], ["mine", "mine", "mine"],
  2243. ["elem246", "elem245", "elem254"], "mine.ogg", final_point_15, final_cube_15,
  2244. district_15, [], [], final_fog_15,
  2245. special_param={"defense": -200, "damage": -200, "speed": 1})
  2246. data_att15 = FinalMapJson(direction_15, ["exploration"], ["elem2"], ["mine"], ["elem246"], "mine.ogg")
  2247. data_att_continue15 = OptionalMapJson(direction_15, ["exploration"], ["elem2"], ["mine"], ["elem246"],
  2248. "mine.ogg", must_speed=True,
  2249. special_param={"defense": -200, "damage": -200, "speed": 1})
  2250. elif theme_3 == T.theme3_B_mon_dic:
  2251. data_map11 = generalMapJson(map11_se, ["gobi", "gobi", "gobi", "gobi", "gobi"],
  2252. ["elem201", "elem5", "elem5", "elem201", "elem6"], ["gobi", "desert", "desert"],
  2253. ["elem20", "elem2", "elem6"], ["gobi"], ["elem1"], "d1.ogg", final_point_11,
  2254. final_cube_11, district_11, [], [], final_fog_11,
  2255. special_param={"defense": -200, "damage": -200, "speed": 1})
  2256. data_att11 = OptionalMapJson(direction_11, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  2257. ["elem201", "elem201", "elem5", "elem201", "elem6", "elem24"], ["gobi"], ["elem1"],
  2258. "d1.ogg", special_param={"defense": -200, "damage": -200, "speed": 1})
  2259. data_map12 = generalMapJson(map12_se, ["gobi", "gobi", "gobi", "gobi", "gobi"],
  2260. ["elem201", "elem5", "elem5", "elem201", "elem6"], ["gobi", "desert", "desert"],
  2261. ["elem20", "elem2", "elem6"], ["gobi"], ["elem1"], "d1.ogg", final_point_12,
  2262. final_cube_12, district_12, [], [], final_fog_12,
  2263. special_param={"defense": -200, "damage": -200, "speed": 1})
  2264. data_att12 = OptionalMapJson(direction_12, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  2265. ["elem201", "elem201", "elem5", "elem201", "elem6", "elem24"], ["gobi"], ["elem1"],
  2266. "d1.ogg", special_param={"defense": -200, "damage": -200, "speed": 1})
  2267. data_map13 = generalMapJson(map13_se, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  2268. ["elem5", "elem201", "elem5", "elem201", "elem6", "elem21"],
  2269. ["gobi", "desert", "desert"], ["elem20", "elem2", "elem6"], ["gobi", "gobi"],
  2270. ["elem3", "elem4"], "d3.ogg", final_point_13, final_cube_13, district_13, [], [],
  2271. final_fog_13, special_param={"defense": -200, "damage": -200, "speed": 1})
  2272. data_att13 = OptionalMapJson(direction_13, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  2273. ["elem5", "elem201", "elem5", "elem201", "elem6", "elem21"], ["gobi", "gobi"],
  2274. ["elem3", "elem4"], "d3.ogg",
  2275. special_param={"defense": -200, "damage": -200, "speed": 1})
  2276. data_map14 = generalMapJson(map14_se, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  2277. ["elem28", "elem28", "elem28", "elem110", "elem110", "elem810"], ["gobi", "gobi"],
  2278. ["elem29", "elem202"], ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"],
  2279. "d3.ogg", final_point_14, final_cube_14, district_14, [], [], final_fog_14,
  2280. special_param={"defense": -200, "damage": -200, "speed": 1})
  2281. data_att14 = OptionalMapJson(direction_14, ["gobi", "gobi", "gobi"], ["elem28", "elem110", "elem810"],
  2282. ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"], "d3.ogg",
  2283. special_param={"defense": -200, "damage": -200, "speed": 1})
  2284. data_map15 = generalMapJson(map15_se, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  2285. ["elem110", "elem28", "elem28", "elem28", "elem810", "elem46"], ["gobi", "gobi"],
  2286. ["elem29", "elem202"], ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"],
  2287. "d4.ogg", final_point_15, final_cube_15, district_15, ["gobi"], ["elem410"],
  2288. final_fog_15, special_param={"defense": -200, "damage": -200, "speed": 1})
  2289. data_att15 = FinalMapJson(direction_15, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  2290. ["elem110", "elem28", "elem28", "elem28", "elem810", "elem46"],
  2291. ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"], "d4.ogg")
  2292. data_att_continue15 = OptionalMapJson(direction_15, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
  2293. ["elem110", "elem28", "elem28", "elem28", "elem810", "elem46"],
  2294. ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"], "d4.ogg",
  2295. must_speed=True,
  2296. special_param={"defense": -200, "damage": -200, "speed": 1})
  2297. elif theme_3 == T.theme3_C_mon_dic:
  2298. data_map11 = generalMapJson(map11_se,
  2299. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  2300. "queer", "queer"], ["elem401", "elem315", "elem501", "elem307", "elem1", "elem1"],
  2301. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2302. ["elem402", "elem403", "elem404"],
  2303. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2304. ["elem2", "elem1", "elem0"], "steamacity5.ogg", final_point_11, final_cube_11,
  2305. district_11, [], [], final_fog_11)
  2306. data_att11 = OptionalMapJson(direction_11,
  2307. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2308. ["elem401", "elem315", "elem501", "elem307"],
  2309. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2310. ["elem2", "elem1", "elem0"], "steamacity5.ogg")
  2311. data_map12 = generalMapJson(map12_se,
  2312. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  2313. "queer", "queer"], ["elem401", "elem315", "elem501", "elem307", "elem1", "elem1"],
  2314. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2315. ["elem402", "elem403", "elem404"],
  2316. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2317. ["elem2", "elem1", "elem0"], "steamacity5.ogg", final_point_12, final_cube_12,
  2318. district_12, [], [], final_fog_12)
  2319. data_att12 = OptionalMapJson(direction_12,
  2320. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2321. ["elem401", "elem315", "elem501", "elem307"],
  2322. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2323. ["elem2", "elem1", "elem0"], "steamacity5.ogg")
  2324. data_map13 = generalMapJson(map13_se,
  2325. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  2326. "machine_dark", "machine_dark", "queer", "queer"],
  2327. ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13", "elem1", "elem1"],
  2328. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2329. ["elem402", "elem403", "elem404"],
  2330. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2331. ["elem600", "elem601", "elem602"], "steamacity6.ogg", final_point_13, final_cube_13,
  2332. district_13, [], [], final_fog_13)
  2333. data_att13 = OptionalMapJson(direction_13,
  2334. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  2335. "machine_dark", "machine_dark"],
  2336. ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13"],
  2337. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2338. ["elem600", "elem601", "elem602"], "steamacity6.ogg")
  2339. data_map14 = generalMapJson(map14_se,
  2340. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  2341. "machine_dark", "machine_dark", "queer", "queer"],
  2342. ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13", "elem1", "elem1"],
  2343. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2344. ["elem402", "elem403", "elem404"],
  2345. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2346. ["elem600", "elem601", "elem602"], "steamacity6.ogg", final_point_14, final_cube_14,
  2347. district_14, [], [], final_fog_14)
  2348. data_att14 = OptionalMapJson(direction_14,
  2349. ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  2350. "machine_dark", "machine_dark"],
  2351. ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13"],
  2352. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2353. ["elem600", "elem601", "elem602"], "steamacity6.ogg")
  2354. data_map15 = generalMapJson(map15_se, ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  2355. "steamacity_dark", "machine_dark", "machine_dark", "queer", "queer"],
  2356. ["elem14", "elem401", "elem315", "elem501", "elem307", "elem11", "elem13", "elem1",
  2357. "elem1"],
  2358. ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2359. ["elem8", "elem402", "elem403", "elem404"],
  2360. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2361. ["elem600", "elem601", "elem602"], "steamacity7.ogg", final_point_15, final_cube_15,
  2362. district_15, [], [], final_fog_15)
  2363. data_att15 = FinalMapJson(direction_15,
  2364. ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  2365. "steamacity_dark", "machine_dark", "machine_dark"],
  2366. ["elem14", "elem401", "elem315", "elem501", "elem307", "elem11", "elem13"],
  2367. ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2368. ["elem600", "elem601", "elem602"], "steamacity7.ogg")
  2369. data_att_continue15 = OptionalMapJson(direction_15,
  2370. ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
  2371. "steamacity_dark", "machine_dark", "machine_dark"],
  2372. ["elem14", "elem401", "elem315", "elem501", "elem307", "elem11",
  2373. "elem13"], ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
  2374. ["elem600", "elem601", "elem602"], "steamacity7.ogg", must_speed=True)
  2375. # 艾登结局
  2376. data_map_eden16 = generalMapJson(map_eden16_se, ["common", "common", "common", "autumnSnow", "autumnSnow"],
  2377. ["elem69", "elem75", "elem188", "elem55", "elem56"], ["autumnSnow", "autumnSnow"],
  2378. ["elem43", "elem3"], ["autumnSnow", "autumnSnow", "autumnSnow"],
  2379. ["elem39", "elem29", "elem18"], "rogue_eden1.ogg", final_point_eden_16,
  2380. final_cube_eden_16, district_eden_16, ["autumnSnow"], ["elem6"], final_fog_eden_16)
  2381. data_att_eden16 = OptionalMapJson(direction_16, ["common", "common", "common", "autumnSnow", "autumnSnow"],
  2382. ["elem69", "elem75", "elem188", "elem55", "elem56"],
  2383. ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem39", "elem29", "elem18"],
  2384. "rogue_eden1.ogg")
  2385. data_map_eden17 = generalMapJson(map_eden17_se, ["common", "common", "common", "autumnSnow", "autumnSnow"],
  2386. ["elem69", "elem75", "elem188", "elem55", "elem56"], ["autumnSnow", "autumnSnow"],
  2387. ["elem43", "elem3"], ["autumnSnow", "autumnSnow", "autumnSnow"],
  2388. ["elem39", "elem29", "elem18"], "rogue_eden1.ogg", final_point_eden_17,
  2389. final_cube_eden_17, district_eden_17, ["autumnSnow"], ["elem6"], final_fog_eden_17)
  2390. data_att_eden17 = OptionalMapJson(direction_17, ["common", "common", "common", "autumnSnow", "autumnSnow"],
  2391. ["elem69", "elem75", "elem188", "elem55", "elem56"],
  2392. ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem39", "elem29", "elem18"],
  2393. "rogue_eden1.ogg")
  2394. data_map_eden18 = generalMapJson(map_eden18_se, ["common", "common", "common", "autumnSnow", "autumnSnow"],
  2395. ["elem69", "elem75", "elem188", "elem55", "elem56"], ["autumnSnow", "autumnSnow"],
  2396. ["elem43", "elem3"], ["autumnSnow", "autumnSnow", "autumnSnow"],
  2397. ["elem39", "elem29", "elem18"], "rogue_eden1.ogg", final_point_eden_18,
  2398. final_cube_eden_18, district_eden_18, ["autumnSnow", "autumnSnow"],
  2399. ["elem6", "elem6"], final_fog_eden_18)
  2400. data_att_eden18 = OptionalMapJson(direction_18, ["common", "common", "common", "autumnSnow", "autumnSnow"],
  2401. ["elem69", "elem75", "elem188", "elem55", "elem56"],
  2402. ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem39", "elem29", "elem18"],
  2403. "rogue_eden1.ogg")
  2404. data_map_eden19 = generalMapJson(map_eden19_se,
  2405. ["autumnSnow", "common", "common", "common", "autumnSnow", "autumnSnow",
  2406. "autumnSnow"],
  2407. ["elem55", "elem75", "elem188", "elem69", "elem56", "elem202", "elem1"],
  2408. ["autumnSnow", "autumnSnow", "forest"], ["elem43", "elem4", "elem116"],
  2409. ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem29", "elem39", "elem18"],
  2410. "rogue_eden2.ogg", final_point_eden_19, final_cube_eden_19, district_eden_19,
  2411. ["autumnSnow", "autumnSnow"], ["elem6", "elem6"], final_fog_eden_19)
  2412. data_att_eden19 = OptionalMapJson(direction_19,
  2413. ["autumnSnow", "common", "common", "common", "autumnSnow", "autumnSnow",
  2414. "autumnSnow"],
  2415. ["elem55", "elem75", "elem188", "elem69", "elem56", "elem202", "elem1"],
  2416. ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem29", "elem39", "elem18"],
  2417. "rogue_eden2.ogg")
  2418. # data_map_eden20 = generalMapJson(map_eden20_se, ["autumnSnow","common","common","common","autumnSnow","autumnSnow","autumnSnow"], ["elem55","elem75","elem188","elem69","elem56","elem202","elem1"], ["autumnSnow","autumnSnow","forest"], ["elem43","elem4","elem116"], ["autumnSnow","autumnSnow","autumnSnow"], ["elem29","elem39","elem18"], "rogue_eden2.ogg", final_point_eden_20, final_cube_eden_20, district_eden_20, ["autumnSnow","autumnSnow","autumnSnow"], ["elem6","elem6","elem6"], final_fog_eden_20)
  2419. data_map_eden20 = eden_boss_map_json()
  2420. data_att_eden20 = FinalMapJson(direction_20,
  2421. ["autumnSnow", "common", "common", "common", "autumnSnow", "autumnSnow",
  2422. "autumnSnow"],
  2423. ["elem55", "elem75", "elem188", "elem69", "elem56", "elem202", "elem1"],
  2424. ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem29", "elem39", "elem18"],
  2425. "rogue_eden2.ogg")
  2426. # 逆命结局
  2427. data_map_destiny16 = generalMapJson(map_destiny16_se,
  2428. ["site", "site", "site", "site", "common", "common", "forest", "forest",
  2429. "forest", "forest"],
  2430. ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
  2431. "elem44", "elem45"], ["common", "common", "common", "exploration"],
  2432. ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
  2433. ["elem1", "elem2"], "rogue_destiny1.ogg", final_point_destiny_16,
  2434. final_cube_destiny_16, district_destiny_16, ["fog"], ["elem39"],
  2435. final_fog_destiny_16, ambience="rain.mp3", environment="rain",
  2436. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
  2437. data_att_destiny16 = OptionalMapJson(direction_16,
  2438. ["site", "site", "site", "site", "common", "common", "forest", "forest",
  2439. "forest", "forest"],
  2440. ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
  2441. "elem44", "elem45"], ["site", "site"], ["elem1", "elem2"],
  2442. "rogue_destiny1.ogg", ambience="rain.mp3", environment="rain",
  2443. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
  2444. data_map_destiny17 = generalMapJson(map_destiny17_se,
  2445. ["site", "site", "site", "site", "common", "common", "forest", "forest",
  2446. "forest", "forest"],
  2447. ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
  2448. "elem44", "elem45"], ["common", "common", "common", "exploration"],
  2449. ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
  2450. ["elem1", "elem2"], "rogue_destiny1.ogg", final_point_destiny_17,
  2451. final_cube_destiny_17, district_destiny_17, ["fog"], ["elem39"],
  2452. final_fog_destiny_17, ambience="rain.mp3", environment="rain",
  2453. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
  2454. data_att_destiny17 = OptionalMapJson(direction_17,
  2455. ["site", "site", "site", "site", "common", "common", "forest", "forest",
  2456. "forest", "forest"],
  2457. ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
  2458. "elem44", "elem45"], ["site", "site"], ["elem1", "elem2"],
  2459. "rogue_destiny1.ogg", ambience="rain.mp3", environment="rain",
  2460. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
  2461. data_map_destiny18 = generalMapJson(map_destiny18_se,
  2462. ["site", "site", "site", "site", "common", "common", "forest", "forest",
  2463. "forest", "forest"],
  2464. ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
  2465. "elem44", "elem45"], ["common", "common", "common", "exploration"],
  2466. ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
  2467. ["elem1", "elem2"], "rogue_destiny2.ogg", final_point_destiny_18,
  2468. final_cube_destiny_18, district_destiny_18, ["fog", "fog"],
  2469. ["elem39", "elem39"], final_fog_destiny_18, ambience="rain.mp3",
  2470. environment="rain",
  2471. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000],
  2472. ["Level3x3RandomThunder", [800, 3], 5600, 8000]])
  2473. data_att_destiny18 = OptionalMapJson(direction_18,
  2474. ["site", "site", "site", "site", "common", "common", "forest", "forest",
  2475. "forest", "forest"],
  2476. ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
  2477. "elem44", "elem45"], ["site", "site"], ["elem1", "elem2"],
  2478. "rogue_destiny2.ogg", ambience="rain.mp3", environment="rain",
  2479. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
  2480. data_map_destiny19 = generalMapJson(map_destiny19_se,
  2481. ["site", "site", "site", "site", "site", "site", "site", "site", "common",
  2482. "common", "forest", "forest", "forest", "forest"],
  2483. ["elem4", "elem3", "elem7", "elem8", "elem9", "elem10", "elem5", "elem6",
  2484. "elem69", "elem75", "elem42", "elem43", "elem44", "elem45"],
  2485. ["common", "common", "common", "exploration"],
  2486. ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
  2487. ["elem2", "elem1"], "rogue_destiny2.ogg", final_point_destiny_19,
  2488. final_cube_destiny_19, district_destiny_19, ["fog", "fog"],
  2489. ["elem39", "elem39"], final_fog_destiny_19, ambience="rain.mp3",
  2490. environment="rain",
  2491. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000],
  2492. ["Level3x3RandomThunder", [800, 3], 5600, 8000]])
  2493. data_att_destiny19 = OptionalMapJson(direction_19,
  2494. ["site", "site", "site", "site", "site", "site", "site", "site", "common",
  2495. "common", "forest", "forest", "forest", "forest"],
  2496. ["elem4", "elem3", "elem7", "elem8", "elem9", "elem10", "elem5", "elem6",
  2497. "elem69", "elem75", "elem42", "elem43", "elem44", "elem45"], ["site", "site"],
  2498. ["elem2", "elem1"], "rogue_destiny2.ogg", ambience="rain.mp3",
  2499. environment="rain",
  2500. level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
  2501. data_map_destiny20 = destiny_boss_map_json()
  2502. data_att_destiny20 = FinalMapJson(direction_20,
  2503. ["site", "site", "site", "site", "site", "site", "site", "site", "common",
  2504. "common", "forest", "forest", "forest", "forest"],
  2505. ["elem4", "elem3", "elem7", "elem8", "elem9", "elem10", "elem5", "elem6",
  2506. "elem69", "elem75", "elem42", "elem43", "elem44", "elem45"], ["site", "site"],
  2507. ["elem2", "elem1"], "rogue_destiny3.ogg", ambience="rain.mp3", environment="rain")
  2508. # 深海结局
  2509. data_map_ocean16 = generalMapJson(map_ocean16_se, ["mine", "mine", "mine", "ocean", "ocean", "ocean"],
  2510. ["elem207", "elem201", "elem202", "elem115", "elem118", "elem206"],
  2511. ["ocean", "ocean"], ["elem14", "elem202"], ["ocean", "ocean"],
  2512. ["elem51", "elem61"], "ocean4.ogg", final_point_ocean_16, final_cube_ocean_16,
  2513. district_ocean_16, ["ocean", "ocean", "ocean", "ocean"],
  2514. ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_16,
  2515. ambience="ocean.mp3")
  2516. data_att_ocean16 = OptionalMapJson(direction_16, ["mine"], ["elem201"], ["ocean"], ["elem51"], "ocean4.ogg",
  2517. ambience="ocean.mp3")
  2518. data_map_ocean17 = generalMapJson(map_ocean17_se, ["mine", "mine", "mine", "ocean"],
  2519. ["elem207", "elem201", "elem202", "elem206"], ["ocean"], ["elem202"],
  2520. ["ocean", "ocean"], ["elem51", "elem61"], "ocean4.ogg", final_point_ocean_17,
  2521. final_cube_ocean_17, district_ocean_17, ["ocean", "ocean", "ocean", "ocean"],
  2522. ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_17,
  2523. ambience="ocean.mp3")
  2524. data_att_ocean17 = OptionalMapJson(direction_17, ["mine"], ["elem201"], ["ocean"], ["elem51"], "ocean4.ogg",
  2525. ambience="ocean.mp3")
  2526. data_map_ocean18 = generalMapJson(map_ocean18_se, ["ocean", "ocean", "ocean", "ocean", "mine", "mine", "ocean"],
  2527. ["elem161", "elem161", "elem161", "elem161", "elem201", "elem202", "elem206"],
  2528. ["ocean", "ocean"], ["elem202", "elem203"], ["ocean", "ocean"],
  2529. ["elem152", "elem154"], "ocean14.ogg", final_point_ocean_18, final_cube_ocean_18,
  2530. district_ocean_18, ["ocean", "ocean", "ocean", "ocean"],
  2531. ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_18,
  2532. ambience="ocean.mp3")
  2533. data_att_ocean18 = OptionalMapJson(direction_18, ["ocean"], ["elem161"], ["ocean"], ["elem152"], "ocean14.ogg",
  2534. ambience="ocean.mp3")
  2535. data_map_ocean19 = generalMapJson(map_ocean19_se, ["ocean", "ocean", "ocean", "ocean", "mine", "mine", "ocean"],
  2536. ["elem161", "elem161", "elem161", "elem161", "elem201", "elem202", "elem206"],
  2537. ["ocean", "ocean"], ["elem203", "elem202"], ["ocean", "ocean"],
  2538. ["elem154", "elem152"], "ocean14.ogg", final_point_ocean_19, final_cube_ocean_19,
  2539. district_ocean_19, ["ocean", "ocean", "ocean", "ocean"],
  2540. ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_19,
  2541. ambience="ocean.mp3")
  2542. data_att_ocean19 = OptionalMapJson(direction_19, ["ocean"], ["elem161"], ["ocean"], ["elem154"], "ocean14.ogg",
  2543. ambience="ocean.mp3")
  2544. data_map_ocean20 = ocean_boss_map_json()
  2545. data_att_ocean20 = FinalMapJson(direction_20, ["ocean"], ["elem161"], ["ocean"], ["elem154"], "ocean13.ogg",
  2546. ambience="ocean.mp3")
  2547. # data_map1 = generalMapJson(map1_se, ["ocean","ocean","ocean","ocean","ocean"], ["elem7","elem15","elem18","elem6","elem12"], ["ocean","ocean"], ["elem2","elem4"], ["ocean","ocean","ocean"], ["elem56","elem58","elem59"], "ocean1.ogg", final_point_1, final_cube_1, district_1, ["ocean","ocean","ocean"], ["elem105","elem810","elem811"], final_fog_1, ambience="ocean.mp3")
  2548. # data_att1 = OptionalMapJson(direction_1, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg", ambience="ocean.mp3")
  2549. # data_map2 = generalMapJson(map2_se, ["ocean","ocean","ocean","ocean","ocean"], ["elem7","elem15","elem18","elem6","elem12"], ["ocean","ocean"], ["elem2","elem4"], ["ocean","ocean","ocean"], ["elem56","elem58","elem59"], "ocean1.ogg", final_point_2, final_cube_2, district_2, ["ocean","ocean","ocean"], ["elem105","elem810","elem811"], final_fog_2, ambience="ocean.mp3")
  2550. # data_att2 = OptionalMapJson(direction_2, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg", ambience="ocean.mp3")
  2551. # data_map3 = generalMapJson(map3_se, ["ocean","ocean","ocean","ocean","ocean"], ["elem7","elem15","elem18","elem6","elem12"], ["ocean","ocean"], ["elem2","elem4"], ["ocean","ocean","ocean"], ["elem56","elem58","elem59"], "ocean1.ogg", final_point_3, final_cube_3, district_3, ["ocean","ocean","ocean"], ["elem105","elem810","elem811"], final_fog_3, ambience="ocean.mp3")
  2552. # data_att3 = OptionalMapJson(direction_3, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg", ambience="ocean.mp3")
  2553. # data_map4 = generalMapJson(map4_se, ["mine","mine"], ["elem207","elem201"], ["ocean","ocean","ocean"], ["elem14","elem4","elem2"], ["ocean","ocean","ocean"], ["elem56","elem58","elem59"], "ocean2.mp3", final_point_4, final_cube_4, district_4, ["ocean","ocean","ocean","ocean","ocean"], ["elem105","elem107","elem810","elem811","elem811"], final_fog_4, ambience="ocean.mp3")
  2554. # data_att4 = OptionalMapJson(direction_4, ["mine"], ["elem207"], ["ocean"], ["elem56"], "ocean2.mp3", ambience="ocean.mp3")
  2555. # data_map5 = generalMapJson(map5_se, ["mine","mine"], ["elem207","elem201"], ["ocean","ocean","ocean"], ["elem14","elem4","elem2"], ["ocean","ocean","ocean"], ["elem56","elem58","elem59"], "ocean2.mp3", final_point_5, final_cube_5, district_5, ["ocean","ocean","ocean","ocean","ocean"], ["elem105","elem107","elem810","elem811","elem811"], final_fog_5, ambience="ocean.mp3")
  2556. # data_att5 = OptionalMapJson(direction_5, ["mine"], ["elem207"], ["ocean"], ["elem56"], "ocean2.mp3", must_speed = True, ambience="ocean.mp3")
  2557. R.general_mon_dic = {"1": {"normal": [], "elite": []}, "2": {"normal": [], "elite": []},
  2558. "3": {"normal": [], "elite": []}, "4": {"normal": [], "elite": []}}
  2559. for i, dic in enumerate([theme_1, theme_2, theme_3]):
  2560. for key, value in dic.items():
  2561. if value['type'] == 'normal':
  2562. R.general_mon_dic[str(i + 1)]["normal"].append(key)
  2563. if value['type'] == 'elite':
  2564. R.general_mon_dic[str(i + 1)]["elite"].append(key)
  2565. # 获取当前文件的路径
  2566. current_folder_path = os.getcwd()
  2567. # 获取父级文件夹的路径
  2568. parent_folder_path = os.path.dirname(current_folder_path)
  2569. # 获取父父级文件夹的路径
  2570. pparent_folder_path = current_folder_path
  2571. # pparent_folder_path = os.path.dirname(parent_folder_path)
  2572. # 数据写入
  2573. R.map_json_dic["rogueMap1"] = data_map1
  2574. R.map_json_dic["rogueMap2"] = data_map2
  2575. R.map_json_dic["rogueMap3"] = data_map3
  2576. R.map_json_dic["rogueMap4"] = data_map4
  2577. R.map_json_dic["rogueMap5"] = data_map5
  2578. R.map_json_dic["rogueMap6"] = data_map6
  2579. R.map_json_dic["rogueMap7"] = data_map7
  2580. R.map_json_dic["rogueMap8"] = data_map8
  2581. R.map_json_dic["rogueMap9"] = data_map9
  2582. R.map_json_dic["rogueMap10"] = data_map10
  2583. R.map_json_dic["rogueMap11"] = data_map11
  2584. R.map_json_dic["rogueMap12"] = data_map12
  2585. R.map_json_dic["rogueMap13"] = data_map13
  2586. R.map_json_dic["rogueMap14"] = data_map14
  2587. R.map_json_dic["rogueMap15"] = data_map15
  2588. R.map_json_dic["rogueMap16_eden"] = data_map_eden16
  2589. R.map_json_dic["rogueMap17_eden"] = data_map_eden17
  2590. R.map_json_dic["rogueMap18_eden"] = data_map_eden18
  2591. R.map_json_dic["rogueMap19_eden"] = data_map_eden19
  2592. R.map_json_dic["rogueMap20_eden"] = data_map_eden20
  2593. R.map_json_dic["rogueMap16_destiny"] = data_map_destiny16
  2594. R.map_json_dic["rogueMap17_destiny"] = data_map_destiny17
  2595. R.map_json_dic["rogueMap18_destiny"] = data_map_destiny18
  2596. R.map_json_dic["rogueMap19_destiny"] = data_map_destiny19
  2597. R.map_json_dic["rogueMap20_destiny"] = data_map_destiny20
  2598. R.map_json_dic["rogueMap16_ocean"] = data_map_ocean16
  2599. R.map_json_dic["rogueMap17_ocean"] = data_map_ocean17
  2600. R.map_json_dic["rogueMap18_ocean"] = data_map_ocean18
  2601. R.map_json_dic["rogueMap19_ocean"] = data_map_ocean19
  2602. R.map_json_dic["rogueMap20_ocean"] = data_map_ocean20
  2603. R.map_json_dic["rogueAttMap1"] = data_att1
  2604. R.map_json_dic["rogueAttMap2"] = data_att2
  2605. R.map_json_dic["rogueAttMap3"] = data_att3
  2606. R.map_json_dic["rogueAttMap4"] = data_att4
  2607. R.map_json_dic["rogueAttMap5"] = data_att5
  2608. R.map_json_dic["rogueAttMap6"] = data_att6
  2609. R.map_json_dic["rogueAttMap7"] = data_att7
  2610. R.map_json_dic["rogueAttMap8"] = data_att8
  2611. R.map_json_dic["rogueAttMap9"] = data_att9
  2612. R.map_json_dic["rogueAttMap10"] = data_att10
  2613. R.map_json_dic["rogueAttMap11"] = data_att11
  2614. R.map_json_dic["rogueAttMap12"] = data_att12
  2615. R.map_json_dic["rogueAttMap13"] = data_att13
  2616. R.map_json_dic["rogueAttMap14"] = data_att14
  2617. R.map_json_dic["rogueAttMap15"] = data_att15
  2618. R.map_json_dic["rogueAttMap15_continue"] = data_att_continue15
  2619. R.map_json_dic["rogueAttMap16_eden"] = data_att_eden16
  2620. R.map_json_dic["rogueAttMap17_eden"] = data_att_eden17
  2621. R.map_json_dic["rogueAttMap18_eden"] = data_att_eden18
  2622. R.map_json_dic["rogueAttMap19_eden"] = data_att_eden19
  2623. R.map_json_dic["rogueAttMap20_eden"] = data_att_eden20
  2624. R.map_json_dic["rogueAttMap16_destiny"] = data_att_destiny16
  2625. R.map_json_dic["rogueAttMap17_destiny"] = data_att_destiny17
  2626. R.map_json_dic["rogueAttMap18_destiny"] = data_att_destiny18
  2627. R.map_json_dic["rogueAttMap19_destiny"] = data_att_destiny19
  2628. R.map_json_dic["rogueAttMap20_destiny"] = data_att_destiny20
  2629. R.map_json_dic["rogueAttMap16_ocean"] = data_att_ocean16
  2630. R.map_json_dic["rogueAttMap17_ocean"] = data_att_ocean17
  2631. R.map_json_dic["rogueAttMap18_ocean"] = data_att_ocean18
  2632. R.map_json_dic["rogueAttMap19_ocean"] = data_att_ocean19
  2633. R.map_json_dic["rogueAttMap20_ocean"] = data_att_ocean20