rougeGen.py 189 KB

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