rougeGen.py 197 KB

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