| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684 |
- import os
- import random
- import asyncio
- from concurrent.futures import ThreadPoolExecutor
- import game.const.rouge as R
- from game.algo import shapeGen as S
- from game.const import rouge_theme as T
- from game.algo.special_map import eden_boss_map_json, destiny_boss_map_json, ocean_boss_map_json
- # 除去rest的60*60坐标
- def A60x60list(rest):
- res = []
- for i in range(1, 61):
- for j in range(1, 61):
- res.append((i, j))
- return list(set(res) - set(rest))
- # 在0~61范围内随机分配地板坐标
- def allocate_coordinates_for_types(types: list):
- # 生成所有可能的坐标列表
- all_coordinates = [(x, y) for x in range(62) for y in range(62)]
- # 用于存储已分配坐标的集合
- allocated_coordinates = set()
- # 结果列表,存储每个type对应的坐标列表
- result = []
- for count in types:
- # 生成当前type可用的坐标列表(排除已分配的坐标)
- available_coordinates = [coord for coord in all_coordinates if coord not in allocated_coordinates]
- # 从可用坐标中随机选择count个不重复的坐标
- selected_coordinates = random.sample(available_coordinates, count)
- # 更新已分配坐标集合
- allocated_coordinates.update(selected_coordinates)
- # 将选中的坐标添加到结果列表
- result.append(selected_coordinates)
- return result
- # 用于下面一个函数
- def adjust_types_to_fit_pool(types, pool_length):
- total_count = sum(types)
- if total_count > pool_length:
- # 计算需要减少的比例
- reduction_ratio = pool_length / total_count
- # 调整types中的每个数字
- adjusted_types = [max(int(count * reduction_ratio), 1) for count in types]
- # 如果调整后的总数仍然超过pool长度,从头开始逐个减少直到符合条件
- while sum(adjusted_types) > pool_length:
- for i in range(len(adjusted_types)):
- if sum(adjusted_types) <= pool_length:
- break
- adjusted_types[i] -= 1
- adjusted_types[i] = max(adjusted_types[i], 1) # 确保不会减到小于1
- else:
- adjusted_types = types
- return adjusted_types
- # 从pool里为每个types中的元素进行随机分配
- def allocate_coordinates_from_pool(types: list, pool: list):
- adjusted_types = adjust_types_to_fit_pool(types, len(pool))
- # 打乱pool以随机分配
- random.shuffle(pool)
- result = []
- start_index = 0
- for count in adjusted_types:
- # 为当前type分配坐标
- allocated_coordinates = pool[start_index:start_index + count]
- result.append(allocated_coordinates)
- start_index += count
- return result
- # 根据权重分配的列表
- def allocate_according_to_weights(n, weights):
- total_weight = sum(weights)
- # 计算每个权重的比例
- proportions = [weight / total_weight for weight in weights]
- # 使用比例乘以n来得到初步分配的数量
- preliminary_allocations = [n * proportion for proportion in proportions]
- # 对初步分配的数量进行舍入并转换为整数
- allocations = [round(allocation) for allocation in preliminary_allocations]
- # 调整分配以确保总和为n
- while sum(allocations) != n:
- difference = n - sum(allocations)
- adjustment_indices = sorted(range(len(allocations)), key=lambda i: (
- allocations[i] - preliminary_allocations[i], difference * (allocations[i] - preliminary_allocations[i])),
- reverse=True)
- for i in adjustment_indices:
- if difference > 0 and allocations[i] < preliminary_allocations[i]:
- allocations[i] += 1
- difference -= 1
- elif difference < 0 and allocations[i] > preliminary_allocations[i]:
- allocations[i] -= 1
- difference += 1
- if difference == 0:
- break
- return allocations
- def shortest_path(start, end):
- x1, y1 = start
- x2, y2 = end
- path = [start]
- while x1 != x2:
- if random.randint(1, 100) > 50 and y1 != y2:
- if y1 < y2:
- y1 += 1
- else:
- y1 -= 1
- path.append((x1, y1))
- if x1 < x2:
- x1 += 1
- else:
- x1 -= 1
- path.append((x1, y1))
- while y1 != y2:
- if y1 < y2:
- y1 += 1
- else:
- y1 -= 1
- path.append((x1, y1))
- return path
- # 生成4*4内二元组列
- def district_list_gen(last_direction):
- def path_gen():
- start = (random.randint(0, 3), 0)
- path = [start]
- if start[0] == 1:
- target = random.choice([(0, 2), (0, 3), (1, 3), (2, 3), (3, 3), (3, 2), (3, 1)])
- elif start[0] == 2:
- target = random.choice([(0, 1), (0, 2), (0, 3), (1, 3), (2, 3), (3, 3), (3, 2)])
- elif start[0] == 0:
- target = random.choice([(0, 3), (1, 3), (2, 3), (3, 3), (3, 2), (3, 1), (3, 0)])
- else:
- target = random.choice([(0, 0), (0, 1), (0, 2), (0, 3), (1, 3), (2, 3), (3, 3)])
- # print(shortest_path(start, target))
- return shortest_path(start, target), [start, target]
- def rotate_points(points):
- rotated_points = []
- for x, y in points:
- new_x = (3 / 2) + (3 / 2 - y)
- new_y = (3 / 2) + (x - 3 / 2)
- rotated_points.append((int(new_x), int(new_y)))
- return rotated_points
- def compose(f, x, n):
- for i in range(n):
- x = f(x)
- return x
- def dig_se(list, start_end):
- result = []
- for i in list:
- if i not in start_end:
- result.append(i)
- return result
- def additional_points(main_path, start_end):
- total_point = main_path
- total_point_no_se = dig_se(total_point, start_end)
- add_point = []
- add_num = 0
- if len(main_path) <= 4:
- add_num = random.randint(2, 5)
- elif len(main_path) == 5:
- add_num = random.randint(1, 4)
- elif len(main_path) == 6:
- add_num = random.randint(1, 3)
- elif len(main_path) == 7:
- add_num = random.randint(0, 3)
- for i in range(add_num):
- neighbours = []
- for x, y in total_point_no_se:
- # 初始化当前格子的邻接格子列表
- # 检查上下左右四个方向的格子是否在范围内,并添加到邻接格子列表中
- if x > 0:
- if (x - 1, y) not in total_point:
- neighbours.append((x - 1, y)) # 左
- if x < 3:
- if (x + 1, y) not in total_point:
- neighbours.append((x + 1, y)) # 右
- if y > 0:
- if (x, y - 1) not in total_point:
- neighbours.append((x, y - 1)) # 上
- if y < 3:
- if (x, y + 1) not in total_point:
- neighbours.append((x, y + 1)) # 下
- if len(neighbours) == 0:
- print("无法添加", total_point)
- break
- random_point = random.choice(neighbours)
- total_point.append(random_point)
- total_point_no_se.append(random_point)
- add_point.append(random_point)
- return total_point, add_point
- def next_direction(main_start_end):
- start = main_start_end[1] # 实际上是end,懒得改名了就用start
- if (start[0] + start[1]) % 3 == 0:
- if start[0] == 0 and start[1] == 0:
- return 3
- elif start[0] == 3 and start[1] == 0:
- return 0
- elif start[0] == 3 and start[1] == 3:
- return 1
- else:
- return 2
- else:
- if start[0] == 0:
- return 3
- elif start[0] == 3:
- return 1
- elif start[1] == 0:
- return 0
- else:
- return 2
- path, start_end = path_gen()
- if last_direction == -1:
- direction_num = random.randint(0, 3) # 需指定复合次数来拟合方向
- else:
- direction_num = random.randint(0, 3) # 需指定复合次数来拟合方向
- main_path = compose(rotate_points, path, direction_num)
- main_start_end = compose(rotate_points, start_end, direction_num)
- total_point, add_point = additional_points(main_path, main_start_end)
- return total_point, main_start_end, next_direction(main_start_end) # 这里输出的不是最终坐标,而是4*4格点坐标
- # 生成区域所需xy条件
- def district_condition(p, xy):
- return (15 * p[0] + 2 <= xy[0] <= 15 * p[0] + 14) and (15 * p[1] + 2 <= xy[1] <= 15 * p[1] + 14)
- def lane_condition(adjacent_couple, xy):
- (p1, p2) = adjacent_couple
- if p1[0] != p2[0]:
- p = (min(p1[0], p2[0]), p1[1])
- return (15 * p[0] + 16 - 1 <= xy[0] <= 15 * p[0] + 17 - 1) and (
- 15 * p[1] + 8 - 1 <= xy[1] <= 15 * p[1] + 10 - 1)
- else:
- p = (p1[0], min(p1[1], p2[1]))
- return (15 * p[0] + 8 - 1 <= xy[0] <= 15 * p[0] + 10 - 1) and (
- 15 * p[1] + 16 - 1 <= xy[1] <= 15 * p[1] + 17 - 1)
- def start_end_condition(main_start_end, xy):
- start, end = main_start_end
- start_con = False
- end_con = False
- if (start[0] + start[1]) % 3 == 0:
- if start[0] == 0 and start[1] == 0:
- start_con = (0 <= xy[0] <= 1) and (7 <= xy[1] <= 9)
- elif start[0] == 3 and start[1] == 0:
- start_con = (52 <= xy[0] <= 54) and (0 <= xy[1] <= 1)
- elif start[0] == 3 and start[1] == 3:
- start_con = (60 <= xy[0] <= 61) and (52 <= xy[1] <= 54)
- else:
- start_con = (7 <= xy[0] <= 9) and (60 <= xy[1] <= 61)
- else:
- if start[0] == 0:
- start_con = (0 <= xy[0] <= 1) and (15 * start[1] + 8 - 1 <= xy[1] <= 15 * start[1] + 10 - 1)
- elif start[0] == 3:
- start_con = (60 <= xy[0] <= 61) and (15 * start[1] + 8 - 1 <= xy[1] <= 15 * start[1] + 10 - 1)
- elif start[1] == 0:
- start_con = (15 * start[0] + 8 - 1 <= xy[0] <= 15 * start[0] + 10 - 1) and (0 <= xy[1] <= 1)
- else:
- start_con = (15 * start[0] + 8 - 1 <= xy[0] <= 15 * start[0] + 10 - 1) and (60 <= xy[1] <= 61)
- if (end[0] + end[1]) % 3 == 0:
- if end[0] == 0 and end[1] == 0:
- end_con = (0 <= xy[0] <= 1) and (7 <= xy[1] <= 9)
- elif end[0] == 3 and end[1] == 0:
- end_con = (52 <= xy[0] <= 54) and (0 <= xy[1] <= 1)
- elif end[0] == 3 and end[1] == 3:
- end_con = (60 <= xy[0] <= 61) and (52 <= xy[1] <= 54)
- else:
- end_con = (7 <= xy[0] <= 9) and (60 <= xy[1] <= 61)
- else:
- if end[0] == 0:
- end_con = (0 <= xy[0] <= 1) and (15 * end[1] + 8 - 1 <= xy[1] <= 15 * end[1] + 10 - 1)
- elif end[0] == 3:
- end_con = (60 <= xy[0] <= 61) and (15 * end[1] + 8 - 1 <= xy[1] <= 15 * end[1] + 10 - 1)
- elif end[1] == 0:
- end_con = (15 * end[0] + 8 - 1 <= xy[0] <= 15 * end[0] + 10 - 1) and (0 <= xy[1] <= 1)
- else:
- end_con = (15 * end[0] + 8 - 1 <= xy[0] <= 15 * end[0] + 10 - 1) and (60 <= xy[1] <= 61)
- return (start_con or end_con)
- def start_point(start):
- if (start[0] + start[1]) % 3 == 0:
- if start[0] == 0 and start[1] == 0:
- return (0, 8)
- elif start[0] == 3 and start[1] == 0:
- return (53, 0)
- elif start[0] == 3 and start[1] == 3:
- return (61, 53)
- else:
- return (8, 61)
- else:
- if start[0] == 0:
- return (0, 15 * start[1] + 9 - 1)
- elif start[0] == 3:
- return (61, 15 * start[1] + 9 - 1)
- elif start[1] == 0:
- return (15 * start[0] + 9 - 1, 0)
- else:
- return (15 * start[0] + 9 - 1, 61)
- # 找到相邻区域连接
- def find_adjacent_cells(coordinates):
- # 创建一个字典,用于存储每个格子的邻接格子
- adjacent_cells = {}
- # 遍历每个格子的坐标
- for x, y in coordinates:
- # 初始化当前格子的邻接格子列表
- neighbors = []
- # 检查上下左右四个方向的格子是否在范围内,并添加到邻接格子列表中
- if x > 0:
- neighbors.append((x - 1, y)) # 左
- if x < 3:
- neighbors.append((x + 1, y)) # 右
- if y > 0:
- neighbors.append((x, y - 1)) # 上
- if y < 3:
- neighbors.append((x, y + 1)) # 下
- # 将当前格子的邻接格子列表存储到字典中
- adjacent_cells[(x, y)] = neighbors
- # 创建两个列表,分别用于存储上下和左右邻接的线段
- vertical_lines = []
- horizontal_lines = []
- # 遍历每个格子,查找上下和左右邻接的线段
- for (x, y), neighbors in adjacent_cells.items():
- for neighbor_x, neighbor_y in neighbors:
- if (neighbor_x, neighbor_y) not in coordinates:
- continue
- # 如果邻接格子的x坐标相同,说明是左右邻接
- if x == neighbor_x:
- if ((x, y), (neighbor_x, neighbor_y)) not in vertical_lines and \
- ((neighbor_x, neighbor_y), (x, y)) not in vertical_lines:
- vertical_lines.append(((x, y), (neighbor_x, neighbor_y)))
- # 如果邻接格子的y坐标相同,说明是上下邻接
- elif y == neighbor_y:
- if ((x, y), (neighbor_x, neighbor_y)) not in horizontal_lines and \
- ((neighbor_x, neighbor_y), (x, y)) not in horizontal_lines:
- horizontal_lines.append(((x, y), (neighbor_x, neighbor_y)))
- # 返回上下和左右邻接的线段列表
- return vertical_lines, horizontal_lines
- '''
- # 生成区域所需xy条件
- def district_area_xy(total_dis_point):
- dis_list = []
- for p in total_dis_point:
- dis_list.append({"x1": 15*p[0]+2, "y1": 15*p[1]+2, "x2": 15*p[0]+14, "y2": 15*p[1]+14})
- return dis_list
- def district_json_generate(dislist):
- jsonlist = []
- for d in dislist:
- jsonlist.append({
- "square": {"x1": d["x1"], "y1": d["y1"], "x2": d["x2"], "y2": d["y2"]},
- "npcs": [{"name": "MoFaCuXian", "y": int((d["y1"]+d["y2"])/2), "x": int((d["x1"]+d["x2"])/2)}]
- })
- return jsonlist
- '''
- # 总砖块
- def NNmap(n):
- result = []
- for x in range(n):
- for y in range(n):
- result.append((x, y))
- return result
- # 去除条件f的砖块
- def filter_points(list, f):
- # 初始化一个空列表来存储满足条件的整数二元组
- result = []
- # 使用嵌套循环生成所有可能的二元组 (x, y)
- for (x, y) in list:
- if not f((x, y)):
- # 如果不满足条件,将该二元组添加到结果列表中
- result.append((x, y))
- return result
- # 具体区域内砖块生成
- def district_obstacles_allocation(total_dis_point: list, total_s_e, diff, theme_dic, cell_type, shop_level, has_boss,
- level_num):
- # battle_type_list = ["random", "random", "random", "random", "x_symmetric", "y_symmetric", "xy_symmetric", "rotational_symmetric"]
- # optional_type_list = ["surprise", "shop", "treasure_trick"]
- battle_type_list = ["random", "random", "random", "random"] * 6 + ["xy_symmetric", "xy_symmetric", "xy_symmetric",
- "xy_symmetric", "rotation_symmetric"]
- # battle_type_list = ["xy_symmetric"]
- optional_type_list = ["shop"] * 4 + ["combat", "combat", "treasure", "treasure"] * 5
- # optional_type_list = ["combat"]
- # optional_type_list = ["shop"]
- optional_num = 1
- shop_num = 0
- treasure_num = 0
- combat_num = 0
- casino_num = 0
- ttp = []
- for i in total_dis_point:
- ttp.append(i)
- # ttp = total_dis_point
- if len(total_dis_point) <= 5:
- optional_num = 1
- elif len(total_dis_point) == 6:
- optional_num = random.randint(1, 2)
- elif len(total_dis_point) == 7:
- optional_num = 2
- elif len(total_dis_point) == 8:
- optional_num = 3
- else:
- optional_num = 3
- op_points = total_dis_point
- op_points.remove(total_s_e[0])
- op_points.remove(total_s_e[1])
- final_op = []
- for i in range(optional_num):
- opt = random.choice(op_points)
- final_op.append(opt)
- op_points.remove(opt)
- battle_points = op_points
- battle_points.append(total_s_e[0])
- battle_points.append(total_s_e[1])
- # 现在battle_points为所有战斗点,而op_points为所有其他节点
- battle_dict = {}
- opt_dict = {}
- general_dict = {}
- for room in final_op:
- # 对于每个坐标,随机选择一个种类
- chosen_category = random.choice(optional_type_list)
- if shop_num >= 1:
- chosen_category = random.choice(["treasure", "treasure", "combat"])
- if combat_num >= 2:
- chosen_category = random.choice(["treasure", "treasure", "shop"])
- if treasure_num >= 2:
- chosen_category = random.choice(["combat", "combat", "shop"])
- if level_num in [4, 9, 14, 19] and casino_num == 0 and random.randint(1, 100) >= 50:
- chosen_category = "casino"
- if chosen_category == "shop":
- shop_num += 1
- elif chosen_category == "treasure":
- treasure_num += 1
- elif chosen_category == "combat":
- combat_num += 1
- elif chosen_category == "casino":
- casino_num += 1
- # chosen_category = "casino"
- opt_dict[room] = chosen_category
- general_dict[room] = chosen_category
- for room in battle_points:
- # 对于每个坐标,随机选择一个种类
- chosen_category = random.choice(battle_type_list)
- if level_num in [1, 2, 3, 6, 7, 8, 11, 12, 13]:
- if room == total_s_e[0]:
- chosen_category = "random"
- if R.difficulty == "Easy" and level_num in [4, 5, 9, 10, 14, 15]:
- if room == total_s_e[0]:
- chosen_category = "random"
- if room == total_s_e[1] and R.difficulty != "Easy":
- chosen_category = "xy_symmetric"
- if has_boss and room == total_s_e[1]:
- chosen_category = "boss"
- battle_dict[room] = chosen_category
- general_dict[room] = chosen_category
- if R.print_mode:
- print("节点区域:", opt_dict)
- print("战斗区域:", battle_dict)
- districtJsonList = []
- final_wall = []
- final_cube = []
- for room in ttp:
- cube = []
- if general_dict[room] == "random":
- wall, cube, district = S.random_cell_generate(diff, theme_dic, cell_type, room)
- elif general_dict[room] == "xy_symmetric":
- wall, cube, district = S.xy_symmetric_cell_generate(diff, theme_dic, cell_type, room, level_num)
- elif general_dict[room] == "rotation_symmetric":
- wall, cube, district = S.rotationalSymmetric_cell_generate(diff, theme_dic, cell_type, room, level_num)
- elif general_dict[room] == "boss":
- wall, cube, district = S.boss_cell_generate(diff, theme_dic, cell_type, room)
- elif general_dict[room] == "shop":
- wall, district = S.shop_cell_generate(room, shop_level, level_num)
- elif general_dict[room] == "casino":
- wall, cube, district = S.casino(room)
- elif general_dict[room] == "treasure":
- wall, cube, district = S.treasure_cell_generate(room, shop_level)
- elif general_dict[room] == "combat":
- wall, cube, district = S.combat_decision(room, level_num)
- else:
- wall, cube, district = S.random_cell_generate(diff, theme_dic, cell_type, room)
- for w in wall:
- if w not in final_wall:
- final_wall.append(w)
- for c in cube:
- if c not in final_cube:
- final_cube.append(c)
- if R.difficulty == "Hell+":
- if general_dict[room] in {"random", "xy_symmetric", "rotation_symmetric", "boss"}:
- if random.randint(0, 100) >= 98:
- for monster in district:
- monster["variant"] = True
- else:
- for monster in district:
- if random.randint(0, 100) >= 94:
- monster["variant"] = True
- districtJsonList.append({
- "square": {
- "x1": 15 * room[0] + 2,
- "y1": 15 * room[1] + 2,
- "x2": 15 * room[0] + 14,
- "y2": 15 * room[1] + 14
- },
- "npcs": district
- })
- # print(districtJsonList)
- return final_wall, final_cube, districtJsonList
- # 总结生成所有不可炸障碍的列表
- def conditional_point(n, total_dis_point, total_s_e, diff, theme_dic, cell_type, shop_level, has_boss, level_num):
- # 初始化
- map = NNmap(n)
- result = []
- vertical, horizontal = find_adjacent_cells(total_dis_point)
- for point in map:
- is_conditional = False
- for p in total_dis_point:
- if district_condition(p, point):
- is_conditional = True
- break
- for adjacent in vertical:
- if lane_condition(adjacent, point):
- is_conditional = True
- break
- for adjacent in horizontal:
- if lane_condition(adjacent, point):
- is_conditional = True
- break
- if start_end_condition(total_s_e, point):
- is_conditional = True
- if not is_conditional:
- result.append(point)
- final_wall, final_cube, district = district_obstacles_allocation(total_dis_point, total_s_e, diff, theme_dic,
- cell_type, shop_level, has_boss, level_num)
- for p in final_wall:
- result.append(p)
- final_fog = random.sample(A60x60list(result + final_cube), 240)
- return result, final_cube, district, final_fog
- # 所有可炸砖障碍的列表
- def cube_point(wallList):
- result = []
- for p in wallList:
- result.append(p)
- return result
- def Points2JSON(points):
- js = []
- for p in points:
- js.append({"y": p[1], "x": p[0]})
- return js
- def scroll_point(start):
- def minmax(x):
- return max(0, min(x, 61))
- x, y = start
- if x == 0:
- return [0, minmax(y - 6)]
- elif x == 61:
- return [42, minmax(y - 6)]
- elif y == 0:
- return [minmax(x - 11), 0]
- else:
- return [minmax(x - 11), 49]
- def generalMapJson(start_end, wallType, wallName, cubeType, cubeName, floorType, floorName, music, final_wall,
- final_cube, district, fogType, fogName, final_fog, special_param=None, ambience=None,
- environment=None, level_skill=None):
- start = start_point(start_end[0])
- end = start_point(start_end[1])
- if special_param == None:
- special = {"defense": 0, "damage": 0, "speed": 1}
- else:
- special = special_param
- # 首个地板作为打底,其余后面作为点缀,平均分配给600个位置
- floor_list = []
- if len(floorType) > 1:
- floors_points = allocate_coordinates_for_types([int(600 / (len(floorType) - 1))] * (len(floorType) - 1))
- for i in range(len(floors_points)):
- single_floor = Points2JSON(floors_points[i])
- floor_list.append({"type": floorType[i + 1], "name": floorName[i + 1], "points": single_floor})
- wall_list = []
- if len(wallType) > 0:
- wl = allocate_according_to_weights(len(final_wall), [len(wallType)] + [1] * (len(wallType) - 1))
- walls_points = allocate_coordinates_from_pool(wl, final_wall)
- for i in range(len(walls_points)):
- single_wall = Points2JSON(walls_points[i])
- wall_list.append({"type": wallType[i], "name": wallName[i], "points": single_wall})
- cube_list = []
- if len(cubeType) > 0:
- wl = allocate_according_to_weights(len(final_cube), [len(cubeType)] + [1] * (len(cubeType) - 1))
- cubes_points = allocate_coordinates_from_pool(wl, final_cube)
- for i in range(len(cubes_points)):
- single_cube = Points2JSON(cubes_points[i])
- cube_list.append({"type": cubeType[i], "name": cubeName[i], "points": single_cube})
- fog_list = []
- if len(fogType) > 0:
- if len(fogType) <= 7:
- final_fog_adj = random.sample(final_fog, min(len(fogType) * 30, len(final_fog)))
- else:
- final_fog_adj = final_fog
- wl = allocate_according_to_weights(len(final_fog_adj), [1] * (len(fogType)))
- fogs_points = allocate_coordinates_from_pool(wl, final_fog_adj)
- for i in range(len(fogs_points)):
- single_fog = Points2JSON(fogs_points[i])
- fog_list.append({"type": fogType[i], "name": fogName[i], "points": single_fog})
- data = {
- "basic": {
- "name": "map",
- "width": 62,
- "height": 62,
- "scroll": scroll_point(start),
- "music": music,
- "begin": [start[0], start[1]],
- "finish": [end[0], end[1]],
- "special": special
- },
- "floors": [{"type": floorType[0], "name": floorName[0], "squares": [{"x1": 0, "y1": 0, "x2": 61, "y2": 61}]}],
- "floor": floor_list + [{"type": "common", "name": "elem45", "points": [{"x": end[0], "y": end[1]}]}],
- "obstacles": [],
- "obstacle": wall_list + cube_list + fog_list,
- "districts": district
- }
- if ambience is not None:
- data["basic"]["ambience"] = ambience
- if environment is not None:
- data["basic"]["environment_effect"] = [environment]
- if level_skill is not None:
- data["basic"]["level_skill"] = level_skill
- return data
- # 关卡夹层选择加成处
- def OptionalMapJson(direction, wallType, wallName, floorType, floorName, music, must_speed=False, special_param=None,
- ambience=None, environment=None, level_skill=None):
- def randomLVup():
- l = ["RougeLVUPBlood", "RougeLVUPBlood", "RougeLVUPBlood", "RougeLVUPDamage", "RougeLVUPDamage",
- "RougeLVUPDamage", "RougeLVUPBomb", "RougeLVUPSpeed"]
- if must_speed:
- choice1 = "RougeLVUPSpeed"
- l.remove(choice1)
- choice2 = "RougeLVUPBomb"
- l.remove(choice2)
- else:
- choice1 = random.choice(l)
- l.remove(choice1)
- choice2 = random.choice(l)
- return [choice1, choice2]
- special = None
- if special_param == None:
- special = {"defense": 0, "damage": 0, "speed": 1}
- else:
- special = special_param
- if direction == 0:
- start = (10, 12)
- end = (9, 0)
- elif direction == 1:
- start = (0, 6)
- end = (19, 6)
- elif direction == 2:
- start = (9, 0)
- end = (10, 12)
- else:
- start = (19, 6)
- end = (0, 6)
- choices_list = randomLVup()
- squares_list = [
- {"x1": 0, "y1": 0, "x2": 5, "y2": 4},
- {"x1": 6, "y1": 0, "x2": 8, "y2": 2},
- {"x1": 11, "y1": 0, "x2": 13, "y2": 2},
- {"x1": 14, "y1": 0, "x2": 19, "y2": 4},
- {"x1": 0, "y1": 8, "x2": 5, "y2": 12},
- {"x1": 6, "y1": 10, "x2": 8, "y2": 12},
- {"x1": 11, "y1": 10, "x2": 13, "y2": 12},
- {"x1": 14, "y1": 8, "x2": 19, "y2": 12},
- {"x1": 7, "y1": 4, "x2": 7, "y2": 8},
- {"x1": 12, "y1": 4, "x2": 12, "y2": 8}
- ]
- if direction == 0 or direction == 2:
- squares_list.append({"x1": 0, "y1": 5, "x2": 5, "y2": 7})
- squares_list.append({"x1": 14, "y1": 5, "x2": 19, "y2": 7})
- else:
- squares_list.append({"x1": 9, "y1": 0, "x2": 10, "y2": 2})
- squares_list.append({"x1": 9, "y1": 10, "x2": 10, "y2": 12})
- points_list = [
- {"x": 8, "y": 4},
- {"x": 8, "y": 8},
- {"x": 11, "y": 4},
- {"x": 11, "y": 8},
- {"x": 9, "y": 6},
- {"x": 9, "y": 7},
- {"x": 9, "y": 8},
- {"x": 10, "y": 4},
- {"x": 10, "y": 5},
- {"x": 10, "y": 6}
- ]
- data = {
- "basic": {
- "name": "map",
- "width": 20,
- "height": 13,
- "scroll": [0, 0],
- "music": music,
- "begin": [start[0], start[1]],
- "finish": [end[0], end[1]],
- "special": special
- },
- "floors": [
- {
- "type": floorType[0], "name": floorName[0],
- "squares": [
- {"x1": 0, "y1": 0, "x2": 61, "y2": 61}
- ]}],
- "floor": [
- {
- "type": "common", "name": "elem45",
- "points": [
- {"x": end[0], "y": end[1]}
- ]
- }],
- "obstacles": [{
- "type": wallType[0], "name": wallName[0],
- "squares": squares_list}],
- "obstacle": [
- {
- "type": wallType[0], "name": wallName[0],
- "points": points_list
- }
- ],
- "districts": [
- {
- "square": {"x1": 6, "y1": 3, "x2": 13, "y2": 9},
- "npcs": [
- {"name": choices_list[0], "y": 7, "x": 8},
- {"name": choices_list[1], "y": 5, "x": 11}
- ]
- }]
- }
- if ambience is not None:
- data["basic"]["ambience"] = ambience
- if environment is not None:
- data["basic"]["environment_effect"] = [environment]
- if level_skill is not None:
- data["basic"]["level_skill"] = level_skill
- return data
- def FinalMapJson(direction, wallType, wallName, floorType, floorName, music, ambience=None, environment=None,
- level_skill=None):
- if direction == 0:
- start = (10, 12)
- elif direction == 1:
- start = (0, 6)
- elif direction == 2:
- start = (9, 0)
- else:
- start = (19, 6)
- squares_list = [
- {"x1": 0, "y1": 0, "x2": 5, "y2": 4},
- {"x1": 6, "y1": 0, "x2": 8, "y2": 2},
- {"x1": 11, "y1": 0, "x2": 13, "y2": 2},
- {"x1": 14, "y1": 0, "x2": 19, "y2": 4},
- {"x1": 0, "y1": 8, "x2": 5, "y2": 12},
- {"x1": 6, "y1": 10, "x2": 8, "y2": 12},
- {"x1": 11, "y1": 10, "x2": 13, "y2": 12},
- {"x1": 14, "y1": 8, "x2": 19, "y2": 12},
- {"x1": 7, "y1": 4, "x2": 7, "y2": 8},
- {"x1": 12, "y1": 4, "x2": 12, "y2": 8}
- ]
- if direction == 0 or direction == 2:
- squares_list.append({"x1": 0, "y1": 5, "x2": 5, "y2": 7})
- squares_list.append({"x1": 14, "y1": 5, "x2": 19, "y2": 7})
- else:
- squares_list.append({"x1": 9, "y1": 0, "x2": 10, "y2": 2})
- squares_list.append({"x1": 9, "y1": 10, "x2": 10, "y2": 12})
- points_list = [
- {"x": 8, "y": 4},
- {"x": 8, "y": 8},
- {"x": 11, "y": 4},
- {"x": 11, "y": 8},
- {"x": 9, "y": 6},
- {"x": 9, "y": 7},
- {"x": 9, "y": 8},
- {"x": 10, "y": 4},
- {"x": 10, "y": 5},
- {"x": 10, "y": 6}
- ]
- data = {
- "basic": {
- "name": "map",
- "width": 20,
- "height": 13,
- "scroll": [0, 0],
- "music": music,
- "begin": [start[0], start[1]],
- },
- "floors": [
- {
- "type": floorType[0], "name": floorName[0],
- "squares": [
- {"x1": 0, "y1": 0, "x2": 61, "y2": 61}
- ]}],
- "floor": [],
- "obstacles": [{
- "type": wallType[0], "name": wallName[0],
- "squares": squares_list}],
- "obstacle": [
- {
- "type": wallType[0], "name": wallName[0],
- "points": points_list
- }
- ],
- "districts": [
- {
- "square": {"x1": 6, "y1": 3, "x2": 13, "y2": 9},
- "npcs": [
- {"name": "Congratulation", "y": 7, "x": 8}
- ]
- }]
- }
- if ambience is not None:
- data["basic"]["ambience"] = ambience
- if environment is not None:
- data["basic"]["environment_effect"] = [environment]
- if level_skill is not None:
- data["basic"]["level_skill"] = level_skill
- return data
- def map_gen(direction, diff, theme_dic, cell_type, shop_level, has_boss, level_num):
- testp, test_se, direction_num = district_list_gen(direction)
- # print(test_se, testp)
- # 测试函数
- vertical, horizontal = find_adjacent_cells(testp)
- # print("上下邻接的线段:", len(vertical), vertical)
- # print("左右邻接的线段:", len(horizontal), horizontal)
- final_point, final_cube, district, final_fog = conditional_point(62, testp, test_se, diff, theme_dic, cell_type,
- shop_level, has_boss, level_num)
- R.se_district.append(test_se)
- return testp, test_se, direction_num, vertical, horizontal, final_point, final_cube, district, final_fog
- def main_func():
- theme_1 = random.choice([T.theme1_A_mon_dic, T.theme1_B_mon_dic, T.theme1_C_mon_dic])
- theme_2 = random.choice([T.theme2_A_mon_dic, T.theme2_B_mon_dic, T.theme2_C_mon_dic])
- theme_3 = random.choice([T.theme3_A_mon_dic, T.theme3_B_mon_dic, T.theme3_C_mon_dic])
- theme_eden = T.theme_eden_mon_dic
- theme_destiny = T.theme_destiny_mon_dic
- theme_ocean = T.theme_ocean_mon_dic
- # theme_3 = T.theme3_C_mon_dic
- # theme_2 = T.theme2_C_mon_dic
- if theme_1 == T.theme1_A_mon_dic:
- R.rouge_theme_1 = "魔法王国"
- elif theme_1 == T.theme1_B_mon_dic:
- R.rouge_theme_1 = "静涛海原"
- elif theme_1 == T.theme1_C_mon_dic:
- R.rouge_theme_1 = "废铁乐园"
- if theme_2 == T.theme2_A_mon_dic:
- R.rouge_theme_2 = "魔法古堡"
- elif theme_2 == T.theme2_B_mon_dic:
- R.rouge_theme_2 = "永东寒原"
- elif theme_2 == T.theme2_C_mon_dic:
- R.rouge_theme_2 = "迷雾古林"
- if theme_3 == T.theme3_A_mon_dic:
- R.rouge_story = "地狱矿工"
- R.rouge_theme_3 = "熔岩深矿"
- elif theme_3 == T.theme3_B_mon_dic:
- R.rouge_story = "时空沙漏"
- R.rouge_theme_3 = "赤砂遗迹"
- elif theme_3 == T.theme3_C_mon_dic:
- R.rouge_story = "轮齿之怒"
- R.rouge_theme_3 = "械城之心"
- # 不同难度的难度系数(顺序: 第一层/ 第二层/ 第三层/ 艾登层/ 命运层/ 深海层)
- Easy_diff_list = [10, 16, 20, 25, 32, 20, 25, 30, 35, 42, 30, 35, 40, 45, 50, 30, 35, 40, 45, 50, 35, 40, 45, 50,
- 56, 50, 56, 64, 75, 88]
- Hard_diff_list = [12, 18, 24, 30, 40, 24, 30, 36, 42, 54, 36, 42, 52, 64, 75, 36, 42, 52, 64, 75, 40, 48, 60, 70,
- 80, 70, 80, 90, 100, 108]
- Hell_diff_list = [18, 24, 30, 40, 50, 30, 36, 42, 50, 60, 42, 52, 64, 75, 88, 42, 52, 64, 75, 88, 50, 60, 72, 80,
- 96, 80, 92, 108, 120, 140]
- 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,
- 102, 88, 100, 118, 132, 156]
- diff_dic = {"Easy": Easy_diff_list, "Normal": Hard_diff_list, "Hell": Hell_diff_list, "Hell+": Hell_p_diff_list}
- map1, map1_se, direction_1, vertical_1, horizontal_1, final_point_1, final_cube_1, district_1, final_fog_1 = \
- 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)
- map2, map2_se, direction_2, vertical_2, horizontal_2, final_point_2, final_cube_2, district_2, final_fog_2 = \
- 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)
- map3, map3_se, direction_3, vertical_3, horizontal_3, final_point_3, final_cube_3, district_3, final_fog_3 = \
- 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)
- map4, map4_se, direction_4, vertical_4, horizontal_4, final_point_4, final_cube_4, district_4, final_fog_4 = \
- 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)
- map5, map5_se, direction_5, vertical_5, horizontal_5, final_point_5, final_cube_5, district_5, final_fog_5 = \
- 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)
- map6, map6_se, direction_6, vertical_6, horizontal_6, final_point_6, final_cube_6, district_6, final_fog_6 = \
- 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)
- map7, map7_se, direction_7, vertical_7, horizontal_7, final_point_7, final_cube_7, district_7, final_fog_7 = \
- 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)
- map8, map8_se, direction_8, vertical_8, horizontal_8, final_point_8, final_cube_8, district_8, final_fog_8 = \
- 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)
- map9, map9_se, direction_9, vertical_9, horizontal_9, final_point_9, final_cube_9, district_9, final_fog_9 = \
- 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)
- map10, map10_se, direction_10, vertical_10, horizontal_10, final_point_10, final_cube_10, district_10, final_fog_10 = \
- 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)
- map11, map11_se, direction_11, vertical_11, horizontal_11, final_point_11, final_cube_11, district_11, final_fog_11 = \
- 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)
- map12, map12_se, direction_12, vertical_12, horizontal_12, final_point_12, final_cube_12, district_12, final_fog_12 = \
- 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)
- map13, map13_se, direction_13, vertical_13, horizontal_13, final_point_13, final_cube_13, district_13, final_fog_13 = \
- 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)
- map14, map14_se, direction_14, vertical_14, horizontal_14, final_point_14, final_cube_14, district_14, final_fog_14 = \
- 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)
- map15, map15_se, direction_15, vertical_15, horizontal_15, final_point_15, final_cube_15, district_15, final_fog_15 = \
- 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)
- 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 = \
- 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)
- 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 = \
- 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)
- 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 = \
- 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)
- 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 = \
- 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)
- 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 = \
- 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)
- 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 = \
- 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)
- 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 = \
- 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)
- 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 = \
- 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)
- 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 = \
- 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)
- 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 = \
- 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)
- 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 = \
- 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)
- 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 = \
- 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)
- 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 = \
- 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)
- 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 = \
- 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)
- 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 = \
- 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)
- if theme_1 == T.theme1_A_mon_dic:
- data_map1 = generalMapJson(map1_se, ["snow", "snow", "snow"], ["elem40", "elem41", "elem19"], ["common"],
- ["elem43"], ["snow", "snow", "snow"], ["elem39", "elem18", "elem29"], "magic.ogg",
- final_point_1, final_cube_1, district_1, [], [], final_fog_1)
- data_att1 = OptionalMapJson(direction_1, ["snow"], ["elem41"], ["snow"], ["elem39"], "magic.ogg")
- data_map2 = generalMapJson(map2_se, ["snow", "snow", "snow"], ["elem40", "elem41", "elem19"], ["common"],
- ["elem43"], ["snow", "snow", "snow"], ["elem39", "elem18", "elem29"], "magic.ogg",
- final_point_2, final_cube_2, district_2, [], [], final_fog_2)
- data_att2 = OptionalMapJson(direction_2, ["snow"], ["elem41"], ["snow"], ["elem39"], "magic.ogg")
- data_map3 = generalMapJson(map3_se, ["snow", "snow", "snow"], ["elem40", "elem41", "elem19"], ["common"],
- ["elem43"], ["snow", "snow", "snow"], ["elem39", "elem18", "elem29"], "magic.ogg",
- final_point_3, final_cube_3, district_3, [], [], final_fog_3)
- data_att3 = OptionalMapJson(direction_3, ["snow"], ["elem41"], ["snow"], ["elem39"], "magic.ogg")
- data_map4 = generalMapJson(map4_se, ["snow", "common", "common"], ["elem40", "elem62", "elem69"], ["common"],
- ["elem44"], ["snow"], ["elem17"], "scene2.ogg", final_point_4, final_cube_4,
- district_4, [], [], final_fog_4)
- data_att4 = OptionalMapJson(direction_4, ["snow"], ["elem41"], ["snow"], ["elem17"], "scene2.ogg")
- data_map5 = generalMapJson(map5_se, ["snow", "common", "common"], ["elem40", "elem62", "elem69"], ["common"],
- ["elem44"], ["snow"], ["elem17"], "scene2.ogg", final_point_5, final_cube_5,
- district_5, [], [], final_fog_5)
- data_att5 = OptionalMapJson(direction_5, ["snow"], ["elem41"], ["snow"], ["elem17"], "scene2.ogg",
- must_speed=True)
- elif theme_1 == T.theme1_B_mon_dic:
- 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")
- data_att1 = OptionalMapJson(direction_1, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg",
- ambience="ocean.mp3")
- 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")
- data_att2 = OptionalMapJson(direction_2, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg",
- ambience="ocean.mp3")
- 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")
- data_att3 = OptionalMapJson(direction_3, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg",
- ambience="ocean.mp3")
- 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")
- data_att4 = OptionalMapJson(direction_4, ["mine"], ["elem207"], ["ocean"], ["elem56"], "ocean2.mp3",
- ambience="ocean.mp3")
- 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")
- data_att5 = OptionalMapJson(direction_5, ["mine"], ["elem207"], ["ocean"], ["elem56"], "ocean2.mp3",
- must_speed=True, ambience="ocean.mp3")
- elif theme_1 == T.theme1_C_mon_dic:
- data_map1 = generalMapJson(map1_se,
- ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
- ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
- ["machine", "machine", "machine", "machine"],
- ["elem64", "elem65", "elem66", "elem67"], ["machine", "machine", "machine"],
- ["elem48", "elem51", "elem47"], "steamacity2.ogg", final_point_1, final_cube_1,
- district_1, [], [], final_fog_1)
- data_att1 = OptionalMapJson(direction_1,
- ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
- ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
- ["machine", "machine", "machine"], ["elem48", "elem51", "elem47"],
- "steamacity2.ogg")
- data_map2 = generalMapJson(map2_se,
- ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
- ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
- ["machine", "machine", "machine", "machine"],
- ["elem64", "elem65", "elem66", "elem67"], ["machine", "machine", "machine"],
- ["elem48", "elem51", "elem47"], "steamacity2.ogg", final_point_2, final_cube_2,
- district_2, [], [], final_fog_2)
- data_att2 = OptionalMapJson(direction_2,
- ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
- ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
- ["machine", "machine", "machine"], ["elem48", "elem51", "elem47"],
- "steamacity2.ogg")
- data_map3 = generalMapJson(map3_se,
- ["machine", "machine", "machine", "machine", "machine", "machine", "machine",
- "machine", "machine", "machine"],
- ["elem63", "elem11", "elem14", "elem57", "elem58", "elem70", "elem71", "elem72",
- "elem73", "elem74"], ["machine", "machine", "machine", "machine"],
- ["elem64", "elem65", "elem66", "elem67"], ["machine", "machine", "machine"],
- ["elem51", "elem48", "elem47"], "steamacity2.ogg", final_point_3, final_cube_3,
- district_3, [], [], final_fog_3)
- data_att3 = OptionalMapJson(direction_3,
- ["machine", "machine", "machine", "machine", "machine", "machine", "machine",
- "machine", "machine", "machine"],
- ["elem63", "elem11", "elem14", "elem57", "elem58", "elem70", "elem71", "elem72",
- "elem73", "elem74"], ["machine", "machine", "machine"],
- ["elem51", "elem48", "elem47"], "steamacity2.ogg")
- data_map4 = generalMapJson(map4_se, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
- ["elem740", "elem705", "elem703", "elem701", "elem308"],
- ["machine", "machine", "machine", "machine"],
- ["elem64", "elem65", "elem66", "elem67"],
- ["machine_dark", "steamacity", "steamacity", "steamacity"],
- ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg", final_point_4,
- final_cube_4, district_4, ["steamacity"], ["elem702"], final_fog_4)
- data_att4 = OptionalMapJson(direction_4, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
- ["elem740", "elem705", "elem703", "elem701", "elem308"],
- ["machine_dark", "steamacity", "steamacity", "steamacity"],
- ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg")
- data_map5 = generalMapJson(map5_se, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
- ["elem740", "elem705", "elem703", "elem701", "elem308"],
- ["machine", "machine", "machine", "machine"],
- ["elem64", "elem65", "elem66", "elem67"],
- ["machine_dark", "steamacity", "steamacity", "steamacity"],
- ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg", final_point_5,
- final_cube_5, district_5, ["steamacity"], ["elem702"], final_fog_5)
- data_att5 = OptionalMapJson(direction_5, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
- ["elem740", "elem705", "elem703", "elem701", "elem308"],
- ["machine_dark", "steamacity", "steamacity", "steamacity"],
- ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg", must_speed=True)
- if theme_2 == T.theme2_A_mon_dic:
- data_map6 = generalMapJson(map6_se, ["mine", "common", "common"], ["elem151", "elem62", "elem53"],
- ["common", "common"], ["elem101", "elem42"], ["mine"], ["elem56"], "magic.ogg",
- final_point_6, final_cube_6, district_6, [], [], final_fog_6)
- data_att6 = OptionalMapJson(direction_6, ["mine"], ["elem151"], ["mine"], ["elem56"], "magic.ogg")
- data_map7 = generalMapJson(map7_se, ["mine", "common", "common"], ["elem151", "elem62", "elem53"],
- ["common", "common"], ["elem101", "elem42"], ["mine"], ["elem56"], "magic.ogg",
- final_point_7, final_cube_7, district_7, [], [], final_fog_7)
- data_att7 = OptionalMapJson(direction_7, ["mine"], ["elem151"], ["mine"], ["elem56"], "magic.ogg")
- data_map8 = generalMapJson(map8_se, ["mine", "common", "common"], ["elem151", "elem62", "elem53"],
- ["common", "common"], ["elem101", "elem42"], ["mine"], ["elem56"], "magic.ogg",
- final_point_8, final_cube_8, district_8, [], [], final_fog_8)
- data_att8 = OptionalMapJson(direction_8, ["mine"], ["elem151"], ["mine"], ["elem56"], "magic.ogg")
- data_map9 = generalMapJson(map9_se, ["mine", "mine"], ["elem151", "elem51"], ["common"], ["elem42"],
- ["mine", "mine"], ["elem35", "elem31"], "shatterpoint.ogg", final_point_9,
- final_cube_9, district_9, [], [], final_fog_9)
- data_att9 = OptionalMapJson(direction_9, ["mine"], ["elem51"], ["mine"], ["elem35"], "shatterpoint.ogg")
- data_map10 = generalMapJson(map10_se, ["mine", "mine"], ["elem151", "elem51"], ["common", "treasure"],
- ["elem42", "elem5"], ["mine", "mine"], ["elem35", "elem31"], "shatterpoint.ogg",
- final_point_10, final_cube_10, district_10, [], [], final_fog_10)
- data_att10 = OptionalMapJson(direction_10, ["mine"], ["elem51"], ["mine"], ["elem35"], "shatterpoint.ogg",
- must_speed=True)
- elif theme_2 == T.theme2_B_mon_dic:
- data_map6 = generalMapJson(map6_se, ["glacier", "glacier", "glacier"], ["elem217", "elem216", "elem205"],
- ["glacier", "glacier", "glacier"], ["elem225", "elem226", "elem227"],
- ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
- "g1.ogg", final_point_6, final_cube_6, district_6, [], [], final_fog_6,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att6 = OptionalMapJson(direction_6, ["glacier", "glacier", "glacier"], ["elem217", "elem216", "elem205"],
- ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
- "g1.ogg", special_param={"defense": -200, "damage": 0, "speed": 1})
- data_map7 = generalMapJson(map7_se, ["exploration", "glacier", "glacier"], ["elem212", "elem216", "elem21"],
- ["glacier", "glacier", "glacier"], ["elem225", "elem226", "elem227"],
- ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
- "g2.ogg", final_point_7, final_cube_7, district_7, [], [], final_fog_7,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att7 = OptionalMapJson(direction_7, ["exploration", "glacier", "glacier"],
- ["elem212", "elem216", "elem21"], ["glacier", "glacier", "glacier", "glacier"],
- ["elem1", "elem2", "elem3", "elem4"], "g2.ogg",
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_map8 = generalMapJson(map8_se, ["exploration", "glacier", "glacier"], ["elem212", "elem216", "elem21"],
- ["glacier", "glacier", "glacier"], ["elem225", "elem226", "elem227"],
- ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
- "g2.ogg", final_point_8, final_cube_8, district_8, [], [], final_fog_8,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att8 = OptionalMapJson(direction_8, ["exploration", "glacier", "glacier"],
- ["elem212", "elem216", "elem21"], ["glacier", "glacier", "glacier", "glacier"],
- ["elem1", "elem2", "elem3", "elem4"], "g2.ogg",
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_map9 = generalMapJson(map9_se, ["tundra", "tundra", "tundra", "tundra"],
- ["elem212", "elem217", "elem216", "elem205"], ["tundra", "tundra", "tundra"],
- ["elem225", "elem226", "elem227"], ["tundra", "tundra", "tundra", "tundra"],
- ["elem1", "elem2", "elem3", "elem4"], "g3.ogg", final_point_9, final_cube_9,
- district_9, ["tundra"], ["elem260"], final_fog_9,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att9 = OptionalMapJson(direction_9, ["tundra", "tundra", "tundra", "tundra"],
- ["elem212", "elem217", "elem216", "elem205"],
- ["tundra", "tundra", "tundra", "tundra"], ["elem1", "elem2", "elem3", "elem4"],
- "g3.ogg", special_param={"defense": -200, "damage": 0, "speed": 1})
- data_map10 = generalMapJson(map10_se, ["tundra", "tundra", "tundra", "tundra", "tundra", "tundra"],
- ["elem217", "elem212", "elem216", "elem205", "elem202", "elem301"],
- ["tundra", "tundra", "tundra"], ["elem225", "elem226", "elem227"], ["tundra"],
- ["elem300"], "g3.ogg", final_point_10, final_cube_10, district_10, ["tundra"],
- ["elem260"], final_fog_10, special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att10 = OptionalMapJson(direction_10, ["tundra", "tundra", "tundra", "tundra", "tundra", "tundra"],
- ["elem217", "elem212", "elem216", "elem205", "elem202", "elem301"], ["tundra"],
- ["elem300"], "g3.ogg", must_speed=True,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- elif theme_2 == T.theme2_C_mon_dic:
- data_map6 = generalMapJson(map6_se, ["forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forest", "forest", "forest", "forest"],
- ["elem109", "elem102", "elem106", "elem103"],
- ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"], "field.ogg",
- final_point_6, final_cube_6, district_6, ["fog", "forest"], ["elem39", "elem3"],
- final_fog_6, special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att6 = OptionalMapJson(direction_6, ["forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"],
- "field.ogg")
- data_map7 = generalMapJson(map7_se, ["forest", "forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem201", "elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forest", "forest", "forest", "forest"], ["elem2", "elem102", "elem106", "elem103"],
- ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"], "field.ogg",
- final_point_7, final_cube_7, district_7, ["fog", "fog", "forest"],
- ["elem39", "elem39", "elem3"], final_fog_7,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att7 = OptionalMapJson(direction_7, ["forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"],
- "field.ogg")
- data_map8 = generalMapJson(map8_se, ["forest", "forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem201", "elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forest", "forest", "forest", "forest"], ["elem2", "elem102", "elem106", "elem103"],
- ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"], "field.ogg",
- final_point_8, final_cube_8, district_8, ["fog", "fog", "fog", "forest"],
- ["elem39", "elem39", "elem39", "elem3"], final_fog_8,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att8 = OptionalMapJson(direction_8, ["forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"],
- "field.ogg")
- data_map9 = generalMapJson(map9_se,
- ["forest", "forest", "forest", "forest", "forest", "forest", "forest", "forest",
- "forest"],
- ["elem202", "elem206", "elem201", "elem8", "elem69", "elem70", "elem105", "elem7",
- "elem75"], ["forest", "forest", "forest", "forest", "forest"],
- ["elem46", "elem2", "elem102", "elem106", "elem103"],
- ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
- "wallemd.ogg", final_point_9, final_cube_9, district_9,
- ["fog", "fog", "fog", "forest", "forest"],
- ["elem39", "elem39", "elem39", "elem3", "elem3"], final_fog_9,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att9 = OptionalMapJson(direction_9, ["forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
- "wallemd.ogg")
- data_map10 = generalMapJson(map10_se,
- ["forest", "forest", "forest", "forest", "forest", "forest", "forest", "forest",
- "forest"],
- ["elem202", "elem206", "elem201", "elem8", "elem69", "elem70", "elem105", "elem7",
- "elem75"], ["forest", "forest", "forest", "forest", "forest"],
- ["elem46", "elem2", "elem102", "elem106", "elem103"],
- ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
- "wallemd.ogg", final_point_10, final_cube_10, district_10,
- ["fog", "fog", "fog", "fog", "forest", "forest"],
- ["elem39", "elem39", "elem39", "elem39", "elem3", "elem3"], final_fog_10,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att10 = OptionalMapJson(direction_10, ["forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
- "wallemd.ogg", must_speed=True)
- if theme_3 == T.theme3_A_mon_dic:
- data_map11 = generalMapJson(map11_se, ["mine", "mine"], ["elem5", "elem201"], ["mine", "mine", "mine"],
- ["elem4", "elem6", "elem8"], ["mine"], ["elem3"], "mine.ogg", final_point_11,
- final_cube_11, district_11, [], [], final_fog_11,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att11 = OptionalMapJson(direction_11, ["mine"], ["elem5"], ["mine"], ["elem3"], "mine.ogg",
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map12 = generalMapJson(map12_se, ["mine", "mine", "mine", "mine", "mine"],
- ["elem207", "elem221", "elem201", "elem202", "elem5"], ["mine", "mine", "mine"],
- ["elem4", "elem12", "elem8"], ["mine"], ["elem3"], "mine.ogg", final_point_12,
- final_cube_12, district_12, [], [], final_fog_12,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att12 = OptionalMapJson(direction_12, ["mine"], ["elem207"], ["mine"], ["elem3"], "mine.ogg",
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map13 = generalMapJson(map13_se, ["mine", "mine", "mine", "mine", "mine"],
- ["elem207", "elem221", "elem201", "elem202", "elem5"], ["mine", "mine", "mine"],
- ["elem4", "elem12", "elem8"], ["mine"], ["elem3"], "mine.ogg", final_point_13,
- final_cube_13, district_13, [], [], final_fog_13,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att13 = OptionalMapJson(direction_13, ["mine"], ["elem207"], ["mine"], ["elem3"], "mine.ogg",
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map14 = generalMapJson(map14_se, ["mine", "mine", "mine"], ["elem248", "elem252", "elem247"],
- ["mine", "exploration"], ["elem243", "elem25"], ["mine", "mine", "mine"],
- ["elem246", "elem245", "elem254"], "mine.ogg", final_point_14, final_cube_14,
- district_14, [], [], final_fog_14,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att14 = OptionalMapJson(direction_14, ["mine"], ["elem248"], ["mine"], ["elem246"], "mine.ogg",
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map15 = generalMapJson(map15_se, ["exploration", "mine", "mine"], ["elem2", "elem252", "elem248"],
- ["mine", "exploration"], ["elem243", "elem25"], ["mine", "mine", "mine"],
- ["elem246", "elem245", "elem254"], "mine.ogg", final_point_15, final_cube_15,
- district_15, [], [], final_fog_15,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att15 = FinalMapJson(direction_15, ["exploration"], ["elem2"], ["mine"], ["elem246"], "mine.ogg")
- data_att_continue15 = OptionalMapJson(direction_15, ["exploration"], ["elem2"], ["mine"], ["elem246"],
- "mine.ogg", must_speed=True,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- elif theme_3 == T.theme3_B_mon_dic:
- data_map11 = generalMapJson(map11_se, ["gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem201", "elem5", "elem5", "elem201", "elem6"], ["gobi", "desert", "desert"],
- ["elem20", "elem2", "elem6"], ["gobi"], ["elem1"], "d1.ogg", final_point_11,
- final_cube_11, district_11, [], [], final_fog_11,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att11 = OptionalMapJson(direction_11, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem201", "elem201", "elem5", "elem201", "elem6", "elem24"], ["gobi"], ["elem1"],
- "d1.ogg", special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map12 = generalMapJson(map12_se, ["gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem201", "elem5", "elem5", "elem201", "elem6"], ["gobi", "desert", "desert"],
- ["elem20", "elem2", "elem6"], ["gobi"], ["elem1"], "d1.ogg", final_point_12,
- final_cube_12, district_12, [], [], final_fog_12,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att12 = OptionalMapJson(direction_12, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem201", "elem201", "elem5", "elem201", "elem6", "elem24"], ["gobi"], ["elem1"],
- "d1.ogg", special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map13 = generalMapJson(map13_se, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem5", "elem201", "elem5", "elem201", "elem6", "elem21"],
- ["gobi", "desert", "desert"], ["elem20", "elem2", "elem6"], ["gobi", "gobi"],
- ["elem3", "elem4"], "d3.ogg", final_point_13, final_cube_13, district_13, [], [],
- final_fog_13, special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att13 = OptionalMapJson(direction_13, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem5", "elem201", "elem5", "elem201", "elem6", "elem21"], ["gobi", "gobi"],
- ["elem3", "elem4"], "d3.ogg",
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map14 = generalMapJson(map14_se, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem28", "elem28", "elem28", "elem110", "elem110", "elem810"], ["gobi", "gobi"],
- ["elem29", "elem202"], ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"],
- "d3.ogg", final_point_14, final_cube_14, district_14, [], [], final_fog_14,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att14 = OptionalMapJson(direction_14, ["gobi", "gobi", "gobi"], ["elem28", "elem110", "elem810"],
- ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"], "d3.ogg",
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map15 = generalMapJson(map15_se, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem110", "elem28", "elem28", "elem28", "elem810", "elem46"], ["gobi", "gobi"],
- ["elem29", "elem202"], ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"],
- "d4.ogg", final_point_15, final_cube_15, district_15, ["gobi"], ["elem410"],
- final_fog_15, special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att15 = FinalMapJson(direction_15, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem110", "elem28", "elem28", "elem28", "elem810", "elem46"],
- ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"], "d4.ogg")
- data_att_continue15 = OptionalMapJson(direction_15, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem110", "elem28", "elem28", "elem28", "elem810", "elem46"],
- ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"], "d4.ogg",
- must_speed=True,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- elif theme_3 == T.theme3_C_mon_dic:
- data_map11 = generalMapJson(map11_se,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "queer", "queer"], ["elem401", "elem315", "elem501", "elem307", "elem1", "elem1"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem402", "elem403", "elem404"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem2", "elem1", "elem0"], "steamacity5.ogg", final_point_11, final_cube_11,
- district_11, [], [], final_fog_11)
- data_att11 = OptionalMapJson(direction_11,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem401", "elem315", "elem501", "elem307"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem2", "elem1", "elem0"], "steamacity5.ogg")
- data_map12 = generalMapJson(map12_se,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "queer", "queer"], ["elem401", "elem315", "elem501", "elem307", "elem1", "elem1"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem402", "elem403", "elem404"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem2", "elem1", "elem0"], "steamacity5.ogg", final_point_12, final_cube_12,
- district_12, [], [], final_fog_12)
- data_att12 = OptionalMapJson(direction_12,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem401", "elem315", "elem501", "elem307"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem2", "elem1", "elem0"], "steamacity5.ogg")
- data_map13 = generalMapJson(map13_se,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "machine_dark", "machine_dark", "queer", "queer"],
- ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13", "elem1", "elem1"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem402", "elem403", "elem404"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem600", "elem601", "elem602"], "steamacity6.ogg", final_point_13, final_cube_13,
- district_13, [], [], final_fog_13)
- data_att13 = OptionalMapJson(direction_13,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "machine_dark", "machine_dark"],
- ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem600", "elem601", "elem602"], "steamacity6.ogg")
- data_map14 = generalMapJson(map14_se,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "machine_dark", "machine_dark", "queer", "queer"],
- ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13", "elem1", "elem1"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem402", "elem403", "elem404"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem600", "elem601", "elem602"], "steamacity6.ogg", final_point_14, final_cube_14,
- district_14, [], [], final_fog_14)
- data_att14 = OptionalMapJson(direction_14,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "machine_dark", "machine_dark"],
- ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem600", "elem601", "elem602"], "steamacity6.ogg")
- data_map15 = generalMapJson(map15_se, ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "steamacity_dark", "machine_dark", "machine_dark", "queer", "queer"],
- ["elem14", "elem401", "elem315", "elem501", "elem307", "elem11", "elem13", "elem1",
- "elem1"],
- ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem8", "elem402", "elem403", "elem404"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem600", "elem601", "elem602"], "steamacity7.ogg", final_point_15, final_cube_15,
- district_15, [], [], final_fog_15)
- data_att15 = FinalMapJson(direction_15,
- ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "steamacity_dark", "machine_dark", "machine_dark"],
- ["elem14", "elem401", "elem315", "elem501", "elem307", "elem11", "elem13"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem600", "elem601", "elem602"], "steamacity7.ogg")
- data_att_continue15 = OptionalMapJson(direction_15,
- ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "steamacity_dark", "machine_dark", "machine_dark"],
- ["elem14", "elem401", "elem315", "elem501", "elem307", "elem11",
- "elem13"], ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem600", "elem601", "elem602"], "steamacity7.ogg", must_speed=True)
- # 艾登结局
- data_map_eden16 = generalMapJson(map_eden16_se, ["common", "common", "common", "autumnSnow", "autumnSnow"],
- ["elem69", "elem75", "elem188", "elem55", "elem56"], ["autumnSnow", "autumnSnow"],
- ["elem43", "elem3"], ["autumnSnow", "autumnSnow", "autumnSnow"],
- ["elem39", "elem29", "elem18"], "rogue_eden1.ogg", final_point_eden_16,
- final_cube_eden_16, district_eden_16, ["autumnSnow"], ["elem6"], final_fog_eden_16)
- data_att_eden16 = OptionalMapJson(direction_16, ["common", "common", "common", "autumnSnow", "autumnSnow"],
- ["elem69", "elem75", "elem188", "elem55", "elem56"],
- ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem39", "elem29", "elem18"],
- "rogue_eden1.ogg")
- data_map_eden17 = generalMapJson(map_eden17_se, ["common", "common", "common", "autumnSnow", "autumnSnow"],
- ["elem69", "elem75", "elem188", "elem55", "elem56"], ["autumnSnow", "autumnSnow"],
- ["elem43", "elem3"], ["autumnSnow", "autumnSnow", "autumnSnow"],
- ["elem39", "elem29", "elem18"], "rogue_eden1.ogg", final_point_eden_17,
- final_cube_eden_17, district_eden_17, ["autumnSnow"], ["elem6"], final_fog_eden_17)
- data_att_eden17 = OptionalMapJson(direction_17, ["common", "common", "common", "autumnSnow", "autumnSnow"],
- ["elem69", "elem75", "elem188", "elem55", "elem56"],
- ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem39", "elem29", "elem18"],
- "rogue_eden1.ogg")
- data_map_eden18 = generalMapJson(map_eden18_se, ["common", "common", "common", "autumnSnow", "autumnSnow"],
- ["elem69", "elem75", "elem188", "elem55", "elem56"], ["autumnSnow", "autumnSnow"],
- ["elem43", "elem3"], ["autumnSnow", "autumnSnow", "autumnSnow"],
- ["elem39", "elem29", "elem18"], "rogue_eden1.ogg", final_point_eden_18,
- final_cube_eden_18, district_eden_18, ["autumnSnow", "autumnSnow"],
- ["elem6", "elem6"], final_fog_eden_18)
- data_att_eden18 = OptionalMapJson(direction_18, ["common", "common", "common", "autumnSnow", "autumnSnow"],
- ["elem69", "elem75", "elem188", "elem55", "elem56"],
- ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem39", "elem29", "elem18"],
- "rogue_eden1.ogg")
- data_map_eden19 = generalMapJson(map_eden19_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_19, final_cube_eden_19, district_eden_19,
- ["autumnSnow", "autumnSnow"], ["elem6", "elem6"], final_fog_eden_19)
- data_att_eden19 = OptionalMapJson(direction_19,
- ["autumnSnow", "common", "common", "common", "autumnSnow", "autumnSnow",
- "autumnSnow"],
- ["elem55", "elem75", "elem188", "elem69", "elem56", "elem202", "elem1"],
- ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem29", "elem39", "elem18"],
- "rogue_eden2.ogg")
- # 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)
- data_map_eden20 = eden_boss_map_json()
- data_att_eden20 = FinalMapJson(direction_20,
- ["autumnSnow", "common", "common", "common", "autumnSnow", "autumnSnow",
- "autumnSnow"],
- ["elem55", "elem75", "elem188", "elem69", "elem56", "elem202", "elem1"],
- ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem29", "elem39", "elem18"],
- "rogue_eden2.ogg")
- # 逆命结局
- data_map_destiny16 = generalMapJson(map_destiny16_se,
- ["site", "site", "site", "site", "common", "common", "forest", "forest",
- "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
- "elem44", "elem45"], ["common", "common", "common", "exploration"],
- ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
- ["elem1", "elem2"], "rogue_destiny1.ogg", final_point_destiny_16,
- final_cube_destiny_16, district_destiny_16, ["fog"], ["elem39"],
- final_fog_destiny_16, ambience="rain.mp3", environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
- data_att_destiny16 = OptionalMapJson(direction_16,
- ["site", "site", "site", "site", "common", "common", "forest", "forest",
- "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
- "elem44", "elem45"], ["site", "site"], ["elem1", "elem2"],
- "rogue_destiny1.ogg", ambience="rain.mp3", environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
- data_map_destiny17 = generalMapJson(map_destiny17_se,
- ["site", "site", "site", "site", "common", "common", "forest", "forest",
- "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
- "elem44", "elem45"], ["common", "common", "common", "exploration"],
- ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
- ["elem1", "elem2"], "rogue_destiny1.ogg", final_point_destiny_17,
- final_cube_destiny_17, district_destiny_17, ["fog"], ["elem39"],
- final_fog_destiny_17, ambience="rain.mp3", environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
- data_att_destiny17 = OptionalMapJson(direction_17,
- ["site", "site", "site", "site", "common", "common", "forest", "forest",
- "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
- "elem44", "elem45"], ["site", "site"], ["elem1", "elem2"],
- "rogue_destiny1.ogg", ambience="rain.mp3", environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
- data_map_destiny18 = generalMapJson(map_destiny18_se,
- ["site", "site", "site", "site", "common", "common", "forest", "forest",
- "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
- "elem44", "elem45"], ["common", "common", "common", "exploration"],
- ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
- ["elem1", "elem2"], "rogue_destiny2.ogg", final_point_destiny_18,
- final_cube_destiny_18, district_destiny_18, ["fog", "fog"],
- ["elem39", "elem39"], final_fog_destiny_18, ambience="rain.mp3",
- environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000],
- ["Level3x3RandomThunder", [800, 3], 5600, 8000]])
- data_att_destiny18 = OptionalMapJson(direction_18,
- ["site", "site", "site", "site", "common", "common", "forest", "forest",
- "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
- "elem44", "elem45"], ["site", "site"], ["elem1", "elem2"],
- "rogue_destiny2.ogg", ambience="rain.mp3", environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
- data_map_destiny19 = generalMapJson(map_destiny19_se,
- ["site", "site", "site", "site", "site", "site", "site", "site", "common",
- "common", "forest", "forest", "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem9", "elem10", "elem5", "elem6",
- "elem69", "elem75", "elem42", "elem43", "elem44", "elem45"],
- ["common", "common", "common", "exploration"],
- ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
- ["elem2", "elem1"], "rogue_destiny2.ogg", final_point_destiny_19,
- final_cube_destiny_19, district_destiny_19, ["fog", "fog"],
- ["elem39", "elem39"], final_fog_destiny_19, ambience="rain.mp3",
- environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000],
- ["Level3x3RandomThunder", [800, 3], 5600, 8000]])
- data_att_destiny19 = OptionalMapJson(direction_19,
- ["site", "site", "site", "site", "site", "site", "site", "site", "common",
- "common", "forest", "forest", "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem9", "elem10", "elem5", "elem6",
- "elem69", "elem75", "elem42", "elem43", "elem44", "elem45"], ["site", "site"],
- ["elem2", "elem1"], "rogue_destiny2.ogg", ambience="rain.mp3",
- environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
- data_map_destiny20 = destiny_boss_map_json()
- data_att_destiny20 = FinalMapJson(direction_20,
- ["site", "site", "site", "site", "site", "site", "site", "site", "common",
- "common", "forest", "forest", "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem9", "elem10", "elem5", "elem6",
- "elem69", "elem75", "elem42", "elem43", "elem44", "elem45"], ["site", "site"],
- ["elem2", "elem1"], "rogue_destiny3.ogg", ambience="rain.mp3", environment="rain")
- # 深海结局
- data_map_ocean16 = generalMapJson(map_ocean16_se, ["mine", "mine", "mine", "ocean", "ocean", "ocean"],
- ["elem207", "elem201", "elem202", "elem115", "elem118", "elem206"],
- ["ocean", "ocean"], ["elem14", "elem202"], ["ocean", "ocean"],
- ["elem51", "elem61"], "ocean4.ogg", final_point_ocean_16, final_cube_ocean_16,
- district_ocean_16, ["ocean", "ocean", "ocean", "ocean"],
- ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_16,
- ambience="ocean.mp3")
- data_att_ocean16 = OptionalMapJson(direction_16, ["mine"], ["elem201"], ["ocean"], ["elem51"], "ocean4.ogg",
- ambience="ocean.mp3")
- data_map_ocean17 = generalMapJson(map_ocean17_se, ["mine", "mine", "mine", "ocean"],
- ["elem207", "elem201", "elem202", "elem206"], ["ocean"], ["elem202"],
- ["ocean", "ocean"], ["elem51", "elem61"], "ocean4.ogg", final_point_ocean_17,
- final_cube_ocean_17, district_ocean_17, ["ocean", "ocean", "ocean", "ocean"],
- ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_17,
- ambience="ocean.mp3")
- data_att_ocean17 = OptionalMapJson(direction_17, ["mine"], ["elem201"], ["ocean"], ["elem51"], "ocean4.ogg",
- ambience="ocean.mp3")
- data_map_ocean18 = generalMapJson(map_ocean18_se, ["ocean", "ocean", "ocean", "ocean", "mine", "mine", "ocean"],
- ["elem161", "elem161", "elem161", "elem161", "elem201", "elem202", "elem206"],
- ["ocean", "ocean"], ["elem202", "elem203"], ["ocean", "ocean"],
- ["elem152", "elem154"], "ocean14.ogg", final_point_ocean_18, final_cube_ocean_18,
- district_ocean_18, ["ocean", "ocean", "ocean", "ocean"],
- ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_18,
- ambience="ocean.mp3")
- data_att_ocean18 = OptionalMapJson(direction_18, ["ocean"], ["elem161"], ["ocean"], ["elem152"], "ocean14.ogg",
- ambience="ocean.mp3")
- data_map_ocean19 = generalMapJson(map_ocean19_se, ["ocean", "ocean", "ocean", "ocean", "mine", "mine", "ocean"],
- ["elem161", "elem161", "elem161", "elem161", "elem201", "elem202", "elem206"],
- ["ocean", "ocean"], ["elem203", "elem202"], ["ocean", "ocean"],
- ["elem154", "elem152"], "ocean14.ogg", final_point_ocean_19, final_cube_ocean_19,
- district_ocean_19, ["ocean", "ocean", "ocean", "ocean"],
- ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_19,
- ambience="ocean.mp3")
- data_att_ocean19 = OptionalMapJson(direction_19, ["ocean"], ["elem161"], ["ocean"], ["elem154"], "ocean14.ogg",
- ambience="ocean.mp3")
- data_map_ocean20 = ocean_boss_map_json()
- data_att_ocean20 = FinalMapJson(direction_20, ["ocean"], ["elem161"], ["ocean"], ["elem154"], "ocean13.ogg",
- ambience="ocean.mp3")
- R.general_mon_dic = {"1": {"normal": [], "elite": []}, "2": {"normal": [], "elite": []},
- "3": {"normal": [], "elite": []}, "4": {"normal": [], "elite": []}}
- for i, dic in enumerate([theme_1, theme_2, theme_3]):
- for key, value in dic.items():
- if value['type'] == 'normal':
- R.general_mon_dic[str(i + 1)]["normal"].append(key)
- if value['type'] == 'elite':
- R.general_mon_dic[str(i + 1)]["elite"].append(key)
- # 获取当前文件的路径
- current_folder_path = os.getcwd()
- # 获取父级文件夹的路径
- parent_folder_path = os.path.dirname(current_folder_path)
- # 获取父父级文件夹的路径
- pparent_folder_path = current_folder_path
- # pparent_folder_path = os.path.dirname(parent_folder_path)
- # 数据写入
- R.map_json_dic["rogueMap1"] = data_map1
- R.map_json_dic["rogueMap2"] = data_map2
- R.map_json_dic["rogueMap3"] = data_map3
- R.map_json_dic["rogueMap4"] = data_map4
- R.map_json_dic["rogueMap5"] = data_map5
- R.map_json_dic["rogueMap6"] = data_map6
- R.map_json_dic["rogueMap7"] = data_map7
- R.map_json_dic["rogueMap8"] = data_map8
- R.map_json_dic["rogueMap9"] = data_map9
- R.map_json_dic["rogueMap10"] = data_map10
- R.map_json_dic["rogueMap11"] = data_map11
- R.map_json_dic["rogueMap12"] = data_map12
- R.map_json_dic["rogueMap13"] = data_map13
- R.map_json_dic["rogueMap14"] = data_map14
- R.map_json_dic["rogueMap15"] = data_map15
- R.map_json_dic["rogueMap16_eden"] = data_map_eden16
- R.map_json_dic["rogueMap17_eden"] = data_map_eden17
- R.map_json_dic["rogueMap18_eden"] = data_map_eden18
- R.map_json_dic["rogueMap19_eden"] = data_map_eden19
- R.map_json_dic["rogueMap20_eden"] = data_map_eden20
- R.map_json_dic["rogueMap16_destiny"] = data_map_destiny16
- R.map_json_dic["rogueMap17_destiny"] = data_map_destiny17
- R.map_json_dic["rogueMap18_destiny"] = data_map_destiny18
- R.map_json_dic["rogueMap19_destiny"] = data_map_destiny19
- R.map_json_dic["rogueMap20_destiny"] = data_map_destiny20
- R.map_json_dic["rogueMap16_ocean"] = data_map_ocean16
- R.map_json_dic["rogueMap17_ocean"] = data_map_ocean17
- R.map_json_dic["rogueMap18_ocean"] = data_map_ocean18
- R.map_json_dic["rogueMap19_ocean"] = data_map_ocean19
- R.map_json_dic["rogueMap20_ocean"] = data_map_ocean20
- R.map_json_dic["rogueAttMap1"] = data_att1
- R.map_json_dic["rogueAttMap2"] = data_att2
- R.map_json_dic["rogueAttMap3"] = data_att3
- R.map_json_dic["rogueAttMap4"] = data_att4
- R.map_json_dic["rogueAttMap5"] = data_att5
- R.map_json_dic["rogueAttMap6"] = data_att6
- R.map_json_dic["rogueAttMap7"] = data_att7
- R.map_json_dic["rogueAttMap8"] = data_att8
- R.map_json_dic["rogueAttMap9"] = data_att9
- R.map_json_dic["rogueAttMap10"] = data_att10
- R.map_json_dic["rogueAttMap11"] = data_att11
- R.map_json_dic["rogueAttMap12"] = data_att12
- R.map_json_dic["rogueAttMap13"] = data_att13
- R.map_json_dic["rogueAttMap14"] = data_att14
- R.map_json_dic["rogueAttMap15"] = data_att15
- R.map_json_dic["rogueAttMap15_continue"] = data_att_continue15
- R.map_json_dic["rogueAttMap16_eden"] = data_att_eden16
- R.map_json_dic["rogueAttMap17_eden"] = data_att_eden17
- R.map_json_dic["rogueAttMap18_eden"] = data_att_eden18
- R.map_json_dic["rogueAttMap19_eden"] = data_att_eden19
- R.map_json_dic["rogueAttMap20_eden"] = data_att_eden20
- R.map_json_dic["rogueAttMap16_destiny"] = data_att_destiny16
- R.map_json_dic["rogueAttMap17_destiny"] = data_att_destiny17
- R.map_json_dic["rogueAttMap18_destiny"] = data_att_destiny18
- R.map_json_dic["rogueAttMap19_destiny"] = data_att_destiny19
- R.map_json_dic["rogueAttMap20_destiny"] = data_att_destiny20
- R.map_json_dic["rogueAttMap16_ocean"] = data_att_ocean16
- R.map_json_dic["rogueAttMap17_ocean"] = data_att_ocean17
- R.map_json_dic["rogueAttMap18_ocean"] = data_att_ocean18
- R.map_json_dic["rogueAttMap19_ocean"] = data_att_ocean19
- R.map_json_dic["rogueAttMap20_ocean"] = data_att_ocean20
- '''
- # 获取当前文件的路径
- current_folder_path = os.getcwd()
- # 获取父级文件夹的路径
- parent_folder_path = os.path.dirname(current_folder_path)
- # 获取父父级文件夹的路径
- pparent_folder_path = current_folder_path
- # pparent_folder_path = os.path.dirname(parent_folder_path)
- # 数据写入
- with open(pparent_folder_path+"/game/map"+"/rogueMap9.json", "w") as outfile:
- json.dump(data_map9, outfile, indent=2, ensure_ascii=False)
- with open(pparent_folder_path+"/game/map"+"/rogueMap10.json", "w") as outfile:
- json.dump(data_map10, outfile, indent=2, ensure_ascii=False)
- 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')
- plt.gca().invert_yaxis()
- plt.xlim([-1,63])
- plt.ylim([-1,63])
- plt.xlabel('X')
- plt.ylabel('Y')
- plt.title('Path on 62x62 Grid')
- plt.show()
- '''
- def main_func_new():
- theme_1 = random.choice([T.theme1_A_mon_dic, T.theme1_B_mon_dic, T.theme1_C_mon_dic])
- theme_2 = random.choice([T.theme2_A_mon_dic, T.theme2_B_mon_dic, T.theme2_C_mon_dic])
- theme_3 = random.choice([T.theme3_A_mon_dic, T.theme3_B_mon_dic, T.theme3_C_mon_dic])
- theme_eden = T.theme_eden_mon_dic
- theme_destiny = T.theme_destiny_mon_dic
- theme_ocean = T.theme_ocean_mon_dic
- # theme_3 = T.theme3_C_mon_dic
- # theme_2 = T.theme2_C_mon_dic
- if theme_1 == T.theme1_A_mon_dic:
- R.rouge_theme_1 = "魔法王国"
- elif theme_1 == T.theme1_B_mon_dic:
- R.rouge_theme_1 = "静涛海原"
- elif theme_1 == T.theme1_C_mon_dic:
- R.rouge_theme_1 = "废铁乐园"
- if theme_2 == T.theme2_A_mon_dic:
- R.rouge_theme_2 = "魔法古堡"
- elif theme_2 == T.theme2_B_mon_dic:
- R.rouge_theme_2 = "永东寒原"
- elif theme_2 == T.theme2_C_mon_dic:
- R.rouge_theme_2 = "迷雾古林"
- if theme_3 == T.theme3_A_mon_dic:
- R.rouge_story = "地狱矿工"
- R.rouge_theme_3 = "熔岩深矿"
- elif theme_3 == T.theme3_B_mon_dic:
- R.rouge_story = "时空沙漏"
- R.rouge_theme_3 = "赤砂遗迹"
- elif theme_3 == T.theme3_C_mon_dic:
- R.rouge_story = "轮齿之怒"
- R.rouge_theme_3 = "械城之心"
- # 不同难度的难度系数(顺序: 第一层/ 第二层/ 第三层/ 艾登层/ 命运层/ 深海层)
- Easy_diff_list = [10, 16, 20, 25, 32, 20, 25, 30, 35, 42, 30, 35, 40, 45, 50, 30, 35, 40, 45, 50, 35, 40, 45, 50,
- 56, 50, 56, 64, 75, 88]
- Hard_diff_list = [12, 18, 24, 30, 40, 24, 30, 36, 42, 54, 36, 42, 52, 64, 75, 36, 42, 52, 64, 75, 40, 48, 60, 70,
- 80, 70, 80, 90, 100, 108]
- Hell_diff_list = [18, 24, 30, 40, 50, 30, 36, 42, 50, 60, 42, 52, 64, 75, 88, 42, 52, 64, 75, 88, 50, 60, 72, 80,
- 96, 80, 92, 108, 120, 140]
- diff_dic = {"Easy": Easy_diff_list, "Normal": Hard_diff_list, "Hell": Hell_diff_list}
- # import time
- # start_t = time.time()
- # map_gen: 1.8402907848358154 s
- # map_json: 0.32413291931152344 s
- def async_map_gen(diff, theme_dic, cell_type, shop_level, has_boss, level_num):
- # 包装原始的 map_gen 调用
- return map_gen(-1, diff, theme_dic, cell_type, shop_level, has_boss, level_num)
- async def run_map_gen_parallel():
- # 使用线程池并行处理所有的 map_gen 调用
- with ThreadPoolExecutor() as executor:
- loop = asyncio.get_event_loop()
- tasks = [
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][0], theme_1, "normal", 1, False, 1),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][1], theme_1, "normal", 1, False, 2),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][2], theme_1, "normal", 1, False, 3),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][3], theme_1, "normal_elite", 1, False, 4),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][4], theme_1, "elite", 1, True, 5),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][5], theme_2, "normal", 2, False, 6),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][6], theme_2, "normal", 2, False, 7),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][7], theme_2, "normal", 2, False, 8),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][8], theme_2, "normal_elite", 2, False, 9),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][9], theme_2, "elite", 2, True, 10),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][10], theme_3, "normal", 3, False, 11),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][11], theme_3, "normal", 3, False, 12),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][12], theme_3, "normal", 3, False, 13),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][13], theme_3, "normal_elite", 3, False, 14),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][14], theme_3, "elite", 3, True, 15),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][15], theme_eden, "normal", 3, False, 16),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][16], theme_eden, "normal", 3, False, 17),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][17], theme_eden, "normal", 3, False, 18),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][18], theme_eden, "normal_elite", 3, False, 19),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][19], theme_eden, "elite", 3, True, 20),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][20], theme_destiny, "normal", 3, False, 16),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][21], theme_destiny, "normal", 3, False, 17),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][22], theme_destiny, "normal", 3, False, 18),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][23], theme_destiny, "normal_elite", 3, False, 19),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][24], theme_destiny, "elite", 3, True, 20),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][25], theme_ocean, "normal", 3, False, 16),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][26], theme_ocean, "normal_elite", 3, False, 17),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][27], theme_ocean, "normal_elite", 3, False, 18),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][28], theme_ocean, "elite", 3, False, 19),
- loop.run_in_executor(
- executor, async_map_gen,
- diff_dic[R.difficulty][29], theme_ocean, "elite", 3, True, 20)
- ]
- # 等待所有的任务完成并收集结果
- results = await asyncio.gather(*tasks)
- return results
- results = asyncio.run(run_map_gen_parallel())
- map1, map1_se, direction_1, vertical_1, horizontal_1, final_point_1, final_cube_1, district_1, final_fog_1 = \
- results[0]
- map2, map2_se, direction_2, vertical_2, horizontal_2, final_point_2, final_cube_2, district_2, final_fog_2 = \
- results[1]
- map3, map3_se, direction_3, vertical_3, horizontal_3, final_point_3, final_cube_3, district_3, final_fog_3 = \
- results[2]
- map4, map4_se, direction_4, vertical_4, horizontal_4, final_point_4, final_cube_4, district_4, final_fog_4 = \
- results[3]
- map5, map5_se, direction_5, vertical_5, horizontal_5, final_point_5, final_cube_5, district_5, final_fog_5 = \
- results[4]
- map6, map6_se, direction_6, vertical_6, horizontal_6, final_point_6, final_cube_6, district_6, final_fog_6 = \
- results[5]
- map7, map7_se, direction_7, vertical_7, horizontal_7, final_point_7, final_cube_7, district_7, final_fog_7 = \
- results[6]
- map8, map8_se, direction_8, vertical_8, horizontal_8, final_point_8, final_cube_8, district_8, final_fog_8 = \
- results[7]
- map9, map9_se, direction_9, vertical_9, horizontal_9, final_point_9, final_cube_9, district_9, final_fog_9 = \
- results[8]
- map10, map10_se, direction_10, vertical_10, horizontal_10, final_point_10, final_cube_10, district_10, final_fog_10 = \
- results[9]
- map11, map11_se, direction_11, vertical_11, horizontal_11, final_point_11, final_cube_11, district_11, final_fog_11 = \
- results[10]
- map12, map12_se, direction_12, vertical_12, horizontal_12, final_point_12, final_cube_12, district_12, final_fog_12 = \
- results[11]
- map13, map13_se, direction_13, vertical_13, horizontal_13, final_point_13, final_cube_13, district_13, final_fog_13 = \
- results[12]
- map14, map14_se, direction_14, vertical_14, horizontal_14, final_point_14, final_cube_14, district_14, final_fog_14 = \
- results[13]
- map15, map15_se, direction_15, vertical_15, horizontal_15, final_point_15, final_cube_15, district_15, final_fog_15 = \
- results[14]
- 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 = \
- results[15]
- 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 = \
- results[16]
- 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 = \
- results[17]
- 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 = \
- results[18]
- 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 = \
- results[19]
- 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 = \
- results[20]
- 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 = \
- results[21]
- 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 = \
- results[22]
- 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 = \
- results[23]
- 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 = \
- results[24]
- 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 = \
- results[25]
- 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 = \
- results[26]
- 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 = \
- results[27]
- 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 = \
- results[28]
- 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 = \
- results[29]
- # print(f"map_gen: {time.time() - start_t} s")
- # map1, map1_se, direction_1, vertical_1, horizontal_1, final_point_1, final_cube_1, district_1, final_fog_1 = \
- # 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)
- # map2, map2_se, direction_2, vertical_2, horizontal_2, final_point_2, final_cube_2, district_2, final_fog_2 = \
- # 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)
- # map3, map3_se, direction_3, vertical_3, horizontal_3, final_point_3, final_cube_3, district_3, final_fog_3 = \
- # 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)
- # map4, map4_se, direction_4, vertical_4, horizontal_4, final_point_4, final_cube_4, district_4, final_fog_4 = \
- # 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)
- # map5, map5_se, direction_5, vertical_5, horizontal_5, final_point_5, final_cube_5, district_5, final_fog_5 = \
- # 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)
- #
- # map6, map6_se, direction_6, vertical_6, horizontal_6, final_point_6, final_cube_6, district_6, final_fog_6 = \
- # 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)
- # map7, map7_se, direction_7, vertical_7, horizontal_7, final_point_7, final_cube_7, district_7, final_fog_7 = \
- # 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)
- # map8, map8_se, direction_8, vertical_8, horizontal_8, final_point_8, final_cube_8, district_8, final_fog_8 = \
- # 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)
- # map9, map9_se, direction_9, vertical_9, horizontal_9, final_point_9, final_cube_9, district_9, final_fog_9 = \
- # 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)
- # map10, map10_se, direction_10, vertical_10, horizontal_10, final_point_10, final_cube_10, district_10, final_fog_10 = \
- # 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)
- #
- # map11, map11_se, direction_11, vertical_11, horizontal_11, final_point_11, final_cube_11, district_11, final_fog_11 = \
- # 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)
- # map12, map12_se, direction_12, vertical_12, horizontal_12, final_point_12, final_cube_12, district_12, final_fog_12 = \
- # 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)
- # map13, map13_se, direction_13, vertical_13, horizontal_13, final_point_13, final_cube_13, district_13, final_fog_13 = \
- # 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)
- # map14, map14_se, direction_14, vertical_14, horizontal_14, final_point_14, final_cube_14, district_14, final_fog_14 = \
- # 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)
- # map15, map15_se, direction_15, vertical_15, horizontal_15, final_point_15, final_cube_15, district_15, final_fog_15 = \
- # 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)
- #
- # 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 = \
- # 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)
- # 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 = \
- # 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)
- # 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 = \
- # 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)
- # 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 = \
- # 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)
- # 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 = \
- # 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)
- #
- # 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 = \
- # 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)
- # 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 = \
- # 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)
- # 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 = \
- # 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)
- # 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 = \
- # 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)
- # 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 = \
- # 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)
- #
- # 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 = \
- # 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)
- # 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 = \
- # 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)
- # 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 = \
- # 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)
- # 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 = \
- # 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)
- # 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 = \
- # 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)
- if theme_1 == T.theme1_A_mon_dic:
- data_map1 = generalMapJson(map1_se, ["snow", "snow", "snow"], ["elem40", "elem41", "elem19"], ["common"],
- ["elem43"], ["snow", "snow", "snow"], ["elem39", "elem18", "elem29"], "magic.ogg",
- final_point_1, final_cube_1, district_1, [], [], final_fog_1)
- data_att1 = OptionalMapJson(direction_1, ["snow"], ["elem41"], ["snow"], ["elem39"], "magic.ogg")
- data_map2 = generalMapJson(map2_se, ["snow", "snow", "snow"], ["elem40", "elem41", "elem19"], ["common"],
- ["elem43"], ["snow", "snow", "snow"], ["elem39", "elem18", "elem29"], "magic.ogg",
- final_point_2, final_cube_2, district_2, [], [], final_fog_2)
- data_att2 = OptionalMapJson(direction_2, ["snow"], ["elem41"], ["snow"], ["elem39"], "magic.ogg")
- data_map3 = generalMapJson(map3_se, ["snow", "snow", "snow"], ["elem40", "elem41", "elem19"], ["common"],
- ["elem43"], ["snow", "snow", "snow"], ["elem39", "elem18", "elem29"], "magic.ogg",
- final_point_3, final_cube_3, district_3, [], [], final_fog_3)
- data_att3 = OptionalMapJson(direction_3, ["snow"], ["elem41"], ["snow"], ["elem39"], "magic.ogg")
- data_map4 = generalMapJson(map4_se, ["snow", "common", "common"], ["elem40", "elem62", "elem69"], ["common"],
- ["elem44"], ["snow"], ["elem17"], "scene2.ogg", final_point_4, final_cube_4,
- district_4, [], [], final_fog_4)
- data_att4 = OptionalMapJson(direction_4, ["snow"], ["elem41"], ["snow"], ["elem17"], "scene2.ogg")
- data_map5 = generalMapJson(map5_se, ["snow", "common", "common"], ["elem40", "elem62", "elem69"], ["common"],
- ["elem44"], ["snow"], ["elem17"], "scene2.ogg", final_point_5, final_cube_5,
- district_5, [], [], final_fog_5)
- data_att5 = OptionalMapJson(direction_5, ["snow"], ["elem41"], ["snow"], ["elem17"], "scene2.ogg",
- must_speed=True)
- elif theme_1 == T.theme1_B_mon_dic:
- 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")
- data_att1 = OptionalMapJson(direction_1, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg",
- ambience="ocean.mp3")
- 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")
- data_att2 = OptionalMapJson(direction_2, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg",
- ambience="ocean.mp3")
- 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")
- data_att3 = OptionalMapJson(direction_3, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg",
- ambience="ocean.mp3")
- 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")
- data_att4 = OptionalMapJson(direction_4, ["mine"], ["elem207"], ["ocean"], ["elem56"], "ocean2.mp3",
- ambience="ocean.mp3")
- 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")
- data_att5 = OptionalMapJson(direction_5, ["mine"], ["elem207"], ["ocean"], ["elem56"], "ocean2.mp3",
- must_speed=True, ambience="ocean.mp3")
- elif theme_1 == T.theme1_C_mon_dic:
- data_map1 = generalMapJson(map1_se,
- ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
- ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
- ["machine", "machine", "machine", "machine"],
- ["elem64", "elem65", "elem66", "elem67"], ["machine", "machine", "machine"],
- ["elem48", "elem51", "elem47"], "steamacity2.ogg", final_point_1, final_cube_1,
- district_1, [], [], final_fog_1)
- data_att1 = OptionalMapJson(direction_1,
- ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
- ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
- ["machine", "machine", "machine"], ["elem48", "elem51", "elem47"],
- "steamacity2.ogg")
- data_map2 = generalMapJson(map2_se,
- ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
- ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
- ["machine", "machine", "machine", "machine"],
- ["elem64", "elem65", "elem66", "elem67"], ["machine", "machine", "machine"],
- ["elem48", "elem51", "elem47"], "steamacity2.ogg", final_point_2, final_cube_2,
- district_2, [], [], final_fog_2)
- data_att2 = OptionalMapJson(direction_2,
- ["machine", "machine", "machine", "machine", "machine", "machine", "machine"],
- ["elem57", "elem58", "elem70", "elem71", "elem72", "elem73", "elem74"],
- ["machine", "machine", "machine"], ["elem48", "elem51", "elem47"],
- "steamacity2.ogg")
- data_map3 = generalMapJson(map3_se,
- ["machine", "machine", "machine", "machine", "machine", "machine", "machine",
- "machine", "machine", "machine"],
- ["elem63", "elem11", "elem14", "elem57", "elem58", "elem70", "elem71", "elem72",
- "elem73", "elem74"], ["machine", "machine", "machine", "machine"],
- ["elem64", "elem65", "elem66", "elem67"], ["machine", "machine", "machine"],
- ["elem51", "elem48", "elem47"], "steamacity2.ogg", final_point_3, final_cube_3,
- district_3, [], [], final_fog_3)
- data_att3 = OptionalMapJson(direction_3,
- ["machine", "machine", "machine", "machine", "machine", "machine", "machine",
- "machine", "machine", "machine"],
- ["elem63", "elem11", "elem14", "elem57", "elem58", "elem70", "elem71", "elem72",
- "elem73", "elem74"], ["machine", "machine", "machine"],
- ["elem51", "elem48", "elem47"], "steamacity2.ogg")
- data_map4 = generalMapJson(map4_se, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
- ["elem740", "elem705", "elem703", "elem701", "elem308"],
- ["machine", "machine", "machine", "machine"],
- ["elem64", "elem65", "elem66", "elem67"],
- ["machine_dark", "steamacity", "steamacity", "steamacity"],
- ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg", final_point_4,
- final_cube_4, district_4, ["steamacity"], ["elem702"], final_fog_4)
- data_att4 = OptionalMapJson(direction_4, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
- ["elem740", "elem705", "elem703", "elem701", "elem308"],
- ["machine_dark", "steamacity", "steamacity", "steamacity"],
- ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg")
- data_map5 = generalMapJson(map5_se, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
- ["elem740", "elem705", "elem703", "elem701", "elem308"],
- ["machine", "machine", "machine", "machine"],
- ["elem64", "elem65", "elem66", "elem67"],
- ["machine_dark", "steamacity", "steamacity", "steamacity"],
- ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg", final_point_5,
- final_cube_5, district_5, ["steamacity"], ["elem702"], final_fog_5)
- data_att5 = OptionalMapJson(direction_5, ["steamacity", "steamacity", "steamacity", "steamacity", "steamacity"],
- ["elem740", "elem705", "elem703", "elem701", "elem308"],
- ["machine_dark", "steamacity", "steamacity", "steamacity"],
- ["elem1", "elem800", "elem801", "elem803"], "steamacity9.ogg", must_speed=True)
- if theme_2 == T.theme2_A_mon_dic:
- data_map6 = generalMapJson(map6_se, ["mine", "common", "common"], ["elem151", "elem62", "elem53"],
- ["common", "common"], ["elem101", "elem42"], ["mine"], ["elem56"], "magic.ogg",
- final_point_6, final_cube_6, district_6, [], [], final_fog_6)
- data_att6 = OptionalMapJson(direction_6, ["mine"], ["elem151"], ["mine"], ["elem56"], "magic.ogg")
- data_map7 = generalMapJson(map7_se, ["mine", "common", "common"], ["elem151", "elem62", "elem53"],
- ["common", "common"], ["elem101", "elem42"], ["mine"], ["elem56"], "magic.ogg",
- final_point_7, final_cube_7, district_7, [], [], final_fog_7)
- data_att7 = OptionalMapJson(direction_7, ["mine"], ["elem151"], ["mine"], ["elem56"], "magic.ogg")
- data_map8 = generalMapJson(map8_se, ["mine", "common", "common"], ["elem151", "elem62", "elem53"],
- ["common", "common"], ["elem101", "elem42"], ["mine"], ["elem56"], "magic.ogg",
- final_point_8, final_cube_8, district_8, [], [], final_fog_8)
- data_att8 = OptionalMapJson(direction_8, ["mine"], ["elem151"], ["mine"], ["elem56"], "magic.ogg")
- data_map9 = generalMapJson(map9_se, ["mine", "mine"], ["elem151", "elem51"], ["common"], ["elem42"],
- ["mine", "mine"], ["elem35", "elem31"], "shatterpoint.ogg", final_point_9,
- final_cube_9, district_9, [], [], final_fog_9)
- data_att9 = OptionalMapJson(direction_9, ["mine"], ["elem51"], ["mine"], ["elem35"], "shatterpoint.ogg")
- data_map10 = generalMapJson(map10_se, ["mine", "mine"], ["elem151", "elem51"], ["common", "treasure"],
- ["elem42", "elem5"], ["mine", "mine"], ["elem35", "elem31"], "shatterpoint.ogg",
- final_point_10, final_cube_10, district_10, [], [], final_fog_10)
- data_att10 = OptionalMapJson(direction_10, ["mine"], ["elem51"], ["mine"], ["elem35"], "shatterpoint.ogg",
- must_speed=True)
- elif theme_2 == T.theme2_B_mon_dic:
- data_map6 = generalMapJson(map6_se, ["glacier", "glacier", "glacier"], ["elem217", "elem216", "elem205"],
- ["glacier", "glacier", "glacier"], ["elem225", "elem226", "elem227"],
- ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
- "g1.ogg", final_point_6, final_cube_6, district_6, [], [], final_fog_6,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att6 = OptionalMapJson(direction_6, ["glacier", "glacier", "glacier"], ["elem217", "elem216", "elem205"],
- ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
- "g1.ogg", special_param={"defense": -200, "damage": 0, "speed": 1})
- data_map7 = generalMapJson(map7_se, ["exploration", "glacier", "glacier"], ["elem212", "elem216", "elem21"],
- ["glacier", "glacier", "glacier"], ["elem225", "elem226", "elem227"],
- ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
- "g2.ogg", final_point_7, final_cube_7, district_7, [], [], final_fog_7,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att7 = OptionalMapJson(direction_7, ["exploration", "glacier", "glacier"],
- ["elem212", "elem216", "elem21"], ["glacier", "glacier", "glacier", "glacier"],
- ["elem1", "elem2", "elem3", "elem4"], "g2.ogg",
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_map8 = generalMapJson(map8_se, ["exploration", "glacier", "glacier"], ["elem212", "elem216", "elem21"],
- ["glacier", "glacier", "glacier"], ["elem225", "elem226", "elem227"],
- ["glacier", "glacier", "glacier", "glacier"], ["elem1", "elem2", "elem3", "elem4"],
- "g2.ogg", final_point_8, final_cube_8, district_8, [], [], final_fog_8,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att8 = OptionalMapJson(direction_8, ["exploration", "glacier", "glacier"],
- ["elem212", "elem216", "elem21"], ["glacier", "glacier", "glacier", "glacier"],
- ["elem1", "elem2", "elem3", "elem4"], "g2.ogg",
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_map9 = generalMapJson(map9_se, ["tundra", "tundra", "tundra", "tundra"],
- ["elem212", "elem217", "elem216", "elem205"], ["tundra", "tundra", "tundra"],
- ["elem225", "elem226", "elem227"], ["tundra", "tundra", "tundra", "tundra"],
- ["elem1", "elem2", "elem3", "elem4"], "g3.ogg", final_point_9, final_cube_9,
- district_9, ["tundra"], ["elem260"], final_fog_9,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att9 = OptionalMapJson(direction_9, ["tundra", "tundra", "tundra", "tundra"],
- ["elem212", "elem217", "elem216", "elem205"],
- ["tundra", "tundra", "tundra", "tundra"], ["elem1", "elem2", "elem3", "elem4"],
- "g3.ogg", special_param={"defense": -200, "damage": 0, "speed": 1})
- data_map10 = generalMapJson(map10_se, ["tundra", "tundra", "tundra", "tundra", "tundra", "tundra"],
- ["elem217", "elem212", "elem216", "elem205", "elem202", "elem301"],
- ["tundra", "tundra", "tundra"], ["elem225", "elem226", "elem227"], ["tundra"],
- ["elem300"], "g3.ogg", final_point_10, final_cube_10, district_10, ["tundra"],
- ["elem260"], final_fog_10, special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att10 = OptionalMapJson(direction_10, ["tundra", "tundra", "tundra", "tundra", "tundra", "tundra"],
- ["elem217", "elem212", "elem216", "elem205", "elem202", "elem301"], ["tundra"],
- ["elem300"], "g3.ogg", must_speed=True,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- elif theme_2 == T.theme2_C_mon_dic:
- data_map6 = generalMapJson(map6_se, ["forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forest", "forest", "forest", "forest"],
- ["elem109", "elem102", "elem106", "elem103"],
- ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"], "field.ogg",
- final_point_6, final_cube_6, district_6, ["fog", "forest"], ["elem39", "elem3"],
- final_fog_6, special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att6 = OptionalMapJson(direction_6, ["forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"],
- "field.ogg")
- data_map7 = generalMapJson(map7_se, ["forest", "forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem201", "elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forest", "forest", "forest", "forest"], ["elem2", "elem102", "elem106", "elem103"],
- ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"], "field.ogg",
- final_point_7, final_cube_7, district_7, ["fog", "fog", "forest"],
- ["elem39", "elem39", "elem3"], final_fog_7,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att7 = OptionalMapJson(direction_7, ["forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"],
- "field.ogg")
- data_map8 = generalMapJson(map8_se, ["forest", "forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem201", "elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forest", "forest", "forest", "forest"], ["elem2", "elem102", "elem106", "elem103"],
- ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"], "field.ogg",
- final_point_8, final_cube_8, district_8, ["fog", "fog", "fog", "forest"],
- ["elem39", "elem39", "elem39", "elem3"], final_fog_8,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att8 = OptionalMapJson(direction_8, ["forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forestpve", "forestpve", "forestpve"], ["elem39", "elem37", "elem38"],
- "field.ogg")
- data_map9 = generalMapJson(map9_se,
- ["forest", "forest", "forest", "forest", "forest", "forest", "forest", "forest",
- "forest"],
- ["elem202", "elem206", "elem201", "elem8", "elem69", "elem70", "elem105", "elem7",
- "elem75"], ["forest", "forest", "forest", "forest", "forest"],
- ["elem46", "elem2", "elem102", "elem106", "elem103"],
- ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
- "wallemd.ogg", final_point_9, final_cube_9, district_9,
- ["fog", "fog", "fog", "forest", "forest"],
- ["elem39", "elem39", "elem39", "elem3", "elem3"], final_fog_9,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att9 = OptionalMapJson(direction_9, ["forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
- "wallemd.ogg")
- data_map10 = generalMapJson(map10_se,
- ["forest", "forest", "forest", "forest", "forest", "forest", "forest", "forest",
- "forest"],
- ["elem202", "elem206", "elem201", "elem8", "elem69", "elem70", "elem105", "elem7",
- "elem75"], ["forest", "forest", "forest", "forest", "forest"],
- ["elem46", "elem2", "elem102", "elem106", "elem103"],
- ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
- "wallemd.ogg", final_point_10, final_cube_10, district_10,
- ["fog", "fog", "fog", "fog", "forest", "forest"],
- ["elem39", "elem39", "elem39", "elem39", "elem3", "elem3"], final_fog_10,
- special_param={"defense": -200, "damage": 0, "speed": 1})
- data_att10 = OptionalMapJson(direction_10, ["forest", "forest", "forest", "forest", "forest", "forest"],
- ["elem8", "elem69", "elem70", "elem105", "elem7", "elem75"],
- ["forestpve", "forestpve", "forestpve"], ["elem37", "elem38", "elem39"],
- "wallemd.ogg", must_speed=True)
- if theme_3 == T.theme3_A_mon_dic:
- data_map11 = generalMapJson(map11_se, ["mine", "mine"], ["elem5", "elem201"], ["mine", "mine", "mine"],
- ["elem4", "elem6", "elem8"], ["mine"], ["elem3"], "mine.ogg", final_point_11,
- final_cube_11, district_11, [], [], final_fog_11,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att11 = OptionalMapJson(direction_11, ["mine"], ["elem5"], ["mine"], ["elem3"], "mine.ogg",
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map12 = generalMapJson(map12_se, ["mine", "mine", "mine", "mine", "mine"],
- ["elem207", "elem221", "elem201", "elem202", "elem5"], ["mine", "mine", "mine"],
- ["elem4", "elem12", "elem8"], ["mine"], ["elem3"], "mine.ogg", final_point_12,
- final_cube_12, district_12, [], [], final_fog_12,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att12 = OptionalMapJson(direction_12, ["mine"], ["elem207"], ["mine"], ["elem3"], "mine.ogg",
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map13 = generalMapJson(map13_se, ["mine", "mine", "mine", "mine", "mine"],
- ["elem207", "elem221", "elem201", "elem202", "elem5"], ["mine", "mine", "mine"],
- ["elem4", "elem12", "elem8"], ["mine"], ["elem3"], "mine.ogg", final_point_13,
- final_cube_13, district_13, [], [], final_fog_13,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att13 = OptionalMapJson(direction_13, ["mine"], ["elem207"], ["mine"], ["elem3"], "mine.ogg",
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map14 = generalMapJson(map14_se, ["mine", "mine", "mine"], ["elem248", "elem252", "elem247"],
- ["mine", "exploration"], ["elem243", "elem25"], ["mine", "mine", "mine"],
- ["elem246", "elem245", "elem254"], "mine.ogg", final_point_14, final_cube_14,
- district_14, [], [], final_fog_14,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att14 = OptionalMapJson(direction_14, ["mine"], ["elem248"], ["mine"], ["elem246"], "mine.ogg",
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map15 = generalMapJson(map15_se, ["exploration", "mine", "mine"], ["elem2", "elem252", "elem248"],
- ["mine", "exploration"], ["elem243", "elem25"], ["mine", "mine", "mine"],
- ["elem246", "elem245", "elem254"], "mine.ogg", final_point_15, final_cube_15,
- district_15, [], [], final_fog_15,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att15 = FinalMapJson(direction_15, ["exploration"], ["elem2"], ["mine"], ["elem246"], "mine.ogg")
- data_att_continue15 = OptionalMapJson(direction_15, ["exploration"], ["elem2"], ["mine"], ["elem246"],
- "mine.ogg", must_speed=True,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- elif theme_3 == T.theme3_B_mon_dic:
- data_map11 = generalMapJson(map11_se, ["gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem201", "elem5", "elem5", "elem201", "elem6"], ["gobi", "desert", "desert"],
- ["elem20", "elem2", "elem6"], ["gobi"], ["elem1"], "d1.ogg", final_point_11,
- final_cube_11, district_11, [], [], final_fog_11,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att11 = OptionalMapJson(direction_11, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem201", "elem201", "elem5", "elem201", "elem6", "elem24"], ["gobi"], ["elem1"],
- "d1.ogg", special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map12 = generalMapJson(map12_se, ["gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem201", "elem5", "elem5", "elem201", "elem6"], ["gobi", "desert", "desert"],
- ["elem20", "elem2", "elem6"], ["gobi"], ["elem1"], "d1.ogg", final_point_12,
- final_cube_12, district_12, [], [], final_fog_12,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att12 = OptionalMapJson(direction_12, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem201", "elem201", "elem5", "elem201", "elem6", "elem24"], ["gobi"], ["elem1"],
- "d1.ogg", special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map13 = generalMapJson(map13_se, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem5", "elem201", "elem5", "elem201", "elem6", "elem21"],
- ["gobi", "desert", "desert"], ["elem20", "elem2", "elem6"], ["gobi", "gobi"],
- ["elem3", "elem4"], "d3.ogg", final_point_13, final_cube_13, district_13, [], [],
- final_fog_13, special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att13 = OptionalMapJson(direction_13, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem5", "elem201", "elem5", "elem201", "elem6", "elem21"], ["gobi", "gobi"],
- ["elem3", "elem4"], "d3.ogg",
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map14 = generalMapJson(map14_se, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem28", "elem28", "elem28", "elem110", "elem110", "elem810"], ["gobi", "gobi"],
- ["elem29", "elem202"], ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"],
- "d3.ogg", final_point_14, final_cube_14, district_14, [], [], final_fog_14,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att14 = OptionalMapJson(direction_14, ["gobi", "gobi", "gobi"], ["elem28", "elem110", "elem810"],
- ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"], "d3.ogg",
- special_param={"defense": -200, "damage": -200, "speed": 1})
- data_map15 = generalMapJson(map15_se, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem110", "elem28", "elem28", "elem28", "elem810", "elem46"], ["gobi", "gobi"],
- ["elem29", "elem202"], ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"],
- "d4.ogg", final_point_15, final_cube_15, district_15, ["gobi"], ["elem410"],
- final_fog_15, special_param={"defense": -200, "damage": -200, "speed": 1})
- data_att15 = FinalMapJson(direction_15, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem110", "elem28", "elem28", "elem28", "elem810", "elem46"],
- ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"], "d4.ogg")
- data_att_continue15 = OptionalMapJson(direction_15, ["gobi", "gobi", "gobi", "gobi", "gobi", "gobi"],
- ["elem110", "elem28", "elem28", "elem28", "elem810", "elem46"],
- ["gobi", "gobi", "gobi"], ["elem105", "elem106", "elem107"], "d4.ogg",
- must_speed=True,
- special_param={"defense": -200, "damage": -200, "speed": 1})
- elif theme_3 == T.theme3_C_mon_dic:
- data_map11 = generalMapJson(map11_se,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "queer", "queer"], ["elem401", "elem315", "elem501", "elem307", "elem1", "elem1"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem402", "elem403", "elem404"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem2", "elem1", "elem0"], "steamacity5.ogg", final_point_11, final_cube_11,
- district_11, [], [], final_fog_11)
- data_att11 = OptionalMapJson(direction_11,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem401", "elem315", "elem501", "elem307"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem2", "elem1", "elem0"], "steamacity5.ogg")
- data_map12 = generalMapJson(map12_se,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "queer", "queer"], ["elem401", "elem315", "elem501", "elem307", "elem1", "elem1"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem402", "elem403", "elem404"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem2", "elem1", "elem0"], "steamacity5.ogg", final_point_12, final_cube_12,
- district_12, [], [], final_fog_12)
- data_att12 = OptionalMapJson(direction_12,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem401", "elem315", "elem501", "elem307"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem2", "elem1", "elem0"], "steamacity5.ogg")
- data_map13 = generalMapJson(map13_se,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "machine_dark", "machine_dark", "queer", "queer"],
- ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13", "elem1", "elem1"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem402", "elem403", "elem404"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem600", "elem601", "elem602"], "steamacity6.ogg", final_point_13, final_cube_13,
- district_13, [], [], final_fog_13)
- data_att13 = OptionalMapJson(direction_13,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "machine_dark", "machine_dark"],
- ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem600", "elem601", "elem602"], "steamacity6.ogg")
- data_map14 = generalMapJson(map14_se,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "machine_dark", "machine_dark", "queer", "queer"],
- ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13", "elem1", "elem1"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem402", "elem403", "elem404"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem600", "elem601", "elem602"], "steamacity6.ogg", final_point_14, final_cube_14,
- district_14, [], [], final_fog_14)
- data_att14 = OptionalMapJson(direction_14,
- ["steamacity_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "machine_dark", "machine_dark"],
- ["elem401", "elem315", "elem501", "elem307", "elem11", "elem13"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem600", "elem601", "elem602"], "steamacity6.ogg")
- data_map15 = generalMapJson(map15_se, ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "steamacity_dark", "machine_dark", "machine_dark", "queer", "queer"],
- ["elem14", "elem401", "elem315", "elem501", "elem307", "elem11", "elem13", "elem1",
- "elem1"],
- ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem8", "elem402", "elem403", "elem404"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem600", "elem601", "elem602"], "steamacity7.ogg", final_point_15, final_cube_15,
- district_15, [], [], final_fog_15)
- data_att15 = FinalMapJson(direction_15,
- ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "steamacity_dark", "machine_dark", "machine_dark"],
- ["elem14", "elem401", "elem315", "elem501", "elem307", "elem11", "elem13"],
- ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem600", "elem601", "elem602"], "steamacity7.ogg")
- data_att_continue15 = OptionalMapJson(direction_15,
- ["machine_dark", "steamacity_dark", "steamacity_dark", "steamacity_dark",
- "steamacity_dark", "machine_dark", "machine_dark"],
- ["elem14", "elem401", "elem315", "elem501", "elem307", "elem11",
- "elem13"], ["steamacity_dark", "steamacity_dark", "steamacity_dark"],
- ["elem600", "elem601", "elem602"], "steamacity7.ogg", must_speed=True)
- # 艾登结局
- data_map_eden16 = generalMapJson(map_eden16_se, ["common", "common", "common", "autumnSnow", "autumnSnow"],
- ["elem69", "elem75", "elem188", "elem55", "elem56"], ["autumnSnow", "autumnSnow"],
- ["elem43", "elem3"], ["autumnSnow", "autumnSnow", "autumnSnow"],
- ["elem39", "elem29", "elem18"], "rogue_eden1.ogg", final_point_eden_16,
- final_cube_eden_16, district_eden_16, ["autumnSnow"], ["elem6"], final_fog_eden_16)
- data_att_eden16 = OptionalMapJson(direction_16, ["common", "common", "common", "autumnSnow", "autumnSnow"],
- ["elem69", "elem75", "elem188", "elem55", "elem56"],
- ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem39", "elem29", "elem18"],
- "rogue_eden1.ogg")
- data_map_eden17 = generalMapJson(map_eden17_se, ["common", "common", "common", "autumnSnow", "autumnSnow"],
- ["elem69", "elem75", "elem188", "elem55", "elem56"], ["autumnSnow", "autumnSnow"],
- ["elem43", "elem3"], ["autumnSnow", "autumnSnow", "autumnSnow"],
- ["elem39", "elem29", "elem18"], "rogue_eden1.ogg", final_point_eden_17,
- final_cube_eden_17, district_eden_17, ["autumnSnow"], ["elem6"], final_fog_eden_17)
- data_att_eden17 = OptionalMapJson(direction_17, ["common", "common", "common", "autumnSnow", "autumnSnow"],
- ["elem69", "elem75", "elem188", "elem55", "elem56"],
- ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem39", "elem29", "elem18"],
- "rogue_eden1.ogg")
- data_map_eden18 = generalMapJson(map_eden18_se, ["common", "common", "common", "autumnSnow", "autumnSnow"],
- ["elem69", "elem75", "elem188", "elem55", "elem56"], ["autumnSnow", "autumnSnow"],
- ["elem43", "elem3"], ["autumnSnow", "autumnSnow", "autumnSnow"],
- ["elem39", "elem29", "elem18"], "rogue_eden1.ogg", final_point_eden_18,
- final_cube_eden_18, district_eden_18, ["autumnSnow", "autumnSnow"],
- ["elem6", "elem6"], final_fog_eden_18)
- data_att_eden18 = OptionalMapJson(direction_18, ["common", "common", "common", "autumnSnow", "autumnSnow"],
- ["elem69", "elem75", "elem188", "elem55", "elem56"],
- ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem39", "elem29", "elem18"],
- "rogue_eden1.ogg")
- data_map_eden19 = generalMapJson(map_eden19_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_19, final_cube_eden_19, district_eden_19,
- ["autumnSnow", "autumnSnow"], ["elem6", "elem6"], final_fog_eden_19)
- data_att_eden19 = OptionalMapJson(direction_19,
- ["autumnSnow", "common", "common", "common", "autumnSnow", "autumnSnow",
- "autumnSnow"],
- ["elem55", "elem75", "elem188", "elem69", "elem56", "elem202", "elem1"],
- ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem29", "elem39", "elem18"],
- "rogue_eden2.ogg")
- # 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)
- data_map_eden20 = eden_boss_map_json()
- data_att_eden20 = FinalMapJson(direction_20,
- ["autumnSnow", "common", "common", "common", "autumnSnow", "autumnSnow",
- "autumnSnow"],
- ["elem55", "elem75", "elem188", "elem69", "elem56", "elem202", "elem1"],
- ["autumnSnow", "autumnSnow", "autumnSnow"], ["elem29", "elem39", "elem18"],
- "rogue_eden2.ogg")
- # 逆命结局
- data_map_destiny16 = generalMapJson(map_destiny16_se,
- ["site", "site", "site", "site", "common", "common", "forest", "forest",
- "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
- "elem44", "elem45"], ["common", "common", "common", "exploration"],
- ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
- ["elem1", "elem2"], "rogue_destiny1.ogg", final_point_destiny_16,
- final_cube_destiny_16, district_destiny_16, ["fog"], ["elem39"],
- final_fog_destiny_16, ambience="rain.mp3", environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
- data_att_destiny16 = OptionalMapJson(direction_16,
- ["site", "site", "site", "site", "common", "common", "forest", "forest",
- "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
- "elem44", "elem45"], ["site", "site"], ["elem1", "elem2"],
- "rogue_destiny1.ogg", ambience="rain.mp3", environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
- data_map_destiny17 = generalMapJson(map_destiny17_se,
- ["site", "site", "site", "site", "common", "common", "forest", "forest",
- "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
- "elem44", "elem45"], ["common", "common", "common", "exploration"],
- ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
- ["elem1", "elem2"], "rogue_destiny1.ogg", final_point_destiny_17,
- final_cube_destiny_17, district_destiny_17, ["fog"], ["elem39"],
- final_fog_destiny_17, ambience="rain.mp3", environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
- data_att_destiny17 = OptionalMapJson(direction_17,
- ["site", "site", "site", "site", "common", "common", "forest", "forest",
- "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
- "elem44", "elem45"], ["site", "site"], ["elem1", "elem2"],
- "rogue_destiny1.ogg", ambience="rain.mp3", environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
- data_map_destiny18 = generalMapJson(map_destiny18_se,
- ["site", "site", "site", "site", "common", "common", "forest", "forest",
- "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
- "elem44", "elem45"], ["common", "common", "common", "exploration"],
- ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
- ["elem1", "elem2"], "rogue_destiny2.ogg", final_point_destiny_18,
- final_cube_destiny_18, district_destiny_18, ["fog", "fog"],
- ["elem39", "elem39"], final_fog_destiny_18, ambience="rain.mp3",
- environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000],
- ["Level3x3RandomThunder", [800, 3], 5600, 8000]])
- data_att_destiny18 = OptionalMapJson(direction_18,
- ["site", "site", "site", "site", "common", "common", "forest", "forest",
- "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem69", "elem75", "elem42", "elem43",
- "elem44", "elem45"], ["site", "site"], ["elem1", "elem2"],
- "rogue_destiny2.ogg", ambience="rain.mp3", environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
- data_map_destiny19 = generalMapJson(map_destiny19_se,
- ["site", "site", "site", "site", "site", "site", "site", "site", "common",
- "common", "forest", "forest", "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem9", "elem10", "elem5", "elem6",
- "elem69", "elem75", "elem42", "elem43", "elem44", "elem45"],
- ["common", "common", "common", "exploration"],
- ["elem42", "elem101", "elem104", "elem106"], ["site", "site"],
- ["elem2", "elem1"], "rogue_destiny2.ogg", final_point_destiny_19,
- final_cube_destiny_19, district_destiny_19, ["fog", "fog"],
- ["elem39", "elem39"], final_fog_destiny_19, ambience="rain.mp3",
- environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000],
- ["Level3x3RandomThunder", [800, 3], 5600, 8000]])
- data_att_destiny19 = OptionalMapJson(direction_19,
- ["site", "site", "site", "site", "site", "site", "site", "site", "common",
- "common", "forest", "forest", "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem9", "elem10", "elem5", "elem6",
- "elem69", "elem75", "elem42", "elem43", "elem44", "elem45"], ["site", "site"],
- ["elem2", "elem1"], "rogue_destiny2.ogg", ambience="rain.mp3",
- environment="rain",
- level_skill=[["Level3x3RandomThunder", [800, 3], 5000, 8000]])
- data_map_destiny20 = destiny_boss_map_json()
- data_att_destiny20 = FinalMapJson(direction_20,
- ["site", "site", "site", "site", "site", "site", "site", "site", "common",
- "common", "forest", "forest", "forest", "forest"],
- ["elem4", "elem3", "elem7", "elem8", "elem9", "elem10", "elem5", "elem6",
- "elem69", "elem75", "elem42", "elem43", "elem44", "elem45"], ["site", "site"],
- ["elem2", "elem1"], "rogue_destiny3.ogg", ambience="rain.mp3", environment="rain")
- # 深海结局
- data_map_ocean16 = generalMapJson(map_ocean16_se, ["mine", "mine", "mine", "ocean", "ocean", "ocean"],
- ["elem207", "elem201", "elem202", "elem115", "elem118", "elem206"],
- ["ocean", "ocean"], ["elem14", "elem202"], ["ocean", "ocean"],
- ["elem51", "elem61"], "ocean4.ogg", final_point_ocean_16, final_cube_ocean_16,
- district_ocean_16, ["ocean", "ocean", "ocean", "ocean"],
- ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_16,
- ambience="ocean.mp3")
- data_att_ocean16 = OptionalMapJson(direction_16, ["mine"], ["elem201"], ["ocean"], ["elem51"], "ocean4.ogg",
- ambience="ocean.mp3")
- data_map_ocean17 = generalMapJson(map_ocean17_se, ["mine", "mine", "mine", "ocean"],
- ["elem207", "elem201", "elem202", "elem206"], ["ocean"], ["elem202"],
- ["ocean", "ocean"], ["elem51", "elem61"], "ocean4.ogg", final_point_ocean_17,
- final_cube_ocean_17, district_ocean_17, ["ocean", "ocean", "ocean", "ocean"],
- ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_17,
- ambience="ocean.mp3")
- data_att_ocean17 = OptionalMapJson(direction_17, ["mine"], ["elem201"], ["ocean"], ["elem51"], "ocean4.ogg",
- ambience="ocean.mp3")
- data_map_ocean18 = generalMapJson(map_ocean18_se, ["ocean", "ocean", "ocean", "ocean", "mine", "mine", "ocean"],
- ["elem161", "elem161", "elem161", "elem161", "elem201", "elem202", "elem206"],
- ["ocean", "ocean"], ["elem202", "elem203"], ["ocean", "ocean"],
- ["elem152", "elem154"], "ocean14.ogg", final_point_ocean_18, final_cube_ocean_18,
- district_ocean_18, ["ocean", "ocean", "ocean", "ocean"],
- ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_18,
- ambience="ocean.mp3")
- data_att_ocean18 = OptionalMapJson(direction_18, ["ocean"], ["elem161"], ["ocean"], ["elem152"], "ocean14.ogg",
- ambience="ocean.mp3")
- data_map_ocean19 = generalMapJson(map_ocean19_se, ["ocean", "ocean", "ocean", "ocean", "mine", "mine", "ocean"],
- ["elem161", "elem161", "elem161", "elem161", "elem201", "elem202", "elem206"],
- ["ocean", "ocean"], ["elem203", "elem202"], ["ocean", "ocean"],
- ["elem154", "elem152"], "ocean14.ogg", final_point_ocean_19, final_cube_ocean_19,
- district_ocean_19, ["ocean", "ocean", "ocean", "ocean"],
- ["elem105", "elem101", "elem811", "elem811"], final_fog_ocean_19,
- ambience="ocean.mp3")
- data_att_ocean19 = OptionalMapJson(direction_19, ["ocean"], ["elem161"], ["ocean"], ["elem154"], "ocean14.ogg",
- ambience="ocean.mp3")
- data_map_ocean20 = ocean_boss_map_json()
- data_att_ocean20 = FinalMapJson(direction_20, ["ocean"], ["elem161"], ["ocean"], ["elem154"], "ocean13.ogg",
- ambience="ocean.mp3")
- # 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")
- # data_att1 = OptionalMapJson(direction_1, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg", ambience="ocean.mp3")
- # 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")
- # data_att2 = OptionalMapJson(direction_2, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg", ambience="ocean.mp3")
- # 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")
- # data_att3 = OptionalMapJson(direction_3, ["ocean"], ["elem7"], ["ocean"], ["elem56"], "ocean1.ogg", ambience="ocean.mp3")
- # 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")
- # data_att4 = OptionalMapJson(direction_4, ["mine"], ["elem207"], ["ocean"], ["elem56"], "ocean2.mp3", ambience="ocean.mp3")
- # 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")
- # data_att5 = OptionalMapJson(direction_5, ["mine"], ["elem207"], ["ocean"], ["elem56"], "ocean2.mp3", must_speed = True, ambience="ocean.mp3")
- R.general_mon_dic = {"1": {"normal": [], "elite": []}, "2": {"normal": [], "elite": []},
- "3": {"normal": [], "elite": []}, "4": {"normal": [], "elite": []}}
- for i, dic in enumerate([theme_1, theme_2, theme_3]):
- for key, value in dic.items():
- if value['type'] == 'normal':
- R.general_mon_dic[str(i + 1)]["normal"].append(key)
- if value['type'] == 'elite':
- R.general_mon_dic[str(i + 1)]["elite"].append(key)
- # 获取当前文件的路径
- current_folder_path = os.getcwd()
- # 获取父级文件夹的路径
- parent_folder_path = os.path.dirname(current_folder_path)
- # 获取父父级文件夹的路径
- pparent_folder_path = current_folder_path
- # pparent_folder_path = os.path.dirname(parent_folder_path)
- # 数据写入
- R.map_json_dic["rogueMap1"] = data_map1
- R.map_json_dic["rogueMap2"] = data_map2
- R.map_json_dic["rogueMap3"] = data_map3
- R.map_json_dic["rogueMap4"] = data_map4
- R.map_json_dic["rogueMap5"] = data_map5
- R.map_json_dic["rogueMap6"] = data_map6
- R.map_json_dic["rogueMap7"] = data_map7
- R.map_json_dic["rogueMap8"] = data_map8
- R.map_json_dic["rogueMap9"] = data_map9
- R.map_json_dic["rogueMap10"] = data_map10
- R.map_json_dic["rogueMap11"] = data_map11
- R.map_json_dic["rogueMap12"] = data_map12
- R.map_json_dic["rogueMap13"] = data_map13
- R.map_json_dic["rogueMap14"] = data_map14
- R.map_json_dic["rogueMap15"] = data_map15
- R.map_json_dic["rogueMap16_eden"] = data_map_eden16
- R.map_json_dic["rogueMap17_eden"] = data_map_eden17
- R.map_json_dic["rogueMap18_eden"] = data_map_eden18
- R.map_json_dic["rogueMap19_eden"] = data_map_eden19
- R.map_json_dic["rogueMap20_eden"] = data_map_eden20
- R.map_json_dic["rogueMap16_destiny"] = data_map_destiny16
- R.map_json_dic["rogueMap17_destiny"] = data_map_destiny17
- R.map_json_dic["rogueMap18_destiny"] = data_map_destiny18
- R.map_json_dic["rogueMap19_destiny"] = data_map_destiny19
- R.map_json_dic["rogueMap20_destiny"] = data_map_destiny20
- R.map_json_dic["rogueMap16_ocean"] = data_map_ocean16
- R.map_json_dic["rogueMap17_ocean"] = data_map_ocean17
- R.map_json_dic["rogueMap18_ocean"] = data_map_ocean18
- R.map_json_dic["rogueMap19_ocean"] = data_map_ocean19
- R.map_json_dic["rogueMap20_ocean"] = data_map_ocean20
- R.map_json_dic["rogueAttMap1"] = data_att1
- R.map_json_dic["rogueAttMap2"] = data_att2
- R.map_json_dic["rogueAttMap3"] = data_att3
- R.map_json_dic["rogueAttMap4"] = data_att4
- R.map_json_dic["rogueAttMap5"] = data_att5
- R.map_json_dic["rogueAttMap6"] = data_att6
- R.map_json_dic["rogueAttMap7"] = data_att7
- R.map_json_dic["rogueAttMap8"] = data_att8
- R.map_json_dic["rogueAttMap9"] = data_att9
- R.map_json_dic["rogueAttMap10"] = data_att10
- R.map_json_dic["rogueAttMap11"] = data_att11
- R.map_json_dic["rogueAttMap12"] = data_att12
- R.map_json_dic["rogueAttMap13"] = data_att13
- R.map_json_dic["rogueAttMap14"] = data_att14
- R.map_json_dic["rogueAttMap15"] = data_att15
- R.map_json_dic["rogueAttMap15_continue"] = data_att_continue15
- R.map_json_dic["rogueAttMap16_eden"] = data_att_eden16
- R.map_json_dic["rogueAttMap17_eden"] = data_att_eden17
- R.map_json_dic["rogueAttMap18_eden"] = data_att_eden18
- R.map_json_dic["rogueAttMap19_eden"] = data_att_eden19
- R.map_json_dic["rogueAttMap20_eden"] = data_att_eden20
- R.map_json_dic["rogueAttMap16_destiny"] = data_att_destiny16
- R.map_json_dic["rogueAttMap17_destiny"] = data_att_destiny17
- R.map_json_dic["rogueAttMap18_destiny"] = data_att_destiny18
- R.map_json_dic["rogueAttMap19_destiny"] = data_att_destiny19
- R.map_json_dic["rogueAttMap20_destiny"] = data_att_destiny20
- R.map_json_dic["rogueAttMap16_ocean"] = data_att_ocean16
- R.map_json_dic["rogueAttMap17_ocean"] = data_att_ocean17
- R.map_json_dic["rogueAttMap18_ocean"] = data_att_ocean18
- R.map_json_dic["rogueAttMap19_ocean"] = data_att_ocean19
- R.map_json_dic["rogueAttMap20_ocean"] = data_att_ocean20
- '''
- # 获取当前文件的路径
- current_folder_path = os.getcwd()
- # 获取父级文件夹的路径
- parent_folder_path = os.path.dirname(current_folder_path)
- # 获取父父级文件夹的路径
- pparent_folder_path = current_folder_path
- # pparent_folder_path = os.path.dirname(parent_folder_path)
- # 数据写入
- with open(pparent_folder_path+"/game/map"+"/rogueMap9.json", "w") as outfile:
- json.dump(data_map9, outfile, indent=2, ensure_ascii=False)
- with open(pparent_folder_path+"/game/map"+"/rogueMap10.json", "w") as outfile:
- json.dump(data_map10, outfile, indent=2, ensure_ascii=False)
- 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')
- plt.gca().invert_yaxis()
- plt.xlim([-1,63])
- plt.ylim([-1,63])
- plt.xlabel('X')
- plt.ylabel('Y')
- plt.title('Path on 62x62 Grid')
- plt.show()
- '''
|