index.js 786 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738
  1. window.__require = function t(e, o, i) {
  2. function n(c, a) {
  3. if (!o[c]) {
  4. if (!e[c]) {
  5. var s = c.split("/");
  6. s = s[s.length - 1];
  7. if (!e[s]) {
  8. var p = "function" == typeof __require && __require;
  9. if (!a && p) return p(s, !0);
  10. if (r) return r(s, !0);
  11. throw new Error("Cannot find module '" + c + "'");
  12. }
  13. c = s;
  14. }
  15. var l = o[c] = {
  16. exports: {}
  17. };
  18. e[c][0].call(l.exports, function(t) {
  19. return n(e[c][1][t] || t);
  20. }, l, l.exports, t, e, o, i);
  21. }
  22. return o[c].exports;
  23. }
  24. for (var r = "function" == typeof __require && __require, c = 0; c < i.length; c++) n(i[c]);
  25. return n;
  26. }({
  27. AIBase: [ function(t, e, o) {
  28. "use strict";
  29. cc._RF.push(e, "884851NW4JDEbZlM+S7icPi", "AIBase");
  30. var i, n = this && this.__extends || (i = function(t, e) {
  31. return (i = Object.setPrototypeOf || {
  32. __proto__: []
  33. } instanceof Array && function(t, e) {
  34. t.__proto__ = e;
  35. } || function(t, e) {
  36. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  37. })(t, e);
  38. }, function(t, e) {
  39. i(t, e);
  40. function o() {
  41. this.constructor = t;
  42. }
  43. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  44. }), r = this && this.__decorate || function(t, e, o, i) {
  45. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  46. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  47. return r > 3 && c && Object.defineProperty(e, o, c), c;
  48. };
  49. Object.defineProperty(o, "__esModule", {
  50. value: !0
  51. });
  52. var c = t("../../../../util/CMath"), a = t("../FSprite"), s = t("../skill/SkillBase"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  53. n(e, t);
  54. function e() {
  55. var e = null !== t && t.apply(this, arguments) || this;
  56. e.AI_CD = 100;
  57. e.atk_CD = 3e3;
  58. e.atk_count = 1;
  59. e.speed = 50;
  60. e.skills = null;
  61. e.AI_Time = 0;
  62. e.atk_Time = 0;
  63. e.canSkill = !0;
  64. return e;
  65. }
  66. e.prototype.onLoad = function() {
  67. this.sprite = this.node.getComponent(a.default);
  68. this.sprite.SPEED_WALK = this.speed;
  69. this.skills = this.node.getComponents(s.default);
  70. };
  71. e.prototype.setTarget = function(t) {
  72. t != this.target && (this.target = t);
  73. };
  74. e.prototype.checkTarget = function() {
  75. this.target && this.target.isValid && this.target.hp > 0 || (this.target = this.sprite.findEnemy(3e3).sprite);
  76. return this.target;
  77. };
  78. e.prototype.update = function() {
  79. if (this.sprite && this.sprite.isActive) {
  80. if (this.sprite.gamePause) return;
  81. this.AI();
  82. }
  83. };
  84. e.prototype.AI = function() {
  85. var t = this;
  86. if (this.canSkill) {
  87. var e = new Date().getTime(), o = this.checkTarget();
  88. if (o) {
  89. if (this.skills.length > 0) {
  90. var i = this.checkSkill(o);
  91. if (i) {
  92. this.canSkill = !1;
  93. i.exe(o, function() {
  94. t.canSkill = !0;
  95. });
  96. } else if (0 == this.AI_Time) this.AI_Time = e; else if (e - this.AI_Time > this.AI_CD) {
  97. this.AI_Time = e;
  98. this.walk(this.sprite.mButtleDis);
  99. }
  100. } else if (e - this.atk_Time > this.atk_CD) {
  101. this.atk_Time = e;
  102. this.fire(o);
  103. }
  104. } else if (0 == this.AI_Time) this.AI_Time = e; else if (e - this.AI_Time > this.AI_CD) {
  105. this.AI_Time = e;
  106. this.walk(this.sprite.mButtleDis);
  107. }
  108. }
  109. };
  110. e.prototype.checkSkill = function(t) {
  111. for (var e = [], o = 0; o < this.skills.length; o++) (p = this.skills[o]).ready() && e.push(p);
  112. if (e.length <= 0) return null;
  113. var i = this.node.getPosition(), n = t.node.getPosition(), r = cc.Vec2.distance(i, n), s = [];
  114. for (o = 0; o < e.length; o++) {
  115. var p;
  116. r < (p = e[o]).range && s.push(p);
  117. }
  118. if (s.length <= 0) {
  119. this.moveToTarget(t);
  120. return null;
  121. }
  122. this.sprite.playAction(a.SpriteActionType.stand, !0);
  123. return s[c.default.getRandom(0, s.length - 1)];
  124. };
  125. e.prototype.moveToTarget = function(t) {
  126. this.sprite.playAction(a.SpriteActionType.move, !0);
  127. var e = t.node.getPosition(), o = this.sprite.node.getPosition();
  128. this.atk_Time = 0;
  129. var i = {
  130. x: 0,
  131. y: 0
  132. }, n = e.x - o.x;
  133. Math.abs(n) < 50 ? i.x = 0 : i.x = n > 0 ? 1 : -1;
  134. var r = e.y - o.y;
  135. Math.abs(r) < 50 ? i.y = 0 : i.y = r > 0 ? 1 : -1;
  136. this.sprite.setDir(i);
  137. };
  138. e.prototype.fire = function(t) {
  139. var e = this, o = this.sprite.mButtleDis, i = t.node.getPosition(), n = this.sprite.node.getPosition();
  140. if (cc.Vec2.distance(i, n) > o) this.moveToTarget(t); else {
  141. this.sprite.setDir({
  142. x: 0,
  143. y: 0
  144. });
  145. this.sprite.setShooting(!0);
  146. var r = 0;
  147. this.canSkill = !1;
  148. this.sprite.setFireCallback(function() {
  149. if (++r >= e.atk_count) {
  150. e.sprite.setShooting(!1);
  151. e.sprite.setFireCallback(null);
  152. cc.tween(e).delay(.7).call(function() {
  153. e.walk(e.sprite.mButtleDis);
  154. }).start();
  155. }
  156. });
  157. }
  158. };
  159. e.prototype.walk = function(t) {
  160. var e = this;
  161. cc.tween(this).delay(0).call(function() {
  162. e.sprite.setDir(e.getRandState(t));
  163. e.sprite.playAction(a.SpriteActionType.move, !0);
  164. }).delay(.5).call(function() {
  165. e.canSkill = !0;
  166. e.sprite.setDir({
  167. x: 0,
  168. y: 0
  169. });
  170. e.sprite.playAction(a.SpriteActionType.stand, !0);
  171. }).start();
  172. };
  173. e.prototype.getRandState = function() {
  174. if (this.target && this.target.isValid && this.target.hp > 0) {
  175. var t = this.target.node.getPosition(), e = this.sprite.node.getPosition();
  176. this.sprite.mButtleDis;
  177. if (c.default.getDistance(t, e) > 150) {
  178. var o = {
  179. x: 0,
  180. y: 0
  181. }, i = t.x - e.x;
  182. Math.abs(i) < 50 ? o.x = 0 : o.x = i > 0 ? 1 : -1;
  183. var n = t.y - e.y;
  184. Math.abs(n) < 50 ? o.y = 0 : o.y = n > 0 ? 1 : -1;
  185. return o;
  186. }
  187. }
  188. var r = c.default.getRandom(1, 80);
  189. return r < 10 ? {
  190. x: 1,
  191. y: 0
  192. } : r < 20 ? {
  193. x: 1,
  194. y: 1
  195. } : r < 30 ? {
  196. x: 1,
  197. y: -1
  198. } : r < 40 ? {
  199. x: 0,
  200. y: 1
  201. } : r < 50 ? {
  202. x: 0,
  203. y: -1
  204. } : r < 60 ? {
  205. x: -1,
  206. y: 0
  207. } : {
  208. x: -1,
  209. y: 1
  210. };
  211. };
  212. r([ u({
  213. displayName: "灵敏度(毫秒)"
  214. }) ], e.prototype, "AI_CD", void 0);
  215. r([ u({
  216. displayName: "攻击间隔(毫秒)"
  217. }) ], e.prototype, "atk_CD", void 0);
  218. r([ u({
  219. displayName: "每次攻击子弹数量"
  220. }) ], e.prototype, "atk_count", void 0);
  221. r([ u({
  222. displayName: "移动速度"
  223. }) ], e.prototype, "speed", void 0);
  224. return r([ l ], e);
  225. }(cc.Component);
  226. o.default = f;
  227. cc._RF.pop();
  228. }, {
  229. "../../../../util/CMath": "CMath",
  230. "../FSprite": "FSprite",
  231. "../skill/SkillBase": "SkillBase"
  232. } ],
  233. AIPet: [ function(t, e, o) {
  234. "use strict";
  235. cc._RF.push(e, "57f41f69VZBJb5EdgxEpidd", "AIPet");
  236. var i, n = this && this.__extends || (i = function(t, e) {
  237. return (i = Object.setPrototypeOf || {
  238. __proto__: []
  239. } instanceof Array && function(t, e) {
  240. t.__proto__ = e;
  241. } || function(t, e) {
  242. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  243. })(t, e);
  244. }, function(t, e) {
  245. i(t, e);
  246. function o() {
  247. this.constructor = t;
  248. }
  249. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  250. }), r = this && this.__decorate || function(t, e, o, i) {
  251. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  252. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  253. return r > 3 && c && Object.defineProperty(e, o, c), c;
  254. };
  255. Object.defineProperty(o, "__esModule", {
  256. value: !0
  257. });
  258. var c = t("../FSprite"), a = t("./AIBase"), s = cc._decorator, p = s.ccclass, l = (s.property,
  259. function(t) {
  260. n(e, t);
  261. function e() {
  262. return null !== t && t.apply(this, arguments) || this;
  263. }
  264. e.prototype.onLoad = function() {
  265. t.prototype.onLoad.call(this);
  266. this.atk_CD = 3e3;
  267. this.speed = 120;
  268. this.atk_count = 3;
  269. this.sprite.SPEED_WALK = this.speed;
  270. };
  271. e.prototype.update = function() {
  272. if (this.sprite) {
  273. if (this.sprite.gamePause) return;
  274. this.AI();
  275. }
  276. };
  277. e.prototype.AI = function() {
  278. var t = this, e = this.checkTarget();
  279. if (e) {
  280. var o = new Date().getTime();
  281. this.sprite.stopFollow();
  282. if (this.sprite.isActive) if (this.skills.length > 0) {
  283. var i = this.checkSkill(e);
  284. if (i) {
  285. this.canSkill = !1;
  286. i.exe(e, function() {
  287. t.canSkill = !0;
  288. });
  289. }
  290. } else if (o - this.atk_Time > this.atk_CD) {
  291. this.atk_Time = o;
  292. this.fire(e);
  293. }
  294. } else this.sprite.startFollow();
  295. };
  296. e.prototype.fire = function(t) {
  297. var e = this, o = this.sprite.mButtleDis, i = t.node.getPosition(), n = this.sprite.node.getPosition();
  298. if (cc.Vec2.distance(i, n) > o) {
  299. this.atk_Time = 0;
  300. var r = {
  301. x: 0,
  302. y: 0
  303. }, a = i.x - n.x;
  304. Math.abs(a) < 50 ? r.x = 0 : r.x = a > 0 ? 1 : -1;
  305. var s = i.y - n.y;
  306. Math.abs(s) < 50 ? r.y = 0 : r.y = s > 0 ? 1 : -1;
  307. this.sprite.setDir(r);
  308. } else {
  309. this.sprite.setDir({
  310. x: 0,
  311. y: 0
  312. });
  313. this.sprite.status = c.SpriteType.NONE;
  314. this.sprite.setShooting(!0);
  315. var p = 0;
  316. this.sprite.setFireCallback(function() {
  317. if (++p >= e.atk_count) {
  318. e.sprite.setShooting(!1);
  319. e.sprite.setFireCallback(null);
  320. cc.tween(e).delay(.7).call(function() {
  321. e.walk(e.sprite.mButtleDis);
  322. }).start();
  323. }
  324. });
  325. }
  326. };
  327. return r([ p ], e);
  328. }(a.default));
  329. o.default = l;
  330. cc._RF.pop();
  331. }, {
  332. "../FSprite": "FSprite",
  333. "./AIBase": "AIBase"
  334. } ],
  335. Adapter: [ function(t, e, o) {
  336. "use strict";
  337. cc._RF.push(e, "7d960ysRr9KlbQ4MbYsl6fv", "Adapter");
  338. var i, n = this && this.__extends || (i = function(t, e) {
  339. return (i = Object.setPrototypeOf || {
  340. __proto__: []
  341. } instanceof Array && function(t, e) {
  342. t.__proto__ = e;
  343. } || function(t, e) {
  344. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  345. })(t, e);
  346. }, function(t, e) {
  347. i(t, e);
  348. function o() {
  349. this.constructor = t;
  350. }
  351. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  352. }), r = this && this.__decorate || function(t, e, o, i) {
  353. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  354. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  355. return r > 3 && c && Object.defineProperty(e, o, c), c;
  356. };
  357. Object.defineProperty(o, "__esModule", {
  358. value: !0
  359. });
  360. var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) {
  361. n(e, t);
  362. function e() {
  363. return null !== t && t.apply(this, arguments) || this;
  364. }
  365. e.prototype.onLoad = function() {
  366. var t = this.node.getComponent(cc.Widget);
  367. t && (t.target = cc.Canvas.instance.node);
  368. };
  369. return r([ a ], e);
  370. }(cc.Component));
  371. o.default = s;
  372. cc._RF.pop();
  373. }, {} ],
  374. AdminLogin: [ function(t, e, o) {
  375. "use strict";
  376. cc._RF.push(e, "ffbd1CZBN9Kkrbc6LCUAeYw", "AdminLogin");
  377. var i, n = this && this.__extends || (i = function(t, e) {
  378. return (i = Object.setPrototypeOf || {
  379. __proto__: []
  380. } instanceof Array && function(t, e) {
  381. t.__proto__ = e;
  382. } || function(t, e) {
  383. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  384. })(t, e);
  385. }, function(t, e) {
  386. i(t, e);
  387. function o() {
  388. this.constructor = t;
  389. }
  390. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  391. }), r = this && this.__decorate || function(t, e, o, i) {
  392. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  393. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  394. return r > 3 && c && Object.defineProperty(e, o, c), c;
  395. };
  396. Object.defineProperty(o, "__esModule", {
  397. value: !0
  398. });
  399. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  400. n(e, t);
  401. function e() {
  402. var e = null !== t && t.apply(this, arguments) || this;
  403. e.mId = null;
  404. e.mToken = null;
  405. return e;
  406. }
  407. o = e;
  408. e.prototype.onclick = function() {
  409. o.userData = {
  410. id: parseInt(this.mId.string),
  411. token: this.mToken.string,
  412. zone: null
  413. };
  414. cc.director.loadScene("main");
  415. };
  416. var o;
  417. r([ s(cc.EditBox) ], e.prototype, "mId", void 0);
  418. r([ s(cc.EditBox) ], e.prototype, "mToken", void 0);
  419. return o = r([ a ], e);
  420. }(cc.Component);
  421. o.default = p;
  422. cc._RF.pop();
  423. }, {} ],
  424. AllArea: [ function(t, e, o) {
  425. "use strict";
  426. cc._RF.push(e, "442ddMo2cxCKb66SaE8dNyI", "AllArea");
  427. var i, n = this && this.__extends || (i = function(t, e) {
  428. return (i = Object.setPrototypeOf || {
  429. __proto__: []
  430. } instanceof Array && function(t, e) {
  431. t.__proto__ = e;
  432. } || function(t, e) {
  433. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  434. })(t, e);
  435. }, function(t, e) {
  436. i(t, e);
  437. function o() {
  438. this.constructor = t;
  439. }
  440. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  441. }), r = this && this.__decorate || function(t, e, o, i) {
  442. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  443. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  444. return r > 3 && c && Object.defineProperty(e, o, c), c;
  445. };
  446. Object.defineProperty(o, "__esModule", {
  447. value: !0
  448. });
  449. var c = t("../main/ViewObject"), a = t("./item/ZoneItem"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  450. n(e, t);
  451. function e() {
  452. var e = null !== t && t.apply(this, arguments) || this;
  453. e.mContent = null;
  454. e.mZoneItem = null;
  455. return e;
  456. }
  457. e.prototype.onLoad = function() {
  458. for (var t = this.area.zones, e = 0; e < t.length; e++) {
  459. var o = t[e];
  460. this.addItem(o);
  461. }
  462. };
  463. e.prototype.addItem = function(t) {
  464. var e = this, o = cc.instantiate(this.mZoneItem), i = o.getComponent(a.default);
  465. i.zone = t;
  466. o.parent = this.mContent;
  467. i.setCallback(function(t) {
  468. e.area.setOptZone(t.zone);
  469. e.__distroyAll();
  470. });
  471. };
  472. r([ l(cc.Node) ], e.prototype, "mContent", void 0);
  473. r([ l(cc.Prefab) ], e.prototype, "mZoneItem", void 0);
  474. return r([ p ], e);
  475. }(c.default);
  476. o.default = u;
  477. cc._RF.pop();
  478. }, {
  479. "../main/ViewObject": "ViewObject",
  480. "./item/ZoneItem": "ZoneItem"
  481. } ],
  482. Area: [ function(t, e, o) {
  483. "use strict";
  484. cc._RF.push(e, "7b829q5VnZH55FfO6H4cJ96", "Area");
  485. var i, n = this && this.__extends || (i = function(t, e) {
  486. return (i = Object.setPrototypeOf || {
  487. __proto__: []
  488. } instanceof Array && function(t, e) {
  489. t.__proto__ = e;
  490. } || function(t, e) {
  491. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  492. })(t, e);
  493. }, function(t, e) {
  494. i(t, e);
  495. function o() {
  496. this.constructor = t;
  497. }
  498. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  499. }), r = this && this.__decorate || function(t, e, o, i) {
  500. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  501. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  502. return r > 3 && c && Object.defineProperty(e, o, c), c;
  503. };
  504. Object.defineProperty(o, "__esModule", {
  505. value: !0
  506. });
  507. var c = t("../game/data/udata/Player"), a = t("../main/ViewManage"), s = t("../main/ViewObject"), p = t("../plot/PlotHome"), l = t("../util/CHttp"), u = t("../util/CMath"), f = cc._decorator, h = f.ccclass, d = f.property, m = function(t) {
  508. n(e, t);
  509. function e() {
  510. var e = null !== t && t.apply(this, arguments) || this;
  511. e.mZoneName = null;
  512. e.zones = null;
  513. e.roles = null;
  514. e.gameServer = null;
  515. return e;
  516. }
  517. e.prototype.onLoad = function() {
  518. this.loadZone();
  519. };
  520. e.prototype.start = function() {
  521. this.opentap_set_Ann();
  522. };
  523. e.prototype.loadZone = function() {
  524. var t = this, e = this.main.loginHttp, o = {
  525. channel: this.main.profile.mChannel.toString(),
  526. userId: this.main.userData.id.toString()
  527. };
  528. this.main.startLoad();
  529. e.sendForm("/getZone", o, function(e, o) {
  530. t.main.stopLoad();
  531. if (e == l.HttpStateType.SUCCESS) {
  532. t.zones = o.zones;
  533. t.roles = o.roles;
  534. t.gameServer = o.gameServer;
  535. t.init();
  536. } else t.main.showTips("网络异常");
  537. });
  538. };
  539. e.prototype.onclickBack = function() {
  540. this.exitDistroy();
  541. };
  542. e.prototype.init = function() {
  543. var t = this.getOptZone();
  544. this.setOptZone(t);
  545. };
  546. e.prototype.setOptZone = function(t) {
  547. this.main.userData.zone = t;
  548. this.mZoneName.string = t.name;
  549. };
  550. e.prototype.getZoneById = function(t) {
  551. if (null == this.zones) return null;
  552. for (var e = 0; e < this.zones.length; e++) {
  553. var o = this.zones[e];
  554. if (o.id == t) return o;
  555. }
  556. return null;
  557. };
  558. e.prototype.getOptZone = function() {
  559. var t = null;
  560. return (t = this.getLatelyZone()) ? t : (t = this.getRecZone()) || this.zones[u.default.getRandom(0, this.zones.length - 1)];
  561. };
  562. e.prototype.getLatelyZone = function() {
  563. if (null == this.roles) return null;
  564. for (var t = null, e = 0; e < this.roles.length; e++) {
  565. var o = this.roles[e];
  566. null == t ? t = o : o.time > t.time && (t = o);
  567. }
  568. return this.getZoneById(t.zoneId);
  569. };
  570. e.prototype.getRecZone = function() {
  571. if (null == this.zones) return null;
  572. for (var t = [], e = 0; e < this.zones.length; e++) {
  573. var o = this.zones[e];
  574. o.rec && t.push(o);
  575. }
  576. return t.length <= 0 ? null : t[u.default.getRandom(0, t.length - 1)];
  577. };
  578. e.prototype.openHistoryArea = function() {
  579. var t = this;
  580. this.main.startLoad();
  581. this.main.viewManage.loadFunc(a.GameViewType.historyArea, function(e) {
  582. e.area = t;
  583. e.show();
  584. t.main.stopLoad();
  585. });
  586. };
  587. e.prototype.onclickOK = function() {
  588. var t = this, e = this.main.userData, o = this.main.userData.zone, i = new l.default(this.gameServer + "/H" + o.hardwareId + "/"), n = {
  589. channel: this.main.profile.mChannel,
  590. channelAttr: "测试",
  591. id: e.id,
  592. token: e.token,
  593. zoneId: o.id
  594. };
  595. this.main.startLoad();
  596. i.token = "08f0656590e33d39021d41714994383d";
  597. i.sendJson("login", n, function(e, o) {
  598. t.main.stopLoad();
  599. if (e == l.HttpStateType.SUCCESS) if (0 == o.retCode) {
  600. t.main.player = new c.default(o.data);
  601. i.token = t.main.player.role.token;
  602. i.id = t.main.player.role.id;
  603. i.userId = t.main.userData.id;
  604. t.main.gameHttp = i;
  605. t.main.gameHttp.unshiftEvent(t.main.player);
  606. o.data.isNew ? t.openPlot() : t.openHome(t.main);
  607. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  608. });
  609. };
  610. e.prototype.openHome = function(t) {
  611. var e = this;
  612. t.viewManage.loadFunc(a.GameViewType.home, function(t) {
  613. e.__distroyAll();
  614. t.node.getComponent(p.default).openMenu();
  615. t.show();
  616. });
  617. };
  618. e.prototype.openPlot = function() {
  619. var t = this, e = this.main;
  620. this.main.viewManage.loadFunc(a.GameViewType.plot_view, function(o) {
  621. t.__distroyAll();
  622. o.setCloseCallback(function() {
  623. e.viewManage.loadFunc(a.GameViewType.home, function(t) {
  624. t.node.getComponent(p.default).exDialog();
  625. t.show();
  626. });
  627. });
  628. o.show();
  629. });
  630. };
  631. e.prototype.opentap_set_Ann = function() {
  632. this.main.viewManage.loadFunc(a.GameViewType.tap_set_Ann, function(t) {
  633. t.show();
  634. });
  635. };
  636. r([ d(cc.Label) ], e.prototype, "mZoneName", void 0);
  637. return r([ h ], e);
  638. }(s.default);
  639. o.default = m;
  640. cc._RF.pop();
  641. }, {
  642. "../game/data/udata/Player": "Player",
  643. "../main/ViewManage": "ViewManage",
  644. "../main/ViewObject": "ViewObject",
  645. "../plot/PlotHome": "PlotHome",
  646. "../util/CHttp": "CHttp",
  647. "../util/CMath": "CMath"
  648. } ],
  649. BBObject: [ function(t, e, o) {
  650. "use strict";
  651. cc._RF.push(e, "bafd5c2oApEG68YzTvq5kF1", "BBObject");
  652. var i, n = this && this.__extends || (i = function(t, e) {
  653. return (i = Object.setPrototypeOf || {
  654. __proto__: []
  655. } instanceof Array && function(t, e) {
  656. t.__proto__ = e;
  657. } || function(t, e) {
  658. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  659. })(t, e);
  660. }, function(t, e) {
  661. i(t, e);
  662. function o() {
  663. this.constructor = t;
  664. }
  665. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  666. }), r = this && this.__decorate || function(t, e, o, i) {
  667. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  668. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  669. return r > 3 && c && Object.defineProperty(e, o, c), c;
  670. };
  671. Object.defineProperty(o, "__esModule", {
  672. value: !0
  673. });
  674. var c = t("../object/FSprite"), a = t("./BObject"), s = cc._decorator, p = s.ccclass, l = (s.property,
  675. function(t) {
  676. n(e, t);
  677. function e() {
  678. var e = null !== t && t.apply(this, arguments) || this;
  679. e.isOver = !1;
  680. return e;
  681. }
  682. e.prototype.onBeginContact = function(t, e, o) {
  683. if (!this.isOver && e.node == this.node) if (0 != o.tag) ; else if ("map" == o.node.group) {
  684. this.isOver = !0;
  685. this.__destroy();
  686. } else if (this.sprite && this.sprite.isValid && this.sprite.hp > 0 && this.sprite.node.group != o.node.group && e.isValid && o.node.isValid) {
  687. this.isOver = !0;
  688. this.__destroy();
  689. }
  690. };
  691. e.prototype.__destroy = function() {
  692. t.prototype.__destroy.call(this);
  693. this.roundHit();
  694. };
  695. e.prototype.roundHit = function() {
  696. for (var e = this.sprite.ff, o = this.sprite.getEnemyGroup(), i = e.mMap.getSprites(), n = 0; n < i.length; n++) {
  697. var r = i[n], a = r.getComponent(c.default);
  698. if (a && r.active && a.isActive && a.hp > 0 && a.node.group == o && cc.Vec2.distance(this.node.getPosition(), r.getPosition()) < 300 && a.hp > 0 && null != a && a.isActive) {
  699. this.sprite.atkjs(a, this._skillData);
  700. t.prototype.__destroy.call(this);
  701. }
  702. }
  703. };
  704. return r([ p ], e);
  705. }(a.default));
  706. o.default = l;
  707. cc._RF.pop();
  708. }, {
  709. "../object/FSprite": "FSprite",
  710. "./BObject": "BObject"
  711. } ],
  712. BEffect: [ function(t, e, o) {
  713. "use strict";
  714. cc._RF.push(e, "b93aaZF26dGZ7IBfbQkVWx/", "BEffect");
  715. var i, n = this && this.__extends || (i = function(t, e) {
  716. return (i = Object.setPrototypeOf || {
  717. __proto__: []
  718. } instanceof Array && function(t, e) {
  719. t.__proto__ = e;
  720. } || function(t, e) {
  721. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  722. })(t, e);
  723. }, function(t, e) {
  724. i(t, e);
  725. function o() {
  726. this.constructor = t;
  727. }
  728. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  729. }), r = this && this.__decorate || function(t, e, o, i) {
  730. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  731. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  732. return r > 3 && c && Object.defineProperty(e, o, c), c;
  733. };
  734. Object.defineProperty(o, "__esModule", {
  735. value: !0
  736. });
  737. var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) {
  738. n(e, t);
  739. function e() {
  740. return null !== t && t.apply(this, arguments) || this;
  741. }
  742. e.prototype.start = function() {
  743. var t = this, e = this.node.getComponent(dragonBones.ArmatureDisplay);
  744. e && e.addEventListener(dragonBones.EventObject.LOOP_COMPLETE, function() {
  745. t.node.destroy();
  746. }, this);
  747. if (this.node.children.length > 0) {
  748. var o = this.node.children[0].getComponent(sp.Skeleton);
  749. o && o.setCompleteListener(function() {
  750. t.node.destroy();
  751. });
  752. }
  753. };
  754. return r([ a ], e);
  755. }(cc.Component));
  756. o.default = s;
  757. cc._RF.pop();
  758. }, {} ],
  759. BObject: [ function(t, e, o) {
  760. "use strict";
  761. cc._RF.push(e, "9324c1xtApIDIl9G5nfP7h2", "BObject");
  762. var i, n = this && this.__extends || (i = function(t, e) {
  763. return (i = Object.setPrototypeOf || {
  764. __proto__: []
  765. } instanceof Array && function(t, e) {
  766. t.__proto__ = e;
  767. } || function(t, e) {
  768. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  769. })(t, e);
  770. }, function(t, e) {
  771. i(t, e);
  772. function o() {
  773. this.constructor = t;
  774. }
  775. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  776. }), r = this && this.__decorate || function(t, e, o, i) {
  777. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  778. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  779. return r > 3 && c && Object.defineProperty(e, o, c), c;
  780. };
  781. Object.defineProperty(o, "__esModule", {
  782. value: !0
  783. });
  784. var c = t("../object/FSprite"), a = t("../../../util/CMath"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  785. n(e, t);
  786. function e() {
  787. var e = null !== t && t.apply(this, arguments) || this;
  788. e.speed = 2e3;
  789. e.distance = 500;
  790. e.mStartEffect = null;
  791. e.mHitEffect = null;
  792. return e;
  793. }
  794. e.prototype.onLoad = function() {
  795. this.mRigidBody = this.node.getComponent(cc.RigidBody);
  796. };
  797. e.prototype.setSprite = function(t) {
  798. this.sprite = t;
  799. this.map = t.map;
  800. };
  801. e.prototype.fire = function(t) {
  802. var e = this.node.getPosition(), o = t.getPosition().clone();
  803. o.y += t.height / 2;
  804. this.fireAB(e, o);
  805. };
  806. e.prototype.firePos = function(t) {
  807. var e = this.node.getPosition();
  808. this.fireAB(e, t);
  809. };
  810. e.prototype.fireDir = function(t) {
  811. this.fireAB(cc.Vec2.ZERO_R, t);
  812. };
  813. e.prototype.fireAB = function(t, e) {
  814. this.origin = this.node.getPosition();
  815. var o = a.default.getAngle(t, e);
  816. this.node.angle = 180 * o / Math.PI;
  817. var i = cc.v2();
  818. i.x = Math.cos(o) * this.speed;
  819. i.y = Math.sin(o) * this.speed;
  820. this.mRigidBody.applyLinearImpulse(i, this.mRigidBody.getWorldCenter(), !0);
  821. };
  822. e.prototype.fireAngle = function(t) {
  823. this.origin = this.node.getPosition();
  824. this.node.angle = 180 * t / Math.PI;
  825. var e = cc.v2();
  826. e.x = Math.cos(t) * this.speed;
  827. e.y = Math.sin(t) * this.speed;
  828. this.mRigidBody.applyLinearImpulse(e, this.mRigidBody.getWorldCenter(), !0);
  829. };
  830. e.prototype.fireAngle2 = function(t) {
  831. this.origin = this.node.getPosition();
  832. var e = cc.v2();
  833. e.x = Math.cos(t) * this.speed;
  834. e.y = Math.sin(t) * this.speed;
  835. this.mRigidBody.applyLinearImpulse(e, this.mRigidBody.getWorldCenter(), !0);
  836. };
  837. e.prototype.fireAngle1 = function(t) {
  838. this.origin = this.node.getPosition();
  839. this.node.angle = t;
  840. var e = t * Math.PI / 180, o = cc.v2();
  841. o.x = Math.cos(e) * this.speed;
  842. o.y = Math.sin(e) * this.speed;
  843. this.mRigidBody.applyLinearImpulse(o, this.mRigidBody.getWorldCenter(), !0);
  844. };
  845. e.prototype.update = function() {
  846. this.sprite && this.sprite.isValid && this.sprite.hp > 0 ? cc.Vec2.distance(this.origin, this.node.getPosition()) >= this.distance && this.node.destroy() : this.node.destroy();
  847. };
  848. e.prototype.__destroy = function() {
  849. var t = cc.instantiate(this.mHitEffect);
  850. t.x = this.node.x;
  851. t.y = this.node.y;
  852. t.parent = this.map.node;
  853. this.node.destroy();
  854. };
  855. e.prototype.onBeginContact = function(t, e, o) {
  856. if (e.node == this.node) if (0 != o.tag) ; else if ("map" == o.node.group) this.node.destroy(); else if (this.sprite && this.sprite.isValid && this.sprite.hp > 0 && this.sprite.node.group != o.node.group && e.isValid && o.node.isValid) {
  857. var i = o.node.getComponent(c.default);
  858. if (i.hp > 0 && null != i && i.isActive) {
  859. this.sprite.atkjs(i, this._skillData);
  860. this.__destroy();
  861. }
  862. }
  863. };
  864. r([ l({
  865. displayName: "子弹速度"
  866. }) ], e.prototype, "speed", void 0);
  867. r([ l({
  868. displayName: "子弹射程"
  869. }) ], e.prototype, "distance", void 0);
  870. r([ l({
  871. type: cc.Prefab,
  872. displayName: "施法特效"
  873. }) ], e.prototype, "mStartEffect", void 0);
  874. r([ l({
  875. type: cc.Prefab,
  876. displayName: "击中目标特效"
  877. }) ], e.prototype, "mHitEffect", void 0);
  878. return r([ p ], e);
  879. }(cc.Component);
  880. o.default = u;
  881. cc._RF.pop();
  882. }, {
  883. "../../../util/CMath": "CMath",
  884. "../object/FSprite": "FSprite"
  885. } ],
  886. BaseEvent: [ function(t, e, o) {
  887. "use strict";
  888. cc._RF.push(e, "a7332a3bj9IO59A0zTEK5DE", "BaseEvent");
  889. var i, n = this && this.__extends || (i = function(t, e) {
  890. return (i = Object.setPrototypeOf || {
  891. __proto__: []
  892. } instanceof Array && function(t, e) {
  893. t.__proto__ = e;
  894. } || function(t, e) {
  895. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  896. })(t, e);
  897. }, function(t, e) {
  898. i(t, e);
  899. function o() {
  900. this.constructor = t;
  901. }
  902. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  903. }), r = this && this.__decorate || function(t, e, o, i) {
  904. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  905. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  906. return r > 3 && c && Object.defineProperty(e, o, c), c;
  907. };
  908. Object.defineProperty(o, "__esModule", {
  909. value: !0
  910. });
  911. var c = t("../../../../util/CHttp"), a = t("../../map/FMap"), s = t("../../object/FSprite"), p = t("../dialog/FMapDialog"), l = cc._decorator, u = l.ccclass, f = (l.property,
  912. function(t) {
  913. n(e, t);
  914. function e() {
  915. return null !== t && t.apply(this, arguments) || this;
  916. }
  917. e.prototype.onLoad = function() {
  918. this.ff = this.node.parent.parent.getComponent(a.default).ff;
  919. };
  920. e.prototype.onBeginContact = function(t, e, o) {
  921. "A" == o.node.group && 1 == o.tag && o.node.getComponent(s.default) == this.ff.mainSprite && this.onBegin(e.tag);
  922. };
  923. e.prototype.onEndContact = function(t, e, o) {
  924. "A" == o.node.group && 1 == o.tag && o.node.getComponent(s.default) == this.ff.mainSprite && this.onEnd(e.tag);
  925. };
  926. e.prototype.onBegin = function() {};
  927. e.prototype.onEnd = function() {};
  928. e.prototype.moveCamera = function(t, e, o) {
  929. var i = this.ff.mMap.mCamera, n = cc.winSize;
  930. t.x -= n.width / 2;
  931. t.y -= n.height / 2;
  932. cc.tween(i.node).sequence(cc.moveTo(e, t).easing(cc.easeOut(e)), cc.callFunc(function() {
  933. o();
  934. })).start();
  935. };
  936. e.prototype.showOpt = function(t, e) {
  937. this.ff.control.showEventBt(t, e);
  938. };
  939. e.prototype.closeOpt = function() {
  940. this.ff.control.closeEventBt();
  941. };
  942. e.prototype.showBlockInput = function(t) {
  943. this.ff.mBlockInputEvents.active = !0;
  944. this.ff.setBlockInputCallback(t);
  945. };
  946. e.prototype.closeBlockInput = function() {
  947. this.ff.mBlockInputEvents.active = !1;
  948. this.ff.setBlockInputCallback(null);
  949. };
  950. e.prototype.pause = function() {
  951. this.ff.pauseSprite(!0);
  952. };
  953. e.prototype.resume = function() {
  954. this.ff.pauseSprite(!1);
  955. };
  956. e.prototype.findByName = function(t) {
  957. return cc.find(t, this.ff.mMap.mSprites);
  958. };
  959. e.prototype.showDialog = function(t, e, o) {
  960. var i = new p.default(this.ff, this.ff.mMapDialog), n = cc.v2();
  961. n.x = t.x;
  962. n.y = t.y + t.height;
  963. i.showDialog(e, n, null, function() {
  964. o();
  965. });
  966. };
  967. e.prototype.showDialogPos = function(t, e, o) {
  968. new p.default(this.ff, this.ff.mMapDialog).showDialog(e, t, null, function() {
  969. o();
  970. });
  971. };
  972. e.prototype.spineAction = function(t, e, o) {
  973. t.setCompleteListener(function() {
  974. t.setCompleteListener(null);
  975. o();
  976. });
  977. t.setAnimation(0, e, !1);
  978. };
  979. e.prototype.getMapObject = function(t, e) {
  980. var o = this, i = {
  981. objectId: t
  982. }, n = this.ff.main;
  983. n.gameHttp.sendJson("stage/v1/stageObject", i, function(i, r) {
  984. n.stopLoad();
  985. if (i == c.HttpStateType.SUCCESS) if (0 == r.retCode) {
  986. var a = n.player.stage;
  987. a.element.push(t);
  988. if (r.data._stage) {
  989. a.data[o.ff.mFFheader.stageData.id] = r.data._stage;
  990. o.ff.mFFheader.flush();
  991. }
  992. n.showReward(r, function() {
  993. e && e();
  994. });
  995. } else n.showTips(r.message); else n.showTips("网络异常");
  996. });
  997. };
  998. return r([ u ], e);
  999. }(cc.Component));
  1000. o.default = f;
  1001. cc._RF.pop();
  1002. }, {
  1003. "../../../../util/CHttp": "CHttp",
  1004. "../../map/FMap": "FMap",
  1005. "../../object/FSprite": "FSprite",
  1006. "../dialog/FMapDialog": "FMapDialog"
  1007. } ],
  1008. CHttpEvent: [ function(t, e, o) {
  1009. "use strict";
  1010. cc._RF.push(e, "2b078NPJrZFgqEP1Xfxjcba", "CHttpEvent");
  1011. Object.defineProperty(o, "__esModule", {
  1012. value: !0
  1013. });
  1014. var i = function() {
  1015. function t() {}
  1016. t.prototype.httpEvent = function() {
  1017. cc.log("viewObject reve : ", this);
  1018. };
  1019. return t;
  1020. }();
  1021. o.default = i;
  1022. cc._RF.pop();
  1023. }, {} ],
  1024. CHttp: [ function(t, e, o) {
  1025. "use strict";
  1026. cc._RF.push(e, "6f7b79SsrZOPZLIkYSPgicG", "CHttp");
  1027. Object.defineProperty(o, "__esModule", {
  1028. value: !0
  1029. });
  1030. o.HttpStateType = void 0;
  1031. var i, n = t("../main/ViewTop"), r = t("./CUtil");
  1032. (function(t) {
  1033. t[t.SUCCESS = 0] = "SUCCESS";
  1034. t[t.TIME_OUT = 1] = "TIME_OUT";
  1035. t[t.ERROR = 2] = "ERROR";
  1036. })(i = o.HttpStateType || (o.HttpStateType = {}));
  1037. var c = function() {
  1038. function t(t) {
  1039. this.url = null;
  1040. this.token = null;
  1041. this.event = [];
  1042. this.url = t;
  1043. }
  1044. t.prototype.unshiftEvent = function(t) {
  1045. this.event.unshift(t);
  1046. };
  1047. t.prototype.pushEvent = function(t) {
  1048. this.event.push(t);
  1049. };
  1050. t.prototype.popEvent = function(t) {
  1051. for (var e = 0; e < this.event.length; e++) if (this.event[e] == t) {
  1052. this.event.splice(e, 1);
  1053. return;
  1054. }
  1055. };
  1056. t.prototype.sendForm = function(t, e, o) {
  1057. this.id && (e.I = this.id);
  1058. this.userId && (e.userId = this.userId);
  1059. this.token && r.default.makeSign(e, this.token);
  1060. var n = new XMLHttpRequest();
  1061. n.open("post", this.url + t, !0);
  1062. n.setRequestHeader("Content-Type", "application/json");
  1063. n.onerror = function() {
  1064. o(i.ERROR);
  1065. };
  1066. n.ontimeout = function() {
  1067. o(i.TIME_OUT);
  1068. };
  1069. var c = this;
  1070. n.onreadystatechange = function() {
  1071. if (4 === n.readyState && n.status >= 200 && n.status < 300) {
  1072. var t = JSON.parse(n.responseText);
  1073. if (0 == t.retCode) for (var e = 0; e < c.event.length; e++) c.event[e].httpEvent(t); else 500106 == t.retCode && c.initViewTop();
  1074. o(i.SUCCESS, t);
  1075. }
  1076. };
  1077. n.send(JSON.stringify(e));
  1078. };
  1079. t.prototype.sendJson = function(t, e, o) {
  1080. this.id && (e.I = this.id);
  1081. this.userId && (e.userId = this.userId);
  1082. this.token && r.default.makeSign(e, this.token);
  1083. var n = new XMLHttpRequest();
  1084. n.open("post", this.url + t, !0);
  1085. n.setRequestHeader("Content-Type", "text/plain");
  1086. n.onerror = function() {
  1087. o(i.ERROR);
  1088. };
  1089. n.ontimeout = function() {
  1090. o(i.TIME_OUT);
  1091. };
  1092. var c = this;
  1093. n.onreadystatechange = function() {
  1094. if (4 === n.readyState && n.status >= 200 && n.status < 300) {
  1095. var t = JSON.parse(n.responseText);
  1096. if (0 == t.retCode) for (var e = 0; e < c.event.length; e++) c.event[e].httpEvent(t); else 500106 == t.retCode && c.initViewTop();
  1097. o(i.SUCCESS, t);
  1098. }
  1099. };
  1100. n.send(JSON.stringify(e));
  1101. };
  1102. t.prototype.initViewTop = function() {
  1103. cc.resources.load("prefab/common/common_hint", cc.Prefab, function(t, e) {
  1104. t ? cc.error(t) : cc.instantiate(e).getComponent(n.default).show();
  1105. });
  1106. };
  1107. return t;
  1108. }();
  1109. o.default = c;
  1110. cc._RF.pop();
  1111. }, {
  1112. "../main/ViewTop": "ViewTop",
  1113. "./CUtil": "CUtil"
  1114. } ],
  1115. CMath: [ function(t, e, o) {
  1116. "use strict";
  1117. cc._RF.push(e, "2db27nnJW5OrZfq+s5xYuHV", "CMath");
  1118. Object.defineProperty(o, "__esModule", {
  1119. value: !0
  1120. });
  1121. var i = function() {
  1122. function t() {}
  1123. t.getDistance = function(t, e) {
  1124. return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
  1125. };
  1126. t.getAngle = function(t, e) {
  1127. return Math.atan2(e.y - t.y, e.x - t.x);
  1128. };
  1129. t.getRandom = function(t, e) {
  1130. return Math.floor(Math.random() * (e - t + 1) + t);
  1131. };
  1132. return t;
  1133. }();
  1134. o.default = i;
  1135. cc._RF.pop();
  1136. }, {} ],
  1137. CUtilTime: [ function(t, e, o) {
  1138. "use strict";
  1139. cc._RF.push(e, "12f96wHt7lJ7rgMvhceetc9", "CUtilTime");
  1140. Object.defineProperty(o, "__esModule", {
  1141. value: !0
  1142. });
  1143. var i = function() {
  1144. function t() {}
  1145. t.getNowTime = function() {
  1146. var t = new Date();
  1147. return Math.floor(t.getTime() / 1e3);
  1148. };
  1149. t.getNowDateInt = function() {
  1150. var t = new Date(), e = "" + t.getDate(), o = "" + (t.getMonth() + 1), i = "" + t.getFullYear();
  1151. o.length < 2 && (o = "0" + o);
  1152. e.length < 2 && (e = "0" + e);
  1153. return parseInt(i + o + e);
  1154. };
  1155. t.getCountDays = function() {
  1156. var t = new Date(), e = t.getMonth();
  1157. t.setMonth(e + 1);
  1158. t.setDate(0);
  1159. return t.getDate();
  1160. };
  1161. t.getTimeString = function(t) {
  1162. var e = Math.floor(t / 60 / 60), o = Math.floor(t / 60 % 60), i = Math.floor(t % 60), n = Math.floor(e / 24), r = e - 24 * n;
  1163. return n > 0 ? n + "天" + r + "小时" + o + "分钟" + i + "秒" : r > 0 ? r + "小时" + o + "分钟" + i + "秒" : o > 0 ? o + "分钟" + i + "秒" : i + "秒";
  1164. };
  1165. t.getTimeString2 = function(t) {
  1166. var e = Math.floor(t / 60 / 60), o = Math.floor(t / 60 % 60), i = Math.floor(t % 60), n = o > 0 && o < 10 ? "0" + o : 0 == o ? "00" : o, r = i > 0 && i < 10 ? "0" + i : 0 == i ? "00" : i;
  1167. return e > 0 ? e + ":" + n + ":" + r : o > 0 ? n + ":" + r : r;
  1168. };
  1169. t._getTimeString = function(t) {
  1170. var e = Math.floor(t / 60 / 60), o = Math.floor(t / 60 % 60), i = Math.floor(t % 60), n = Math.floor(e / 24), r = e - 24 * n;
  1171. return n > 0 ? n + "天" + r + "小时" : r > 0 ? r + "小时" + o + "分钟" : o > 0 ? o + "分" + i + "秒" : i + "秒";
  1172. };
  1173. t._getTimeOnlineString = function(t) {
  1174. var e = Math.floor(t / 60 / 60), o = Math.floor(t / 60 % 60), i = Math.floor(t % 60), n = Math.floor(e / 24), r = e - 24 * n;
  1175. return n > 0 ? n + "天" : r > 0 ? r + "小时" : o > 0 ? o + "分钟" : i + "秒";
  1176. };
  1177. return t;
  1178. }();
  1179. o.default = i;
  1180. cc._RF.pop();
  1181. }, {} ],
  1182. CUtil: [ function(t, e, o) {
  1183. "use strict";
  1184. cc._RF.push(e, "e71b4LP1chEP62B5bwe3eJF", "CUtil");
  1185. Object.defineProperty(o, "__esModule", {
  1186. value: !0
  1187. });
  1188. var i = t("./MMD5"), n = function() {
  1189. function t() {}
  1190. t.makeSign = function(t, e) {
  1191. var o = new Date();
  1192. t.timestamp = o.getTime();
  1193. var i = Object.keys(t).sort(), n = "";
  1194. for (var r in i) {
  1195. var c = i[r], a = t[c];
  1196. null == a || a instanceof Object || (n += c + "=" + a + "&");
  1197. }
  1198. n += e;
  1199. t.sign = this.md5.hex_md5(n);
  1200. return t;
  1201. };
  1202. t.getNowTime = function() {
  1203. var t = new Date();
  1204. return Math.floor(t.getTime() / 1e3);
  1205. };
  1206. t.getNowDateInt = function() {
  1207. var t = new Date(), e = "" + t.getDate(), o = "" + (t.getMonth() + 1), i = "" + t.getFullYear();
  1208. o.length < 2 && (o = "0" + o);
  1209. e.length < 2 && (e = "0" + e);
  1210. return parseInt(i + o + e);
  1211. };
  1212. t.md5 = new i.default();
  1213. return t;
  1214. }();
  1215. o.default = n;
  1216. cc._RF.pop();
  1217. }, {
  1218. "./MMD5": "MMD5"
  1219. } ],
  1220. CardAttrItem: [ function(t, e, o) {
  1221. "use strict";
  1222. cc._RF.push(e, "72766E+bShFfbmzQEUaut5J", "CardAttrItem");
  1223. var i, n = this && this.__extends || (i = function(t, e) {
  1224. return (i = Object.setPrototypeOf || {
  1225. __proto__: []
  1226. } instanceof Array && function(t, e) {
  1227. t.__proto__ = e;
  1228. } || function(t, e) {
  1229. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  1230. })(t, e);
  1231. }, function(t, e) {
  1232. i(t, e);
  1233. function o() {
  1234. this.constructor = t;
  1235. }
  1236. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  1237. }), r = this && this.__decorate || function(t, e, o, i) {
  1238. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  1239. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  1240. return r > 3 && c && Object.defineProperty(e, o, c), c;
  1241. };
  1242. Object.defineProperty(o, "__esModule", {
  1243. value: !0
  1244. });
  1245. var c = t("../../../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  1246. n(e, t);
  1247. function e() {
  1248. var e = null !== t && t.apply(this, arguments) || this;
  1249. e.mName = null;
  1250. e.mValue1 = null;
  1251. return e;
  1252. }
  1253. e.prototype.init = function(t, e, o) {
  1254. this.mName.string = c.default.t(t);
  1255. var i = "+" + e;
  1256. o > 0 && (i += "(+" + o + ")");
  1257. this.mValue1.string = i;
  1258. };
  1259. r([ p(cc.Label) ], e.prototype, "mName", void 0);
  1260. r([ p(cc.Label) ], e.prototype, "mValue1", void 0);
  1261. return r([ s ], e);
  1262. }(cc.Component);
  1263. o.default = l;
  1264. cc._RF.pop();
  1265. }, {
  1266. "../../../../i18n/i18n": "i18n"
  1267. } ],
  1268. CardInfoView: [ function(t, e, o) {
  1269. "use strict";
  1270. cc._RF.push(e, "faea9+VsdhN4Lj78q3U8JPR", "CardInfoView");
  1271. var i, n = this && this.__extends || (i = function(t, e) {
  1272. return (i = Object.setPrototypeOf || {
  1273. __proto__: []
  1274. } instanceof Array && function(t, e) {
  1275. t.__proto__ = e;
  1276. } || function(t, e) {
  1277. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  1278. })(t, e);
  1279. }, function(t, e) {
  1280. i(t, e);
  1281. function o() {
  1282. this.constructor = t;
  1283. }
  1284. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  1285. }), r = this && this.__decorate || function(t, e, o, i) {
  1286. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  1287. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  1288. return r > 3 && c && Object.defineProperty(e, o, c), c;
  1289. };
  1290. Object.defineProperty(o, "__esModule", {
  1291. value: !0
  1292. });
  1293. var c = t("../../../i18n/i18n"), a = t("../../../main/ViewManage"), s = t("../../../main/ViewObject"), p = t("../../../util/RadarChart"), l = t("../../data/FFCalAttr"), u = t("./item/CardItem"), f = cc._decorator, h = f.ccclass, d = f.property, m = function(t) {
  1294. n(e, t);
  1295. function e() {
  1296. var e = null !== t && t.apply(this, arguments) || this;
  1297. e.mCardItem = null;
  1298. e.radarChart = null;
  1299. e.mAttrLable = null;
  1300. e.mAttrValue = [];
  1301. return e;
  1302. }
  1303. e.prototype.onLoad = function() {
  1304. this.flushRadarChart();
  1305. };
  1306. e.prototype.exitDistroy = function() {
  1307. t.prototype.exitDistroy.call(this);
  1308. this.cardItem.flushStar();
  1309. };
  1310. e.prototype.init = function(t) {
  1311. this.cardItem = t;
  1312. };
  1313. e.prototype.flushRadarChart = function() {
  1314. this.mCardItem.init(this.main, this.cardItem.godCardAttr);
  1315. var t = l.default.getGodCardAttr(this.main, this.cardItem.godCardAttr), e = t.thunder, o = t.earth, i = t.fire, n = t.water, r = t.wind;
  1316. e > 100 && (e = 100);
  1317. o > 100 && (o = 100);
  1318. i > 100 && (i = 100);
  1319. n > 100 && (n = 100);
  1320. r > 100 && (r = 100);
  1321. for (var a = [ e, o, i, n, r ], s = [ e / 100, o / 100, i / 100, n / 100, r / 100 ], p = 0; p < a.length; p++) {
  1322. var u = a[p];
  1323. this.mAttrValue[p].string = "" + u;
  1324. }
  1325. var f = {
  1326. values: s
  1327. };
  1328. this.radarChart.draw(f);
  1329. var h = this.cardItem._godCard, d = [ "", "射手", "法师", "战士" ][h.job], m = "";
  1330. t.atk > 0 && (m += c.default.t(d) + c.default.t("攻击") + "+" + t.atk + "\n");
  1331. t.def > 0 && (m += c.default.t(d) + c.default.t("防御") + "+" + t.def + "\n");
  1332. t.hp > 0 && (m += c.default.t(d) + c.default.t("气血") + "+" + t.hp + "\n");
  1333. t.sp > 0 && (m += c.default.t(d) + c.default.t("敏捷") + "+" + t.sp + "\n");
  1334. m += h.about;
  1335. this.mAttrLable.string = m;
  1336. };
  1337. e.prototype.openidol_sx = function() {
  1338. var t = this;
  1339. this.main.viewManage.loadFunc(a.GameViewType.god_card_star, function(e) {
  1340. e.init(t);
  1341. e.show(t);
  1342. });
  1343. };
  1344. r([ d(u.default) ], e.prototype, "mCardItem", void 0);
  1345. r([ d(p.default) ], e.prototype, "radarChart", void 0);
  1346. r([ d(cc.Label) ], e.prototype, "mAttrLable", void 0);
  1347. r([ d([ cc.Label ]) ], e.prototype, "mAttrValue", void 0);
  1348. return r([ h ], e);
  1349. }(s.default);
  1350. o.default = m;
  1351. cc._RF.pop();
  1352. }, {
  1353. "../../../i18n/i18n": "i18n",
  1354. "../../../main/ViewManage": "ViewManage",
  1355. "../../../main/ViewObject": "ViewObject",
  1356. "../../../util/RadarChart": "RadarChart",
  1357. "../../data/FFCalAttr": "FFCalAttr",
  1358. "./item/CardItem": "CardItem"
  1359. } ],
  1360. CardItem: [ function(t, e, o) {
  1361. "use strict";
  1362. cc._RF.push(e, "5b2ceOgcuRGMJHoMDMzln5F", "CardItem");
  1363. var i, n = this && this.__extends || (i = function(t, e) {
  1364. return (i = Object.setPrototypeOf || {
  1365. __proto__: []
  1366. } instanceof Array && function(t, e) {
  1367. t.__proto__ = e;
  1368. } || function(t, e) {
  1369. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  1370. })(t, e);
  1371. }, function(t, e) {
  1372. i(t, e);
  1373. function o() {
  1374. this.constructor = t;
  1375. }
  1376. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  1377. }), r = this && this.__decorate || function(t, e, o, i) {
  1378. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  1379. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  1380. return r > 3 && c && Object.defineProperty(e, o, c), c;
  1381. };
  1382. Object.defineProperty(o, "__esModule", {
  1383. value: !0
  1384. });
  1385. var c = t("../../../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  1386. n(e, t);
  1387. function e() {
  1388. var e = null !== t && t.apply(this, arguments) || this;
  1389. e.mName = null;
  1390. e.mIcon = null;
  1391. e.mStarNode = null;
  1392. e.mStarFrame = [];
  1393. e.mNoNode = null;
  1394. e.mCount = null;
  1395. return e;
  1396. }
  1397. e.prototype.init = function(t, e) {
  1398. this.mNoNode && (this.mNoNode.active = !1);
  1399. this.node.zIndex = 1;
  1400. this.main = t;
  1401. this.godCardAttr = e;
  1402. this._godCard = this.main.sManage.getGodCardById(e.id);
  1403. this.initIcon();
  1404. return this.flushStar();
  1405. };
  1406. e.prototype.initNo = function(t, e) {
  1407. this.main = t;
  1408. this._godCard = e;
  1409. this.mNoNode && (this.mNoNode.active = !0);
  1410. this.initIcon();
  1411. var o = this.main.player.getGoodCount(this._godCard.goodId);
  1412. this.mCount.string = o + "/" + this._godCard.goodCount;
  1413. o >= this._godCard.goodCount ? this.node.zIndex = 0 : this.node.zIndex = 2;
  1414. };
  1415. e.prototype.initIcon = function() {
  1416. var t = this;
  1417. this.mName && (this.mName.string = c.default.t(this._godCard.name));
  1418. cc.resources.load("icon/card/" + this._godCard.id, cc.SpriteFrame, function(e, o) {
  1419. e ? cc.error(e) : t.mIcon.spriteFrame = o;
  1420. });
  1421. };
  1422. e.prototype.flushStar = function() {
  1423. var t = 5;
  1424. this.godCardAttr.level < this._godCard.list.length && (t = this._godCard.list[this.godCardAttr.level].star);
  1425. for (var e = this.mStarNode.children, o = 0; o < e.length; o++) {
  1426. e[o].getComponent(cc.Sprite).spriteFrame = o < t ? this.mStarFrame[1] : this.mStarFrame[0];
  1427. }
  1428. return t;
  1429. };
  1430. e.prototype.setCallback = function(t) {
  1431. this.callback = t;
  1432. };
  1433. e.prototype.onclick = function() {
  1434. this.callback && this.callback(this);
  1435. };
  1436. r([ p(cc.Label) ], e.prototype, "mName", void 0);
  1437. r([ p(cc.Sprite) ], e.prototype, "mIcon", void 0);
  1438. r([ p(cc.Node) ], e.prototype, "mStarNode", void 0);
  1439. r([ p([ cc.SpriteFrame ]) ], e.prototype, "mStarFrame", void 0);
  1440. r([ p(cc.Node) ], e.prototype, "mNoNode", void 0);
  1441. r([ p(cc.Label) ], e.prototype, "mCount", void 0);
  1442. return r([ s ], e);
  1443. }(cc.Component);
  1444. o.default = l;
  1445. cc._RF.pop();
  1446. }, {
  1447. "../../../../i18n/i18n": "i18n"
  1448. } ],
  1449. CardStarSuccessView: [ function(t, e, o) {
  1450. "use strict";
  1451. cc._RF.push(e, "338b5cedzdI9o1CEe0eo4ZO", "CardStarSuccessView");
  1452. var i, n = this && this.__extends || (i = function(t, e) {
  1453. return (i = Object.setPrototypeOf || {
  1454. __proto__: []
  1455. } instanceof Array && function(t, e) {
  1456. t.__proto__ = e;
  1457. } || function(t, e) {
  1458. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  1459. })(t, e);
  1460. }, function(t, e) {
  1461. i(t, e);
  1462. function o() {
  1463. this.constructor = t;
  1464. }
  1465. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  1466. }), r = this && this.__decorate || function(t, e, o, i) {
  1467. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  1468. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  1469. return r > 3 && c && Object.defineProperty(e, o, c), c;
  1470. };
  1471. Object.defineProperty(o, "__esModule", {
  1472. value: !0
  1473. });
  1474. var c = t("../../../main/ViewObject"), a = t("./item/CardItem"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  1475. n(e, t);
  1476. function e() {
  1477. var e = null !== t && t.apply(this, arguments) || this;
  1478. e.mCardItem = null;
  1479. return e;
  1480. }
  1481. e.prototype.init = function(t) {
  1482. this.mCardItem.init(this.main, t.godCardAttr);
  1483. };
  1484. r([ l(a.default) ], e.prototype, "mCardItem", void 0);
  1485. return r([ p ], e);
  1486. }(c.default);
  1487. o.default = u;
  1488. cc._RF.pop();
  1489. }, {
  1490. "../../../main/ViewObject": "ViewObject",
  1491. "./item/CardItem": "CardItem"
  1492. } ],
  1493. CardStarView: [ function(t, e, o) {
  1494. "use strict";
  1495. cc._RF.push(e, "62f02LMljRER5ZoMPs481wo", "CardStarView");
  1496. var i, n = this && this.__extends || (i = function(t, e) {
  1497. return (i = Object.setPrototypeOf || {
  1498. __proto__: []
  1499. } instanceof Array && function(t, e) {
  1500. t.__proto__ = e;
  1501. } || function(t, e) {
  1502. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  1503. })(t, e);
  1504. }, function(t, e) {
  1505. i(t, e);
  1506. function o() {
  1507. this.constructor = t;
  1508. }
  1509. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  1510. }), r = this && this.__decorate || function(t, e, o, i) {
  1511. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  1512. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  1513. return r > 3 && c && Object.defineProperty(e, o, c), c;
  1514. };
  1515. Object.defineProperty(o, "__esModule", {
  1516. value: !0
  1517. });
  1518. var c = t("../../../i18n/i18n"), a = t("../../../main/ViewManage"), s = t("../../../main/ViewObject"), p = t("../../../util/CHttp"), l = t("../../common/GoodItem"), u = t("../../data/FFCalAttr"), f = t("./item/CardAttrItem"), h = t("./item/CardItem"), d = t("./item/CardUplevelItem"), m = cc._decorator, y = m.ccclass, v = m.property, g = function(t) {
  1519. n(e, t);
  1520. function e() {
  1521. var e = null !== t && t.apply(this, arguments) || this;
  1522. e.mCardItem = null;
  1523. e.mAttrContent = null;
  1524. e.mAttrPrefab = null;
  1525. e.mGoodContent = null;
  1526. e.mGoodItemPrefab = null;
  1527. e.mUpLevelItem = [];
  1528. e.mFullStar = null;
  1529. e.mFullContent = null;
  1530. e.mFinish = null;
  1531. e.mBtName = null;
  1532. e.upStatus = 0;
  1533. e.tempStar = 0;
  1534. return e;
  1535. }
  1536. o = e;
  1537. e.prototype.exitDistroy = function() {
  1538. t.prototype.exitDistroy.call(this);
  1539. this.cardInfoView.flushRadarChart();
  1540. };
  1541. e.prototype.init = function(t) {
  1542. this.cardInfoView = t;
  1543. var e = [ 0, 0, 0, 0, 0, 0, 0, 0, 0 ], i = t.cardItem._godCard;
  1544. if (i.godReborn) {
  1545. var n = i.godReborn;
  1546. n && (e = [ n.atk, n.def, n.hp, n.sp, n.water, n.fire, n.wind, n.thunder, n.earth ]);
  1547. }
  1548. for (var r = 0; r < e.length; r++) {
  1549. var c = e[r];
  1550. if (c > 0) {
  1551. var a = cc.instantiate(this.mAttrPrefab);
  1552. a.parent = this.mFullContent;
  1553. var s = a.getComponent(f.default), p = "";
  1554. r < 4 && (p = [ "", "射手", "法师", "战士" ][i.job]);
  1555. s.init(p + o.attrName[r], c, 0);
  1556. }
  1557. }
  1558. this.mFullStar.active = !1;
  1559. this.flushView();
  1560. };
  1561. e.prototype.flushView = function() {
  1562. var t = this, e = this.cardInfoView.cardItem, o = this.mCardItem.init(this.main, e.godCardAttr), i = !0;
  1563. if (0 == this.tempStar) this.tempStar = o; else if (this.tempStar != o) {
  1564. i = !1;
  1565. this.tempStar = o;
  1566. this.showSuccess(function() {
  1567. t.updateView();
  1568. });
  1569. }
  1570. i && this.updateView();
  1571. };
  1572. e.prototype.updateView = function() {
  1573. var t = this.cardInfoView.cardItem, e = u.default.getGodCardAttr(this.main, t.godCardAttr), i = t._godCard.list[t.godCardAttr.level], n = null;
  1574. t.godCardAttr.level > 0 && (n = t._godCard.list[t.godCardAttr.level - 1]);
  1575. var r = [ e.atk, e.def, e.hp, e.sp, e.water, e.fire, e.wind, e.thunder, e.earth ], a = [ 0, 0, 0, 0, 0, 0, 0, 0, 0 ], s = [ 0, 0, 0, 0, 0, 0, 0, 0, 0 ];
  1576. i && (a = [ i.atk, i.def, i.hp, i.sp, i.water, i.fire, i.wind, i.thunder, i.earth ]);
  1577. n && (s = [ n.atk, n.def, n.hp, n.sp, n.water, n.fire, n.wind, n.thunder, n.earth ]);
  1578. this.mAttrContent.destroyAllChildren();
  1579. for (var p = 0; p < r.length; p++) {
  1580. var h = r[p], d = a[p] - s[p];
  1581. if (h > 0 || d > 0) {
  1582. (_ = cc.instantiate(this.mAttrPrefab)).parent = this.mAttrContent;
  1583. var m = _.getComponent(f.default), y = "";
  1584. p < 4 && (y = [ "", "射手", "法师", "战士" ][t._godCard.job]);
  1585. m.init(y + o.attrName[p], h, d);
  1586. }
  1587. }
  1588. var v = [];
  1589. if (i) {
  1590. i.goodId1 > 0 && v.push({
  1591. id: i.goodId1,
  1592. count: i.goodCount1
  1593. });
  1594. i.goodId2 > 0 && v.push({
  1595. id: i.goodId2,
  1596. count: i.goodCount2
  1597. });
  1598. i.goodId3 > 0 && v.push({
  1599. id: i.goodId3,
  1600. count: i.goodCount3
  1601. });
  1602. this.mFullStar.active = !1;
  1603. this.mBtName.string = c.default.t("升星");
  1604. this.upStatus = 0;
  1605. } else {
  1606. this.upStatus = 1;
  1607. this.mBtName.string = c.default.t("重塑");
  1608. this.mFullStar.active = !0;
  1609. var g = this.cardInfoView.cardItem._godCard.godReborn;
  1610. g.goodId1 > 0 && v.push({
  1611. id: g.goodId1,
  1612. count: g.goodCount1
  1613. });
  1614. g.goodId2 > 0 && v.push({
  1615. id: g.goodId2,
  1616. count: g.goodCount2
  1617. });
  1618. this.cardInfoView.cardItem.godCardAttr.reborn > 0 && (this.mFinish.active = !1);
  1619. }
  1620. this.mGoodContent.destroyAllChildren();
  1621. for (p = 0; p < v.length; p++) {
  1622. var _, b = v[p];
  1623. (_ = cc.instantiate(this.mGoodItemPrefab)).getComponent(l.default).initContrast(this.main, b);
  1624. _.parent = this.mGoodContent;
  1625. }
  1626. this.flushTree();
  1627. };
  1628. e.prototype.flushTree = function() {
  1629. for (var t = this.cardInfoView.cardItem._godCard, e = [], o = t.list, i = 0, n = [], r = 0; r < o.length; r++) {
  1630. var c = o[r];
  1631. if (0 == i) {
  1632. i = c.star;
  1633. n.push(c);
  1634. } else if (i != c.star) {
  1635. i = c.star;
  1636. var a = n.slice();
  1637. e.push(a);
  1638. (n = []).push(c);
  1639. } else n.push(c);
  1640. }
  1641. e.push(n);
  1642. var s = this.cardInfoView.cardItem.godCardAttr, p = t.list[s.level];
  1643. if (p) {
  1644. var l = e[p.star - 1], u = this.getTmpLevel(p, l);
  1645. for (r = 0; r < 6; r++) {
  1646. c = this.mUpLevelItem[r];
  1647. r > u.index ? c.setLock() : r == u.index ? c.setLabel(u.level, u.maxLevel) : c.setLabel(u.maxLevel, u.maxLevel);
  1648. }
  1649. }
  1650. };
  1651. e.prototype.getTmpLevel = function(t, e) {
  1652. var o = (e.length - 1) / 5;
  1653. if (t == e[e.length - 1]) return {
  1654. index: 5,
  1655. level: 0,
  1656. maxLevel: o
  1657. };
  1658. for (var i = 0, n = 0; n < e.length - 1; n++) {
  1659. var r = e[n];
  1660. if (t == r) return {
  1661. index: r.attrType - 1,
  1662. level: i,
  1663. maxLevel: o
  1664. };
  1665. ++i >= o && (i = 0);
  1666. }
  1667. };
  1668. e.prototype.onclickStar = function() {
  1669. var t, e = this;
  1670. t = 0 == this.upStatus ? "card/v1/uplevel" : "card/v1/reborn";
  1671. var o = this.cardInfoView.cardItem, i = {
  1672. id: o.godCardAttr.id
  1673. };
  1674. this.main.gameHttp.sendJson(t, i, function(t, i) {
  1675. e.main.stopLoad();
  1676. if (t == p.HttpStateType.SUCCESS) if (0 == i.retCode) {
  1677. 0 == e.upStatus ? o.godCardAttr.level += 1 : o.godCardAttr.reborn += 1;
  1678. e.flushView();
  1679. } else e.main.showTips(i.message); else e.main.showTips("网络异常");
  1680. });
  1681. };
  1682. e.prototype.showSuccess = function(t) {
  1683. var e = this, o = 0;
  1684. this.schedule(function() {
  1685. o += .1;
  1686. e.mUpLevelItem[5].mProgessBar.progress = o;
  1687. if (o > 1) {
  1688. e.main.viewManage.loadFunc(a.GameViewType.god_card_star_success, function(t) {
  1689. t.init(e.cardInfoView.cardItem);
  1690. t.show();
  1691. });
  1692. t();
  1693. }
  1694. }, .1, 10);
  1695. };
  1696. var o;
  1697. e.attrName = [ "攻击", "防御", "气血", "敏捷", "水", "火", "风", "雷", "土" ];
  1698. r([ v(h.default) ], e.prototype, "mCardItem", void 0);
  1699. r([ v(cc.Node) ], e.prototype, "mAttrContent", void 0);
  1700. r([ v(cc.Prefab) ], e.prototype, "mAttrPrefab", void 0);
  1701. r([ v(cc.Node) ], e.prototype, "mGoodContent", void 0);
  1702. r([ v(cc.Prefab) ], e.prototype, "mGoodItemPrefab", void 0);
  1703. r([ v([ d.default ]) ], e.prototype, "mUpLevelItem", void 0);
  1704. r([ v(cc.Node) ], e.prototype, "mFullStar", void 0);
  1705. r([ v(cc.Node) ], e.prototype, "mFullContent", void 0);
  1706. r([ v(cc.Node) ], e.prototype, "mFinish", void 0);
  1707. r([ v(cc.Label) ], e.prototype, "mBtName", void 0);
  1708. return o = r([ y ], e);
  1709. }(s.default);
  1710. o.default = g;
  1711. cc._RF.pop();
  1712. }, {
  1713. "../../../i18n/i18n": "i18n",
  1714. "../../../main/ViewManage": "ViewManage",
  1715. "../../../main/ViewObject": "ViewObject",
  1716. "../../../util/CHttp": "CHttp",
  1717. "../../common/GoodItem": "GoodItem",
  1718. "../../data/FFCalAttr": "FFCalAttr",
  1719. "./item/CardAttrItem": "CardAttrItem",
  1720. "./item/CardItem": "CardItem",
  1721. "./item/CardUplevelItem": "CardUplevelItem"
  1722. } ],
  1723. CardUplevelItem: [ function(t, e, o) {
  1724. "use strict";
  1725. cc._RF.push(e, "e4236AB5+FJ/53xutcgFy5a", "CardUplevelItem");
  1726. var i, n = this && this.__extends || (i = function(t, e) {
  1727. return (i = Object.setPrototypeOf || {
  1728. __proto__: []
  1729. } instanceof Array && function(t, e) {
  1730. t.__proto__ = e;
  1731. } || function(t, e) {
  1732. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  1733. })(t, e);
  1734. }, function(t, e) {
  1735. i(t, e);
  1736. function o() {
  1737. this.constructor = t;
  1738. }
  1739. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  1740. }), r = this && this.__decorate || function(t, e, o, i) {
  1741. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  1742. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  1743. return r > 3 && c && Object.defineProperty(e, o, c), c;
  1744. };
  1745. Object.defineProperty(o, "__esModule", {
  1746. value: !0
  1747. });
  1748. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  1749. n(e, t);
  1750. function e() {
  1751. var e = null !== t && t.apply(this, arguments) || this;
  1752. e.mLabel = null;
  1753. e.mProgessBar = null;
  1754. return e;
  1755. }
  1756. e.prototype.setLabel = function(t, e) {
  1757. this.mProgessBar.node.active = !0;
  1758. this.mLabel && (this.mLabel.string = t + "/" + e);
  1759. this.mProgessBar.progress = t / e;
  1760. };
  1761. e.prototype.setLock = function() {
  1762. this.mProgessBar.node.active = !1;
  1763. };
  1764. r([ s(cc.Label) ], e.prototype, "mLabel", void 0);
  1765. r([ s(cc.ProgressBar) ], e.prototype, "mProgessBar", void 0);
  1766. return r([ a ], e);
  1767. }(cc.Component);
  1768. o.default = p;
  1769. cc._RF.pop();
  1770. }, {} ],
  1771. ChangeEquip: [ function(t, e, o) {
  1772. "use strict";
  1773. cc._RF.push(e, "c976eop71VC/5vMkFOT0p+4", "ChangeEquip");
  1774. var i, n = this && this.__extends || (i = function(t, e) {
  1775. return (i = Object.setPrototypeOf || {
  1776. __proto__: []
  1777. } instanceof Array && function(t, e) {
  1778. t.__proto__ = e;
  1779. } || function(t, e) {
  1780. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  1781. })(t, e);
  1782. }, function(t, e) {
  1783. i(t, e);
  1784. function o() {
  1785. this.constructor = t;
  1786. }
  1787. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  1788. }), r = this && this.__decorate || function(t, e, o, i) {
  1789. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  1790. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  1791. return r > 3 && c && Object.defineProperty(e, o, c), c;
  1792. };
  1793. Object.defineProperty(o, "__esModule", {
  1794. value: !0
  1795. });
  1796. var c = t("../../../main/ViewManage"), a = t("../../../main/ViewObject"), s = t("../../../util/CHttp"), p = t("./EquipInfo"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  1797. n(e, t);
  1798. function e() {
  1799. var e = null !== t && t.apply(this, arguments) || this;
  1800. e.p1 = null;
  1801. e.p2 = null;
  1802. e.leftQHNode = null;
  1803. e.mQHNode = null;
  1804. e.mUseNode = null;
  1805. e.inGuide = !1;
  1806. e.guideStep = 0;
  1807. return e;
  1808. }
  1809. e.prototype.init = function(t, e, o) {
  1810. this.petIcon = t;
  1811. this.goodItem = e;
  1812. this.goodItem1 = o;
  1813. this.p2.init(this.main, this.goodItem1, null);
  1814. this.p1.init(this.main, this.goodItem, this.goodItem1);
  1815. this.mQHNode.active = o.equipData && o.equipData.type <= 4;
  1816. this.leftQHNode.active = e.equipData.type <= 4;
  1817. this.node.zIndex = 1;
  1818. this.inGuide && 0 == this.guideStep && this.onGuide();
  1819. };
  1820. e.prototype.show = function(t) {
  1821. if (t) {
  1822. this.prev = t;
  1823. this.prev.__close();
  1824. }
  1825. this.main.viewManage.popView1(this.node);
  1826. this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this);
  1827. };
  1828. e.prototype.onclickUse = function() {
  1829. var t = this, e = {
  1830. petId: this.petIcon.id,
  1831. equipIndex: this.p1.equipItem.equip.__index
  1832. };
  1833. this.main.gameHttp.sendJson("equip/v1/use", e, function(e, o) {
  1834. t.main.stopLoad();
  1835. if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) {
  1836. t.main.playerEffectByPath(c.AudioMgr.equip);
  1837. t.equip.checkPet(t.petIcon);
  1838. t.equip.mEquipPack.flushEquip();
  1839. t.exitDistroy();
  1840. t.inGuide && t.equip.onGuideExit();
  1841. t.main.showTips("装备成功");
  1842. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  1843. });
  1844. this.guideCallback && this.guideCallback();
  1845. };
  1846. e.prototype.onclickLeftQH = function() {
  1847. var t = this;
  1848. this.main.viewManage.loadFunc(c.GameViewType.IntensifyEquip, function(e) {
  1849. e.init(t.goodItem.equip, t.petIcon, t.equip);
  1850. e.show();
  1851. t.exitDistroy();
  1852. });
  1853. };
  1854. e.prototype.onclickQH = function() {
  1855. var t = this;
  1856. this.main.viewManage.loadFunc(c.GameViewType.IntensifyEquip, function(e) {
  1857. e.init(t.goodItem1.equip, t.petIcon, t.equip);
  1858. e.show();
  1859. t.exitDistroy();
  1860. });
  1861. };
  1862. e.prototype.setGuideCallback = function(t) {
  1863. this.guideCallback = t;
  1864. };
  1865. e.prototype.onGuide = function() {
  1866. var t = this.main.mGuideMask, e = this.mUseNode;
  1867. t.setTargetNode(e);
  1868. t.show();
  1869. this.setGuideCallback(function() {
  1870. t.close();
  1871. });
  1872. };
  1873. r([ f(p.default) ], e.prototype, "p1", void 0);
  1874. r([ f(p.default) ], e.prototype, "p2", void 0);
  1875. r([ f(cc.Node) ], e.prototype, "leftQHNode", void 0);
  1876. r([ f(cc.Node) ], e.prototype, "mQHNode", void 0);
  1877. r([ f(cc.Node) ], e.prototype, "mUseNode", void 0);
  1878. return r([ u ], e);
  1879. }(a.default);
  1880. o.default = h;
  1881. cc._RF.pop();
  1882. }, {
  1883. "../../../main/ViewManage": "ViewManage",
  1884. "../../../main/ViewObject": "ViewObject",
  1885. "../../../util/CHttp": "CHttp",
  1886. "./EquipInfo": "EquipInfo"
  1887. } ],
  1888. ChargeCollision: [ function(t, e, o) {
  1889. "use strict";
  1890. cc._RF.push(e, "75756TwpLhMiYqit9Wvw+zW", "ChargeCollision");
  1891. var i, n = this && this.__extends || (i = function(t, e) {
  1892. return (i = Object.setPrototypeOf || {
  1893. __proto__: []
  1894. } instanceof Array && function(t, e) {
  1895. t.__proto__ = e;
  1896. } || function(t, e) {
  1897. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  1898. })(t, e);
  1899. }, function(t, e) {
  1900. i(t, e);
  1901. function o() {
  1902. this.constructor = t;
  1903. }
  1904. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  1905. }), r = this && this.__decorate || function(t, e, o, i) {
  1906. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  1907. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  1908. return r > 3 && c && Object.defineProperty(e, o, c), c;
  1909. };
  1910. Object.defineProperty(o, "__esModule", {
  1911. value: !0
  1912. });
  1913. var c = t("../FSprite"), a = cc._decorator, s = a.ccclass, p = (a.property, function(t) {
  1914. n(e, t);
  1915. function e() {
  1916. return null !== t && t.apply(this, arguments) || this;
  1917. }
  1918. e.prototype.onBeginContact = function(t, e, o) {
  1919. var i = this.skillBase.sprite;
  1920. if (i && i.isValid && i.hp > 0 && i.node.group != o.node.group && e.isValid && o.node.isValid) {
  1921. var n = o.node.getComponent(c.default);
  1922. n && n.hp > 0 && null != n && n.isActive && i.atkjs(n);
  1923. }
  1924. };
  1925. return r([ s ], e);
  1926. }(cc.Component));
  1927. o.default = p;
  1928. cc._RF.pop();
  1929. }, {
  1930. "../FSprite": "FSprite"
  1931. } ],
  1932. DialogButton: [ function(t, e, o) {
  1933. "use strict";
  1934. cc._RF.push(e, "4ae85d2JzZB9KhM9SN22V0F", "DialogButton");
  1935. var i, n = this && this.__extends || (i = function(t, e) {
  1936. return (i = Object.setPrototypeOf || {
  1937. __proto__: []
  1938. } instanceof Array && function(t, e) {
  1939. t.__proto__ = e;
  1940. } || function(t, e) {
  1941. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  1942. })(t, e);
  1943. }, function(t, e) {
  1944. i(t, e);
  1945. function o() {
  1946. this.constructor = t;
  1947. }
  1948. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  1949. }), r = this && this.__decorate || function(t, e, o, i) {
  1950. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  1951. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  1952. return r > 3 && c && Object.defineProperty(e, o, c), c;
  1953. };
  1954. Object.defineProperty(o, "__esModule", {
  1955. value: !0
  1956. });
  1957. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  1958. n(e, t);
  1959. function e() {
  1960. var e = null !== t && t.apply(this, arguments) || this;
  1961. e.label = null;
  1962. return e;
  1963. }
  1964. e.prototype.setCallback = function(t) {
  1965. this.callback = t;
  1966. };
  1967. e.prototype.onclick = function() {
  1968. this.callback();
  1969. };
  1970. r([ s(cc.Label) ], e.prototype, "label", void 0);
  1971. return r([ a ], e);
  1972. }(cc.Component);
  1973. o.default = p;
  1974. cc._RF.pop();
  1975. }, {} ],
  1976. DialogCage: [ function(t, e, o) {
  1977. "use strict";
  1978. cc._RF.push(e, "00cf9LG3CZPqYB+urykchd9", "DialogCage");
  1979. var i, n = this && this.__extends || (i = function(t, e) {
  1980. return (i = Object.setPrototypeOf || {
  1981. __proto__: []
  1982. } instanceof Array && function(t, e) {
  1983. t.__proto__ = e;
  1984. } || function(t, e) {
  1985. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  1986. })(t, e);
  1987. }, function(t, e) {
  1988. i(t, e);
  1989. function o() {
  1990. this.constructor = t;
  1991. }
  1992. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  1993. }), r = this && this.__decorate || function(t, e, o, i) {
  1994. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  1995. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  1996. return r > 3 && c && Object.defineProperty(e, o, c), c;
  1997. };
  1998. Object.defineProperty(o, "__esModule", {
  1999. value: !0
  2000. });
  2001. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  2002. n(e, t);
  2003. function e() {
  2004. var e = null !== t && t.apply(this, arguments) || this;
  2005. e.label = null;
  2006. return e;
  2007. }
  2008. e.prototype.setCallback = function(t) {
  2009. this.callback = t;
  2010. };
  2011. e.prototype.close = function() {
  2012. this.node.destroy();
  2013. };
  2014. e.prototype.onclickOK = function() {
  2015. this.close();
  2016. this.callback();
  2017. };
  2018. e.prototype.onclickCancel = function() {
  2019. this.node.destroy();
  2020. };
  2021. r([ s(cc.Label) ], e.prototype, "label", void 0);
  2022. return r([ a ], e);
  2023. }(cc.Component);
  2024. o.default = p;
  2025. cc._RF.pop();
  2026. }, {} ],
  2027. DialogSay: [ function(t, e, o) {
  2028. "use strict";
  2029. cc._RF.push(e, "4b55feY1WxGQ69V431F5rHh", "DialogSay");
  2030. var i, n = this && this.__extends || (i = function(t, e) {
  2031. return (i = Object.setPrototypeOf || {
  2032. __proto__: []
  2033. } instanceof Array && function(t, e) {
  2034. t.__proto__ = e;
  2035. } || function(t, e) {
  2036. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  2037. })(t, e);
  2038. }, function(t, e) {
  2039. i(t, e);
  2040. function o() {
  2041. this.constructor = t;
  2042. }
  2043. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  2044. }), r = this && this.__decorate || function(t, e, o, i) {
  2045. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  2046. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  2047. return r > 3 && c && Object.defineProperty(e, o, c), c;
  2048. };
  2049. Object.defineProperty(o, "__esModule", {
  2050. value: !0
  2051. });
  2052. var c = t("../../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  2053. n(e, t);
  2054. function e() {
  2055. var e = null !== t && t.apply(this, arguments) || this;
  2056. e.mContent = null;
  2057. e.mDialog = null;
  2058. e.index = 0;
  2059. e.contents = null;
  2060. return e;
  2061. }
  2062. e.prototype.setContents = function(t) {
  2063. this.contents = t;
  2064. this.mContent.string = c.default.t(this.contents[0]);
  2065. this.index = 0;
  2066. };
  2067. e.prototype.close = function() {
  2068. this.node.destroy();
  2069. };
  2070. e.prototype.setEndCallback = function(t) {
  2071. this.endCallback = t;
  2072. };
  2073. e.prototype.onclick = function() {
  2074. this.index++;
  2075. if (this.index >= this.contents.length) {
  2076. this.endCallback();
  2077. this.close();
  2078. } else this.mContent.string = c.default.t(this.contents[this.index]);
  2079. };
  2080. r([ p(cc.Label) ], e.prototype, "mContent", void 0);
  2081. r([ p(cc.Node) ], e.prototype, "mDialog", void 0);
  2082. return r([ s ], e);
  2083. }(cc.Component);
  2084. o.default = l;
  2085. cc._RF.pop();
  2086. }, {
  2087. "../../../i18n/i18n": "i18n"
  2088. } ],
  2089. Dungeon: [ function(t, e, o) {
  2090. "use strict";
  2091. cc._RF.push(e, "29ff7u5MSxAt6Q1xH/i7b2S", "Dungeon");
  2092. var i, n = this && this.__extends || (i = function(t, e) {
  2093. return (i = Object.setPrototypeOf || {
  2094. __proto__: []
  2095. } instanceof Array && function(t, e) {
  2096. t.__proto__ = e;
  2097. } || function(t, e) {
  2098. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  2099. })(t, e);
  2100. }, function(t, e) {
  2101. i(t, e);
  2102. function o() {
  2103. this.constructor = t;
  2104. }
  2105. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  2106. }), r = this && this.__decorate || function(t, e, o, i) {
  2107. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  2108. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  2109. return r > 3 && c && Object.defineProperty(e, o, c), c;
  2110. };
  2111. Object.defineProperty(o, "__esModule", {
  2112. value: !0
  2113. });
  2114. var c = t("../../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = (a.property,
  2115. function(t) {
  2116. n(e, t);
  2117. function e() {
  2118. return null !== t && t.apply(this, arguments) || this;
  2119. }
  2120. e.prototype.onLoad = function() {};
  2121. e.prototype.onclick = function() {};
  2122. return r([ s ], e);
  2123. }(c.default));
  2124. o.default = p;
  2125. cc._RF.pop();
  2126. }, {
  2127. "../../../main/ViewObject": "ViewObject"
  2128. } ],
  2129. EnemyTrigger: [ function(t, e, o) {
  2130. "use strict";
  2131. cc._RF.push(e, "1ca884FM/xAb5Psj2B+wGHf", "EnemyTrigger");
  2132. var i, n = this && this.__extends || (i = function(t, e) {
  2133. return (i = Object.setPrototypeOf || {
  2134. __proto__: []
  2135. } instanceof Array && function(t, e) {
  2136. t.__proto__ = e;
  2137. } || function(t, e) {
  2138. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  2139. })(t, e);
  2140. }, function(t, e) {
  2141. i(t, e);
  2142. function o() {
  2143. this.constructor = t;
  2144. }
  2145. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  2146. }), r = this && this.__decorate || function(t, e, o, i) {
  2147. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  2148. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  2149. return r > 3 && c && Object.defineProperty(e, o, c), c;
  2150. };
  2151. Object.defineProperty(o, "__esModule", {
  2152. value: !0
  2153. });
  2154. var c = t("../map/FMap"), a = t("../../../util/CUtilTime"), s = t("../../../util/CMath"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  2155. n(e, t);
  2156. function e() {
  2157. var e = null !== t && t.apply(this, arguments) || this;
  2158. e.mId = 0;
  2159. e.mMonster = null;
  2160. e.mInitCount = 20;
  2161. e.mMaxCount = 20;
  2162. e.mFlushTime = 5;
  2163. e.mFlushCount = 3;
  2164. e.prevTime = 0;
  2165. return e;
  2166. }
  2167. e.prototype.onLoad = function() {
  2168. var t = this.node.parent.parent;
  2169. this.mMap = t.getComponent(c.default);
  2170. this.flush(this.mInitCount);
  2171. this.prevTime = a.default.getNowTime();
  2172. this.mFlushTime > 0 && this.schedule(this.addMonster, this.mFlushTime);
  2173. };
  2174. e.prototype.flush = function(t) {
  2175. for (var e = 0; e < t; e++) ;
  2176. };
  2177. e.prototype.getRandInit = function() {
  2178. var t = cc.v2();
  2179. t.x = s.default.getRandom(this.node.x - this.node.width / 2, this.node.x + this.node.width / 2);
  2180. t.y = s.default.getRandom(this.node.y - this.node.height / 2, this.node.y + this.node.height / 2);
  2181. return t;
  2182. };
  2183. e.prototype.addMonster = function() {};
  2184. r([ u({
  2185. displayName: "关联表格数据"
  2186. }) ], e.prototype, "mId", void 0);
  2187. r([ u({
  2188. type: cc.Prefab,
  2189. displayName: "怪物原型"
  2190. }) ], e.prototype, "mMonster", void 0);
  2191. r([ u({
  2192. displayName: "初始怪物数量"
  2193. }) ], e.prototype, "mInitCount", void 0);
  2194. r([ u({
  2195. displayName: "最大存在值"
  2196. }) ], e.prototype, "mMaxCount", void 0);
  2197. r([ u({
  2198. displayName: "刷怪周期/秒(-1:不刷新)"
  2199. }) ], e.prototype, "mFlushTime", void 0);
  2200. r([ u({
  2201. displayName: "周期刷怪个数"
  2202. }) ], e.prototype, "mFlushCount", void 0);
  2203. return r([ l ], e);
  2204. }(cc.Component);
  2205. o.default = f;
  2206. cc._RF.pop();
  2207. }, {
  2208. "../../../util/CMath": "CMath",
  2209. "../../../util/CUtilTime": "CUtilTime",
  2210. "../map/FMap": "FMap"
  2211. } ],
  2212. EquipAbout: [ function(t, e, o) {
  2213. "use strict";
  2214. cc._RF.push(e, "9c0e5fOFu9IGKW0oT1ne6MO", "EquipAbout");
  2215. var i, n = this && this.__extends || (i = function(t, e) {
  2216. return (i = Object.setPrototypeOf || {
  2217. __proto__: []
  2218. } instanceof Array && function(t, e) {
  2219. t.__proto__ = e;
  2220. } || function(t, e) {
  2221. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  2222. })(t, e);
  2223. }, function(t, e) {
  2224. i(t, e);
  2225. function o() {
  2226. this.constructor = t;
  2227. }
  2228. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  2229. }), r = this && this.__decorate || function(t, e, o, i) {
  2230. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  2231. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  2232. return r > 3 && c && Object.defineProperty(e, o, c), c;
  2233. };
  2234. Object.defineProperty(o, "__esModule", {
  2235. value: !0
  2236. });
  2237. var c = t("../../i18n/i18n"), a = t("../../main/ViewObject"), s = t("./GoodItem"), p = t("./EquipViewAttr"), l = t("../data/FFCalAttr"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  2238. n(e, t);
  2239. function e() {
  2240. var e = null !== t && t.apply(this, arguments) || this;
  2241. e.mName = null;
  2242. e.mAbout = null;
  2243. e.mGoodItem = null;
  2244. e.mZdl = null;
  2245. e.mAtk = null;
  2246. e.mDef = null;
  2247. e.mHp = null;
  2248. e.mSp = null;
  2249. e.mFAttrNode = null;
  2250. e.mFAttrItem = null;
  2251. e.mSkillNode = null;
  2252. e.mSkillName = null;
  2253. e.mSkillAbout = null;
  2254. e.mSkillIcon = null;
  2255. e.mMainNode = [];
  2256. return e;
  2257. }
  2258. e.prototype.onLoad = function() {};
  2259. e.prototype.initEquip = function(t) {
  2260. var e = this;
  2261. this.goodItem = t;
  2262. var o = this.goodItem.equip, i = this.goodItem.equipData;
  2263. this.mName.string = c.default.t(i.name);
  2264. this.mAbout.string = c.default.t(i.about);
  2265. this.goodItem.equip = o;
  2266. this.goodItem.equipData = i;
  2267. this.goodItem.flushEquip(this.main);
  2268. this.mZdl.string = "" + l.default.getZdl(i);
  2269. if (i.atk > 0) {
  2270. this.mAtk.string = c.default.t("攻击") + ":" + i.atk;
  2271. this.mMainNode[0].active = !0;
  2272. } else this.mMainNode[0].active = !1;
  2273. if (i.def > 0) {
  2274. this.mDef.string = c.default.t("防御") + ":" + i.def;
  2275. this.mMainNode[1].active = !0;
  2276. } else this.mMainNode[1].active = !1;
  2277. if (i.hp > 0) {
  2278. this.mHp.string = c.default.t("气血") + ":" + i.hp;
  2279. this.mMainNode[2].active = !0;
  2280. } else this.mMainNode[2].active = !1;
  2281. if (i.sp > 0) {
  2282. this.mSp.string = c.default.t("速度") + ":" + i.sp;
  2283. this.mMainNode[3].active = !0;
  2284. } else this.mMainNode[3].active = !1;
  2285. if (o.attr.length <= 0) this.mFAttrNode.active = !1; else {
  2286. this.mFAttrNode.children.forEach(function(t) {
  2287. "fsx_name" != t.name && t.destroy();
  2288. });
  2289. this.mFAttrNode.active = !0;
  2290. for (var n = 0; n < o.attr.length; n++) {
  2291. var r = o.attr[n], a = cc.instantiate(this.mFAttrItem);
  2292. a.getComponent(p.default).init(this.main, r);
  2293. a.parent = this.mFAttrNode;
  2294. }
  2295. }
  2296. if (i.skill > 0) {
  2297. this.mSkillNode.active = !0;
  2298. var s = this.main.sManage.getSkillById(i.skill);
  2299. this.mSkillName.string = c.default.t(s.name);
  2300. this.mSkillAbout.string = c.default.t(s.about, {
  2301. VAL1: s.value1,
  2302. VAL2: s.value2,
  2303. VAL3: s.value3
  2304. });
  2305. cc.resources.load("icon/skill/" + s.icon, cc.SpriteFrame, function(t, o) {
  2306. t ? cc.error(t) : e.mSkillIcon.spriteFrame = o;
  2307. });
  2308. } else this.mSkillNode.active = !1;
  2309. };
  2310. r([ h(cc.Label) ], e.prototype, "mName", void 0);
  2311. r([ h(cc.Label) ], e.prototype, "mAbout", void 0);
  2312. r([ h(s.default) ], e.prototype, "mGoodItem", void 0);
  2313. r([ h(cc.Label) ], e.prototype, "mZdl", void 0);
  2314. r([ h(cc.Label) ], e.prototype, "mAtk", void 0);
  2315. r([ h(cc.Label) ], e.prototype, "mDef", void 0);
  2316. r([ h(cc.Label) ], e.prototype, "mHp", void 0);
  2317. r([ h(cc.Label) ], e.prototype, "mSp", void 0);
  2318. r([ h(cc.Node) ], e.prototype, "mFAttrNode", void 0);
  2319. r([ h(cc.Prefab) ], e.prototype, "mFAttrItem", void 0);
  2320. r([ h(cc.Node) ], e.prototype, "mSkillNode", void 0);
  2321. r([ h(cc.Label) ], e.prototype, "mSkillName", void 0);
  2322. r([ h(cc.Label) ], e.prototype, "mSkillAbout", void 0);
  2323. r([ h(cc.Sprite) ], e.prototype, "mSkillIcon", void 0);
  2324. r([ h([ cc.Node ]) ], e.prototype, "mMainNode", void 0);
  2325. return r([ f ], e);
  2326. }(a.default);
  2327. o.default = d;
  2328. cc._RF.pop();
  2329. }, {
  2330. "../../i18n/i18n": "i18n",
  2331. "../../main/ViewObject": "ViewObject",
  2332. "../data/FFCalAttr": "FFCalAttr",
  2333. "./EquipViewAttr": "EquipViewAttr",
  2334. "./GoodItem": "GoodItem"
  2335. } ],
  2336. EquipInfo: [ function(t, e, o) {
  2337. "use strict";
  2338. cc._RF.push(e, "1c244BPlI9IoqT85xrCEnAc", "EquipInfo");
  2339. var i, n = this && this.__extends || (i = function(t, e) {
  2340. return (i = Object.setPrototypeOf || {
  2341. __proto__: []
  2342. } instanceof Array && function(t, e) {
  2343. t.__proto__ = e;
  2344. } || function(t, e) {
  2345. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  2346. })(t, e);
  2347. }, function(t, e) {
  2348. i(t, e);
  2349. function o() {
  2350. this.constructor = t;
  2351. }
  2352. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  2353. }), r = this && this.__decorate || function(t, e, o, i) {
  2354. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  2355. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  2356. return r > 3 && c && Object.defineProperty(e, o, c), c;
  2357. };
  2358. Object.defineProperty(o, "__esModule", {
  2359. value: !0
  2360. });
  2361. var c = t("../../../i18n/i18n"), a = t("../../common/GoodItem"), s = t("../../common/EquipViewAttr"), p = t("./MainAtterItem"), l = t("../../data/FFCalAttr"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  2362. n(e, t);
  2363. function e() {
  2364. var e = null !== t && t.apply(this, arguments) || this;
  2365. e.mEquipItem = null;
  2366. e.mName = null;
  2367. e.mMainNode = [];
  2368. e.mFAttrNode = null;
  2369. e.mFAttrItem = null;
  2370. e.mSkillNode = null;
  2371. e.mSkillName = null;
  2372. e.mSkillAbout = null;
  2373. e.mSkillIcon = null;
  2374. return e;
  2375. }
  2376. e.prototype.init = function(t, e, o) {
  2377. var i = this;
  2378. if (e.equip) {
  2379. this.node.active = !0;
  2380. this.main = t;
  2381. this.equipItem = e;
  2382. this.mName.string = c.default.t(e.equipData.name);
  2383. this.mEquipItem.equip = e.equip;
  2384. this.mEquipItem.equipData = e.equipData;
  2385. this.mEquipItem.flushEquip(t);
  2386. var n = e.equipData, r = this.mMainNode[0], a = l.default.getEquipAttr(this.main, this.mEquipItem.equip, n), p = null;
  2387. if (o && o.equipData) {
  2388. p = l.default.getEquipAttr(this.main, o.equip, o.equipData);
  2389. r.setContrase(a.zdl, p.zdl);
  2390. } else r.setValue(a.zdl);
  2391. r = this.mMainNode[1];
  2392. if (a.atk > 0) {
  2393. r.node.active = !0;
  2394. p ? r.setContrase(a.atk, p.atk) : r.setValue(a.atk);
  2395. } else r.node.active = !1;
  2396. r = this.mMainNode[2];
  2397. if (n.def > 0) {
  2398. r.node.active = !0;
  2399. p ? r.setContrase(a.def, p.def) : r.setValue(a.def);
  2400. } else r.node.active = !1;
  2401. r = this.mMainNode[3];
  2402. if (n.hp > 0) {
  2403. r.node.active = !0;
  2404. p ? r.setContrase(a.hp, p.hp) : r.setValue(a.hp);
  2405. } else r.node.active = !1;
  2406. r = this.mMainNode[4];
  2407. if (n.sp > 0) {
  2408. r.node.active = !0;
  2409. p ? r.setContrase(a.sp, p.sp) : r.setValue(a.sp);
  2410. } else r.node.active = !1;
  2411. var u = e.equip;
  2412. if (u.attr.length <= 0) this.mFAttrNode.active = !1; else {
  2413. this.mFAttrNode.destroyAllChildren();
  2414. this.mFAttrNode.active = !0;
  2415. for (var f = 0; f < u.attr.length; f++) {
  2416. var h = u.attr[f], d = cc.instantiate(this.mFAttrItem);
  2417. d.getComponent(s.default).init(this.main, h);
  2418. d.parent = this.mFAttrNode;
  2419. }
  2420. }
  2421. if (n.skill > 0) {
  2422. this.mSkillNode.active = !0;
  2423. var m = this.main.sManage.getSkillById(n.skill);
  2424. this.mSkillName.string = c.default.t(m.name);
  2425. this.mSkillAbout.string = c.default.t(m.about, {
  2426. VAL1: m.value1,
  2427. VAL2: m.value2,
  2428. VAL3: m.value3
  2429. });
  2430. cc.resources.load("icon/skill/" + m.icon, cc.SpriteFrame, function(t, e) {
  2431. t ? cc.error(t) : i.mSkillIcon.spriteFrame = e;
  2432. });
  2433. } else this.mSkillNode.active = !1;
  2434. } else this.node.active = !1;
  2435. };
  2436. r([ h(a.default) ], e.prototype, "mEquipItem", void 0);
  2437. r([ h(cc.Label) ], e.prototype, "mName", void 0);
  2438. r([ h([ p.default ]) ], e.prototype, "mMainNode", void 0);
  2439. r([ h(cc.Node) ], e.prototype, "mFAttrNode", void 0);
  2440. r([ h(cc.Prefab) ], e.prototype, "mFAttrItem", void 0);
  2441. r([ h(cc.Node) ], e.prototype, "mSkillNode", void 0);
  2442. r([ h(cc.Label) ], e.prototype, "mSkillName", void 0);
  2443. r([ h(cc.Label) ], e.prototype, "mSkillAbout", void 0);
  2444. r([ h(cc.Sprite) ], e.prototype, "mSkillIcon", void 0);
  2445. return r([ f ], e);
  2446. }(cc.Component);
  2447. o.default = d;
  2448. cc._RF.pop();
  2449. }, {
  2450. "../../../i18n/i18n": "i18n",
  2451. "../../common/EquipViewAttr": "EquipViewAttr",
  2452. "../../common/GoodItem": "GoodItem",
  2453. "../../data/FFCalAttr": "FFCalAttr",
  2454. "./MainAtterItem": "MainAtterItem"
  2455. } ],
  2456. EquipItem: [ function(t, e, o) {
  2457. "use strict";
  2458. cc._RF.push(e, "332d4ixum1II4V3hvcdGSr9", "EquipItem");
  2459. var i, n = this && this.__extends || (i = function(t, e) {
  2460. return (i = Object.setPrototypeOf || {
  2461. __proto__: []
  2462. } instanceof Array && function(t, e) {
  2463. t.__proto__ = e;
  2464. } || function(t, e) {
  2465. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  2466. })(t, e);
  2467. }, function(t, e) {
  2468. i(t, e);
  2469. function o() {
  2470. this.constructor = t;
  2471. }
  2472. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  2473. }), r = this && this.__decorate || function(t, e, o, i) {
  2474. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  2475. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  2476. return r > 3 && c && Object.defineProperty(e, o, c), c;
  2477. };
  2478. Object.defineProperty(o, "__esModule", {
  2479. value: !0
  2480. });
  2481. var c = t("../../common/GoodItem"), a = cc._decorator, s = a.ccclass, p = (a.property,
  2482. function(t) {
  2483. n(e, t);
  2484. function e() {
  2485. return null !== t && t.apply(this, arguments) || this;
  2486. }
  2487. e.prototype.initEquip = function(e, o) {
  2488. t.prototype.initEquip.call(this, e, o);
  2489. };
  2490. e.prototype.setLock = function() {
  2491. this.equip = null;
  2492. this.equipData = null;
  2493. this.data = null;
  2494. this.good = null;
  2495. this.mBG.spriteFrame = this.mBGs[1];
  2496. this.mNullNode.active = !1;
  2497. this.callback = null;
  2498. };
  2499. return r([ s ], e);
  2500. }(c.default));
  2501. o.default = p;
  2502. cc._RF.pop();
  2503. }, {
  2504. "../../common/GoodItem": "GoodItem"
  2505. } ],
  2506. EquipPack: [ function(t, e, o) {
  2507. "use strict";
  2508. cc._RF.push(e, "65fffLyqAxJGoLZUBTYpcYn", "EquipPack");
  2509. var i, n = this && this.__extends || (i = function(t, e) {
  2510. return (i = Object.setPrototypeOf || {
  2511. __proto__: []
  2512. } instanceof Array && function(t, e) {
  2513. t.__proto__ = e;
  2514. } || function(t, e) {
  2515. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  2516. })(t, e);
  2517. }, function(t, e) {
  2518. i(t, e);
  2519. function o() {
  2520. this.constructor = t;
  2521. }
  2522. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  2523. }), r = this && this.__decorate || function(t, e, o, i) {
  2524. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  2525. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  2526. return r > 3 && c && Object.defineProperty(e, o, c), c;
  2527. };
  2528. Object.defineProperty(o, "__esModule", {
  2529. value: !0
  2530. });
  2531. var c = t("../../common/GoodItem"), a = t("../../data/FFCalAttr"), s = t("../../data/RedPoint"), p = t("./Equip"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  2532. n(e, t);
  2533. function e() {
  2534. var e = null !== t && t.apply(this, arguments) || this;
  2535. e.mPagContent = null;
  2536. e.mPagScrollView = null;
  2537. e.mEquipItem = null;
  2538. e.mButtonItem = [];
  2539. e.mCheckIcon = null;
  2540. e.mNoCheckIcon = null;
  2541. e.mCheckX = -282;
  2542. e.mNoCheckX = -267;
  2543. e.equipType = 1;
  2544. return e;
  2545. }
  2546. e.prototype.onLoad = function() {
  2547. this.equip = this.node.getComponent(p.default);
  2548. this.main = this.equip.main;
  2549. };
  2550. e.prototype.init = function(t) {
  2551. this.petIcon = t;
  2552. for (var e = 0; e < this.mButtonItem.length; e++) {
  2553. var o = this.mButtonItem[e];
  2554. s.default.removeRed(o);
  2555. }
  2556. this.setEquipType(this.equipType);
  2557. this.flushRedPoint();
  2558. };
  2559. e.prototype.flushRedPoint = function() {
  2560. for (var t = this.main.player.equip, e = 0; e < t.length; e++) {
  2561. var o = t[e];
  2562. if (s.default.equipRedPoint(this.main, o, this.petIcon.data)) {
  2563. var i = this.main.sManage.getEquipById(o.id);
  2564. if (i.type < this.mButtonItem.length) {
  2565. var n = this.mButtonItem[i.type - 1];
  2566. s.default.addRed(this.main, n, !0, !0);
  2567. }
  2568. }
  2569. }
  2570. };
  2571. e.prototype.setEquipType = function(t) {
  2572. this.mPagScrollView.stopAutoScroll();
  2573. this.mPagScrollView.scrollToTop();
  2574. this.equipType = t;
  2575. this.equip.curPage = t;
  2576. this.flushPag();
  2577. for (var e = 0; e < this.mButtonItem.length; e++) {
  2578. var o = this.mButtonItem[e], i = o.getComponent(cc.Sprite);
  2579. if (e == this.equipType - 1) {
  2580. i.spriteFrame = this.mCheckIcon;
  2581. o.x = this.mCheckX;
  2582. } else {
  2583. i.spriteFrame = this.mNoCheckIcon;
  2584. o.x = this.mNoCheckX;
  2585. }
  2586. }
  2587. };
  2588. e.prototype.flushPag = function() {
  2589. if (this.mPagContent.children.length <= 0) for (var t = 0; t < 30; t++) cc.instantiate(this.mEquipItem).parent = this.mPagContent;
  2590. this.flushEquip();
  2591. };
  2592. e.prototype.flushEquip = function() {
  2593. for (var t = this, e = this.main.sManage.getRoleById(this.petIcon.id), o = this.main.player.equip, i = 0, n = this.mPagContent, r = 0; r < o.length; r++) {
  2594. var p = o[r], l = this.main.sManage.getEquipById(p.id);
  2595. if (l.type == this.equipType && (0 == l.occ || e.post == l.occ)) {
  2596. i >= n.children.length && this.addItem(n);
  2597. var u = n.children[i];
  2598. s.default.removeRed(u);
  2599. (d = u.getComponent(c.default)).initEquip(this.main, p);
  2600. d.setCallback(function(e) {
  2601. t.checkEquip(e);
  2602. });
  2603. var f = a.default.getEquipAttr(this.main, d.equip, d.equipData), h = cc.macro.MAX_ZINDEX - f.zdl;
  2604. h < cc.macro.MIN_ZINDEX && (h = cc.macro.MIN_ZINDEX);
  2605. u.zIndex = h;
  2606. i++;
  2607. }
  2608. }
  2609. for (r = i; r < n.children.length; r++) {
  2610. var d;
  2611. u = n.children[r];
  2612. s.default.removeRed(u);
  2613. (d = u.getComponent(c.default)).setNull();
  2614. u.zIndex = cc.macro.MAX_ZINDEX - 1;
  2615. }
  2616. };
  2617. e.prototype.addItem = function(t) {
  2618. for (var e = 0; e < 5; e++) cc.instantiate(this.mEquipItem).parent = t;
  2619. };
  2620. e.prototype.checkEquip = function(t) {
  2621. this.equip.openChangeEquip(t);
  2622. };
  2623. e.prototype.onclickType = function(t, e) {
  2624. var o = parseInt(e);
  2625. this.setEquipType(o);
  2626. };
  2627. r([ f(cc.Node) ], e.prototype, "mPagContent", void 0);
  2628. r([ f(cc.ScrollView) ], e.prototype, "mPagScrollView", void 0);
  2629. r([ f(cc.Prefab) ], e.prototype, "mEquipItem", void 0);
  2630. r([ f([ cc.Node ]) ], e.prototype, "mButtonItem", void 0);
  2631. r([ f(cc.SpriteFrame) ], e.prototype, "mCheckIcon", void 0);
  2632. r([ f(cc.SpriteFrame) ], e.prototype, "mNoCheckIcon", void 0);
  2633. r([ f ], e.prototype, "mCheckX", void 0);
  2634. r([ f ], e.prototype, "mNoCheckX", void 0);
  2635. return r([ u ], e);
  2636. }(cc.Component);
  2637. o.default = h;
  2638. cc._RF.pop();
  2639. }, {
  2640. "../../common/GoodItem": "GoodItem",
  2641. "../../data/FFCalAttr": "FFCalAttr",
  2642. "../../data/RedPoint": "RedPoint",
  2643. "./Equip": "Equip"
  2644. } ],
  2645. EquipQHAttrItem: [ function(t, e, o) {
  2646. "use strict";
  2647. cc._RF.push(e, "bb2daxZtPhJ0rcMiruI1N75", "EquipQHAttrItem");
  2648. var i, n = this && this.__extends || (i = function(t, e) {
  2649. return (i = Object.setPrototypeOf || {
  2650. __proto__: []
  2651. } instanceof Array && function(t, e) {
  2652. t.__proto__ = e;
  2653. } || function(t, e) {
  2654. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  2655. })(t, e);
  2656. }, function(t, e) {
  2657. i(t, e);
  2658. function o() {
  2659. this.constructor = t;
  2660. }
  2661. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  2662. }), r = this && this.__decorate || function(t, e, o, i) {
  2663. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  2664. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  2665. return r > 3 && c && Object.defineProperty(e, o, c), c;
  2666. };
  2667. Object.defineProperty(o, "__esModule", {
  2668. value: !0
  2669. });
  2670. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  2671. n(e, t);
  2672. function e() {
  2673. var e = null !== t && t.apply(this, arguments) || this;
  2674. e.mAttrName = null;
  2675. e.mAttrIcon = null;
  2676. e.mAttrIcons = [];
  2677. e.mAttrV1 = null;
  2678. e.mAttrV2 = null;
  2679. return e;
  2680. }
  2681. e.prototype.setAttr = function(t, e, o) {
  2682. this.mAttrName.string = [ "攻击力", "防御", "气血", "敏捷" ][t];
  2683. this.mAttrIcon.spriteFrame = this.mAttrIcons[t];
  2684. this.mAttrV1.string = "" + e;
  2685. this.mAttrV2.string = "" + o;
  2686. };
  2687. r([ s(cc.Label) ], e.prototype, "mAttrName", void 0);
  2688. r([ s(cc.Sprite) ], e.prototype, "mAttrIcon", void 0);
  2689. r([ s([ cc.SpriteFrame ]) ], e.prototype, "mAttrIcons", void 0);
  2690. r([ s(cc.Label) ], e.prototype, "mAttrV1", void 0);
  2691. r([ s(cc.Label) ], e.prototype, "mAttrV2", void 0);
  2692. return r([ a ], e);
  2693. }(cc.Component);
  2694. o.default = p;
  2695. cc._RF.pop();
  2696. }, {} ],
  2697. EquipQHMax: [ function(t, e, o) {
  2698. "use strict";
  2699. cc._RF.push(e, "21f52CJcZxCtqMj9jV+Ts6Z", "EquipQHMax");
  2700. var i, n = this && this.__extends || (i = function(t, e) {
  2701. return (i = Object.setPrototypeOf || {
  2702. __proto__: []
  2703. } instanceof Array && function(t, e) {
  2704. t.__proto__ = e;
  2705. } || function(t, e) {
  2706. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  2707. })(t, e);
  2708. }, function(t, e) {
  2709. i(t, e);
  2710. function o() {
  2711. this.constructor = t;
  2712. }
  2713. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  2714. }), r = this && this.__decorate || function(t, e, o, i) {
  2715. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  2716. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  2717. return r > 3 && c && Object.defineProperty(e, o, c), c;
  2718. };
  2719. Object.defineProperty(o, "__esModule", {
  2720. value: !0
  2721. });
  2722. var c = t("../../../i18n/i18n"), a = t("../../../main/ViewManage"), s = t("../../../util/CHttp"), p = t("../../common/GoodItem"), l = t("../../data/FFCalAttr"), u = t("./EquipQH"), f = cc._decorator, h = f.ccclass, d = f.property, m = function(t) {
  2723. n(e, t);
  2724. function e() {
  2725. var e = null !== t && t.apply(this, arguments) || this;
  2726. e.mEquipItem = null;
  2727. e.mEquipName = null;
  2728. e.mEquipName1 = null;
  2729. e.mContent = null;
  2730. e.mGoodItem = null;
  2731. e.mQHLevel1 = null;
  2732. e.mQHLevel2 = null;
  2733. e.mQHLevel = null;
  2734. e.mQHBfbLabel = null;
  2735. e.mQHBfbBar = null;
  2736. e.mQHMoney = null;
  2737. e.mQHMaxLabel = null;
  2738. e.mXHEquipItem = null;
  2739. e.mOneKeyBt = null;
  2740. e.mFullNode = null;
  2741. e.spine1 = null;
  2742. e.spine2 = null;
  2743. e.equip = null;
  2744. e.petIcon = null;
  2745. e.curGoodItem = null;
  2746. e.main = null;
  2747. e.MAX_MONEY = [ 5e3, 1e4, 15e3, 2e4, 25e3, 0 ];
  2748. e.tpType = 0;
  2749. e.equipAttr = null;
  2750. e.equipData = null;
  2751. return e;
  2752. }
  2753. e.prototype.onLoad = function() {};
  2754. e.prototype.init = function(t, e, o) {
  2755. this.tpType = 0;
  2756. this.main = this.node.getComponent(u.default).main;
  2757. this.equip = t;
  2758. this.petIcon = e;
  2759. this.equipAttr = o;
  2760. this.equipData = this.main.sManage.getEquipById(o.id);
  2761. this.flushEquipPag();
  2762. };
  2763. e.prototype.checkToggle = function() {
  2764. var t = this.mContent.parent.parent.getComponent(cc.ScrollView);
  2765. t.stopAutoScroll();
  2766. t.scrollToTop();
  2767. this.curGoodItem = null;
  2768. this.mXHEquipItem.setNull();
  2769. this.flushToggle();
  2770. };
  2771. e.prototype.flushToggle = function() {
  2772. var t = this;
  2773. this.flushEquipPag();
  2774. var e = this.node.getComponent(u.default);
  2775. e.mQHFull.active = !1;
  2776. this.mOneKeyBt.active = !1;
  2777. this.mEquipItem.initEquip(this.main, this.equipAttr);
  2778. this.mEquipName.string = c.default.t(this.equipData.name);
  2779. this.mEquipName1.string = c.default.t(this.equipData.name);
  2780. var o = this.equipAttr.qhMax;
  2781. o >= this.equipData.qh_max ? this.mFullNode.active = !0 : this.mFullNode.active = !1;
  2782. this.mQHLevel1.string = this.equipData.level + 5 * o + "";
  2783. this.mQHMoney.string = "" + this.MAX_MONEY[this.equipAttr.qhMax];
  2784. this.flushLevel2();
  2785. this.flushAttr(this.equipAttr.PI);
  2786. e.setSortCallback(function(e) {
  2787. 0 == e ? u.default.sortPag(0, t.mContent) : u.default.sortPag(1, t.mContent);
  2788. });
  2789. };
  2790. e.prototype.flushLevel2 = function() {
  2791. var t = this.equipAttr.qhMax;
  2792. this.curGoodItem && (t += 1);
  2793. t > 5 && (t = 5);
  2794. this.mQHLevel2.string = this.equipData.level + 5 * t + "";
  2795. };
  2796. e.prototype.flushEquipPag = function() {
  2797. for (var t = this, e = this.main.player.equip, o = 0, i = this.mContent, n = 0; n < e.length; n++) {
  2798. var r = e[n];
  2799. if (20001 == r.id || r.id == this.equipAttr.id) if (this.equipAttr.__index == r.__index) this.tpType = 1; else {
  2800. o >= i.children.length && this.addGoodItem(i);
  2801. (c = i.children[o]).opacity = 255;
  2802. (s = c.getComponent(p.default)).initEquip(this.main, r);
  2803. 20001 == r.id ? c.zIndex = 0 : c.zIndex = s.equipData.pz;
  2804. s.setCallback(function(e) {
  2805. t.addEquip(e);
  2806. t.main.playerEffectByPath(a.AudioMgr.qh2);
  2807. });
  2808. o++;
  2809. }
  2810. }
  2811. for (n = o; n < i.children.length; n++) {
  2812. var c, s;
  2813. (c = i.children[n]).opacity = 255;
  2814. (s = c.getComponent(p.default)).setNull();
  2815. c.zIndex = cc.macro.MAX_ZINDEX - 1;
  2816. }
  2817. };
  2818. e.prototype.flushAttr = function(t) {
  2819. var e, o = this.equipData, i = this.main.sManage.getEquipQHByType(o), n = l.default.getEquipQHLevel(this.main, t, o);
  2820. n > 0 && i[n - 1];
  2821. e = n >= i.length ? i[n - 1] : i[n];
  2822. var r = o.level + 5 * this.equipAttr.qhMax;
  2823. n > r && (n = r);
  2824. this.mQHLevel.string = "Lv." + n + "/" + r;
  2825. var a = (t - 0) / (e.exp - 0);
  2826. a > 1 && (a = 1);
  2827. this.mQHBfbBar.progress = a;
  2828. this.mQHBfbLabel.string = Math.floor(100 * a) + "%";
  2829. this.mQHMaxLabel.string = c.default.t("上限突破次数") + this.equipAttr.qhMax + "/5";
  2830. };
  2831. e.prototype.addGoodItem = function(t) {
  2832. for (var e = 0; e < 4; e++) cc.instantiate(this.mGoodItem).parent = t;
  2833. };
  2834. e.prototype.addEquip = function(t) {
  2835. this.curGoodItem && (this.curGoodItem.node.opacity = 255);
  2836. this.curGoodItem = t;
  2837. this.curGoodItem.node.opacity = 100;
  2838. this.mXHEquipItem.initEquip(this.main, t.equip);
  2839. this.flushLevel2();
  2840. };
  2841. e.prototype.onclickTP = function() {
  2842. 0 == this.tpType ? this.tpFunc() : 1 == this.tpType && this.tpFunc1();
  2843. };
  2844. e.prototype.tpFunc = function() {
  2845. var t = this;
  2846. if (this.curGoodItem) {
  2847. var e = {
  2848. petId: this.petIcon.id,
  2849. equipId: this.equipAttr.id,
  2850. equipIndex: this.curGoodItem.equip.__index
  2851. };
  2852. this.main.gameHttp.sendJson("equip/v1/qhMax", e, function(e, o) {
  2853. t.main.stopLoad();
  2854. if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) {
  2855. t.main.playerEffectByPath(a.AudioMgr.qh);
  2856. t.playQHSpine();
  2857. t.equipAttr.qhMax += 1;
  2858. t.curGoodItem = null;
  2859. t.mXHEquipItem.setNull();
  2860. t.flushToggle();
  2861. t.equip.flushEquip(t.petIcon);
  2862. t.equip.flushPagSize();
  2863. t.main.showTips("强化上限成功");
  2864. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  2865. });
  2866. } else this.main.showTips("没有添加任何材料");
  2867. };
  2868. e.prototype.tpFunc1 = function() {
  2869. var t = this;
  2870. if (this.curGoodItem) {
  2871. var e = {
  2872. equipIndex1: this.equipAttr.__index,
  2873. equipIndex2: this.curGoodItem.equip.__index
  2874. };
  2875. this.main.gameHttp.sendJson("equip/v1/qhMax1", e, function(e, o) {
  2876. t.main.stopLoad();
  2877. if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) {
  2878. t.main.playerEffectByPath(a.AudioMgr.qh);
  2879. t.playQHSpine();
  2880. t.equipAttr.qhMax += 1;
  2881. t.curGoodItem = null;
  2882. t.mXHEquipItem.setNull();
  2883. t.flushToggle();
  2884. t.equip.mEquipPack.setEquipType(t.equip.curPage);
  2885. t.equip.flushEquip(t.petIcon);
  2886. t.equip.flushPagSize();
  2887. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  2888. });
  2889. } else this.main.showTips("没有添加任何材料");
  2890. };
  2891. e.prototype.playQHSpine = function() {
  2892. var t = this;
  2893. this.spine1.setAnimation(0, "atk", !1);
  2894. this.spine1.setCompleteListener(function() {
  2895. t.spine1.setAnimation(0, "idle", !1);
  2896. t.spine2.node.active = !0;
  2897. t.spine2.setAnimation(0, "animation", !1);
  2898. t.spine2.setCompleteListener(function() {
  2899. t.spine2.node.active = !1;
  2900. t.spine1.clearTrack(0);
  2901. });
  2902. });
  2903. };
  2904. r([ d(p.default) ], e.prototype, "mEquipItem", void 0);
  2905. r([ d(cc.Label) ], e.prototype, "mEquipName", void 0);
  2906. r([ d(cc.Label) ], e.prototype, "mEquipName1", void 0);
  2907. r([ d(cc.Node) ], e.prototype, "mContent", void 0);
  2908. r([ d(cc.Prefab) ], e.prototype, "mGoodItem", void 0);
  2909. r([ d(cc.Label) ], e.prototype, "mQHLevel1", void 0);
  2910. r([ d(cc.Label) ], e.prototype, "mQHLevel2", void 0);
  2911. r([ d(cc.Label) ], e.prototype, "mQHLevel", void 0);
  2912. r([ d(cc.Label) ], e.prototype, "mQHBfbLabel", void 0);
  2913. r([ d(cc.ProgressBar) ], e.prototype, "mQHBfbBar", void 0);
  2914. r([ d(cc.Label) ], e.prototype, "mQHMoney", void 0);
  2915. r([ d(cc.Label) ], e.prototype, "mQHMaxLabel", void 0);
  2916. r([ d(p.default) ], e.prototype, "mXHEquipItem", void 0);
  2917. r([ d(cc.Node) ], e.prototype, "mOneKeyBt", void 0);
  2918. r([ d(cc.Node) ], e.prototype, "mFullNode", void 0);
  2919. r([ d(sp.Skeleton) ], e.prototype, "spine1", void 0);
  2920. r([ d(sp.Skeleton) ], e.prototype, "spine2", void 0);
  2921. return r([ h ], e);
  2922. }(cc.Component);
  2923. o.default = m;
  2924. cc._RF.pop();
  2925. }, {
  2926. "../../../i18n/i18n": "i18n",
  2927. "../../../main/ViewManage": "ViewManage",
  2928. "../../../util/CHttp": "CHttp",
  2929. "../../common/GoodItem": "GoodItem",
  2930. "../../data/FFCalAttr": "FFCalAttr",
  2931. "./EquipQH": "EquipQH"
  2932. } ],
  2933. EquipQH: [ function(t, e, o) {
  2934. "use strict";
  2935. cc._RF.push(e, "9c6c7LQQ2lJDIJ9hjiBfj/T", "EquipQH");
  2936. var i, n = this && this.__extends || (i = function(t, e) {
  2937. return (i = Object.setPrototypeOf || {
  2938. __proto__: []
  2939. } instanceof Array && function(t, e) {
  2940. t.__proto__ = e;
  2941. } || function(t, e) {
  2942. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  2943. })(t, e);
  2944. }, function(t, e) {
  2945. i(t, e);
  2946. function o() {
  2947. this.constructor = t;
  2948. }
  2949. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  2950. }), r = this && this.__decorate || function(t, e, o, i) {
  2951. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  2952. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  2953. return r > 3 && c && Object.defineProperty(e, o, c), c;
  2954. };
  2955. Object.defineProperty(o, "__esModule", {
  2956. value: !0
  2957. });
  2958. var c = t("../../../i18n/i18n"), a = t("../../../main/ViewManage"), s = t("../../../main/ViewObject"), p = t("../../../util/CHttp"), l = t("../../common/GoodItem"), u = t("../../data/FFCalAttr"), f = t("./EquipQHAttrItem"), h = t("./EquipQHMax"), d = t("./EquipStar"), m = cc._decorator, y = m.ccclass, v = m.property, g = function(t) {
  2959. n(e, t);
  2960. function e() {
  2961. var e = null !== t && t.apply(this, arguments) || this;
  2962. e.mEquipItem = null;
  2963. e.mEquipName = null;
  2964. e.mContent = null;
  2965. e.mGoodItem = null;
  2966. e.mQHLevel = null;
  2967. e.mQHBfbLabel = null;
  2968. e.mQHBfbBar = null;
  2969. e.mQHMoney = null;
  2970. e.mXhContent = null;
  2971. e.mBtSort = null;
  2972. e.mQHFull = null;
  2973. e.mFullWord = null;
  2974. e.mQHAttrs = [];
  2975. e.mOneKeyBt = null;
  2976. e.QHBtnNode = null;
  2977. e.spine1 = null;
  2978. e.spine2 = null;
  2979. e.equip = null;
  2980. e.petIcon = null;
  2981. e.curGoodItem = [];
  2982. e.inGuide = !1;
  2983. e.guideStep = 0;
  2984. e.qhType = 0;
  2985. e.equipAttr = null;
  2986. return e;
  2987. }
  2988. o = e;
  2989. e.prototype.onLoad = function() {
  2990. this.mBtSort.active = !1;
  2991. };
  2992. e.prototype.init = function(t, e, o) {
  2993. var i = this;
  2994. this.qhType = 0;
  2995. this.equip = o;
  2996. this.petIcon = e;
  2997. this.equipAttr = t;
  2998. this.mEquipItem.initEquip(this.main, t);
  2999. this.mEquipName.string = c.default.t(this.main.sManage.getEquipById(t.id).name);
  3000. for (var n = 0; n < 20; n++) cc.instantiate(this.mGoodItem).parent = this.mContent;
  3001. for (n = 0; n < 10; n++) cc.instantiate(this.mGoodItem).parent = this.mXhContent;
  3002. this.checkToggle();
  3003. this.node.getComponent(h.default).init(this.equip, e, t);
  3004. this.node.getComponent(d.default).init(this.equip, e, t);
  3005. this.scheduleOnce(function() {
  3006. i.inGuide && 1 == i.guideStep && i.onGuide_1();
  3007. }, .1);
  3008. };
  3009. e.prototype.checkToggle = function() {
  3010. var t = this, e = this.mContent.parent.parent.getComponent(cc.ScrollView);
  3011. e.stopAutoScroll();
  3012. e.scrollToTop();
  3013. this.mEquipItem.flushEquip(this.main);
  3014. this.curGoodItem = [];
  3015. this.flushEquipPag();
  3016. this.flushXH();
  3017. this.setOneKeyCallback(function() {
  3018. t.oneKeyPush();
  3019. });
  3020. this.setSortCallback(function(e) {
  3021. 0 == e ? o.sortPag(0, t.mContent) : o.sortPag(1, t.mContent);
  3022. });
  3023. };
  3024. e.prototype.flushAttr = function(t) {
  3025. var e = this.main.sManage.getEquipById(this.equipAttr.id), o = this.main.sManage.getEquipQHByType(e), i = u.default.getEquipQHLevel(this.main, this.equipAttr.PI, e), n = u.default.getEquipQHLevel(this.main, t, e), r = e.level + 5 * this.equipAttr.qhMax;
  3026. if (n >= r) {
  3027. this.mQHFull.active = !0;
  3028. n = r;
  3029. } else this.mQHFull.active = !1;
  3030. this.mOneKeyBt.active = !(i >= r);
  3031. if (this.curGoodItem.length >= 10) {
  3032. this.mQHFull.active = !0;
  3033. this.mOneKeyBt.children[0].getComponent(cc.Label).string = "一键卸下";
  3034. } else this.mOneKeyBt.children[0].getComponent(cc.Label).string = "一键放入";
  3035. var c, a = 0;
  3036. i > 0 && (a = o[i - 1].exp);
  3037. n > 0 && (a = o[n - 1].exp);
  3038. c = n >= o.length ? o[n - 1] : o[n];
  3039. var s = n - i;
  3040. this.mQHLevel.string = s > 0 ? "Lv." + n + "/" + r + "(+" + s + ")" : "Lv." + n + "/" + r;
  3041. var p = (t - a) / (c.exp - a);
  3042. p > 1 && (p = 1);
  3043. this.mQHBfbBar.progress = p;
  3044. this.mQHBfbLabel.string = Math.floor(100 * p) + "%";
  3045. this.mFullWord.active = i >= r;
  3046. var l = u.default.getEquipAttr(this.main, this.equipAttr, e), f = cc.instantiate(this.equipAttr);
  3047. f.PI = t;
  3048. for (var h = u.default.getEquipAttr(this.main, f, e), d = [ l.atk, l.def, l.hp, l.sp ], m = [ h.atk, h.def, h.hp, h.sp ], y = 0, v = 0; v < 4; v++) {
  3049. var g = d[v], _ = m[v];
  3050. if (g > 0) {
  3051. this.mQHAttrs[y].setAttr(v, g, _);
  3052. y++;
  3053. }
  3054. }
  3055. for (v = y; v < this.mQHAttrs.length; v++) this.mQHAttrs[v].node.active = !1;
  3056. };
  3057. e.prototype.flushEquipPag = function() {
  3058. for (var t = this, e = this.main.player.equip, o = 0, i = this.mContent, n = 0; n < e.length; n++) {
  3059. var r = e[n], c = this.main.sManage.getEquipById(r.id);
  3060. if (5 != c.type && 6 != c.type && 11 != c.type) if (this.mEquipItem.equip.__index != r.__index) {
  3061. o >= i.children.length && this.addGoodItem(i);
  3062. (p = i.children[o]).opacity = 255;
  3063. (f = p.getComponent(l.default)).initEquip(this.main, r);
  3064. if (r.id >= 1e4 && r.id < 2e4) p.zIndex = 0; else {
  3065. var s = u.default.getZdl(f.equipData);
  3066. s > cc.macro.MAX_ZINDEX - 2 && (s = cc.macro.MAX_ZINDEX - 2);
  3067. p.zIndex = s;
  3068. }
  3069. f.setCallback(function(e) {
  3070. t.main.playerEffectByPath(a.AudioMgr.qh2);
  3071. t.addEquip(e);
  3072. t.guideCallback && t.guideCallback();
  3073. });
  3074. o++;
  3075. } else this.qhType = 1;
  3076. }
  3077. for (n = o; n < i.children.length; n++) {
  3078. var p, f;
  3079. (p = i.children[n]).opacity = 255;
  3080. (f = p.getComponent(l.default)).setNull();
  3081. p.zIndex = cc.macro.MAX_ZINDEX - 1;
  3082. }
  3083. };
  3084. e.prototype.addGoodItem = function(t) {
  3085. for (var e = 0; e < 4; e++) cc.instantiate(this.mGoodItem).parent = t;
  3086. };
  3087. e.prototype.setOneKeyCallback = function(t) {
  3088. this.oneKeyCallback = t;
  3089. };
  3090. e.prototype.oneKeyPush = function() {
  3091. if (this.curGoodItem.length >= 10) {
  3092. for (var t = 0; t < this.curGoodItem.length; t++) this.curGoodItem[t].node.opacity = 255;
  3093. this.curGoodItem = [];
  3094. } else {
  3095. for (t = 0; t < this.curGoodItem.length; t++) this.curGoodItem[t].node.opacity = 255;
  3096. this.curGoodItem = [];
  3097. var e = 0;
  3098. for (t = 0; t < 10 && !(t >= this.mContent.children.length); t++) {
  3099. var o = this.mContent.children[t].getComponent(l.default);
  3100. if (o.equip) {
  3101. o.node.opacity = 100;
  3102. e += o.equipData.qh_exp;
  3103. e += o.equip.PI;
  3104. var i = this.equipAttr.PI + e;
  3105. this.curGoodItem.push(o);
  3106. if (u.default.getEquipQHLevel(this.main, i, this.main.sManage.getEquipById(this.equipAttr.id)) >= this.main.sManage.getEquipById(this.equipAttr.id).level + 5 * this.equipAttr.qhMax) break;
  3107. }
  3108. }
  3109. }
  3110. this.flushXH();
  3111. };
  3112. e.prototype.onclickOneKey = function() {
  3113. this.oneKeyCallback && this.oneKeyCallback();
  3114. };
  3115. e.prototype.addEquip = function(t) {
  3116. if (100 != t.node.opacity) if (this.curGoodItem.length >= 10) this.main.showTips(c.default.t("消耗材料以满")); else {
  3117. t.node.opacity = 100;
  3118. this.curGoodItem.push(t);
  3119. this.flushXH();
  3120. }
  3121. };
  3122. e.prototype.removeEquip = function(t) {
  3123. for (var e = 0; e < this.curGoodItem.length; e++) {
  3124. var o = this.curGoodItem[e];
  3125. if (o.equip.__index == t.equip.__index) {
  3126. o.node.opacity = 255;
  3127. this.curGoodItem.splice(e, 1);
  3128. break;
  3129. }
  3130. }
  3131. this.flushXH();
  3132. };
  3133. e.prototype.flushXH = function() {
  3134. for (var t = this, e = 0, o = 0; o < this.mXhContent.children.length; o++) {
  3135. var i = this.mXhContent.children[o].getComponent(l.default);
  3136. if (o < this.curGoodItem.length) {
  3137. var n = this.curGoodItem[o];
  3138. i.initEquip(this.main, n.equip);
  3139. i.setCallback(function(e) {
  3140. t.removeEquip(e);
  3141. });
  3142. e += n.equipData.qh_exp;
  3143. e += n.equip.PI;
  3144. } else i.setNull();
  3145. }
  3146. this.mQHMoney.string = "" + 5 * e;
  3147. var r = this.equipAttr.PI + e;
  3148. this.flushAttr(r);
  3149. };
  3150. e.prototype.onclickSort = function() {
  3151. this.mBtSort.active = !this.mBtSort.active;
  3152. };
  3153. e.prototype.setSortCallback = function(t) {
  3154. this.sortCallback = t;
  3155. };
  3156. e.sortPag = function(t, e) {
  3157. for (var o = 0; o < e.children.length; o++) {
  3158. var i = e.children[o], n = i.getComponent(l.default);
  3159. if (n.equip) if (20001 == n.equipData.id) i.zIndex = 0; else if (n.equipData.id >= 1e4 && n.equipData.id < 2e4) i.zIndex = 0; else if (0 == t) i.zIndex = n.equipData.pz; else {
  3160. var r = u.default.getZdl(n.equipData);
  3161. r > cc.macro.MAX_ZINDEX - 2 && (r = cc.macro.MAX_ZINDEX - 2);
  3162. i.zIndex = r;
  3163. } else i.zIndex = cc.macro.MAX_ZINDEX - 1;
  3164. }
  3165. };
  3166. e.prototype.onclickStarSort = function() {
  3167. this.mBtSort.active = !1;
  3168. this.sortCallback(0);
  3169. };
  3170. e.prototype.onclickZdlSort = function() {
  3171. this.mBtSort.active = !1;
  3172. this.sortCallback(1);
  3173. };
  3174. e.prototype.onclickQHSend = function() {
  3175. 0 == this.qhType ? this.QHFcun() : 1 == this.qhType && this.QHFcun1();
  3176. };
  3177. e.prototype.QHFcun = function() {
  3178. for (var t = this, e = [], o = 0; o < this.curGoodItem.length; o++) {
  3179. var i = this.curGoodItem[o];
  3180. e.push(i.equip.__index);
  3181. }
  3182. if (0 != e.length) {
  3183. var n = {
  3184. petId: this.petIcon.id,
  3185. equipId: this.equipAttr.id,
  3186. equips: e
  3187. };
  3188. this.main.gameHttp.sendJson("equip/v1/qh", n, function(e, o) {
  3189. t.main.stopLoad();
  3190. if (e == p.HttpStateType.SUCCESS) if (0 == o.retCode) {
  3191. t.playQHSpine();
  3192. t.main.playerEffectByPath(a.AudioMgr.qh);
  3193. t.equipAttr.PI = o.data.PI;
  3194. t.curGoodItem = [];
  3195. t.mEquipItem.flushEquip(t.main);
  3196. t.flushEquipPag();
  3197. t.equip.flushEquip(t.petIcon);
  3198. t.equip.flushPagSize();
  3199. t.flushXH();
  3200. t.inGuide && 1 == t.guideStep && t.onGuideExit();
  3201. t.main.showTips("强化成功");
  3202. } else {
  3203. t.main.showTips(o.message);
  3204. t.inGuide && 1 == t.guideStep && t.onGuideExit();
  3205. } else t.main.showTips("网络异常");
  3206. });
  3207. } else this.main.showTips("没有添加任何材料");
  3208. };
  3209. e.prototype.QHFcun1 = function() {
  3210. for (var t = this, e = [], o = 0; o < this.curGoodItem.length; o++) {
  3211. var i = this.curGoodItem[o];
  3212. e.push(i.equip.__index);
  3213. }
  3214. if (0 != e.length) {
  3215. var n = {
  3216. equipIndex: this.mEquipItem.equip.__index,
  3217. equips: e
  3218. };
  3219. this.main.gameHttp.sendJson("equip/v1/qh1", n, function(e, o) {
  3220. t.main.stopLoad();
  3221. if (e == p.HttpStateType.SUCCESS) if (0 == o.retCode) {
  3222. t.playQHSpine();
  3223. t.main.playerEffectByPath(a.AudioMgr.qh);
  3224. t.equipAttr.PI = o.data.PI;
  3225. t.curGoodItem = [];
  3226. t.mEquipItem.flushEquip(t.main);
  3227. t.equip.mEquipPack.setEquipType(t.equip.curPage);
  3228. t.flushEquipPag();
  3229. t.equip.flushEquip(t.petIcon);
  3230. t.equip.flushPagSize();
  3231. t.flushXH();
  3232. t.main.showTips("强化成功");
  3233. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  3234. });
  3235. } else this.main.showTips("没有添加任何材料");
  3236. };
  3237. e.prototype.playQHSpine = function() {
  3238. var t = this;
  3239. this.spine1.setAnimation(0, "atk", !1);
  3240. this.spine1.setCompleteListener(function() {
  3241. t.spine1.setAnimation(0, "idle", !1);
  3242. t.spine2.node.active = !0;
  3243. t.spine2.setAnimation(0, "animation", !1);
  3244. t.spine2.setCompleteListener(function() {
  3245. t.spine2.node.active = !1;
  3246. t.spine1.clearTrack(0);
  3247. });
  3248. });
  3249. };
  3250. e.prototype.setGuideCallback = function(t) {
  3251. this.guideCallback = t;
  3252. };
  3253. e.prototype.onGuide_1 = function() {
  3254. var t = this, e = this.main.mGuideMask, o = this.mContent.children[0];
  3255. e.setTargetNode(o);
  3256. e.show();
  3257. this.setGuideCallback(function() {
  3258. o = t.QHBtnNode;
  3259. e.setTargetNode(o);
  3260. });
  3261. };
  3262. e.prototype.onGuideExit = function() {
  3263. var t = this.main.mGuideMask, e = this.node.getChildByName("top_left").getChildByName("fh");
  3264. t.setTargetNode(e);
  3265. t.show();
  3266. var o = this.closeCallback;
  3267. this.setCloseCallback(function() {
  3268. t.close();
  3269. o && o();
  3270. });
  3271. };
  3272. var o;
  3273. r([ v(l.default) ], e.prototype, "mEquipItem", void 0);
  3274. r([ v(cc.Label) ], e.prototype, "mEquipName", void 0);
  3275. r([ v(cc.Node) ], e.prototype, "mContent", void 0);
  3276. r([ v(cc.Prefab) ], e.prototype, "mGoodItem", void 0);
  3277. r([ v(cc.Label) ], e.prototype, "mQHLevel", void 0);
  3278. r([ v(cc.Label) ], e.prototype, "mQHBfbLabel", void 0);
  3279. r([ v(cc.ProgressBar) ], e.prototype, "mQHBfbBar", void 0);
  3280. r([ v(cc.Label) ], e.prototype, "mQHMoney", void 0);
  3281. r([ v(cc.Node) ], e.prototype, "mXhContent", void 0);
  3282. r([ v(cc.Node) ], e.prototype, "mBtSort", void 0);
  3283. r([ v(cc.Node) ], e.prototype, "mQHFull", void 0);
  3284. r([ v(cc.Node) ], e.prototype, "mFullWord", void 0);
  3285. r([ v([ f.default ]) ], e.prototype, "mQHAttrs", void 0);
  3286. r([ v(cc.Node) ], e.prototype, "mOneKeyBt", void 0);
  3287. r([ v(cc.Node) ], e.prototype, "QHBtnNode", void 0);
  3288. r([ v(sp.Skeleton) ], e.prototype, "spine1", void 0);
  3289. r([ v(sp.Skeleton) ], e.prototype, "spine2", void 0);
  3290. return o = r([ y ], e);
  3291. }(s.default);
  3292. o.default = g;
  3293. cc._RF.pop();
  3294. }, {
  3295. "../../../i18n/i18n": "i18n",
  3296. "../../../main/ViewManage": "ViewManage",
  3297. "../../../main/ViewObject": "ViewObject",
  3298. "../../../util/CHttp": "CHttp",
  3299. "../../common/GoodItem": "GoodItem",
  3300. "../../data/FFCalAttr": "FFCalAttr",
  3301. "./EquipQHAttrItem": "EquipQHAttrItem",
  3302. "./EquipQHMax": "EquipQHMax",
  3303. "./EquipStar": "EquipStar"
  3304. } ],
  3305. EquipStar: [ function(t, e, o) {
  3306. "use strict";
  3307. cc._RF.push(e, "a4bc0wz4CdLk7Bban26d6NF", "EquipStar");
  3308. var i, n = this && this.__extends || (i = function(t, e) {
  3309. return (i = Object.setPrototypeOf || {
  3310. __proto__: []
  3311. } instanceof Array && function(t, e) {
  3312. t.__proto__ = e;
  3313. } || function(t, e) {
  3314. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  3315. })(t, e);
  3316. }, function(t, e) {
  3317. i(t, e);
  3318. function o() {
  3319. this.constructor = t;
  3320. }
  3321. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  3322. }), r = this && this.__decorate || function(t, e, o, i) {
  3323. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  3324. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  3325. return r > 3 && c && Object.defineProperty(e, o, c), c;
  3326. };
  3327. Object.defineProperty(o, "__esModule", {
  3328. value: !0
  3329. });
  3330. var c = t("../../../i18n/i18n"), a = t("../../../main/ViewManage"), s = t("../../../util/CHttp"), p = t("../../common/GoodItem"), l = t("./EquipQH"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  3331. n(e, t);
  3332. function e() {
  3333. var e = null !== t && t.apply(this, arguments) || this;
  3334. e.mEquipItem = null;
  3335. e.mContent = null;
  3336. e.mGoodItem = null;
  3337. e.mEquipName = null;
  3338. e.mBfbLabel = null;
  3339. e.mBfbBar = null;
  3340. e.mQHMoney = null;
  3341. e.mXhContent = null;
  3342. e.mOneKeyBt = null;
  3343. e.mAttrLabel = null;
  3344. e.mFullNode = null;
  3345. e.spine1 = null;
  3346. e.spine2 = null;
  3347. e.equip = null;
  3348. e.petIcon = null;
  3349. e.curGoodItem = [];
  3350. e.STAR_GL = [ 50, 30, 20, 10 ];
  3351. e.STAR_MONEY = [ 5e3, 2e4, 5e4, 12e4, 2e5 ];
  3352. e.main = null;
  3353. e.starType = 0;
  3354. e.equipAttr = null;
  3355. e.equipData = null;
  3356. return e;
  3357. }
  3358. e.prototype.onLoad = function() {
  3359. this.mFullNode.active = !1;
  3360. this.mBfbLabel.string = "0%";
  3361. this.mBfbBar.progress = 0;
  3362. };
  3363. e.prototype.init = function(t, e, o) {
  3364. this.starType = 0;
  3365. this.main = this.node.getComponent(l.default).main;
  3366. this.equip = t;
  3367. this.petIcon = e;
  3368. this.equipAttr = o;
  3369. this.equipData = this.main.sManage.getEquipById(o.id);
  3370. for (var i = 0; i < 10; i++) cc.instantiate(this.mGoodItem).parent = this.mXhContent;
  3371. this.mQHMoney.string = "" + this.STAR_MONEY[this.equipAttr.star];
  3372. this.flushEquipPag();
  3373. };
  3374. e.prototype.checkToggle = function() {
  3375. var t = this, e = this.mContent.parent.parent.getComponent(cc.ScrollView);
  3376. e.stopAutoScroll();
  3377. e.scrollToTop();
  3378. this.mOneKeyBt.active = !0;
  3379. this.mEquipItem.initEquip(this.main, this.equipAttr);
  3380. this.mEquipName.string = c.default.t(this.equipData.name);
  3381. this.curGoodItem = [];
  3382. this.flushEquipPag();
  3383. this.flushXH();
  3384. var o = this.node.getComponent(l.default);
  3385. o.setOneKeyCallback(function() {
  3386. t.oneKeyPush();
  3387. });
  3388. o.setSortCallback(function(e) {
  3389. 0 == e ? l.default.sortPag(0, t.mContent) : l.default.sortPag(1, t.mContent);
  3390. });
  3391. };
  3392. e.prototype.flushEquipPag = function() {
  3393. for (var t = this, e = this.main.player.equip, o = 0, i = this.mContent, n = 0; n < e.length; n++) {
  3394. var r = e[n];
  3395. if (r.star == this.equipAttr.star) if (this.equipAttr.__index == r.__index) this.starType = 1; else {
  3396. var c = this.main.sManage.getEquipById(r.id);
  3397. if (c.type == this.equipData.type && c.pz == this.equipData.pz) {
  3398. o >= i.children.length && this.addGoodItem(i);
  3399. (s = i.children[o]).opacity = 255;
  3400. (l = s.getComponent(p.default)).initEquip(this.main, r);
  3401. l.setCallback(function(e) {
  3402. t.addEquip(e);
  3403. t.main.playerEffectByPath(a.AudioMgr.qh2);
  3404. });
  3405. o++;
  3406. }
  3407. }
  3408. }
  3409. for (n = o; n < i.children.length; n++) {
  3410. var s, l;
  3411. (s = i.children[n]).opacity = 255;
  3412. (l = s.getComponent(p.default)).setNull();
  3413. }
  3414. };
  3415. e.prototype.addGoodItem = function(t) {
  3416. for (var e = 0; e < 4; e++) cc.instantiate(this.mGoodItem).parent = t;
  3417. };
  3418. e.prototype.addEquip = function(t) {
  3419. if (100 != t.node.opacity) if (this.curGoodItem.length >= 10) this.main.showTips(c.default.t("消耗材料以满")); else {
  3420. t.node.opacity = 100;
  3421. this.curGoodItem.push(t);
  3422. this.flushXH();
  3423. }
  3424. };
  3425. e.prototype.removeEquip = function(t) {
  3426. for (var e = 0; e < this.curGoodItem.length; e++) {
  3427. var o = this.curGoodItem[e];
  3428. if (o.equip.__index == t.equip.__index) {
  3429. o.node.opacity = 255;
  3430. this.curGoodItem.splice(e, 1);
  3431. break;
  3432. }
  3433. }
  3434. this.flushXH();
  3435. };
  3436. e.prototype.flushXH = function() {
  3437. var t = this;
  3438. if (this.equipAttr.star >= 5) this.mFullNode.active = !0; else {
  3439. for (var e = 0, o = 0; o < this.mXhContent.children.length; o++) {
  3440. var i = this.mXhContent.children[o].getComponent(p.default);
  3441. if (o < this.curGoodItem.length) {
  3442. var n = this.curGoodItem[o];
  3443. i.initEquip(this.main, n.equip);
  3444. i.setCallback(function(e) {
  3445. t.removeEquip(e);
  3446. });
  3447. e += this.STAR_GL[this.equipAttr.star];
  3448. } else i.setNull();
  3449. }
  3450. if (e >= 100) {
  3451. e = 100;
  3452. this.node.getComponent(l.default).mQHFull.active = !0;
  3453. this.mAttrLabel.string = "基础属性提升+" + 10 * (this.equipAttr.star + 1) + "%";
  3454. } else {
  3455. this.node.getComponent(l.default).mQHFull.active = !1;
  3456. this.mAttrLabel.string = "基础属性提升+" + 10 * this.equipAttr.star + "%";
  3457. }
  3458. this.mBfbLabel.string = e + "%";
  3459. this.mBfbBar.progress = e / 100;
  3460. this.mQHMoney.string = "" + this.STAR_MONEY[this.equipAttr.star];
  3461. this.curGoodItem.length >= 10 ? this.mOneKeyBt.children[0].getComponent(cc.Label).string = c.default.t("一键卸下") : this.mOneKeyBt.children[0].getComponent(cc.Label).string = c.default.t("一键放入");
  3462. }
  3463. };
  3464. e.prototype.oneKeyPush = function() {
  3465. if (this.curGoodItem.length >= 10) {
  3466. for (var t = 0; t < this.curGoodItem.length; t++) this.curGoodItem[t].node.opacity = 255;
  3467. this.curGoodItem = [];
  3468. } else {
  3469. for (t = 0; t < this.curGoodItem.length; t++) this.curGoodItem[t].node.opacity = 255;
  3470. this.curGoodItem = [];
  3471. var e = 0;
  3472. for (t = 0; t < 10 && !(t >= this.mContent.children.length); t++) {
  3473. var o = this.mContent.children[t].getComponent(p.default);
  3474. if (o.equip) {
  3475. o.node.opacity = 100;
  3476. e += this.STAR_GL[this.equipAttr.star];
  3477. this.curGoodItem.push(o);
  3478. if (e >= 100) break;
  3479. }
  3480. }
  3481. }
  3482. this.flushXH();
  3483. };
  3484. e.prototype.onclickStar = function() {
  3485. 0 == this.starType ? this.starFunc() : 1 == this.starType && this.starFunc1();
  3486. };
  3487. e.prototype.starFunc = function() {
  3488. for (var t = this, e = [], o = 0; o < this.curGoodItem.length; o++) {
  3489. var i = this.curGoodItem[o];
  3490. e.push(i.equip.__index);
  3491. }
  3492. if (0 != e.length) {
  3493. var n = {
  3494. petId: this.petIcon.id,
  3495. equipId: this.equipAttr.id,
  3496. equips: e
  3497. };
  3498. this.main.gameHttp.sendJson("equip/v1/star", n, function(e, o) {
  3499. t.main.stopLoad();
  3500. if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) {
  3501. if (o.data.star > 0) {
  3502. t.main.playerEffectByPath(a.AudioMgr.qh);
  3503. t.playQHSpine();
  3504. t.equipAttr.star = o.data.star;
  3505. t.main.showTips("升星成功");
  3506. } else t.main.showTips("升级失败");
  3507. t.curGoodItem = [];
  3508. t.mEquipItem.flushEquip(t.main);
  3509. t.flushEquipPag();
  3510. t.equip.flushEquip(t.petIcon);
  3511. t.equip.flushPagSize();
  3512. t.flushXH();
  3513. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  3514. });
  3515. } else this.main.showTips("没有添加任何材料");
  3516. };
  3517. e.prototype.starFunc1 = function() {
  3518. for (var t = this, e = [], o = 0; o < this.curGoodItem.length; o++) {
  3519. var i = this.curGoodItem[o];
  3520. e.push(i.equip.__index);
  3521. }
  3522. if (0 != e.length) {
  3523. var n = {
  3524. equipIndex: this.equipAttr.__index,
  3525. equips: e
  3526. };
  3527. this.main.gameHttp.sendJson("equip/v1/star1", n, function(e, o) {
  3528. t.main.stopLoad();
  3529. if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) {
  3530. if (o.data.star > 0) {
  3531. t.main.playerEffectByPath(a.AudioMgr.qh);
  3532. t.playQHSpine();
  3533. t.equipAttr.star = o.data.star;
  3534. } else t.main.showTips("升级失败");
  3535. t.curGoodItem = [];
  3536. t.mEquipItem.flushEquip(t.main);
  3537. t.flushEquipPag();
  3538. t.equip.flushEquip(t.petIcon);
  3539. t.equip.flushPagSize();
  3540. t.flushXH();
  3541. t.equip.mEquipPack.setEquipType(t.equip.curPage);
  3542. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  3543. });
  3544. } else this.main.showTips("没有添加任何材料");
  3545. };
  3546. e.prototype.playQHSpine = function() {
  3547. var t = this;
  3548. this.spine1.setAnimation(0, "atk", !1);
  3549. this.spine1.setCompleteListener(function() {
  3550. t.spine1.setAnimation(0, "idle", !1);
  3551. t.spine2.node.active = !0;
  3552. t.spine2.setAnimation(0, "animation", !1);
  3553. t.spine2.setCompleteListener(function() {
  3554. t.spine2.node.active = !1;
  3555. t.spine1.clearTrack(0);
  3556. });
  3557. });
  3558. };
  3559. r([ h(p.default) ], e.prototype, "mEquipItem", void 0);
  3560. r([ h(cc.Node) ], e.prototype, "mContent", void 0);
  3561. r([ h(cc.Prefab) ], e.prototype, "mGoodItem", void 0);
  3562. r([ h(cc.Label) ], e.prototype, "mEquipName", void 0);
  3563. r([ h(cc.Label) ], e.prototype, "mBfbLabel", void 0);
  3564. r([ h(cc.ProgressBar) ], e.prototype, "mBfbBar", void 0);
  3565. r([ h(cc.Label) ], e.prototype, "mQHMoney", void 0);
  3566. r([ h(cc.Node) ], e.prototype, "mXhContent", void 0);
  3567. r([ h(cc.Node) ], e.prototype, "mOneKeyBt", void 0);
  3568. r([ h(cc.Label) ], e.prototype, "mAttrLabel", void 0);
  3569. r([ h(cc.Node) ], e.prototype, "mFullNode", void 0);
  3570. r([ h(sp.Skeleton) ], e.prototype, "spine1", void 0);
  3571. r([ h(sp.Skeleton) ], e.prototype, "spine2", void 0);
  3572. return r([ f ], e);
  3573. }(cc.Component);
  3574. o.default = d;
  3575. cc._RF.pop();
  3576. }, {
  3577. "../../../i18n/i18n": "i18n",
  3578. "../../../main/ViewManage": "ViewManage",
  3579. "../../../util/CHttp": "CHttp",
  3580. "../../common/GoodItem": "GoodItem",
  3581. "./EquipQH": "EquipQH"
  3582. } ],
  3583. EquipViewAttr: [ function(t, e, o) {
  3584. "use strict";
  3585. cc._RF.push(e, "4746cRTiqZCk61R5ceSjtKL", "EquipViewAttr");
  3586. var i, n = this && this.__extends || (i = function(t, e) {
  3587. return (i = Object.setPrototypeOf || {
  3588. __proto__: []
  3589. } instanceof Array && function(t, e) {
  3590. t.__proto__ = e;
  3591. } || function(t, e) {
  3592. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  3593. })(t, e);
  3594. }, function(t, e) {
  3595. i(t, e);
  3596. function o() {
  3597. this.constructor = t;
  3598. }
  3599. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  3600. }), r = this && this.__decorate || function(t, e, o, i) {
  3601. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  3602. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  3603. return r > 3 && c && Object.defineProperty(e, o, c), c;
  3604. };
  3605. Object.defineProperty(o, "__esModule", {
  3606. value: !0
  3607. });
  3608. var c = t("../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  3609. n(e, t);
  3610. function e() {
  3611. var e = null !== t && t.apply(this, arguments) || this;
  3612. e.mIcon = null;
  3613. e.mName = null;
  3614. e.mValue = null;
  3615. return e;
  3616. }
  3617. e.prototype.init = function(t, e) {
  3618. var o = this, i = t.sManage.getEquipAttrById(e.K);
  3619. if (i) {
  3620. this.mName.string = c.default.t(i.name);
  3621. this.mValue.string = "+" + e.V + "%";
  3622. cc.resources.load("icon/attr/attribute_icon_" + e.K, cc.SpriteFrame, function(t, e) {
  3623. t ? cc.error(t) : o.mIcon.spriteFrame = e;
  3624. });
  3625. }
  3626. };
  3627. r([ p(cc.Sprite) ], e.prototype, "mIcon", void 0);
  3628. r([ p(cc.Label) ], e.prototype, "mName", void 0);
  3629. r([ p(cc.Label) ], e.prototype, "mValue", void 0);
  3630. return r([ s ], e);
  3631. }(cc.Component);
  3632. o.default = l;
  3633. cc._RF.pop();
  3634. }, {
  3635. "../../i18n/i18n": "i18n"
  3636. } ],
  3637. Equip: [ function(t, e, o) {
  3638. "use strict";
  3639. cc._RF.push(e, "ccfcd2nMEBDgLLIA3mr1U1u", "Equip");
  3640. var i, n = this && this.__extends || (i = function(t, e) {
  3641. return (i = Object.setPrototypeOf || {
  3642. __proto__: []
  3643. } instanceof Array && function(t, e) {
  3644. t.__proto__ = e;
  3645. } || function(t, e) {
  3646. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  3647. })(t, e);
  3648. }, function(t, e) {
  3649. i(t, e);
  3650. function o() {
  3651. this.constructor = t;
  3652. }
  3653. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  3654. }), r = this && this.__decorate || function(t, e, o, i) {
  3655. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  3656. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  3657. return r > 3 && c && Object.defineProperty(e, o, c), c;
  3658. };
  3659. Object.defineProperty(o, "__esModule", {
  3660. value: !0
  3661. });
  3662. var c = t("../../../i18n/i18n"), a = t("../../../main/ViewManage"), s = t("../../../main/ViewObject"), p = t("../../../util/CHttp"), l = t("../../common/GoodItem"), u = t("../../common/PetIcon"), f = t("../../data/FFCalAttr"), h = t("../../data/RedPoint"), d = t("./EquipItem"), m = t("./EquipPack"), y = cc._decorator, v = y.ccclass, g = y.property, _ = function(t) {
  3663. n(e, t);
  3664. function e() {
  3665. var e = null !== t && t.apply(this, arguments) || this;
  3666. e.mPetList = null;
  3667. e.mPetPrefab = null;
  3668. e.mModel = null;
  3669. e.mEquips = [];
  3670. e.mEquipPrefab = null;
  3671. e.mZdl = null;
  3672. e.mAtk = null;
  3673. e.mDef = null;
  3674. e.mHp = null;
  3675. e.mPagSize = null;
  3676. e.mSp = null;
  3677. e.mEquipPack = null;
  3678. e.mBtExit = null;
  3679. e.curPage = 1;
  3680. e.inGuide = !1;
  3681. e.guideStep = 0;
  3682. e.openId = -1;
  3683. return e;
  3684. }
  3685. o = e;
  3686. e.prototype.httpEvent = function(t) {
  3687. null != t.data._equip && this.mEquipPack.setEquipType(this.curPage);
  3688. };
  3689. e.prototype.onLoad = function() {
  3690. var t = this, e = this.main.player.pet, o = 0;
  3691. for (var i in e) {
  3692. var n = e[i], r = cc.instantiate(this.mPetPrefab), c = r.getComponent(u.default);
  3693. c.id = parseInt(i);
  3694. c.data = n;
  3695. var a = f.default.getAttr(this.main, c.data);
  3696. c.flushIcon(a);
  3697. r.parent = this.mPetList;
  3698. c.setCallback(function(e) {
  3699. t.checkPet(e);
  3700. });
  3701. o += a.zdl;
  3702. }
  3703. var s = {
  3704. zdl: o
  3705. };
  3706. this.main.gameHttp.sendJson("role/v1/zdl", s, function() {});
  3707. };
  3708. e.prototype.setCloseCallback = function(t) {
  3709. this.closeCallback = t;
  3710. };
  3711. e.prototype.start = function() {
  3712. for (var t = this.mPetList.children, e = 0; e < t.length; e++) {
  3713. var o = t[e], i = o.getComponent(u.default);
  3714. -1 == this.openId && (this.openId = i.data.id);
  3715. i.data.id == this.openId ? i.onclick() : h.default.petRedPoint(this.main, i.data) ? h.default.addRed(this.main, o) : h.default.removeRed(o);
  3716. }
  3717. this.inGuide && (0 == this.guideStep ? this.onGuide() : 1 == this.guideStep && this.onGuide_1());
  3718. };
  3719. e.prototype.flushPagSize = function() {
  3720. var t = this.main.player.equip;
  3721. this.mPagSize.string = c.default.t("背包容量") + ":" + t.length + "/500";
  3722. };
  3723. e.prototype.checkPet = function(t) {
  3724. var e = this;
  3725. this.flushPagSize();
  3726. this.curPi = t;
  3727. var i = this.main.sManage.getRoleById(t.id);
  3728. this.mModel.destroyAllChildren();
  3729. var n = f.default.getAttr(this.main, t.data);
  3730. cc.resources.load("prefab/role/" + i.act, cc.Prefab, function(t, i) {
  3731. if (t) cc.error(t); else {
  3732. var r = cc.instantiate(i);
  3733. r.parent = e.mModel;
  3734. var c = r.getChildByName("juese01"), a = c.getChildByName("spineRight").getComponent(sp.Skeleton), s = a.findBone("control");
  3735. if (s) {
  3736. s.data.rotation = 0;
  3737. s.rotation = 0;
  3738. }
  3739. c.children[0].active = !1;
  3740. a.setSkin(n.skin);
  3741. o.chaneWeapon(a, n.weapon);
  3742. }
  3743. });
  3744. for (var r = function(t) {
  3745. var o = c.mEquips[t];
  3746. o.setNull();
  3747. o.setCallback(function() {
  3748. e.mEquipPack.setEquipType(t + 1);
  3749. });
  3750. }, c = this, a = 0; a < this.mEquips.length; a++) r(a);
  3751. this.flushEquip(t);
  3752. this.flushAttr(n);
  3753. t.flushIcon(n);
  3754. };
  3755. e.chaneWeapon = function(t, e) {
  3756. var o = e + "/1", i = e + "/2", n = t.skeletonData.getRuntimeData(), r = n.findSkin("default"), c = t.findSlot("1"), a = t.findSlot("2"), s = n.findSlotIndex("1"), p = r.getAttachment(s, o), l = n.findSlotIndex("2"), u = r.getAttachment(l, i);
  3757. c && c.setAttachment(p);
  3758. a && a.setAttachment(u);
  3759. };
  3760. e.prototype.flushEquip = function(t) {
  3761. for (var e = this, o = t.data.equips, i = 0; i < o.length; i++) {
  3762. var n = o[i], r = this.main.sManage.getEquipById(n.id).type - 1, c = this.mEquips[r];
  3763. c.initEquip(this.main, n);
  3764. c.setCallback(function(t) {
  3765. e.openGoodAbout(t);
  3766. });
  3767. }
  3768. this.mEquipPack.init(t);
  3769. };
  3770. e.prototype.flushAttr = function(t) {
  3771. this.mZdl.string = "" + t.zdl;
  3772. this.mAtk.string = "" + t.atk;
  3773. this.mDef.string = "" + t.def;
  3774. this.mHp.string = "" + t.hp;
  3775. this.mSp.string = "" + t.sp;
  3776. };
  3777. e.prototype.openInfo = function() {
  3778. var t = this;
  3779. this.main.viewManage.loadFunc(a.GameViewType.petInfo, function(e) {
  3780. e.init(t.curPi);
  3781. e.show();
  3782. });
  3783. };
  3784. e.prototype.openChangeEquip = function(t) {
  3785. var e = this;
  3786. this.main.viewManage.loadFunc(a.GameViewType.changeEquip, function(o) {
  3787. var i = o;
  3788. i.equip = e;
  3789. var n = t.equipData.type;
  3790. i.inGuide = e.inGuide;
  3791. i.guideStep = e.guideStep;
  3792. e.inGuide = !1;
  3793. i.init(e.curPi, t, e.mEquips[n - 1]);
  3794. o.show();
  3795. });
  3796. };
  3797. e.prototype.openGoodAbout = function(t) {
  3798. var e = this;
  3799. this.main.viewManage.loadFunc(a.GameViewType.goodAbout, function(o) {
  3800. var i = o;
  3801. i.inGuide = e.inGuide;
  3802. i.guideStep = e.guideStep;
  3803. i.init(t);
  3804. o.show();
  3805. i.setQHCallback(function(t) {
  3806. i.exitDistroy();
  3807. e.openIntensifyEquip(t);
  3808. });
  3809. if (5 == t.equipData.type) {
  3810. i.mUnInstallNode.active = !0;
  3811. i.setUnCallback(function(t) {
  3812. i.exitDistroy();
  3813. e.uninstallEquip(t);
  3814. });
  3815. }
  3816. });
  3817. };
  3818. e.prototype.openIntensifyEquip = function(t) {
  3819. var e = this;
  3820. this.main.viewManage.loadFunc(a.GameViewType.IntensifyEquip, function(o) {
  3821. var i = o;
  3822. i.inGuide = e.inGuide;
  3823. i.guideStep = e.guideStep;
  3824. i.init(t.equip, e.curPi, e);
  3825. o.show();
  3826. e.inGuide && 1 == e.guideStep && i.setCloseCallback(function() {
  3827. e.onGuideExit();
  3828. });
  3829. });
  3830. };
  3831. e.prototype.uninstallEquip = function(t) {
  3832. var e = this, o = {
  3833. petId: this.curPi.id,
  3834. equipId: t.equip.id
  3835. };
  3836. this.main.gameHttp.sendJson("equip/v1/uninstall", o, function(t, o) {
  3837. e.main.stopLoad();
  3838. t == p.HttpStateType.SUCCESS ? 0 == o.retCode ? e.checkPet(e.curPi) : e.main.showTips(o.message) : e.main.showTips("网络异常");
  3839. });
  3840. };
  3841. e.prototype.onGuide = function() {
  3842. var t = this.main.mGuideMask, e = this.mEquipPack.mPagContent.children[0];
  3843. t.setTargetNode(e);
  3844. t.show();
  3845. var o = e.getComponent(l.default);
  3846. o.inGuide = !0;
  3847. o.setGuideCallback(function() {
  3848. t.close();
  3849. });
  3850. };
  3851. e.prototype.onGuide_1 = function() {
  3852. var t = this.main.mGuideMask, e = this.mEquips[0].node;
  3853. t.setTargetNode(e);
  3854. t.show();
  3855. var o = e.getComponent(l.default);
  3856. o.inGuide = !0;
  3857. o.setGuideCallback(function() {
  3858. t.close();
  3859. });
  3860. };
  3861. e.prototype.onGuideExit = function() {
  3862. var t = this.main.mGuideMask, e = this.mBtExit;
  3863. t.setTargetNode(e);
  3864. t.show();
  3865. var o = this.closeCallback;
  3866. this.setCloseCallback(function() {
  3867. t.close();
  3868. o && o();
  3869. });
  3870. };
  3871. var o;
  3872. r([ g(cc.Node) ], e.prototype, "mPetList", void 0);
  3873. r([ g(cc.Prefab) ], e.prototype, "mPetPrefab", void 0);
  3874. r([ g(cc.Node) ], e.prototype, "mModel", void 0);
  3875. r([ g([ d.default ]) ], e.prototype, "mEquips", void 0);
  3876. r([ g(cc.Prefab) ], e.prototype, "mEquipPrefab", void 0);
  3877. r([ g(cc.Label) ], e.prototype, "mZdl", void 0);
  3878. r([ g(cc.Label) ], e.prototype, "mAtk", void 0);
  3879. r([ g(cc.Label) ], e.prototype, "mDef", void 0);
  3880. r([ g(cc.Label) ], e.prototype, "mHp", void 0);
  3881. r([ g(cc.Label) ], e.prototype, "mPagSize", void 0);
  3882. r([ g(cc.Label) ], e.prototype, "mSp", void 0);
  3883. r([ g(m.default) ], e.prototype, "mEquipPack", void 0);
  3884. r([ g(cc.Node) ], e.prototype, "mBtExit", void 0);
  3885. return o = r([ v ], e);
  3886. }(s.default);
  3887. o.default = _;
  3888. cc._RF.pop();
  3889. }, {
  3890. "../../../i18n/i18n": "i18n",
  3891. "../../../main/ViewManage": "ViewManage",
  3892. "../../../main/ViewObject": "ViewObject",
  3893. "../../../util/CHttp": "CHttp",
  3894. "../../common/GoodItem": "GoodItem",
  3895. "../../common/PetIcon": "PetIcon",
  3896. "../../data/FFCalAttr": "FFCalAttr",
  3897. "../../data/RedPoint": "RedPoint",
  3898. "./EquipItem": "EquipItem",
  3899. "./EquipPack": "EquipPack"
  3900. } ],
  3901. EventButton: [ function(t, e, o) {
  3902. "use strict";
  3903. cc._RF.push(e, "a980bpXF8BBJo/Z/bu/bD28", "EventButton");
  3904. var i, n = this && this.__extends || (i = function(t, e) {
  3905. return (i = Object.setPrototypeOf || {
  3906. __proto__: []
  3907. } instanceof Array && function(t, e) {
  3908. t.__proto__ = e;
  3909. } || function(t, e) {
  3910. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  3911. })(t, e);
  3912. }, function(t, e) {
  3913. i(t, e);
  3914. function o() {
  3915. this.constructor = t;
  3916. }
  3917. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  3918. }), r = this && this.__decorate || function(t, e, o, i) {
  3919. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  3920. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  3921. return r > 3 && c && Object.defineProperty(e, o, c), c;
  3922. };
  3923. Object.defineProperty(o, "__esModule", {
  3924. value: !0
  3925. });
  3926. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  3927. n(e, t);
  3928. function e() {
  3929. var e = null !== t && t.apply(this, arguments) || this;
  3930. e.mIcon = null;
  3931. return e;
  3932. }
  3933. e.prototype.setCallback = function(t) {
  3934. this.callback = t;
  3935. };
  3936. e.prototype.onclick = function() {
  3937. this.callback && this.callback();
  3938. };
  3939. r([ s(cc.Sprite) ], e.prototype, "mIcon", void 0);
  3940. return r([ a ], e);
  3941. }(cc.Component);
  3942. o.default = p;
  3943. cc._RF.pop();
  3944. }, {} ],
  3945. ExchangeAmethystView: [ function(t, e, o) {
  3946. "use strict";
  3947. cc._RF.push(e, "d1d229OK41DPbGEQuC8r4aQ", "ExchangeAmethystView");
  3948. var i, n = this && this.__extends || (i = function(t, e) {
  3949. return (i = Object.setPrototypeOf || {
  3950. __proto__: []
  3951. } instanceof Array && function(t, e) {
  3952. t.__proto__ = e;
  3953. } || function(t, e) {
  3954. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  3955. })(t, e);
  3956. }, function(t, e) {
  3957. i(t, e);
  3958. function o() {
  3959. this.constructor = t;
  3960. }
  3961. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  3962. }), r = this && this.__decorate || function(t, e, o, i) {
  3963. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  3964. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  3965. return r > 3 && c && Object.defineProperty(e, o, c), c;
  3966. };
  3967. Object.defineProperty(o, "__esModule", {
  3968. value: !0
  3969. });
  3970. var c = t("../../../main/ViewObject"), a = t("../../../util/CHttp"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  3971. n(e, t);
  3972. function e() {
  3973. var e = null !== t && t.apply(this, arguments) || this;
  3974. e.lbdrawcount = null;
  3975. e.lbneed = null;
  3976. e.lbhave = null;
  3977. e.diamond_1 = null;
  3978. e.diamond_2 = null;
  3979. e.count = 0;
  3980. e.callBack = null;
  3981. return e;
  3982. }
  3983. e.prototype.init = function(t, e, o) {
  3984. this.callBack = o;
  3985. var i = this.main.player.getGoodCount(1009);
  3986. this.count = e - i;
  3987. this.lbdrawcount.string = "抽奖" + t + "次";
  3988. this.lbneed.string = "" + e;
  3989. this.lbhave.string = "" + i;
  3990. this.diamond_1.string = "(可消耗" + 10 * this.count + "钻石购买)";
  3991. this.diamond_2.string = "" + 10 * this.count;
  3992. };
  3993. e.prototype.buy = function() {
  3994. var t = this, e = {
  3995. count: this.count
  3996. };
  3997. this.main.gameHttp.sendJson("pandora/v1/buyZsj", e, function(e, o) {
  3998. t.main.stopLoad();
  3999. if (e == a.HttpStateType.SUCCESS) if (0 == o.retCode) {
  4000. console.log("==reve=exchangeamethyst===", o);
  4001. t.callBack && t.callBack();
  4002. t.exitDistroy();
  4003. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  4004. });
  4005. };
  4006. e.prototype.onClick = function() {
  4007. this.buy();
  4008. };
  4009. r([ l(cc.Label) ], e.prototype, "lbdrawcount", void 0);
  4010. r([ l(cc.Label) ], e.prototype, "lbneed", void 0);
  4011. r([ l(cc.Label) ], e.prototype, "lbhave", void 0);
  4012. r([ l(cc.Label) ], e.prototype, "diamond_1", void 0);
  4013. r([ l(cc.Label) ], e.prototype, "diamond_2", void 0);
  4014. return r([ p ], e);
  4015. }(c.default);
  4016. o.default = u;
  4017. cc._RF.pop();
  4018. }, {
  4019. "../../../main/ViewObject": "ViewObject",
  4020. "../../../util/CHttp": "CHttp"
  4021. } ],
  4022. FAltar1_3: [ function(t, e, o) {
  4023. "use strict";
  4024. cc._RF.push(e, "c471eJKJr5Cc7NeDuvBqDID", "FAltar1_3");
  4025. var i, n = this && this.__extends || (i = function(t, e) {
  4026. return (i = Object.setPrototypeOf || {
  4027. __proto__: []
  4028. } instanceof Array && function(t, e) {
  4029. t.__proto__ = e;
  4030. } || function(t, e) {
  4031. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  4032. })(t, e);
  4033. }, function(t, e) {
  4034. i(t, e);
  4035. function o() {
  4036. this.constructor = t;
  4037. }
  4038. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  4039. }), r = this && this.__decorate || function(t, e, o, i) {
  4040. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  4041. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  4042. return r > 3 && c && Object.defineProperty(e, o, c), c;
  4043. };
  4044. Object.defineProperty(o, "__esModule", {
  4045. value: !0
  4046. });
  4047. var c = t("../../../../../main/ViewManage"), a = t("../../base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  4048. n(e, t);
  4049. function e() {
  4050. var e = null !== t && t.apply(this, arguments) || this;
  4051. e.spine = null;
  4052. e.mTipsIcon = null;
  4053. e.mHole = [];
  4054. e.goodId = 2004;
  4055. e.getGoodId = 2006;
  4056. e.mFenceTrigger = [];
  4057. e.isShow = !1;
  4058. e.holdCount = 0;
  4059. return e;
  4060. }
  4061. e.prototype.start = function() {
  4062. this.node.active = !1;
  4063. this.spine.node.active = !1;
  4064. if (this.ff.main.player.stage.element.indexOf("3001") > -1) for (var t = 0; t < this.mFenceTrigger.length; t++) this.mFenceTrigger[t].active = !1;
  4065. };
  4066. e.prototype.showAltar = function() {
  4067. var t = this;
  4068. this.pause();
  4069. this.moveCamera(this.node.getPosition(), 1, function() {
  4070. t.spine.node.active = !0;
  4071. t.spine.setCompleteListener(function() {
  4072. t.isShow = !0;
  4073. t.resume();
  4074. });
  4075. t.spine.setAnimation(0, "up", !1);
  4076. });
  4077. };
  4078. e.prototype.onBegin = function(t) {
  4079. var e = this;
  4080. this.holdCount >= 3 || 1 == t && this.showOpt(this.mTipsIcon, function() {
  4081. e.holdStore();
  4082. });
  4083. };
  4084. e.prototype.onEnd = function(t) {
  4085. 1 == t && this.closeOpt();
  4086. };
  4087. e.prototype.holdStore = function() {
  4088. var t = this, e = this.ff.mFFheader;
  4089. if (e.getTmpCount(this.goodId) > 0) {
  4090. this.holdCount++;
  4091. e.removeTmpGood(this.goodId, 1);
  4092. if (this.holdCount >= 3) {
  4093. this.closeOpt();
  4094. this.showKnife();
  4095. } else {
  4096. this.spine.setAnimation(0, "0" + this.holdCount, !1);
  4097. this.spine.setEndListener(function() {
  4098. t.openmFenceTrigger(t.holdCount - 1);
  4099. });
  4100. }
  4101. } else this.ff.main.showTips("需要祭石");
  4102. };
  4103. e.prototype.openmFenceTrigger = function(t) {
  4104. var e = this;
  4105. if (!(this.mFenceTrigger.length <= 0 || t >= this.mFenceTrigger.length)) {
  4106. this.pause();
  4107. this.moveCamera(this.mFenceTrigger[t].getPosition(), 1, function() {
  4108. cc.tween(e.node).sequence(cc.callFunc(function() {
  4109. e.showFence(e.mFenceTrigger[t], "close");
  4110. e.ff.main.playerEffectByPath(c.AudioMgr.openDoor);
  4111. }), cc.delayTime(1), cc.callFunc(function() {
  4112. e.resume();
  4113. e.mFenceTrigger[t].active = !1;
  4114. })).start();
  4115. });
  4116. }
  4117. };
  4118. e.prototype.showFence = function(t, e) {
  4119. for (var o = t.children, i = 0; i < o.length; i++) {
  4120. var n = o[i].getComponent(sp.Skeleton);
  4121. n && n.setAnimation(0, e, !1);
  4122. }
  4123. };
  4124. e.prototype.showKnife = function() {
  4125. var t = this;
  4126. this.pause();
  4127. this.spine.setCompleteListener(function() {
  4128. t.showKnife1();
  4129. });
  4130. this.spine.setAnimation(0, "down", !1);
  4131. };
  4132. e.prototype.showKnife1 = function() {
  4133. var t = this;
  4134. this.spine.setCompleteListener(function() {
  4135. t.ff.mFFheader.addTmpGood(t.getGoodId, 1);
  4136. t.resume();
  4137. });
  4138. this.spine.setAnimation(0, "Pull", !1);
  4139. };
  4140. r([ l({
  4141. displayName: "祭坛动画",
  4142. type: sp.Skeleton
  4143. }) ], e.prototype, "spine", void 0);
  4144. r([ l({
  4145. displayName: "提示图标",
  4146. type: cc.SpriteFrame
  4147. }) ], e.prototype, "mTipsIcon", void 0);
  4148. r([ l({
  4149. displayName: "祭坛3个孔",
  4150. type: [ cc.Node ]
  4151. }) ], e.prototype, "mHole", void 0);
  4152. r([ l({
  4153. displayName: "需要的物品id"
  4154. }) ], e.prototype, "goodId", void 0);
  4155. r([ l({
  4156. displayName: "获得的物品id"
  4157. }) ], e.prototype, "getGoodId", void 0);
  4158. r([ l([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0);
  4159. return r([ p ], e);
  4160. }(a.default);
  4161. o.default = u;
  4162. cc._RF.pop();
  4163. }, {
  4164. "../../../../../main/ViewManage": "ViewManage",
  4165. "../../base/BaseEvent": "BaseEvent"
  4166. } ],
  4167. FAltar1_5: [ function(t, e, o) {
  4168. "use strict";
  4169. cc._RF.push(e, "f650ft/fS9FBKR+6/z+burJ", "FAltar1_5");
  4170. var i, n = this && this.__extends || (i = function(t, e) {
  4171. return (i = Object.setPrototypeOf || {
  4172. __proto__: []
  4173. } instanceof Array && function(t, e) {
  4174. t.__proto__ = e;
  4175. } || function(t, e) {
  4176. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  4177. })(t, e);
  4178. }, function(t, e) {
  4179. i(t, e);
  4180. function o() {
  4181. this.constructor = t;
  4182. }
  4183. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  4184. }), r = this && this.__decorate || function(t, e, o, i) {
  4185. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  4186. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  4187. return r > 3 && c && Object.defineProperty(e, o, c), c;
  4188. };
  4189. Object.defineProperty(o, "__esModule", {
  4190. value: !0
  4191. });
  4192. var c = t("../../../../../login/FqLogin"), a = t("../../../../../main/ViewManage"), s = t("../../../object/FSpriteTmpGood"), p = t("../../base/BaseEvent"), l = t("../../box/FHitBox"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  4193. n(e, t);
  4194. function e() {
  4195. var e = null !== t && t.apply(this, arguments) || this;
  4196. e.spine = null;
  4197. e.mTipsIcon = null;
  4198. e.text = "";
  4199. e.mHole = [];
  4200. e.goodId = 2004;
  4201. e.saveId = "";
  4202. e.mFenceTrigger = [];
  4203. e.monster = null;
  4204. e.box = null;
  4205. e.isShow = !1;
  4206. e.holdCount = 0;
  4207. return e;
  4208. }
  4209. e.prototype.start = function() {
  4210. if (this.ff.main.player.stage.element.indexOf(this.saveId) > -1) {
  4211. this.mFenceTrigger.forEach(function(t) {
  4212. t.active = !1;
  4213. });
  4214. this.mHole.forEach(function(t) {
  4215. t.active = !1;
  4216. });
  4217. this.monster && this.monster.removeComponent(s.default);
  4218. this.box && this.box.getComponent(l.default).hide.destroy();
  4219. this.spineAction(this.spine, "over", function() {});
  4220. }
  4221. };
  4222. e.prototype.onBegin = function(t) {
  4223. var e = this;
  4224. this.ff.main.player.stage.element.indexOf(this.saveId) > -1 || this.holdCount >= this.mFenceTrigger.length || 1 == t && this.showOpt(this.mTipsIcon, function() {
  4225. e.holdStore();
  4226. });
  4227. };
  4228. e.prototype.onEnd = function(t) {
  4229. 1 == t && this.closeOpt();
  4230. };
  4231. e.prototype.holdStore = function() {
  4232. var t = this, e = this.ff.mFFheader;
  4233. if (e.getTmpCount(this.goodId) > 0) {
  4234. this.holdCount++;
  4235. this.spineAction(this.spine, "0" + this.holdCount, function() {
  4236. e.removeTmpGood(t.goodId, 1);
  4237. t.openmFenceTrigger(t.holdCount - 1);
  4238. });
  4239. } else this.ff.main.showTips(this.text);
  4240. };
  4241. e.prototype.openmFenceTrigger = function(t) {
  4242. var e = this;
  4243. if (!(this.mFenceTrigger.length <= 0 || t >= this.mFenceTrigger.length)) {
  4244. this.pause();
  4245. this.moveCamera(this.mFenceTrigger[t].getPosition(), 1, function() {
  4246. cc.tween(e.node).sequence(cc.callFunc(function() {
  4247. e.showFence(e.mFenceTrigger[t], "close");
  4248. e.ff.main.playerEffectByPath(a.AudioMgr.openDoor);
  4249. }), cc.delayTime(1), cc.callFunc(function() {
  4250. e.resume();
  4251. e.mFenceTrigger[t].active = !1;
  4252. if (e.holdCount == e.mFenceTrigger.length) {
  4253. c.default.commitEvent(e.node.name, "", "");
  4254. e.getMapObject(e.saveId, null);
  4255. e.spineAction(e.spine, "over", function() {});
  4256. e.closeOpt();
  4257. }
  4258. })).start();
  4259. });
  4260. }
  4261. };
  4262. e.prototype.showFence = function(t, e) {
  4263. for (var o = t.children, i = 0; i < o.length; i++) {
  4264. var n = o[i].getComponent(sp.Skeleton);
  4265. n && n.setAnimation(0, e, !1);
  4266. }
  4267. };
  4268. r([ h({
  4269. displayName: "祭坛动画",
  4270. type: sp.Skeleton
  4271. }) ], e.prototype, "spine", void 0);
  4272. r([ h({
  4273. displayName: "提示图标",
  4274. type: cc.SpriteFrame
  4275. }) ], e.prototype, "mTipsIcon", void 0);
  4276. r([ h({
  4277. displayName: "提示文字"
  4278. }) ], e.prototype, "text", void 0);
  4279. r([ h({
  4280. displayName: "镜片",
  4281. type: [ cc.Node ]
  4282. }) ], e.prototype, "mHole", void 0);
  4283. r([ h({
  4284. displayName: "需要的物品id"
  4285. }) ], e.prototype, "goodId", void 0);
  4286. r([ h({
  4287. displayName: "存储ID"
  4288. }) ], e.prototype, "saveId", void 0);
  4289. r([ h([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0);
  4290. r([ h(cc.Node) ], e.prototype, "monster", void 0);
  4291. r([ h(cc.Node) ], e.prototype, "box", void 0);
  4292. return r([ f ], e);
  4293. }(p.default);
  4294. o.default = d;
  4295. cc._RF.pop();
  4296. }, {
  4297. "../../../../../login/FqLogin": "FqLogin",
  4298. "../../../../../main/ViewManage": "ViewManage",
  4299. "../../../object/FSpriteTmpGood": "FSpriteTmpGood",
  4300. "../../base/BaseEvent": "BaseEvent",
  4301. "../../box/FHitBox": "FHitBox"
  4302. } ],
  4303. FAltarFire: [ function(t, e, o) {
  4304. "use strict";
  4305. cc._RF.push(e, "6f35aMFsI1HQLIy/vu/Oc/Y", "FAltarFire");
  4306. var i, n = this && this.__extends || (i = function(t, e) {
  4307. return (i = Object.setPrototypeOf || {
  4308. __proto__: []
  4309. } instanceof Array && function(t, e) {
  4310. t.__proto__ = e;
  4311. } || function(t, e) {
  4312. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  4313. })(t, e);
  4314. }, function(t, e) {
  4315. i(t, e);
  4316. function o() {
  4317. this.constructor = t;
  4318. }
  4319. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  4320. }), r = this && this.__decorate || function(t, e, o, i) {
  4321. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  4322. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  4323. return r > 3 && c && Object.defineProperty(e, o, c), c;
  4324. };
  4325. Object.defineProperty(o, "__esModule", {
  4326. value: !0
  4327. });
  4328. var c = t("../../../../login/FqLogin"), a = t("../base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  4329. n(e, t);
  4330. function e() {
  4331. var e = null !== t && t.apply(this, arguments) || this;
  4332. e.mapGoodId = "27";
  4333. e.goodId = 2002;
  4334. e.mGuideMark = null;
  4335. e.isCheck = !1;
  4336. return e;
  4337. }
  4338. e.prototype.onLoad = function() {
  4339. t.prototype.onLoad.call(this);
  4340. this.node.zIndex = 9999;
  4341. };
  4342. e.prototype.onBegin = function() {
  4343. var t = this;
  4344. if (!this.isCheck) {
  4345. this.isCheck = !0;
  4346. if (this.mGuideMark) {
  4347. this.mGuideMark.active = !1;
  4348. this.ff.firstGetGoodsTips();
  4349. }
  4350. this.node.removeComponent(cc.PhysicsBoxCollider);
  4351. this.ff.mFFheader.addTmpGood(this.goodId, 1);
  4352. cc.tween(this.node).sequence(cc.spawn(cc.moveBy(1, cc.v2(0, 200)).easing(cc.easeSineOut()), cc.fadeOut(1)), cc.callFunc(function() {
  4353. c.default.commitEvent(t.node.name, "", "");
  4354. t.node.removeFromParent(!0);
  4355. t.node.destroy();
  4356. })).start();
  4357. }
  4358. };
  4359. r([ l({
  4360. displayName: "对应的地图物件"
  4361. }) ], e.prototype, "mapGoodId", void 0);
  4362. r([ l({
  4363. displayName: "捡起的物品id"
  4364. }) ], e.prototype, "goodId", void 0);
  4365. r([ l({
  4366. type: cc.Node,
  4367. displayName: "引导箭头标识"
  4368. }) ], e.prototype, "mGuideMark", void 0);
  4369. return r([ p ], e);
  4370. }(a.default);
  4371. o.default = u;
  4372. cc._RF.pop();
  4373. }, {
  4374. "../../../../login/FqLogin": "FqLogin",
  4375. "../base/BaseEvent": "BaseEvent"
  4376. } ],
  4377. FAltarGear: [ function(t, e, o) {
  4378. "use strict";
  4379. cc._RF.push(e, "2170aeMQGlEe7HuV9Q0EDTX", "FAltarGear");
  4380. var i, n = this && this.__extends || (i = function(t, e) {
  4381. return (i = Object.setPrototypeOf || {
  4382. __proto__: []
  4383. } instanceof Array && function(t, e) {
  4384. t.__proto__ = e;
  4385. } || function(t, e) {
  4386. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  4387. })(t, e);
  4388. }, function(t, e) {
  4389. i(t, e);
  4390. function o() {
  4391. this.constructor = t;
  4392. }
  4393. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  4394. }), r = this && this.__decorate || function(t, e, o, i) {
  4395. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  4396. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  4397. return r > 3 && c && Object.defineProperty(e, o, c), c;
  4398. };
  4399. Object.defineProperty(o, "__esModule", {
  4400. value: !0
  4401. });
  4402. var c = t("../../map/FMap"), a = t("./FAltarLight"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  4403. n(e, t);
  4404. function e() {
  4405. var e = null !== t && t.apply(this, arguments) || this;
  4406. e.mapGoodId = "27";
  4407. e.altarLight = [];
  4408. e.map = null;
  4409. return e;
  4410. }
  4411. e.prototype.onLoad = function() {
  4412. this.map = this.node.parent.parent.getComponent(c.default);
  4413. };
  4414. e.prototype.start = function() {
  4415. this.map.ff.main.player.stage;
  4416. this.node.active = !0;
  4417. };
  4418. e.prototype.check = function() {
  4419. for (var t = 0; t < this.altarLight.length; t++) if (!this.altarLight[t].getComponent(a.default).spine.active) return !1;
  4420. this.openGear();
  4421. return !0;
  4422. };
  4423. e.prototype.getMapObject = function() {};
  4424. e.prototype.playAction = function() {
  4425. var t = this, e = this.map.ff;
  4426. e.pauseSprite(!0);
  4427. cc.tween(this).sequence(cc.callFunc(function() {
  4428. t.moveCamera();
  4429. }), cc.delayTime(.7), cc.callFunc(function() {
  4430. t.node.children.forEach(function(t) {
  4431. var e = t.getComponent(sp.Skeleton);
  4432. if (e) {
  4433. e.setCompleteListener(function() {
  4434. t.active = !1;
  4435. });
  4436. e.setAnimation(0, "close", !1);
  4437. }
  4438. });
  4439. cc.tween(t.map.node).sequence(cc.delayTime(1), cc.callFunc(function() {
  4440. t.node.active = !1;
  4441. e.pauseSprite(!1);
  4442. })).start();
  4443. })).start();
  4444. };
  4445. e.prototype.openGear = function() {
  4446. var t = this, e = this.map.ff;
  4447. e.pauseSprite(!0);
  4448. this.node.children.forEach(function(t) {
  4449. var e = t.getComponent(sp.Skeleton);
  4450. if (e) {
  4451. e.setCompleteListener(function() {
  4452. t.active = !1;
  4453. });
  4454. e.setAnimation(0, "close", !1);
  4455. }
  4456. });
  4457. cc.tween(this.map.node).sequence(cc.delayTime(1), cc.callFunc(function() {
  4458. t.node.active = !1;
  4459. e.pauseSprite(!1);
  4460. })).start();
  4461. };
  4462. e.prototype.moveCamera = function() {
  4463. var t = this.map.mCamera, e = cc.v3(), o = cc.winSize;
  4464. e.x = this.node.x - o.width / 2;
  4465. e.y = this.node.y - o.height / 2;
  4466. cc.tween(t.node).to(.5, {
  4467. position: e
  4468. }).start();
  4469. };
  4470. r([ l({
  4471. displayName: "对应的地图物件"
  4472. }) ], e.prototype, "mapGoodId", void 0);
  4473. r([ l({
  4474. type: [ cc.Node ],
  4475. displayName: "祭坛灯柱"
  4476. }) ], e.prototype, "altarLight", void 0);
  4477. return r([ p ], e);
  4478. }(cc.Component);
  4479. o.default = u;
  4480. cc._RF.pop();
  4481. }, {
  4482. "../../map/FMap": "FMap",
  4483. "./FAltarLight": "FAltarLight"
  4484. } ],
  4485. FAltarLight: [ function(t, e, o) {
  4486. "use strict";
  4487. cc._RF.push(e, "fb4681y1xhPJb2O9Z8OSccq", "FAltarLight");
  4488. var i, n = this && this.__extends || (i = function(t, e) {
  4489. return (i = Object.setPrototypeOf || {
  4490. __proto__: []
  4491. } instanceof Array && function(t, e) {
  4492. t.__proto__ = e;
  4493. } || function(t, e) {
  4494. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  4495. })(t, e);
  4496. }, function(t, e) {
  4497. i(t, e);
  4498. function o() {
  4499. this.constructor = t;
  4500. }
  4501. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  4502. }), r = this && this.__decorate || function(t, e, o, i) {
  4503. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  4504. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  4505. return r > 3 && c && Object.defineProperty(e, o, c), c;
  4506. };
  4507. Object.defineProperty(o, "__esModule", {
  4508. value: !0
  4509. });
  4510. var c = t("../../../../login/FqLogin"), a = t("../../object/FObject"), s = t("../base/BaseEvent"), p = t("../dialog/FMapDialog"), l = t("./FAltar"), u = t("./FAltarGear"), f = cc._decorator, h = f.ccclass, d = f.property, m = function(t) {
  4511. n(e, t);
  4512. function e() {
  4513. var e = null !== t && t.apply(this, arguments) || this;
  4514. e.mapGoodId = "27";
  4515. e.goodId = 2002;
  4516. e.spine = null;
  4517. e.altar = null;
  4518. e.mIcon = null;
  4519. e.mIconFrame = [];
  4520. e.mMapDialog = null;
  4521. e.mTipsIcon = null;
  4522. e.text = [];
  4523. return e;
  4524. }
  4525. e.prototype.onLoad = function() {
  4526. t.prototype.onLoad.call(this);
  4527. this.mIcon && (this.mIcon.node.active = !1);
  4528. };
  4529. e.prototype.start = function() {
  4530. this.spine.active = !1;
  4531. };
  4532. e.prototype.iconTips = function(t) {
  4533. if (this.mIcon) if (t) {
  4534. this.mIcon.node.active = !0;
  4535. var e = this.ff.mFFheader.getTmpCount(this.goodId);
  4536. this.mIcon.spriteFrame = e > 0 ? this.mIconFrame[0] : this.mIconFrame[1];
  4537. } else this.mIcon.node.active = !1;
  4538. };
  4539. e.prototype.onBegin = function(t) {
  4540. var e = this;
  4541. if (!this.spine.active && 1 == t) {
  4542. this.iconTips(!0);
  4543. this.showOpt(this.mTipsIcon, function() {
  4544. e.submit();
  4545. });
  4546. }
  4547. };
  4548. e.prototype.onEnd = function(t) {
  4549. 1 == t && this.closeButton();
  4550. };
  4551. e.prototype.closeButton = function() {
  4552. this.iconTips(!1);
  4553. this.closeOpt();
  4554. };
  4555. e.prototype.submit = function() {
  4556. if (this.spine.active) this.ff.main.showTips("祭火已经点亮"); else {
  4557. this.closeButton();
  4558. var t = this.ff.mFFheader;
  4559. if (t.getTmpCount(this.goodId) > 0) {
  4560. t.removeTmpGood(this.goodId, 1);
  4561. this.spine.active = !0;
  4562. var e = this.altar.getComponent(l.default), o = this.altar.getComponent(u.default);
  4563. if (e) e.check(); else if (o) {
  4564. var i = o.check();
  4565. this.text.length > 0 && !i && this.d0();
  4566. i && c.default.commitEvent(this.node.name, "", "");
  4567. }
  4568. } else this.ff.main.showTips("需要祭火");
  4569. }
  4570. };
  4571. e.prototype.d0 = function() {
  4572. var t = this;
  4573. this.ff.pauseSprite(!0);
  4574. var e = this.text, o = new p.default(this.ff, this.mMapDialog), i = cc.v2(), n = this.ff.getGroupBy(a.GroupType.A)[0];
  4575. i.x = n.node.x;
  4576. i.y = n.node.y + n.node.height;
  4577. o.showDialog(e, i, n.spine, function() {
  4578. t.ff.pauseSprite(!1);
  4579. });
  4580. };
  4581. r([ d({
  4582. displayName: "对应的地图物件"
  4583. }) ], e.prototype, "mapGoodId", void 0);
  4584. r([ d({
  4585. displayName: "需要的物品id"
  4586. }) ], e.prototype, "goodId", void 0);
  4587. r([ d({
  4588. type: cc.Node,
  4589. displayName: "点亮火焰动画"
  4590. }) ], e.prototype, "spine", void 0);
  4591. r([ d({
  4592. type: cc.Node,
  4593. displayName: "完成后触发对象"
  4594. }) ], e.prototype, "altar", void 0);
  4595. r([ d({
  4596. displayName: "靠近的提示",
  4597. type: cc.Sprite
  4598. }) ], e.prototype, "mIcon", void 0);
  4599. r([ d({
  4600. type: [ cc.SpriteFrame ],
  4601. displayName: "不同状态的图标"
  4602. }) ], e.prototype, "mIconFrame", void 0);
  4603. r([ d(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  4604. r([ d({
  4605. displayName: "提示图标",
  4606. type: cc.SpriteFrame
  4607. }) ], e.prototype, "mTipsIcon", void 0);
  4608. r([ d({
  4609. displayName: "点亮后的对话",
  4610. type: [ cc.String ]
  4611. }) ], e.prototype, "text", void 0);
  4612. return r([ h ], e);
  4613. }(s.default);
  4614. o.default = m;
  4615. cc._RF.pop();
  4616. }, {
  4617. "../../../../login/FqLogin": "FqLogin",
  4618. "../../object/FObject": "FObject",
  4619. "../base/BaseEvent": "BaseEvent",
  4620. "../dialog/FMapDialog": "FMapDialog",
  4621. "./FAltar": "FAltar",
  4622. "./FAltarGear": "FAltarGear"
  4623. } ],
  4624. FAltarStar: [ function(t, e, o) {
  4625. "use strict";
  4626. cc._RF.push(e, "2c5cauppg1J8psUsoMv6D+Q", "FAltarStar");
  4627. var i, n = this && this.__extends || (i = function(t, e) {
  4628. return (i = Object.setPrototypeOf || {
  4629. __proto__: []
  4630. } instanceof Array && function(t, e) {
  4631. t.__proto__ = e;
  4632. } || function(t, e) {
  4633. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  4634. })(t, e);
  4635. }, function(t, e) {
  4636. i(t, e);
  4637. function o() {
  4638. this.constructor = t;
  4639. }
  4640. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  4641. }), r = this && this.__decorate || function(t, e, o, i) {
  4642. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  4643. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  4644. return r > 3 && c && Object.defineProperty(e, o, c), c;
  4645. };
  4646. Object.defineProperty(o, "__esModule", {
  4647. value: !0
  4648. });
  4649. var c = t("../../../../../login/FqLogin"), a = t("../../base/BaseEvent"), s = t("./FAltar1_3"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  4650. n(e, t);
  4651. function e() {
  4652. var e = null !== t && t.apply(this, arguments) || this;
  4653. e.mFaltar = null;
  4654. e.mIcon = null;
  4655. e.mLight = null;
  4656. e.mOtherAltarStar = [];
  4657. e.isCheck = !1;
  4658. return e;
  4659. }
  4660. o = e;
  4661. e.prototype.onBegin = function() {
  4662. if (!this.isCheck) {
  4663. this.isCheck = !0;
  4664. this.mIcon.spriteFrame = this.mLight;
  4665. this.checkOpen();
  4666. c.default.commitEvent(this.node.name, "", "");
  4667. }
  4668. };
  4669. e.prototype.checkOpen = function() {
  4670. for (var t = 0; t < this.mOtherAltarStar.length; t++) if (!this.mOtherAltarStar[t].getComponent(o).isCheck) return;
  4671. this.mFaltar.node.active = !0;
  4672. this.mFaltar.showAltar();
  4673. };
  4674. var o;
  4675. r([ u({
  4676. displayName: "祭坛",
  4677. type: s.default
  4678. }) ], e.prototype, "mFaltar", void 0);
  4679. r([ u({
  4680. displayName: "底部的图片",
  4681. type: cc.Sprite
  4682. }) ], e.prototype, "mIcon", void 0);
  4683. r([ u({
  4684. displayName: "点亮的图片",
  4685. type: cc.SpriteFrame
  4686. }) ], e.prototype, "mLight", void 0);
  4687. r([ u({
  4688. displayName: "其它的祭坛开启",
  4689. tooltip: "剩下的祭坛开启",
  4690. type: [ cc.Node ]
  4691. }) ], e.prototype, "mOtherAltarStar", void 0);
  4692. return o = r([ l ], e);
  4693. }(a.default);
  4694. o.default = f;
  4695. cc._RF.pop();
  4696. }, {
  4697. "../../../../../login/FqLogin": "FqLogin",
  4698. "../../base/BaseEvent": "BaseEvent",
  4699. "./FAltar1_3": "FAltar1_3"
  4700. } ],
  4701. FAltar: [ function(t, e, o) {
  4702. "use strict";
  4703. cc._RF.push(e, "fd8d0hDKJNLI5sRWnoMKXjS", "FAltar");
  4704. var i, n = this && this.__extends || (i = function(t, e) {
  4705. return (i = Object.setPrototypeOf || {
  4706. __proto__: []
  4707. } instanceof Array && function(t, e) {
  4708. t.__proto__ = e;
  4709. } || function(t, e) {
  4710. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  4711. })(t, e);
  4712. }, function(t, e) {
  4713. i(t, e);
  4714. function o() {
  4715. this.constructor = t;
  4716. }
  4717. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  4718. }), r = this && this.__decorate || function(t, e, o, i) {
  4719. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  4720. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  4721. return r > 3 && c && Object.defineProperty(e, o, c), c;
  4722. };
  4723. Object.defineProperty(o, "__esModule", {
  4724. value: !0
  4725. });
  4726. var c = t("../../../../util/CHttp"), a = t("../../map/FMap"), s = t("./FAltarLight"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  4727. n(e, t);
  4728. function e() {
  4729. var e = null !== t && t.apply(this, arguments) || this;
  4730. e.mapGoodId = "27";
  4731. e.spine = null;
  4732. e.altarLight = [];
  4733. e.map = null;
  4734. return e;
  4735. }
  4736. e.prototype.onLoad = function() {
  4737. this.map = this.node.parent.parent.getComponent(a.default);
  4738. };
  4739. e.prototype.start = function() {
  4740. this.map.ff.main.player.stage.element.indexOf(this.mapGoodId) >= 0 ? this.spine.active = !0 : this.spine.active = !1;
  4741. };
  4742. e.prototype.check = function() {
  4743. for (var t = 0; t < this.altarLight.length; t++) if (!this.altarLight[t].spine.active) return !1;
  4744. this.altarOK();
  4745. return !0;
  4746. };
  4747. e.prototype.altarOK = function() {
  4748. this.getMapObject(this.mapGoodId);
  4749. };
  4750. e.prototype.getMapObject = function(t) {
  4751. var e = this, o = {
  4752. objectId: t
  4753. }, i = this.map.ff;
  4754. i.main.gameHttp.sendJson("stage/v1/stageObject", o, function(o, n) {
  4755. if (o == c.HttpStateType.SUCCESS) if (0 == n.retCode) {
  4756. i.main.player.stage.element.push(t);
  4757. var r = i.main.sManage.getRewards(n);
  4758. e.playAction(r);
  4759. } else i.main.showTips(n.message); else i.main.showTips("网络异常");
  4760. });
  4761. };
  4762. e.prototype.playAction = function(t) {
  4763. var e = this, o = this.map.ff;
  4764. o.pauseSprite(!0);
  4765. this.spine.opacity = 0;
  4766. this.spine.active = !0;
  4767. cc.tween(this.spine).sequence(cc.callFunc(function() {
  4768. e.moveCamera();
  4769. }), cc.delayTime(.7), cc.fadeIn(.5), cc.callFunc(function() {
  4770. o.pauseSprite(!1);
  4771. o.addGoods(t, e.node.getPosition());
  4772. })).start();
  4773. };
  4774. e.prototype.moveCamera = function() {
  4775. var t = this.map.mCamera, e = cc.v3(), o = cc.winSize;
  4776. e.x = this.node.x - o.width / 2;
  4777. e.y = this.node.y - o.height / 2;
  4778. cc.tween(t.node).to(.5, {
  4779. position: e
  4780. }).start();
  4781. };
  4782. r([ u({
  4783. displayName: "对应的地图物件"
  4784. }) ], e.prototype, "mapGoodId", void 0);
  4785. r([ u({
  4786. type: cc.Node,
  4787. displayName: "点亮火焰动画"
  4788. }) ], e.prototype, "spine", void 0);
  4789. r([ u({
  4790. type: [ s.default ],
  4791. displayName: "祭坛灯柱"
  4792. }) ], e.prototype, "altarLight", void 0);
  4793. return r([ l ], e);
  4794. }(cc.Component);
  4795. o.default = f;
  4796. cc._RF.pop();
  4797. }, {
  4798. "../../../../util/CHttp": "CHttp",
  4799. "../../map/FMap": "FMap",
  4800. "./FAltarLight": "FAltarLight"
  4801. } ],
  4802. FBigBomb: [ function(t, e, o) {
  4803. "use strict";
  4804. cc._RF.push(e, "85cc9velhZIlLMT8MzznqjL", "FBigBomb");
  4805. var i, n = this && this.__extends || (i = function(t, e) {
  4806. return (i = Object.setPrototypeOf || {
  4807. __proto__: []
  4808. } instanceof Array && function(t, e) {
  4809. t.__proto__ = e;
  4810. } || function(t, e) {
  4811. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  4812. })(t, e);
  4813. }, function(t, e) {
  4814. i(t, e);
  4815. function o() {
  4816. this.constructor = t;
  4817. }
  4818. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  4819. }), r = this && this.__decorate || function(t, e, o, i) {
  4820. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  4821. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  4822. return r > 3 && c && Object.defineProperty(e, o, c), c;
  4823. };
  4824. Object.defineProperty(o, "__esModule", {
  4825. value: !0
  4826. });
  4827. var c, a = t("../../../../login/FqLogin"), s = t("../../object/FSprite"), p = t("../base/BaseEvent"), l = cc._decorator, u = l.ccclass, f = l.property;
  4828. (function(t) {
  4829. t[t.safe = 0] = "safe";
  4830. t[t.warning = 1] = "warning";
  4831. t[t.boom = 2] = "boom";
  4832. t[t.end = 3] = "end";
  4833. })(c || (c = {}));
  4834. var h = function(t) {
  4835. n(e, t);
  4836. function e() {
  4837. var e = null !== t && t.apply(this, arguments) || this;
  4838. e.monsterId = 0;
  4839. e.mTipsIcon = null;
  4840. e.text = "";
  4841. e.goodId = 0;
  4842. e.spine = null;
  4843. e.warningArea = new cc.Vec2();
  4844. e.boomArea = new cc.Vec2();
  4845. e.warningTime = 0;
  4846. e.boomTime = 0;
  4847. e.spriteList = [];
  4848. e.isFire = !1;
  4849. e.boomStatus = c.safe;
  4850. e.tempTime = 0;
  4851. e.isHit = !1;
  4852. e.isWarning = !1;
  4853. return e;
  4854. }
  4855. e.prototype.start = function() {
  4856. var t = this.node.getComponents(cc.PhysicsBoxCollider);
  4857. t[0].size = new cc.Size(this.warningArea.x, this.warningArea.y);
  4858. t[1].size = new cc.Size(this.boomArea.x, this.boomArea.y);
  4859. };
  4860. e.prototype.onBeginContact = function(t, e, o) {
  4861. if ("A" == o.node.group && 1 == e.tag) {
  4862. var i = o.node.getComponent(s.default);
  4863. -1 == this.spriteList.indexOf(i) && this.spriteList.push(i);
  4864. }
  4865. if ("A" == o.node.group && 1 == o.tag) {
  4866. i = o.node.getComponent(s.default);
  4867. this.ff = i.ff;
  4868. 0 == e.tag && (this.isFire || this.fire());
  4869. }
  4870. };
  4871. e.prototype.onEndContact = function(t, e, o) {
  4872. if ("A" == o.node.group && 1 == e.tag) {
  4873. var i = o.node.getComponent(s.default);
  4874. this.removeSprite(i);
  4875. }
  4876. 0 == e.tag && this.closeOpt();
  4877. };
  4878. e.prototype.removeSprite = function(t) {
  4879. for (var e = 0; e < this.spriteList.length; e++) if (this.spriteList[e] == t) {
  4880. this.spriteList.splice(e, 1);
  4881. break;
  4882. }
  4883. };
  4884. e.prototype.fire = function() {
  4885. var t = this, e = this.ff.mFFheader.getTmpCount(this.goodId);
  4886. this.showOpt(this.mTipsIcon, function() {
  4887. t.closeOpt();
  4888. if (e > 0) {
  4889. t.isFire = !0;
  4890. t.ff.mFFheader.removeTmpGood(t.goodId, 1);
  4891. t.isWarning || t.warning();
  4892. } else t.ff.main.showTips(t.text);
  4893. });
  4894. };
  4895. e.prototype.warning = function() {
  4896. var t = this;
  4897. this.isWarning = !0;
  4898. this.spine.setAnimation(0, "boom1", !0);
  4899. this.boomStatus = c.warning;
  4900. var e = 0, o = function() {
  4901. if ((e += .1) >= t.warningTime) {
  4902. t.boom();
  4903. t.unschedule(o);
  4904. }
  4905. };
  4906. this.schedule(o, .1);
  4907. };
  4908. e.prototype.boom = function() {
  4909. var t = this;
  4910. this.spine.setAnimation(0, "boom2", !1);
  4911. this.boomStatus = c.boom;
  4912. var e = 0, o = function() {
  4913. if ((e += .1) >= t.boomTime) {
  4914. a.default.commitEvent(t.node.name, "", "");
  4915. t.end();
  4916. t.unschedule(o);
  4917. } else t.isHit || t.hit();
  4918. };
  4919. this.schedule(o, .1);
  4920. };
  4921. e.prototype.hit = function() {
  4922. var t = this;
  4923. this.isHit = !0;
  4924. this.spriteList.forEach(function(e) {
  4925. var o = t.ff.main.sManage.getMonsterData(t.monsterId);
  4926. e.bAtkjs(o);
  4927. });
  4928. };
  4929. e.prototype.end = function() {
  4930. this.boomStatus = c.end;
  4931. this.node.active = !1;
  4932. };
  4933. r([ f({
  4934. displayName: "怪物ID"
  4935. }) ], e.prototype, "monsterId", void 0);
  4936. r([ f({
  4937. displayName: "提示图标",
  4938. type: cc.SpriteFrame
  4939. }) ], e.prototype, "mTipsIcon", void 0);
  4940. r([ f({
  4941. displayName: "提示文字"
  4942. }) ], e.prototype, "text", void 0);
  4943. r([ f({
  4944. displayName: "需要的物品ID"
  4945. }) ], e.prototype, "goodId", void 0);
  4946. r([ f({
  4947. displayName: "爆炸动画",
  4948. type: sp.Skeleton
  4949. }) ], e.prototype, "spine", void 0);
  4950. r([ f({
  4951. displayName: "警告区域"
  4952. }) ], e.prototype, "warningArea", void 0);
  4953. r([ f({
  4954. displayName: "爆炸范围"
  4955. }) ], e.prototype, "boomArea", void 0);
  4956. r([ f({
  4957. displayName: "警告时间(秒)"
  4958. }) ], e.prototype, "warningTime", void 0);
  4959. r([ f({
  4960. displayName: "爆炸时间(秒)"
  4961. }) ], e.prototype, "boomTime", void 0);
  4962. return r([ u ], e);
  4963. }(p.default);
  4964. o.default = h;
  4965. cc._RF.pop();
  4966. }, {
  4967. "../../../../login/FqLogin": "FqLogin",
  4968. "../../object/FSprite": "FSprite",
  4969. "../base/BaseEvent": "BaseEvent"
  4970. } ],
  4971. FBomb: [ function(t, e, o) {
  4972. "use strict";
  4973. cc._RF.push(e, "6161b3CRMVIoofH3gZlG35U", "FBomb");
  4974. var i, n = this && this.__extends || (i = function(t, e) {
  4975. return (i = Object.setPrototypeOf || {
  4976. __proto__: []
  4977. } instanceof Array && function(t, e) {
  4978. t.__proto__ = e;
  4979. } || function(t, e) {
  4980. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  4981. })(t, e);
  4982. }, function(t, e) {
  4983. i(t, e);
  4984. function o() {
  4985. this.constructor = t;
  4986. }
  4987. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  4988. }), r = this && this.__decorate || function(t, e, o, i) {
  4989. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  4990. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  4991. return r > 3 && c && Object.defineProperty(e, o, c), c;
  4992. };
  4993. Object.defineProperty(o, "__esModule", {
  4994. value: !0
  4995. });
  4996. var c, a, s = t("../../object/FSprite"), p = cc._decorator, l = p.ccclass, u = p.property;
  4997. (function(t) {
  4998. t[t.safe = 0] = "safe";
  4999. t[t.warning = 1] = "warning";
  5000. t[t.boom = 2] = "boom";
  5001. t[t.end = 3] = "end";
  5002. })(c || (c = {}));
  5003. (function(t) {
  5004. t[t.safe = 0] = "safe";
  5005. t[t.hit = 1] = "hit";
  5006. })(a || (a = {}));
  5007. var f = function(t) {
  5008. n(e, t);
  5009. function e() {
  5010. var e = null !== t && t.apply(this, arguments) || this;
  5011. e.monsterId = 0;
  5012. e.spine = null;
  5013. e.warningArea = new cc.Vec2();
  5014. e.boomArea = new cc.Vec2();
  5015. e.warningTime = 0;
  5016. e.boomTime = 0;
  5017. e.spriteList = [];
  5018. e.boomStatus = c.safe;
  5019. e.tempTime = 0;
  5020. e.isHit = !1;
  5021. e.isWarning = !1;
  5022. return e;
  5023. }
  5024. e.prototype.start = function() {
  5025. var t = this.node.getComponents(cc.PhysicsBoxCollider);
  5026. t[0].size = new cc.Size(this.warningArea.x, this.warningArea.y);
  5027. t[1].size = new cc.Size(this.boomArea.x, this.boomArea.y);
  5028. };
  5029. e.prototype.onBeginContact = function(t, e, o) {
  5030. if ("A" == o.node.group && 1 == e.tag) {
  5031. var i = o.node.getComponent(s.default);
  5032. -1 == this.spriteList.indexOf(i) && this.spriteList.push(i);
  5033. }
  5034. if ("A" == o.node.group && 1 == o.tag) {
  5035. i = o.node.getComponent(s.default);
  5036. this.ff = i.ff;
  5037. 0 == e.tag && (this.isWarning || this.warning());
  5038. }
  5039. };
  5040. e.prototype.onEndContact = function(t, e, o) {
  5041. if ("A" == o.node.group && 1 == e.tag) {
  5042. var i = o.node.getComponent(s.default);
  5043. this.removeSprite(i);
  5044. }
  5045. };
  5046. e.prototype.removeSprite = function(t) {
  5047. for (var e = 0; e < this.spriteList.length; e++) if (this.spriteList[e] == t) {
  5048. this.spriteList.splice(e, 1);
  5049. break;
  5050. }
  5051. };
  5052. e.prototype.warning = function() {
  5053. var t = this;
  5054. this.isWarning = !0;
  5055. this.spine.setAnimation(0, "boom", !0);
  5056. this.boomStatus = c.warning;
  5057. var e = 0, o = function() {
  5058. if ((e += .1) >= t.warningTime) {
  5059. t.boom();
  5060. t.unschedule(o);
  5061. }
  5062. };
  5063. this.schedule(o, .1);
  5064. };
  5065. e.prototype.boom = function() {
  5066. var t = this;
  5067. this.spine.setAnimation(0, "boom2", !1);
  5068. this.boomStatus = c.boom;
  5069. var e = 0, o = function() {
  5070. if ((e += .1) >= t.boomTime) {
  5071. t.end();
  5072. t.unschedule(o);
  5073. } else t.isHit || t.hit();
  5074. };
  5075. this.schedule(o, .1);
  5076. };
  5077. e.prototype.hit = function() {
  5078. var t = this;
  5079. this.isHit = !0;
  5080. this.spriteList.forEach(function(e) {
  5081. var o = t.ff.main.sManage.getMonsterData(t.monsterId);
  5082. e.bAtkjs(o);
  5083. });
  5084. };
  5085. e.prototype.end = function() {
  5086. this.boomStatus = c.end;
  5087. this.node.active = !1;
  5088. };
  5089. r([ u({
  5090. displayName: "怪物ID"
  5091. }) ], e.prototype, "monsterId", void 0);
  5092. r([ u({
  5093. displayName: "爆炸动画",
  5094. type: sp.Skeleton
  5095. }) ], e.prototype, "spine", void 0);
  5096. r([ u({
  5097. displayName: "警告区域"
  5098. }) ], e.prototype, "warningArea", void 0);
  5099. r([ u({
  5100. displayName: "爆炸范围"
  5101. }) ], e.prototype, "boomArea", void 0);
  5102. r([ u({
  5103. displayName: "警告时间(秒)"
  5104. }) ], e.prototype, "warningTime", void 0);
  5105. r([ u({
  5106. displayName: "爆炸时间(秒)"
  5107. }) ], e.prototype, "boomTime", void 0);
  5108. return r([ l ], e);
  5109. }(cc.Component);
  5110. o.default = f;
  5111. cc._RF.pop();
  5112. }, {
  5113. "../../object/FSprite": "FSprite"
  5114. } ],
  5115. FBothwayOpen: [ function(t, e, o) {
  5116. "use strict";
  5117. cc._RF.push(e, "cf43acOMyBNL54ykGGE5PJY", "FBothwayOpen");
  5118. var i, n = this && this.__extends || (i = function(t, e) {
  5119. return (i = Object.setPrototypeOf || {
  5120. __proto__: []
  5121. } instanceof Array && function(t, e) {
  5122. t.__proto__ = e;
  5123. } || function(t, e) {
  5124. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  5125. })(t, e);
  5126. }, function(t, e) {
  5127. i(t, e);
  5128. function o() {
  5129. this.constructor = t;
  5130. }
  5131. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  5132. }), r = this && this.__decorate || function(t, e, o, i) {
  5133. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  5134. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  5135. return r > 3 && c && Object.defineProperty(e, o, c), c;
  5136. };
  5137. Object.defineProperty(o, "__esModule", {
  5138. value: !0
  5139. });
  5140. var c = t("../../../../main/ViewManage"), a = t("../base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  5141. n(e, t);
  5142. function e() {
  5143. var e = null !== t && t.apply(this, arguments) || this;
  5144. e.leftFenceTrigger = null;
  5145. e.rightFenceTrigger = null;
  5146. e.mTipsIcon = null;
  5147. e.spine = null;
  5148. e.openType = "";
  5149. return e;
  5150. }
  5151. e.prototype.onBegin = function(t) {
  5152. var e = this;
  5153. 0 == t ? this.showOpt(this.mTipsIcon, function() {
  5154. e.spineAction(e.spine, "left", function() {
  5155. e.openmFenceTrigger(e.leftFenceTrigger, "left");
  5156. });
  5157. }) : 1 == t && this.showOpt(this.mTipsIcon, function() {
  5158. e.spineAction(e.spine, "right", function() {
  5159. e.openmFenceTrigger(e.rightFenceTrigger, "right");
  5160. });
  5161. });
  5162. };
  5163. e.prototype.onEnd = function() {
  5164. this.closeOpt();
  5165. };
  5166. e.prototype.openmFenceTrigger = function(t, e) {
  5167. var o = this;
  5168. this.pause();
  5169. this.moveCamera(t.getPosition(), 1, function() {
  5170. cc.tween(o.node).sequence(cc.callFunc(function() {
  5171. if (o.openType != e) {
  5172. o.showFence(t, "close");
  5173. if ("" != o.openType) {
  5174. o[o.openType + "FenceTrigger"].active = !0;
  5175. o.showFence(o[o.openType + "FenceTrigger"], "open");
  5176. }
  5177. }
  5178. o.ff.main.playerEffectByPath(c.AudioMgr.openDoor);
  5179. }), cc.delayTime(1), cc.callFunc(function() {
  5180. o.openType = e;
  5181. t.active = !1;
  5182. o.resume();
  5183. o.closeOpt();
  5184. })).start();
  5185. });
  5186. };
  5187. e.prototype.showFence = function(t, e) {
  5188. for (var o = t.children, i = 0; i < o.length; i++) {
  5189. var n = o[i].getComponent(sp.Skeleton);
  5190. n && n.setAnimation(0, e, !1);
  5191. }
  5192. };
  5193. r([ l({
  5194. displayName: "left机关",
  5195. type: cc.Node
  5196. }) ], e.prototype, "leftFenceTrigger", void 0);
  5197. r([ l({
  5198. displayName: "right机关",
  5199. type: cc.Node
  5200. }) ], e.prototype, "rightFenceTrigger", void 0);
  5201. r([ l({
  5202. displayName: "提示图标",
  5203. type: cc.SpriteFrame
  5204. }) ], e.prototype, "mTipsIcon", void 0);
  5205. r([ l({
  5206. displayName: "动画",
  5207. type: sp.Skeleton
  5208. }) ], e.prototype, "spine", void 0);
  5209. return r([ p ], e);
  5210. }(a.default);
  5211. o.default = u;
  5212. cc._RF.pop();
  5213. }, {
  5214. "../../../../main/ViewManage": "ViewManage",
  5215. "../base/BaseEvent": "BaseEvent"
  5216. } ],
  5217. FBox: [ function(t, e, o) {
  5218. "use strict";
  5219. cc._RF.push(e, "126f21naOJB5qNalsynaFFr", "FBox");
  5220. var i, n = this && this.__extends || (i = function(t, e) {
  5221. return (i = Object.setPrototypeOf || {
  5222. __proto__: []
  5223. } instanceof Array && function(t, e) {
  5224. t.__proto__ = e;
  5225. } || function(t, e) {
  5226. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  5227. })(t, e);
  5228. }, function(t, e) {
  5229. i(t, e);
  5230. function o() {
  5231. this.constructor = t;
  5232. }
  5233. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  5234. }), r = this && this.__decorate || function(t, e, o, i) {
  5235. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  5236. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  5237. return r > 3 && c && Object.defineProperty(e, o, c), c;
  5238. };
  5239. Object.defineProperty(o, "__esModule", {
  5240. value: !0
  5241. });
  5242. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  5243. n(e, t);
  5244. function e() {
  5245. var e = null !== t && t.apply(this, arguments) || this;
  5246. e.label = null;
  5247. return e;
  5248. }
  5249. e.prototype.close = function() {
  5250. this.node.destroy();
  5251. };
  5252. r([ s(cc.Label) ], e.prototype, "label", void 0);
  5253. return r([ a ], e);
  5254. }(cc.Component);
  5255. o.default = p;
  5256. cc._RF.pop();
  5257. }, {} ],
  5258. FCageShooter: [ function(t, e, o) {
  5259. "use strict";
  5260. cc._RF.push(e, "cd1d6jVjB5Jv6TZLEXmclun", "FCageShooter");
  5261. var i, n = this && this.__extends || (i = function(t, e) {
  5262. return (i = Object.setPrototypeOf || {
  5263. __proto__: []
  5264. } instanceof Array && function(t, e) {
  5265. t.__proto__ = e;
  5266. } || function(t, e) {
  5267. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  5268. })(t, e);
  5269. }, function(t, e) {
  5270. i(t, e);
  5271. function o() {
  5272. this.constructor = t;
  5273. }
  5274. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  5275. }), r = this && this.__decorate || function(t, e, o, i) {
  5276. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  5277. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  5278. return r > 3 && c && Object.defineProperty(e, o, c), c;
  5279. };
  5280. Object.defineProperty(o, "__esModule", {
  5281. value: !0
  5282. });
  5283. var c = t("../../../../login/FqLogin"), a = t("../../../../util/CHttp"), s = t("../../../data/FFCalAttr"), p = t("../../object/AI/AIPet"), l = t("../../object/FObject"), u = t("../../object/FSprite"), f = t("../../object/PSprite"), h = t(".././base/BaseEvent"), d = cc._decorator, m = d.ccclass, y = d.property, v = function(t) {
  5284. n(e, t);
  5285. function e() {
  5286. var e = null !== t && t.apply(this, arguments) || this;
  5287. e.mPetId = 1;
  5288. e.spine = null;
  5289. e.mPet = null;
  5290. e.mPetPrefab = null;
  5291. e.mIcon = null;
  5292. e.mIconFrame = [];
  5293. e.mTipsIcon = null;
  5294. e.mDoor = [];
  5295. e.text = [];
  5296. e.isOver = !1;
  5297. return e;
  5298. }
  5299. e.prototype.onLoad = function() {
  5300. t.prototype.onLoad.call(this);
  5301. this.mIcon && (this.mIcon.node.active = !1);
  5302. if (this.ff.main.player.getPet(this.mPetId)) {
  5303. this.isOver = !0;
  5304. this.spine.findAnimation("open3") ? this.spine.setAnimation(0, "open3", !1) : this.spine.setAnimation(0, "open", !1);
  5305. this.mPet.destroy();
  5306. for (var e = 0; e < this.mDoor.length; e++) this.mDoor[e].destroy();
  5307. }
  5308. };
  5309. e.prototype.onBegin = function(t) {
  5310. var e = this;
  5311. if (!this.isOver && 1 == t) {
  5312. this.iconTips(!0);
  5313. this.showOpt(this.mTipsIcon, function() {
  5314. e.iconTips(!1);
  5315. e.closeOpt();
  5316. e.openCage();
  5317. });
  5318. }
  5319. };
  5320. e.prototype.onEnd = function(t) {
  5321. if (1 == t) {
  5322. this.iconTips(!1);
  5323. this.closeOpt();
  5324. }
  5325. };
  5326. e.prototype.iconTips = function(t) {
  5327. if (this.mIcon) if (t) {
  5328. this.mIcon.node.active = !0;
  5329. var e = this.ff.mFFheader.getTmpCount(2001);
  5330. this.mIcon.spriteFrame = e > 0 ? this.mIconFrame[0] : this.mIconFrame[1];
  5331. } else this.mIcon.node.active = !1;
  5332. };
  5333. e.prototype.openCage = function() {
  5334. var t = this;
  5335. if (this.ff.mFFheader.getTmpCount(2001) > 0) {
  5336. this.isOver = !0;
  5337. this.spine.setCompleteListener(function() {
  5338. t.spine.setCompleteListener(null);
  5339. t.movePet();
  5340. });
  5341. this.spine.findAnimation("open3") ? this.spine.setAnimation(0, "open3", !1) : this.spine.setAnimation(0, "open", !1);
  5342. c.default.commitEvent(this.node.name, "", "");
  5343. } else this.ff.main.showTips("需要一把牢笼钥匙");
  5344. };
  5345. e.prototype.movePet = function() {
  5346. var t = this.mPet.getComponent(cc.Animation);
  5347. this.mPet.getComponent(sp.Skeleton).setAnimation(0, u.SpriteActionType.run, !0);
  5348. t.on("finished", this.onFinished, this);
  5349. t.play("cage_pet_move");
  5350. };
  5351. e.prototype.onFinished = function() {
  5352. var t = this.mPet.getComponent(cc.Animation), e = this.mPet.getComponent(sp.Skeleton);
  5353. t.off("finished", this.onFinished, this);
  5354. e.setAnimation(0, u.SpriteActionType.stand, !0);
  5355. this.dialog(0);
  5356. };
  5357. e.prototype.dialog = function(t) {
  5358. var e = this;
  5359. if (t >= this.text.length) this.getPet(); else {
  5360. var o = this.text[t].split("|");
  5361. if (-1 == parseInt(o.shift())) {
  5362. var i = this.ff.mainSprite.node;
  5363. this.showDialog(i, o, function() {
  5364. t++;
  5365. e.dialog(t);
  5366. });
  5367. } else {
  5368. i = this.mPet;
  5369. var n = cc.v2();
  5370. n.x = this.node.x + i.x;
  5371. n.y = this.node.y + i.y;
  5372. n.y += i.height;
  5373. this.showDialogPos(n, o, function() {
  5374. t++;
  5375. e.dialog(t);
  5376. });
  5377. }
  5378. }
  5379. };
  5380. e.prototype.getPet = function() {
  5381. var t = this;
  5382. this.isOver = !0;
  5383. this.ff.mFFheader.removeTmpGood(2001, 1);
  5384. var e = {
  5385. petId: this.mPetId
  5386. }, o = this.ff.main;
  5387. o.gameHttp.sendJson("stage/v1/getPet", e, function(e, i) {
  5388. o.stopLoad();
  5389. if (e == a.HttpStateType.SUCCESS) if (0 == i.retCode) {
  5390. var n = o.player, r = i.data.petObject;
  5391. n.pet[t.mPetId] = r;
  5392. r.id = t.mPetId;
  5393. var c = cc.instantiate(t.mPetPrefab);
  5394. c.group = l.GroupType.A;
  5395. c.x = t.node.x + t.mPet.x;
  5396. c.y = t.node.y + t.mPet.y;
  5397. var u = c.addComponent(f.default), h = s.default.getAttr(t.ff.main, r);
  5398. u.setAttrData(h);
  5399. t.ff.addRole(u);
  5400. u.hp = u.attrData.hp;
  5401. u.addComponent(p.default);
  5402. t.mPet.removeFromParent();
  5403. for (var d = 0; d < t.mDoor.length; d++) t.mDoor[d].destroy();
  5404. } else o.showTips(i.message); else o.showTips("网络异常");
  5405. });
  5406. };
  5407. r([ y({
  5408. displayName: "解救的伙伴id"
  5409. }) ], e.prototype, "mPetId", void 0);
  5410. r([ y({
  5411. displayName: "牢笼动画",
  5412. tooltip: "显示牢笼的动画",
  5413. type: sp.Skeleton
  5414. }) ], e.prototype, "spine", void 0);
  5415. r([ y({
  5416. displayName: "牢笼中的伙伴",
  5417. type: cc.Node
  5418. }) ], e.prototype, "mPet", void 0);
  5419. r([ y({
  5420. displayName: "伙伴预制体",
  5421. type: cc.Prefab
  5422. }) ], e.prototype, "mPetPrefab", void 0);
  5423. r([ y({
  5424. displayName: "靠近的提示",
  5425. type: cc.Sprite
  5426. }) ], e.prototype, "mIcon", void 0);
  5427. r([ y({
  5428. type: [ cc.SpriteFrame ],
  5429. displayName: "不同状态的图标"
  5430. }) ], e.prototype, "mIconFrame", void 0);
  5431. r([ y({
  5432. displayName: "提示图标",
  5433. type: cc.SpriteFrame
  5434. }) ], e.prototype, "mTipsIcon", void 0);
  5435. r([ y({
  5436. type: [ cc.Node ],
  5437. displayName: "需要打开的门"
  5438. }) ], e.prototype, "mDoor", void 0);
  5439. r([ y([ cc.String ]) ], e.prototype, "text", void 0);
  5440. return r([ m ], e);
  5441. }(h.default);
  5442. o.default = v;
  5443. cc._RF.pop();
  5444. }, {
  5445. "../../../../login/FqLogin": "FqLogin",
  5446. "../../../../util/CHttp": "CHttp",
  5447. "../../../data/FFCalAttr": "FFCalAttr",
  5448. "../../object/AI/AIPet": "AIPet",
  5449. "../../object/FObject": "FObject",
  5450. "../../object/FSprite": "FSprite",
  5451. "../../object/PSprite": "PSprite",
  5452. ".././base/BaseEvent": "BaseEvent"
  5453. } ],
  5454. FCageSign: [ function(t, e, o) {
  5455. "use strict";
  5456. cc._RF.push(e, "bfb95PrthlNYKbF7H3BKv6s", "FCageSign");
  5457. var i, n = this && this.__extends || (i = function(t, e) {
  5458. return (i = Object.setPrototypeOf || {
  5459. __proto__: []
  5460. } instanceof Array && function(t, e) {
  5461. t.__proto__ = e;
  5462. } || function(t, e) {
  5463. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  5464. })(t, e);
  5465. }, function(t, e) {
  5466. i(t, e);
  5467. function o() {
  5468. this.constructor = t;
  5469. }
  5470. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  5471. }), r = this && this.__decorate || function(t, e, o, i) {
  5472. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  5473. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  5474. return r > 3 && c && Object.defineProperty(e, o, c), c;
  5475. };
  5476. Object.defineProperty(o, "__esModule", {
  5477. value: !0
  5478. });
  5479. var c = t("../../object/FSprite"), a = t("./WOneByone"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  5480. n(e, t);
  5481. function e() {
  5482. var e = null !== t && t.apply(this, arguments) || this;
  5483. e.mMapDialog = null;
  5484. e.mD1 = null;
  5485. e.mD2 = null;
  5486. e.mCameraPos = null;
  5487. e.ff = null;
  5488. return e;
  5489. }
  5490. e.prototype.onBeginContact = function(t, e, o) {
  5491. if ("A" == o.node.group) {
  5492. var i = o.node.getComponent(c.default);
  5493. this.ff = i.ff;
  5494. if (i == this.ff.mainSprite) {
  5495. this.node.removeComponent(cc.PhysicsBoxCollider);
  5496. this.run();
  5497. }
  5498. }
  5499. };
  5500. e.prototype.run = function() {
  5501. var t = this;
  5502. this.ff.pauseSprite(!0);
  5503. this.ff.mBlockInputEvents.active = !0;
  5504. var e = this.ff.mMap, o = cc.winSize, i = e.mCamera, n = this.node.x + this.mCameraPos.x - o.width / 2, r = this.node.y + this.mCameraPos.y - o.height / 2;
  5505. cc.tween(i.node).sequence(cc.moveTo(.7, cc.v2(n, r)), cc.callFunc(function() {
  5506. t.d1();
  5507. })).start();
  5508. };
  5509. e.prototype.d1 = function() {
  5510. var t = this, e = cc.instantiate(this.mMapDialog);
  5511. e.group = "map";
  5512. e.zIndex = 9999;
  5513. e.x = this.mD1.x;
  5514. e.y = this.mD1.y + this.mD1.height;
  5515. e.parent = this.ff.mMap.mSprites;
  5516. var o = e.getComponent(a.default);
  5517. o.dialogs = [ "救…救……,SOS" ];
  5518. o.setCallback(function() {
  5519. e.destroy();
  5520. t.ff.setBlockInputCallback(null);
  5521. t.d2();
  5522. });
  5523. this.ff.setBlockInputCallback(function() {
  5524. o.jump();
  5525. });
  5526. o._start();
  5527. };
  5528. e.prototype.d2 = function() {
  5529. var t = this, e = cc.instantiate(this.mMapDialog);
  5530. e.group = "map";
  5531. e.zIndex = 9999;
  5532. e.x = this.mD2.x;
  5533. e.y = this.mD2.y + this.mD2.height;
  5534. e.parent = this.ff.mMap.mSprites;
  5535. var o = e.getComponent(a.default);
  5536. o.dialogs = [ "别喊了,你就是叫破喉咙也没用的" ];
  5537. o.setCallback(function() {
  5538. e.destroy();
  5539. t.ff.setBlockInputCallback(null);
  5540. t.ff.pauseSprite(!1);
  5541. t.ff.mBlockInputEvents.active = !1;
  5542. });
  5543. this.ff.setBlockInputCallback(function() {
  5544. o.jump();
  5545. });
  5546. o._start();
  5547. };
  5548. r([ l(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  5549. r([ l(cc.Node) ], e.prototype, "mD1", void 0);
  5550. r([ l(cc.Node) ], e.prototype, "mD2", void 0);
  5551. r([ l({
  5552. type: cc.Node,
  5553. displayName: "摄像机移动的目标位置"
  5554. }) ], e.prototype, "mCameraPos", void 0);
  5555. return r([ p ], e);
  5556. }(cc.Component);
  5557. o.default = u;
  5558. cc._RF.pop();
  5559. }, {
  5560. "../../object/FSprite": "FSprite",
  5561. "./WOneByone": "WOneByone"
  5562. } ],
  5563. FCage: [ function(t, e, o) {
  5564. "use strict";
  5565. cc._RF.push(e, "0ef3fFJqeFGUr5VldUH8N2H", "FCage");
  5566. var i, n = this && this.__extends || (i = function(t, e) {
  5567. return (i = Object.setPrototypeOf || {
  5568. __proto__: []
  5569. } instanceof Array && function(t, e) {
  5570. t.__proto__ = e;
  5571. } || function(t, e) {
  5572. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  5573. })(t, e);
  5574. }, function(t, e) {
  5575. i(t, e);
  5576. function o() {
  5577. this.constructor = t;
  5578. }
  5579. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  5580. }), r = this && this.__decorate || function(t, e, o, i) {
  5581. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  5582. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  5583. return r > 3 && c && Object.defineProperty(e, o, c), c;
  5584. };
  5585. Object.defineProperty(o, "__esModule", {
  5586. value: !0
  5587. });
  5588. var c = t("../../object/FSprite"), a = t("../../object/PSprite"), s = t(".././map1/WOneByone"), p = t(".././base/BaseEvent"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  5589. n(e, t);
  5590. function e() {
  5591. var e = null !== t && t.apply(this, arguments) || this;
  5592. e.mMapDialog = null;
  5593. e.spine = null;
  5594. e.mPet = null;
  5595. e.mMonster = [];
  5596. e.guides = [];
  5597. e.mIcon = null;
  5598. e.mIconFrame = [];
  5599. e.mTipsIcon = null;
  5600. e.isOver = !1;
  5601. return e;
  5602. }
  5603. e.prototype.onLoad = function() {
  5604. t.prototype.onLoad.call(this);
  5605. this.mIcon && (this.mIcon.node.active = !1);
  5606. };
  5607. e.prototype.onBegin = function(t) {
  5608. this.isOver || 1 == t && this.showButton();
  5609. };
  5610. e.prototype.onEnd = function(t) {
  5611. 1 == t && this.closeButton();
  5612. };
  5613. e.prototype.showButton = function() {
  5614. var t = this;
  5615. this.iconTips(!0);
  5616. this.showOpt(this.mTipsIcon, function() {
  5617. t.openCage();
  5618. });
  5619. };
  5620. e.prototype.closeButton = function() {
  5621. this.iconTips(!1);
  5622. this.closeOpt();
  5623. };
  5624. e.prototype.iconTips = function(t) {
  5625. if (this.mIcon) if (t) {
  5626. this.mIcon.node.active = !0;
  5627. var e = this.ff.mFFheader.getTmpCount(2001);
  5628. this.mIcon.spriteFrame = e > 0 ? this.mIconFrame[0] : this.mIconFrame[1];
  5629. } else this.mIcon.node.active = !1;
  5630. };
  5631. e.prototype.delEvent = function() {
  5632. this.node.removeComponent(cc.PhysicsBoxCollider);
  5633. };
  5634. e.prototype.openCage = function() {
  5635. var t = this;
  5636. this.closeButton();
  5637. if (this.ff.mFFheader.getTmpCount(2001) > 0) {
  5638. this.isOver = !0;
  5639. for (var e = 0; e < this.guides.length; e++) this.guides[e].destroy();
  5640. this.guides = [];
  5641. this.spine.setCompleteListener(function() {
  5642. t.spine.setCompleteListener(null);
  5643. t.startStory();
  5644. });
  5645. this.spine.setAnimation(0, "open", !1);
  5646. } else this.ff.main.showTips("我需要一把牢笼钥匙");
  5647. };
  5648. e.prototype.startStory = function() {
  5649. this.ff.pauseSprite(!0);
  5650. this.ff.mBlockInputEvents.active = !0;
  5651. this.movePet();
  5652. };
  5653. e.prototype.movePet = function() {
  5654. var t = this.mPet.getComponent(cc.Animation);
  5655. this.mPet.getComponent(sp.Skeleton).setAnimation(0, c.SpriteActionType.run, !0);
  5656. t.on("finished", this.onFinished, this);
  5657. t.play("cage_pet_move");
  5658. };
  5659. e.prototype.onFinished = function() {
  5660. var t = this.mPet.getComponent(cc.Animation), e = this.mPet.getComponent(sp.Skeleton);
  5661. t.off("finished", this.onFinished, this);
  5662. e.setAnimation(0, c.SpriteActionType.stand, !0);
  5663. this.showDialog2();
  5664. };
  5665. e.prototype.showDialog2 = function() {
  5666. var t = this, e = cc.instantiate(this.mMapDialog);
  5667. e.group = "map";
  5668. e.zIndex = 9999;
  5669. e.x = this.node.x + this.mPet.x;
  5670. e.y = this.node.y + this.mPet.y + this.mPet.height;
  5671. e.parent = this.ff.mMap.mSprites;
  5672. var o = e.getComponent(s.default);
  5673. o.dialogs = [ "伟大的古尔薇格,谢谢你把小女巫送来", "我是琳达,这是鲍西", "敌人抓我们时,为了保护我,这个傻子冲到了最前面第一个被打晕了,我也被他们抓了", "还好你及时赶到,救了我们", "我们还有个同伴,露西,正在前面与敌人作战", "请你过去帮帮她" ];
  5674. o.setCallback(function() {
  5675. e.destroy();
  5676. t.ff.setBlockInputCallback(null);
  5677. t.ff.pauseSprite(!1);
  5678. t.ff.mBlockInputEvents.active = !1;
  5679. t.node.removeComponent(cc.PhysicsBoxCollider);
  5680. });
  5681. this.ff.setBlockInputCallback(function() {
  5682. o.jump();
  5683. });
  5684. o._start();
  5685. };
  5686. e.prototype.getPet = function() {
  5687. var t = this;
  5688. this.delEvent();
  5689. var e = this.ff.mFFheader, o = this.ff.mainSprite.node.getPosition();
  5690. o.x -= this.node.x;
  5691. o.y -= this.node.y;
  5692. this.mPet.getComponent(sp.Skeleton).setAnimation(0, c.SpriteActionType.run, !0);
  5693. cc.tween(this.mPet).sequence(cc.moveTo(1, o), cc.callFunc(function() {
  5694. e.removeTmpGood(2001, 1);
  5695. t.mPet.removeFromParent();
  5696. t.mMonster.forEach(function(e) {
  5697. var o = cc.instantiate(e).getComponent(a.default);
  5698. t.ff.addRole(o);
  5699. });
  5700. })).start();
  5701. };
  5702. r([ f(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  5703. r([ f(sp.Skeleton) ], e.prototype, "spine", void 0);
  5704. r([ f(cc.Node) ], e.prototype, "mPet", void 0);
  5705. r([ f({
  5706. type: [ cc.Prefab ],
  5707. displayName: "解救的对象"
  5708. }) ], e.prototype, "mMonster", void 0);
  5709. r([ f(cc.Node) ], e.prototype, "guides", void 0);
  5710. r([ f({
  5711. displayName: "靠近的提示",
  5712. type: cc.Sprite
  5713. }) ], e.prototype, "mIcon", void 0);
  5714. r([ f({
  5715. type: [ cc.SpriteFrame ],
  5716. displayName: "不同状态的图标"
  5717. }) ], e.prototype, "mIconFrame", void 0);
  5718. r([ f({
  5719. displayName: "提示图标",
  5720. type: cc.SpriteFrame
  5721. }) ], e.prototype, "mTipsIcon", void 0);
  5722. return r([ u ], e);
  5723. }(p.default);
  5724. o.default = h;
  5725. cc._RF.pop();
  5726. }, {
  5727. "../../object/FSprite": "FSprite",
  5728. "../../object/PSprite": "PSprite",
  5729. ".././base/BaseEvent": "BaseEvent",
  5730. ".././map1/WOneByone": "WOneByone"
  5731. } ],
  5732. FCloseDoor: [ function(t, e, o) {
  5733. "use strict";
  5734. cc._RF.push(e, "973bfWv4bVOUJ0sl9FUGaVq", "FCloseDoor");
  5735. var i, n = this && this.__extends || (i = function(t, e) {
  5736. return (i = Object.setPrototypeOf || {
  5737. __proto__: []
  5738. } instanceof Array && function(t, e) {
  5739. t.__proto__ = e;
  5740. } || function(t, e) {
  5741. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  5742. })(t, e);
  5743. }, function(t, e) {
  5744. i(t, e);
  5745. function o() {
  5746. this.constructor = t;
  5747. }
  5748. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  5749. }), r = this && this.__decorate || function(t, e, o, i) {
  5750. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  5751. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  5752. return r > 3 && c && Object.defineProperty(e, o, c), c;
  5753. };
  5754. Object.defineProperty(o, "__esModule", {
  5755. value: !0
  5756. });
  5757. var c = t("../object/FSprite"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  5758. n(e, t);
  5759. function e() {
  5760. var e = null !== t && t.apply(this, arguments) || this;
  5761. e.mCameraPos = null;
  5762. e.mFenceTrigger = [];
  5763. return e;
  5764. }
  5765. e.prototype.onBeginContact = function(t, e, o) {
  5766. var i = this;
  5767. if ("A" == o.node.group) {
  5768. var n = o.node.getComponent(c.default);
  5769. this.ff = n.ff;
  5770. if (n == this.ff.mainSprite) {
  5771. this.node.removeComponent(cc.PhysicsBoxCollider);
  5772. this.ff.pauseSprite(!0);
  5773. this.moveCamera(function() {
  5774. cc.tween(i).sequence(cc.delayTime(1), cc.callFunc(function() {
  5775. i.ff.pauseSprite(!1);
  5776. })).start();
  5777. for (var t = 0; t < i.mFenceTrigger.length; t++) {
  5778. var e = i.mFenceTrigger[t];
  5779. e.active = !0;
  5780. e.children.forEach(function(t) {
  5781. var e = t.getComponent(sp.Skeleton);
  5782. e && e.setAnimation(0, "open", !1);
  5783. });
  5784. }
  5785. });
  5786. }
  5787. }
  5788. };
  5789. e.prototype.moveCamera = function(t) {
  5790. if (this.mCameraPos) {
  5791. var e = this.ff.mMap.mCamera, o = cc.v2(), i = cc.winSize;
  5792. o.x = this.node.x + this.mCameraPos.x - i.width / 2;
  5793. o.y = this.node.y + this.mCameraPos.y - i.height / 2;
  5794. cc.tween(e.node).sequence(cc.moveTo(1, o), cc.callFunc(function() {
  5795. t();
  5796. })).start();
  5797. } else t();
  5798. };
  5799. r([ p({
  5800. type: cc.Node,
  5801. displayName: "摄像机移动的目标位置"
  5802. }) ], e.prototype, "mCameraPos", void 0);
  5803. r([ p([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0);
  5804. return r([ s ], e);
  5805. }(cc.Component);
  5806. o.default = l;
  5807. cc._RF.pop();
  5808. }, {
  5809. "../object/FSprite": "FSprite"
  5810. } ],
  5811. FControl: [ function(t, e, o) {
  5812. "use strict";
  5813. cc._RF.push(e, "a6e5fhToxFHapHD8/Vndmqf", "FControl");
  5814. var i, n = this && this.__extends || (i = function(t, e) {
  5815. return (i = Object.setPrototypeOf || {
  5816. __proto__: []
  5817. } instanceof Array && function(t, e) {
  5818. t.__proto__ = e;
  5819. } || function(t, e) {
  5820. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  5821. })(t, e);
  5822. }, function(t, e) {
  5823. i(t, e);
  5824. function o() {
  5825. this.constructor = t;
  5826. }
  5827. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  5828. }), r = this && this.__decorate || function(t, e, o, i) {
  5829. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  5830. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  5831. return r > 3 && c && Object.defineProperty(e, o, c), c;
  5832. };
  5833. Object.defineProperty(o, "__esModule", {
  5834. value: !0
  5835. });
  5836. var c = t("../../util/CUtil"), a = t("./EventButton"), s = t("./FF"), p = t("./object/FSprite"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  5837. n(e, t);
  5838. function e() {
  5839. var e = null !== t && t.apply(this, arguments) || this;
  5840. e.ff = null;
  5841. e.mEventButton = null;
  5842. e.mShooting = null;
  5843. e.mBtSkill1 = null;
  5844. e.mBtLabel1 = null;
  5845. e.mBtSkill2 = null;
  5846. e.mBtLabel2 = null;
  5847. e.mBtSkillEffect = null;
  5848. e.mSkillIcon = null;
  5849. e.skillOK1 = !0;
  5850. e.lastTime1 = 0;
  5851. e.skillOK2 = !0;
  5852. e.lastTime2 = 0;
  5853. return e;
  5854. }
  5855. e.prototype.onLoad = function() {
  5856. this.mEventButton.node.active = !1;
  5857. this.mShooting.on(cc.Node.EventType.TOUCH_START, this._touchShootStartEvent, this);
  5858. this.mShooting.on(cc.Node.EventType.TOUCH_END, this._touchShootEndEvent, this);
  5859. this.mShooting.on(cc.Node.EventType.TOUCH_CANCEL, this._touchShootEndEvent, this);
  5860. };
  5861. e.prototype.updateSkill = function() {
  5862. var t = this, e = this.ff.mainSprite.attrData;
  5863. this._skillData1 = this.ff.main.sManage.getSkillById(e.weaponSkill);
  5864. this._skillData1 && cc.resources.load("icon/skill/" + this._skillData1.icon, cc.SpriteFrame, function(e, o) {
  5865. e ? cc.error(e) : t.mSkillIcon.spriteFrame = o;
  5866. });
  5867. this.mBtSkill1.node.active = !0;
  5868. this.ff.main.player.role.openSkill, this.mBtSkill2.node.active = !1;
  5869. };
  5870. e.prototype.showSkill2 = function() {};
  5871. e.prototype.showEventBt = function(t, e) {
  5872. this.ff.mainSprite.setShooting(!1);
  5873. this.ff.mainSprite.status, p.SpriteType.NONE;
  5874. this.mEventButton.node.active = !0;
  5875. this.mEventButton.mIcon.spriteFrame = t;
  5876. this.mShooting.active = !1;
  5877. this.mEventButton.setCallback(function() {
  5878. e();
  5879. });
  5880. };
  5881. e.prototype.closeEventBt = function() {
  5882. this.mEventButton.node.active = !1;
  5883. this.mShooting.active = !0;
  5884. this.mEventButton.setCallback(null);
  5885. };
  5886. e.prototype._touchRunningStartEvent = function() {
  5887. this.ff && this.ff.mainSprite && this.ff.mainSprite.setRuning(!0);
  5888. };
  5889. e.prototype._touchRunningEndEvent = function() {
  5890. this.ff && this.ff.mainSprite && this.ff.mainSprite.setRuning(!1);
  5891. };
  5892. e.prototype._touchShootStartEvent = function() {
  5893. this.ff && this.ff.mainSprite && this.ff.mainSprite.setShooting(!0);
  5894. };
  5895. e.prototype._touchShootEndEvent = function() {
  5896. this.ff && this.ff.mainSprite && this.ff.mainSprite.setShooting(!1);
  5897. };
  5898. e.prototype.onclickSkill1 = function() {
  5899. if (this.skillOK1) {
  5900. this.skillOK1 = !1;
  5901. this.lastTime1 = c.default.getNowTime();
  5902. this.mBtSkill1.interactable = !1;
  5903. this.mBtLabel1.node.active = !0;
  5904. var t = this.ff.mainSprite.findEnemy(3e3).sprite;
  5905. this.ff.mainSprite.skill1.exe(t, function() {});
  5906. }
  5907. };
  5908. e.prototype.onclickSkill2 = function() {
  5909. if (this.skillOK2) {
  5910. this.skillOK2 = !1;
  5911. this.lastTime2 = c.default.getNowTime();
  5912. this.mBtSkill2.interactable = !1;
  5913. this.mBtLabel2.node.active = !0;
  5914. var t = this.ff.mainSprite.findEnemy(3e3).sprite;
  5915. this.ff.mainSprite.skill1.exe(t, function() {});
  5916. }
  5917. };
  5918. e.prototype.update = function() {
  5919. if (this._skillData1 && !this.skillOK1) if ((t = c.default.getNowTime() - this.lastTime1) >= this._skillData1.time) {
  5920. this.skillOK1 = !0;
  5921. this.mBtSkill1.interactable = !0;
  5922. this.mBtLabel1.node.active = !1;
  5923. } else this.mBtLabel1.string = "" + (this._skillData1.time - t);
  5924. if (this._skillData1 && !this.skillOK2) {
  5925. var t;
  5926. if ((t = c.default.getNowTime() - this.lastTime2) >= this._skillData1.time) {
  5927. this.skillOK2 = !0;
  5928. this.mBtSkill2.interactable = !0;
  5929. this.mBtLabel2.node.active = !1;
  5930. } else this.mBtLabel2.string = "" + (this._skillData1.time - t);
  5931. }
  5932. };
  5933. r([ f(s.default) ], e.prototype, "ff", void 0);
  5934. r([ f(a.default) ], e.prototype, "mEventButton", void 0);
  5935. r([ f(cc.Node) ], e.prototype, "mShooting", void 0);
  5936. r([ f(cc.Button) ], e.prototype, "mBtSkill1", void 0);
  5937. r([ f(cc.Label) ], e.prototype, "mBtLabel1", void 0);
  5938. r([ f(cc.Button) ], e.prototype, "mBtSkill2", void 0);
  5939. r([ f(cc.Label) ], e.prototype, "mBtLabel2", void 0);
  5940. r([ f(cc.Node) ], e.prototype, "mBtSkillEffect", void 0);
  5941. r([ f(cc.Sprite) ], e.prototype, "mSkillIcon", void 0);
  5942. return r([ u ], e);
  5943. }(cc.Component);
  5944. o.default = h;
  5945. cc._RF.pop();
  5946. }, {
  5947. "../../util/CUtil": "CUtil",
  5948. "./EventButton": "EventButton",
  5949. "./FF": "FF",
  5950. "./object/FSprite": "FSprite"
  5951. } ],
  5952. FCountDown: [ function(t, e, o) {
  5953. "use strict";
  5954. cc._RF.push(e, "08985N2Al5P5qzOYUM+Vfgz", "FCountDown");
  5955. var i, n = this && this.__extends || (i = function(t, e) {
  5956. return (i = Object.setPrototypeOf || {
  5957. __proto__: []
  5958. } instanceof Array && function(t, e) {
  5959. t.__proto__ = e;
  5960. } || function(t, e) {
  5961. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  5962. })(t, e);
  5963. }, function(t, e) {
  5964. i(t, e);
  5965. function o() {
  5966. this.constructor = t;
  5967. }
  5968. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  5969. }), r = this && this.__decorate || function(t, e, o, i) {
  5970. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  5971. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  5972. return r > 3 && c && Object.defineProperty(e, o, c), c;
  5973. };
  5974. Object.defineProperty(o, "__esModule", {
  5975. value: !0
  5976. });
  5977. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  5978. n(e, t);
  5979. function e() {
  5980. var e = null !== t && t.apply(this, arguments) || this;
  5981. e.mTime = null;
  5982. e.isOver = !0;
  5983. e.dtime = 0;
  5984. e.totalTime = 0;
  5985. return e;
  5986. }
  5987. e.prototype.onLoad = function() {
  5988. this.node.active = !1;
  5989. };
  5990. e.prototype.setCallback = function(t) {
  5991. this.callback = t;
  5992. };
  5993. e.prototype.startCountDown = function(t) {
  5994. this.node.active = !0;
  5995. this.totalTime = t;
  5996. this.dtime = new Date().getTime();
  5997. this.isOver = !1;
  5998. };
  5999. e.prototype.stopCountDown = function() {
  6000. this.node.active = !1;
  6001. this.isOver = !0;
  6002. };
  6003. e.prototype.pauseTime = function() {};
  6004. e.prototype.update = function() {
  6005. if (!this.isOver) {
  6006. var t = new Date().getTime(), e = this.totalTime - Math.floor((t - this.dtime) / 1e3);
  6007. if (e < 0) {
  6008. this.isOver = !0;
  6009. this.callback();
  6010. } else this.mTime.string = "" + e;
  6011. }
  6012. };
  6013. r([ s(cc.Label) ], e.prototype, "mTime", void 0);
  6014. return r([ a ], e);
  6015. }(cc.Component);
  6016. o.default = p;
  6017. cc._RF.pop();
  6018. }, {} ],
  6019. FDialogAttr: [ function(t, e, o) {
  6020. "use strict";
  6021. cc._RF.push(e, "303e7JZwAJJEJa1EfzchMRk", "FDialogAttr");
  6022. var i, n = this && this.__extends || (i = function(t, e) {
  6023. return (i = Object.setPrototypeOf || {
  6024. __proto__: []
  6025. } instanceof Array && function(t, e) {
  6026. t.__proto__ = e;
  6027. } || function(t, e) {
  6028. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  6029. })(t, e);
  6030. }, function(t, e) {
  6031. i(t, e);
  6032. function o() {
  6033. this.constructor = t;
  6034. }
  6035. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  6036. }), r = this && this.__decorate || function(t, e, o, i) {
  6037. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  6038. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  6039. return r > 3 && c && Object.defineProperty(e, o, c), c;
  6040. };
  6041. Object.defineProperty(o, "__esModule", {
  6042. value: !0
  6043. });
  6044. var c = t("../../../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  6045. n(e, t);
  6046. function e() {
  6047. var e = null !== t && t.apply(this, arguments) || this;
  6048. e.mName = null;
  6049. e.mAbout = null;
  6050. e.mVaule = null;
  6051. e.mIcon = null;
  6052. return e;
  6053. }
  6054. e.prototype.onclick = function() {
  6055. this.callback && this.callback(this);
  6056. };
  6057. e.prototype.setCallback = function(t) {
  6058. this.callback = t;
  6059. };
  6060. e.prototype.setVaule = function(t) {
  6061. var e = this;
  6062. this.attr = t;
  6063. this.mName.string = c.default.t(t.name);
  6064. this.mAbout.string = c.default.t(t.about);
  6065. this.mVaule.string = t.vaule + "%";
  6066. cc.resources.load("icon/attr/" + t.icon, cc.SpriteFrame, function(t, o) {
  6067. t ? cc.error(t) : e.mIcon.spriteFrame = o;
  6068. });
  6069. };
  6070. r([ p(cc.Label) ], e.prototype, "mName", void 0);
  6071. r([ p(cc.Label) ], e.prototype, "mAbout", void 0);
  6072. r([ p(cc.Label) ], e.prototype, "mVaule", void 0);
  6073. r([ p(cc.Sprite) ], e.prototype, "mIcon", void 0);
  6074. return r([ s ], e);
  6075. }(cc.Component);
  6076. o.default = l;
  6077. cc._RF.pop();
  6078. }, {
  6079. "../../../../i18n/i18n": "i18n"
  6080. } ],
  6081. FDialogBox: [ function(t, e, o) {
  6082. "use strict";
  6083. cc._RF.push(e, "44dcc4KqCxO3bVKYJbV8d/q", "FDialogBox");
  6084. var i, n = this && this.__extends || (i = function(t, e) {
  6085. return (i = Object.setPrototypeOf || {
  6086. __proto__: []
  6087. } instanceof Array && function(t, e) {
  6088. t.__proto__ = e;
  6089. } || function(t, e) {
  6090. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  6091. })(t, e);
  6092. }, function(t, e) {
  6093. i(t, e);
  6094. function o() {
  6095. this.constructor = t;
  6096. }
  6097. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  6098. }), r = this && this.__decorate || function(t, e, o, i) {
  6099. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  6100. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  6101. return r > 3 && c && Object.defineProperty(e, o, c), c;
  6102. };
  6103. Object.defineProperty(o, "__esModule", {
  6104. value: !0
  6105. });
  6106. var c = t("../../../../i18n/i18n"), a = t("./FDialogAttr"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  6107. n(e, t);
  6108. function e() {
  6109. var e = null !== t && t.apply(this, arguments) || this;
  6110. e.mName = null;
  6111. e.mName1 = null;
  6112. e.mContent = null;
  6113. e.mIcon = null;
  6114. e.mDialogNode = null;
  6115. e.mAttrNode = null;
  6116. e.mAttrContent = null;
  6117. e.mAttrPerfab = null;
  6118. e.tmpDialogIndex = 0;
  6119. e.tmpDialogs = null;
  6120. return e;
  6121. }
  6122. e.prototype.onclick = function() {
  6123. this.tmpDialogIndex++;
  6124. if (this.tmpDialogs && this.tmpDialogIndex < this.tmpDialogs.length) {
  6125. var t = this.tmpDialogs[this.tmpDialogIndex];
  6126. this.setDialog(t);
  6127. } else if (this.callback) {
  6128. this.callback();
  6129. this.callback = null;
  6130. }
  6131. };
  6132. e.prototype.setCallback = function(t) {
  6133. this.callback = t;
  6134. };
  6135. e.prototype.setData = function(t) {
  6136. this.mDialogNode.active = !0;
  6137. this.mAttrNode.active = !1;
  6138. this.tmpDialogIndex = 0;
  6139. this.tmpDialogs = t;
  6140. var e = this.tmpDialogs[0];
  6141. this.setDialog(e);
  6142. };
  6143. e.prototype.setDialog = function(t) {
  6144. var e = this;
  6145. this.mName.string = c.default.t(t.name);
  6146. this.mName1.string = c.default.t(t.name1);
  6147. this.mContent.string = c.default.t(t.content);
  6148. cc.resources.load("icon/npc/" + t.icon, cc.SpriteFrame, function(t, o) {
  6149. t ? cc.error(t) : e.mIcon.spriteFrame = o;
  6150. });
  6151. };
  6152. e.prototype.setAttrCallback = function(t) {
  6153. this.attrCallback = t;
  6154. };
  6155. e.prototype.setAttr = function(t) {
  6156. var e = this;
  6157. this.mDialogNode.active = !1;
  6158. this.mAttrNode.active = !0;
  6159. for (var o = 0; o < t.length; o++) {
  6160. var i = t[o], n = cc.instantiate(this.mAttrPerfab);
  6161. n.parent = this.mAttrContent;
  6162. var r = n.getComponent(a.default);
  6163. r.setVaule(i);
  6164. r.setCallback(function(t) {
  6165. e.attrCallback && e.attrCallback(t.attr);
  6166. });
  6167. }
  6168. };
  6169. r([ l(cc.Label) ], e.prototype, "mName", void 0);
  6170. r([ l(cc.Label) ], e.prototype, "mName1", void 0);
  6171. r([ l(cc.Label) ], e.prototype, "mContent", void 0);
  6172. r([ l(cc.Sprite) ], e.prototype, "mIcon", void 0);
  6173. r([ l(cc.Node) ], e.prototype, "mDialogNode", void 0);
  6174. r([ l(cc.Node) ], e.prototype, "mAttrNode", void 0);
  6175. r([ l(cc.Node) ], e.prototype, "mAttrContent", void 0);
  6176. r([ l(cc.Prefab) ], e.prototype, "mAttrPerfab", void 0);
  6177. return r([ p ], e);
  6178. }(cc.Component);
  6179. o.default = u;
  6180. cc._RF.pop();
  6181. }, {
  6182. "../../../../i18n/i18n": "i18n",
  6183. "./FDialogAttr": "FDialogAttr"
  6184. } ],
  6185. FDialogMonster: [ function(t, e, o) {
  6186. "use strict";
  6187. cc._RF.push(e, "79816oVS0hI/pcLRYCzfhfK", "FDialogMonster");
  6188. var i, n = this && this.__extends || (i = function(t, e) {
  6189. return (i = Object.setPrototypeOf || {
  6190. __proto__: []
  6191. } instanceof Array && function(t, e) {
  6192. t.__proto__ = e;
  6193. } || function(t, e) {
  6194. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  6195. })(t, e);
  6196. }, function(t, e) {
  6197. i(t, e);
  6198. function o() {
  6199. this.constructor = t;
  6200. }
  6201. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  6202. }), r = this && this.__decorate || function(t, e, o, i) {
  6203. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  6204. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  6205. return r > 3 && c && Object.defineProperty(e, o, c), c;
  6206. };
  6207. Object.defineProperty(o, "__esModule", {
  6208. value: !0
  6209. });
  6210. var c = t("./map1/WOneByone"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  6211. n(e, t);
  6212. function e() {
  6213. var e = null !== t && t.apply(this, arguments) || this;
  6214. e.mMapDialog = null;
  6215. e.text = [];
  6216. return e;
  6217. }
  6218. e.prototype.showDialog = function() {
  6219. var t = this.text, e = cc.instantiate(this.mMapDialog);
  6220. e.group = "map";
  6221. e.zIndex = 9999;
  6222. e.x = this.node.x;
  6223. e.y = this.node.y + this.node.height;
  6224. e.parent = this.ff.mMap.mSprites;
  6225. var o = e.getComponent(c.default);
  6226. o.dialogs = t;
  6227. o.setCallback(function() {
  6228. e.destroy();
  6229. });
  6230. o._start();
  6231. };
  6232. r([ p(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  6233. r([ p([ cc.String ]) ], e.prototype, "text", void 0);
  6234. return r([ s ], e);
  6235. }(cc.Component);
  6236. o.default = l;
  6237. cc._RF.pop();
  6238. }, {
  6239. "./map1/WOneByone": "WOneByone"
  6240. } ],
  6241. FDialogNoneNPC: [ function(t, e, o) {
  6242. "use strict";
  6243. cc._RF.push(e, "dc3c8smAHhMpK7U3xp/aisx", "FDialogNoneNPC");
  6244. var i, n = this && this.__extends || (i = function(t, e) {
  6245. return (i = Object.setPrototypeOf || {
  6246. __proto__: []
  6247. } instanceof Array && function(t, e) {
  6248. t.__proto__ = e;
  6249. } || function(t, e) {
  6250. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  6251. })(t, e);
  6252. }, function(t, e) {
  6253. i(t, e);
  6254. function o() {
  6255. this.constructor = t;
  6256. }
  6257. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  6258. }), r = this && this.__decorate || function(t, e, o, i) {
  6259. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  6260. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  6261. return r > 3 && c && Object.defineProperty(e, o, c), c;
  6262. };
  6263. Object.defineProperty(o, "__esModule", {
  6264. value: !0
  6265. });
  6266. var c = t("../../../login/FqLogin"), a = t("../../../main/ViewManage"), s = t("./base/BaseEvent"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  6267. n(e, t);
  6268. function e() {
  6269. var e = null !== t && t.apply(this, arguments) || this;
  6270. e.mMapDialog = null;
  6271. e.text = [];
  6272. e.icon = null;
  6273. e.mTipsIcon = null;
  6274. e.spine = null;
  6275. e.mFenceTrigger = [];
  6276. return e;
  6277. }
  6278. e.prototype.onLoad = function() {
  6279. t.prototype.onLoad.call(this);
  6280. this.icon && (this.icon.active = !1);
  6281. };
  6282. e.prototype.onBegin = function(t) {
  6283. var e = this;
  6284. 1 == t ? this.showOpt(this.mTipsIcon, function() {
  6285. e.startDialog();
  6286. }) : 2 == t && this.icon && (this.icon.active = !0);
  6287. };
  6288. e.prototype.onEnd = function(t) {
  6289. 1 == t ? this.closeOpt() : 2 == t && this.icon && (this.icon.active = !1);
  6290. };
  6291. e.prototype.startDialog = function() {
  6292. this.icon && (this.icon.active = !1);
  6293. this.dialog1();
  6294. };
  6295. e.prototype.closeButton = function() {
  6296. this.icon && (this.icon.active = !1);
  6297. this.closeOpt();
  6298. };
  6299. e.prototype.dialog1 = function(t) {
  6300. var e = this;
  6301. void 0 === t && (t = 0);
  6302. if (t >= this.text.length) {
  6303. this.npcFly(function() {
  6304. e.openmFenceTrigger();
  6305. e.spine.node.parent.active = !1;
  6306. e.closeOpt();
  6307. });
  6308. this.closeButton();
  6309. this.resume();
  6310. } else {
  6311. var o = this.text[t].split("|");
  6312. if (-1 == parseInt(o.shift())) {
  6313. var i = this.ff.mainSprite.node;
  6314. this.showDialog(i, o, function() {
  6315. t++;
  6316. e.dialog1(t);
  6317. });
  6318. } else this.showDialog(this.node, o, function() {
  6319. t++;
  6320. e.dialog1(t);
  6321. });
  6322. }
  6323. };
  6324. e.prototype.npcFly = function(t) {
  6325. var e = this;
  6326. this.spine.setAnimation(0, "escape", !1);
  6327. this.spine.setCompleteListener(function() {
  6328. e.spine.setCompleteListener(null);
  6329. e.spine.setAnimation(0, "fly", !0);
  6330. var o = cc.v2(-370, 460);
  6331. cc.tween(e.spine.node).sequence(cc.moveTo(1, o), cc.callFunc(function() {
  6332. t && t();
  6333. })).start();
  6334. });
  6335. };
  6336. e.prototype.openmFenceTrigger = function() {
  6337. var t = this;
  6338. if (!(this.mFenceTrigger.length <= 0)) {
  6339. this.pause();
  6340. this.moveCamera(this.mFenceTrigger[0].getPosition(), 1, function() {
  6341. cc.tween(t.node).sequence(cc.callFunc(function() {
  6342. for (var e = 0; e < t.mFenceTrigger.length; e++) {
  6343. var o = t.mFenceTrigger[e];
  6344. t.showFence(o, "close");
  6345. }
  6346. t.ff.main.playerEffectByPath(a.AudioMgr.openDoor);
  6347. }), cc.delayTime(1), cc.callFunc(function() {
  6348. t.resume();
  6349. for (var e = 0; e < t.mFenceTrigger.length; e++) t.mFenceTrigger[e].active = !1;
  6350. c.default.commitEvent(t.node.name, "", "");
  6351. })).start();
  6352. });
  6353. }
  6354. };
  6355. e.prototype.showFence = function(t, e) {
  6356. for (var o = t.children, i = 0; i < o.length; i++) {
  6357. var n = o[i].getComponent(sp.Skeleton);
  6358. n && n.setAnimation(0, e, !1);
  6359. }
  6360. };
  6361. r([ u(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  6362. r([ u({
  6363. displayName: "对话内容",
  6364. type: [ cc.String ]
  6365. }) ], e.prototype, "text", void 0);
  6366. r([ u({
  6367. displayName: "靠近的提示",
  6368. type: cc.Node
  6369. }) ], e.prototype, "icon", void 0);
  6370. r([ u({
  6371. displayName: "提示图标",
  6372. type: cc.SpriteFrame
  6373. }) ], e.prototype, "mTipsIcon", void 0);
  6374. r([ u({
  6375. displayName: "NPC动画",
  6376. type: sp.Skeleton
  6377. }) ], e.prototype, "spine", void 0);
  6378. r([ u([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0);
  6379. return r([ l ], e);
  6380. }(s.default);
  6381. o.default = f;
  6382. cc._RF.pop();
  6383. }, {
  6384. "../../../login/FqLogin": "FqLogin",
  6385. "../../../main/ViewManage": "ViewManage",
  6386. "./base/BaseEvent": "BaseEvent"
  6387. } ],
  6388. FDialogNoneXJ: [ function(t, e, o) {
  6389. "use strict";
  6390. cc._RF.push(e, "fc13bnfBm9A0IvzP1FU6SOW", "FDialogNoneXJ");
  6391. var i, n = this && this.__extends || (i = function(t, e) {
  6392. return (i = Object.setPrototypeOf || {
  6393. __proto__: []
  6394. } instanceof Array && function(t, e) {
  6395. t.__proto__ = e;
  6396. } || function(t, e) {
  6397. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  6398. })(t, e);
  6399. }, function(t, e) {
  6400. i(t, e);
  6401. function o() {
  6402. this.constructor = t;
  6403. }
  6404. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  6405. }), r = this && this.__decorate || function(t, e, o, i) {
  6406. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  6407. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  6408. return r > 3 && c && Object.defineProperty(e, o, c), c;
  6409. };
  6410. Object.defineProperty(o, "__esModule", {
  6411. value: !0
  6412. });
  6413. var c = t("../../../login/FqLogin"), a = t("../../../main/ViewManage"), s = t("./base/BaseEvent"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  6414. n(e, t);
  6415. function e() {
  6416. var e = null !== t && t.apply(this, arguments) || this;
  6417. e.mapGoodId = "23";
  6418. e.goodId = 2002;
  6419. e.mMapDialog = null;
  6420. e.text = [];
  6421. e.finish = [];
  6422. e.icon = null;
  6423. e.goodList = [];
  6424. e.mTipsIcon = null;
  6425. e.spine = null;
  6426. e.mFenceTrigger = [];
  6427. e.showParticle = !1;
  6428. return e;
  6429. }
  6430. e.prototype.onLoad = function() {
  6431. t.prototype.onLoad.call(this);
  6432. this.icon && (this.icon.active = !1);
  6433. if (this.ff.main.player.stage.element.indexOf(this.mapGoodId) > -1) {
  6434. for (var e = 0; e < this.mFenceTrigger.length; e++) this.mFenceTrigger[e].active = !1;
  6435. for (e = 0; e < this.goodList.length; e++) this.goodList[e].active = !1;
  6436. this.node.active = !1;
  6437. }
  6438. };
  6439. e.prototype.onBegin = function(t) {
  6440. var e = this;
  6441. 1 == t ? this.showOpt(this.mTipsIcon, function() {
  6442. e.startDialog();
  6443. }) : 2 == t && this.icon && (this.icon.active = !0);
  6444. };
  6445. e.prototype.onEnd = function(t) {
  6446. 1 == t ? this.closeOpt() : 2 == t && this.icon && (this.icon.active = !1);
  6447. };
  6448. e.prototype.startDialog = function() {
  6449. this.icon && (this.icon.active = !1);
  6450. var t = this.ff.mFFheader, e = t.getTmpCount(this.goodId);
  6451. this.pause();
  6452. if (e >= this.goodList.length) {
  6453. t.removeTmpGood(this.goodId, e);
  6454. "" != this.mapGoodId && this.getMapObject(this.mapGoodId, null);
  6455. this.dialog2();
  6456. } else this.dialog1();
  6457. };
  6458. e.prototype.closeButton = function() {
  6459. this.icon && (this.icon.active = !1);
  6460. this.closeOpt();
  6461. };
  6462. e.prototype.dialog1 = function(t) {
  6463. var e = this;
  6464. void 0 === t && (t = 0);
  6465. if (t >= this.text.length) {
  6466. this.closeButton();
  6467. this.resume();
  6468. this.activateGood();
  6469. } else {
  6470. var o = this.text[t].split("|");
  6471. if (-1 == parseInt(o.shift())) {
  6472. var i = this.ff.mainSprite.node;
  6473. this.showDialog(i, o, function() {
  6474. t++;
  6475. e.dialog1(t);
  6476. });
  6477. } else this.showDialog(this.node, o, function() {
  6478. t++;
  6479. e.dialog1(t);
  6480. });
  6481. }
  6482. };
  6483. e.prototype.dialog2 = function(t) {
  6484. var e = this;
  6485. void 0 === t && (t = 0);
  6486. if (t >= this.finish.length) {
  6487. this.closeButton();
  6488. this.spine ? this.npcFly(function() {
  6489. e.spine.node.parent.active = !1;
  6490. e.openmFenceTrigger();
  6491. }) : this.openmFenceTrigger();
  6492. c.default.commitEvent(this.node.name, "", "");
  6493. } else {
  6494. var o = this.finish[t].split("|");
  6495. if (-1 == parseInt(o.shift())) {
  6496. var i = this.ff.mainSprite.node;
  6497. this.showDialog(i, o, function() {
  6498. t++;
  6499. e.dialog2(t);
  6500. });
  6501. } else this.showDialog(this.node, o, function() {
  6502. t++;
  6503. e.dialog2(t);
  6504. });
  6505. }
  6506. };
  6507. e.prototype.npcFly = function(t) {
  6508. var e = this;
  6509. this.spine.setAnimation(0, "escape", !1);
  6510. this.spine.setCompleteListener(function() {
  6511. e.spine.setCompleteListener(null);
  6512. e.spine.setAnimation(0, "fly", !0);
  6513. var o = cc.v2(-370, 460);
  6514. cc.tween(e.spine.node).sequence(cc.moveTo(1, o), cc.callFunc(function() {
  6515. t && t();
  6516. })).start();
  6517. });
  6518. };
  6519. e.prototype.openmFenceTrigger = function() {
  6520. var t = this;
  6521. if (!(this.mFenceTrigger.length <= 0)) {
  6522. this.pause();
  6523. this.moveCamera(this.mFenceTrigger[0].getPosition(), 1, function() {
  6524. cc.tween(t.node).sequence(cc.callFunc(function() {
  6525. for (var e = 0; e < t.mFenceTrigger.length; e++) {
  6526. var o = t.mFenceTrigger[e];
  6527. t.showFence(o, "close");
  6528. }
  6529. t.ff.main.playerEffectByPath(a.AudioMgr.openDoor);
  6530. }), cc.delayTime(1), cc.callFunc(function() {
  6531. t.resume();
  6532. for (var e = 0; e < t.mFenceTrigger.length; e++) t.mFenceTrigger[e].active = !1;
  6533. })).start();
  6534. });
  6535. }
  6536. };
  6537. e.prototype.showFence = function(t, e) {
  6538. for (var o = t.children, i = 0; i < o.length; i++) {
  6539. var n = o[i].getComponent(sp.Skeleton);
  6540. n && n.setAnimation(0, e, !1);
  6541. }
  6542. };
  6543. e.prototype.activateGood = function() {
  6544. if (!this.showParticle) {
  6545. this.showParticle = !0;
  6546. this.goodList.forEach(function(t) {
  6547. t.name && (t.getChildByName("lizi_gs").active = !0);
  6548. });
  6549. }
  6550. };
  6551. r([ u({
  6552. displayName: "地图元素编号"
  6553. }) ], e.prototype, "mapGoodId", void 0);
  6554. r([ u({
  6555. displayName: "拾取物品ID"
  6556. }) ], e.prototype, "goodId", void 0);
  6557. r([ u(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  6558. r([ u({
  6559. displayName: "对话内容",
  6560. type: [ cc.String ]
  6561. }) ], e.prototype, "text", void 0);
  6562. r([ u({
  6563. displayName: "完成后的对话",
  6564. type: [ cc.String ]
  6565. }) ], e.prototype, "finish", void 0);
  6566. r([ u({
  6567. displayName: "靠近的提示",
  6568. type: cc.Node
  6569. }) ], e.prototype, "icon", void 0);
  6570. r([ u({
  6571. displayName: "拾取列表",
  6572. type: [ cc.Node ]
  6573. }) ], e.prototype, "goodList", void 0);
  6574. r([ u({
  6575. displayName: "提示图标",
  6576. type: cc.SpriteFrame
  6577. }) ], e.prototype, "mTipsIcon", void 0);
  6578. r([ u({
  6579. displayName: "NPC动画",
  6580. type: sp.Skeleton
  6581. }) ], e.prototype, "spine", void 0);
  6582. r([ u([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0);
  6583. return r([ l ], e);
  6584. }(s.default);
  6585. o.default = f;
  6586. cc._RF.pop();
  6587. }, {
  6588. "../../../login/FqLogin": "FqLogin",
  6589. "../../../main/ViewManage": "ViewManage",
  6590. "./base/BaseEvent": "BaseEvent"
  6591. } ],
  6592. FDialogNone: [ function(t, e, o) {
  6593. "use strict";
  6594. cc._RF.push(e, "e7a0aVN5fBFy4H3bMkqWMEz", "FDialogNone");
  6595. var i, n = this && this.__extends || (i = function(t, e) {
  6596. return (i = Object.setPrototypeOf || {
  6597. __proto__: []
  6598. } instanceof Array && function(t, e) {
  6599. t.__proto__ = e;
  6600. } || function(t, e) {
  6601. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  6602. })(t, e);
  6603. }, function(t, e) {
  6604. i(t, e);
  6605. function o() {
  6606. this.constructor = t;
  6607. }
  6608. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  6609. }), r = this && this.__decorate || function(t, e, o, i) {
  6610. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  6611. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  6612. return r > 3 && c && Object.defineProperty(e, o, c), c;
  6613. };
  6614. Object.defineProperty(o, "__esModule", {
  6615. value: !0
  6616. });
  6617. var c = t("../../../login/FqLogin"), a = t("../../../main/ViewManage"), s = t("../../../util/CHttp"), p = t("./base/BaseEvent"), l = t("./map1/WOneByone"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  6618. n(e, t);
  6619. function e() {
  6620. var e = null !== t && t.apply(this, arguments) || this;
  6621. e.mapGoodId = "23";
  6622. e.mMapDialog = null;
  6623. e.text = [];
  6624. e.finish = [];
  6625. e.icon = null;
  6626. e.mTipsIcon = null;
  6627. e.mFenceTrigger = [];
  6628. return e;
  6629. }
  6630. e.prototype.onLoad = function() {
  6631. t.prototype.onLoad.call(this);
  6632. this.icon && (this.icon.active = !1);
  6633. };
  6634. e.prototype.onBegin = function(t) {
  6635. var e = this;
  6636. 1 == t ? this.showOpt(this.mTipsIcon, function() {
  6637. e.startDialog();
  6638. }) : 2 == t && this.icon && (this.icon.active = !0);
  6639. };
  6640. e.prototype.onEnd = function(t) {
  6641. 1 == t ? this.closeOpt() : 2 == t && this.icon && (this.icon.active = !1);
  6642. };
  6643. e.prototype.startDialog = function() {
  6644. this.icon && (this.icon.active = !1);
  6645. "" == this.mapGoodId ? this.showDialog1() : this.ff.main.player.stage.element.indexOf(this.mapGoodId) > 0 ? this.showDialog2() : this.showDialog1();
  6646. };
  6647. e.prototype.closeButton = function() {
  6648. this.icon && (this.icon.active = !1);
  6649. this.closeOpt();
  6650. };
  6651. e.prototype.showDialog2 = function() {
  6652. var t = this;
  6653. this.ff.pauseSprite(!0);
  6654. this.ff.mBlockInputEvents.active = !0;
  6655. var e = this.finish, o = cc.instantiate(this.mMapDialog);
  6656. o.group = "map";
  6657. o.zIndex = 9999;
  6658. o.x = this.node.x;
  6659. o.y = this.node.y + this.node.height;
  6660. o.parent = this.ff.mMap.mSprites;
  6661. var i = o.getComponent(l.default);
  6662. i.dialogs = e;
  6663. i.setCallback(function() {
  6664. t.closeButton();
  6665. o.destroy();
  6666. t.ff.setBlockInputCallback(null);
  6667. t.ff.pauseSprite(!1);
  6668. t.ff.mBlockInputEvents.active = !1;
  6669. t.openmFenceTrigger();
  6670. });
  6671. this.ff.setBlockInputCallback(function() {
  6672. i.jump();
  6673. });
  6674. i._start();
  6675. };
  6676. e.prototype.showDialog1 = function() {
  6677. var t = this;
  6678. this.ff.pauseSprite(!0);
  6679. this.ff.mBlockInputEvents.active = !0;
  6680. var e = this.text, o = cc.instantiate(this.mMapDialog);
  6681. o.group = "map";
  6682. o.zIndex = 9999;
  6683. o.x = this.node.x;
  6684. o.y = this.node.y + this.node.height;
  6685. o.parent = this.ff.mMap.mSprites;
  6686. var i = o.getComponent(l.default);
  6687. i.dialogs = e;
  6688. i.setCallback(function() {
  6689. t.closeButton();
  6690. o.destroy();
  6691. t.ff.setBlockInputCallback(null);
  6692. t.ff.pauseSprite(!1);
  6693. t.ff.mBlockInputEvents.active = !1;
  6694. "" != t.mapGoodId && t.getMapObject(t.mapGoodId);
  6695. t.finish.length || t.openmFenceTrigger();
  6696. });
  6697. this.ff.setBlockInputCallback(function() {
  6698. i.jump();
  6699. });
  6700. i._start();
  6701. };
  6702. e.prototype.getMapObject = function(t) {
  6703. var e = this, o = {
  6704. objectId: t
  6705. }, i = this.ff;
  6706. i.main.gameHttp.sendJson("stage/v1/stageObject", o, function(o, n) {
  6707. if (o == s.HttpStateType.SUCCESS) if (0 == n.retCode) {
  6708. i.main.player.stage.element.push(t);
  6709. i.main.showReward(n, function() {
  6710. e.openmFenceTrigger();
  6711. });
  6712. } else i.main.showTips(n.message); else i.main.showTips("网络异常");
  6713. });
  6714. };
  6715. e.prototype.openmFenceTrigger = function() {
  6716. var t = this;
  6717. if (!(this.mFenceTrigger.length <= 0)) {
  6718. this.pause();
  6719. this.moveCamera(this.mFenceTrigger[0].getPosition(), 1, function() {
  6720. cc.tween(t.node).sequence(cc.callFunc(function() {
  6721. for (var e = 0; e < t.mFenceTrigger.length; e++) {
  6722. var o = t.mFenceTrigger[e];
  6723. t.showFence(o, "close");
  6724. }
  6725. t.ff.main.playerEffectByPath(a.AudioMgr.openDoor);
  6726. }), cc.delayTime(1), cc.callFunc(function() {
  6727. t.resume();
  6728. c.default.commitEvent(t.node.name, "", "");
  6729. for (var e = 0; e < t.mFenceTrigger.length; e++) t.mFenceTrigger[e].active = !1;
  6730. })).start();
  6731. });
  6732. }
  6733. };
  6734. e.prototype.showFence = function(t, e) {
  6735. for (var o = t.children, i = 0; i < o.length; i++) {
  6736. var n = o[i].getComponent(sp.Skeleton);
  6737. n && n.setAnimation(0, e, !1);
  6738. }
  6739. };
  6740. r([ h({
  6741. displayName: "地图元素编号"
  6742. }) ], e.prototype, "mapGoodId", void 0);
  6743. r([ h(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  6744. r([ h({
  6745. displayName: "对话内容",
  6746. type: [ cc.String ]
  6747. }) ], e.prototype, "text", void 0);
  6748. r([ h({
  6749. displayName: "完成后的对话",
  6750. type: [ cc.String ]
  6751. }) ], e.prototype, "finish", void 0);
  6752. r([ h({
  6753. displayName: "靠近的提示",
  6754. type: cc.Node
  6755. }) ], e.prototype, "icon", void 0);
  6756. r([ h({
  6757. displayName: "提示图标",
  6758. type: cc.SpriteFrame
  6759. }) ], e.prototype, "mTipsIcon", void 0);
  6760. r([ h([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0);
  6761. return r([ f ], e);
  6762. }(p.default);
  6763. o.default = d;
  6764. cc._RF.pop();
  6765. }, {
  6766. "../../../login/FqLogin": "FqLogin",
  6767. "../../../main/ViewManage": "ViewManage",
  6768. "../../../util/CHttp": "CHttp",
  6769. "./base/BaseEvent": "BaseEvent",
  6770. "./map1/WOneByone": "WOneByone"
  6771. } ],
  6772. FDialogPack26: [ function(t, e, o) {
  6773. "use strict";
  6774. cc._RF.push(e, "a90cdamK9tFbZLOiqjMGYeE", "FDialogPack26");
  6775. var i, n = this && this.__extends || (i = function(t, e) {
  6776. return (i = Object.setPrototypeOf || {
  6777. __proto__: []
  6778. } instanceof Array && function(t, e) {
  6779. t.__proto__ = e;
  6780. } || function(t, e) {
  6781. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  6782. })(t, e);
  6783. }, function(t, e) {
  6784. i(t, e);
  6785. function o() {
  6786. this.constructor = t;
  6787. }
  6788. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  6789. }), r = this && this.__decorate || function(t, e, o, i) {
  6790. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  6791. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  6792. return r > 3 && c && Object.defineProperty(e, o, c), c;
  6793. };
  6794. Object.defineProperty(o, "__esModule", {
  6795. value: !0
  6796. });
  6797. var c = t("../../../../util/CHttp"), a = t("../../object/FSprite"), s = t("../map1/WOneByone"), p = t("./FFruit26"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  6798. n(e, t);
  6799. function e() {
  6800. var e = null !== t && t.apply(this, arguments) || this;
  6801. e.mMapDialog = null;
  6802. e.iconTouch = null;
  6803. e.goodId = 3002;
  6804. e.goodNodes = [];
  6805. e.state = 0;
  6806. return e;
  6807. }
  6808. e.prototype.onLoad = function() {
  6809. for (var t = 0; t < this.goodNodes.length; t++) this.goodNodes[t].setPick26(this);
  6810. };
  6811. e.prototype.onBeginContact = function(t, e, o) {
  6812. if ("A" == o.node.group) {
  6813. var i = o.node.getComponent(a.default);
  6814. this.ff = i.ff;
  6815. i == this.ff.mainSprite && this.showButton();
  6816. }
  6817. };
  6818. e.prototype.onEndContact = function(t, e, o) {
  6819. if ("A" == o.node.group) {
  6820. var i = o.node.getComponent(a.default);
  6821. this.ff = i.ff;
  6822. i == this.ff.mainSprite && this.closeButton();
  6823. }
  6824. };
  6825. e.prototype.showButton = function() {
  6826. var t = this;
  6827. this.ff.control.mEventButton.node.active = !0;
  6828. this.ff.control.mEventButton.setCallback(function() {
  6829. t.startStory();
  6830. });
  6831. };
  6832. e.prototype.closeButton = function() {
  6833. this.ff.control.mEventButton.node.active = !1;
  6834. };
  6835. e.prototype.startStory = function() {
  6836. this.iconTouch.active = !1;
  6837. this.ff.pauseSprite(!0);
  6838. this.ff.mBlockInputEvents.active = !0;
  6839. 0 == this.state ? this.showDialog1() : this.ff.mFFheader.getTmpCount(this.goodId) >= this.goodNodes.length ? this.showDialogEnd() : this.showDialog1_x();
  6840. };
  6841. e.prototype.showDialog1 = function() {
  6842. var t = this, e = cc.instantiate(this.mMapDialog);
  6843. e.group = "map";
  6844. e.zIndex = 9999;
  6845. e.x = this.node.x;
  6846. e.y = this.node.y + this.node.height;
  6847. e.parent = this.ff.mMap.mSprites;
  6848. var o = e.getComponent(s.default);
  6849. o.dialogs = [ "我是美神,我最近新学了一些秀法", "如果你能给我4块棉布,我就能给你变出漂亮的衣服" ];
  6850. o.setCallback(function() {
  6851. t.iconTouch.active = !0;
  6852. e.destroy();
  6853. t.ff.setBlockInputCallback(null);
  6854. t.ff.pauseSprite(!1);
  6855. t.ff.mBlockInputEvents.active = !1;
  6856. t.state = 1;
  6857. });
  6858. this.ff.setBlockInputCallback(function() {
  6859. o.jump();
  6860. });
  6861. o._start();
  6862. };
  6863. e.prototype.showDialog1_x = function() {
  6864. var t = this, e = cc.instantiate(this.mMapDialog);
  6865. e.group = "map";
  6866. e.zIndex = 9999;
  6867. e.x = this.node.x;
  6868. e.y = this.node.y + this.node.height;
  6869. e.parent = this.ff.mMap.mSprites;
  6870. var o = e.getComponent(s.default);
  6871. o.dialogs = [ "还没找到吗?" ];
  6872. o.setCallback(function() {
  6873. t.iconTouch.active = !0;
  6874. e.destroy();
  6875. t.ff.setBlockInputCallback(null);
  6876. t.ff.pauseSprite(!1);
  6877. t.ff.mBlockInputEvents.active = !1;
  6878. });
  6879. this.ff.setBlockInputCallback(function() {
  6880. o.jump();
  6881. });
  6882. o._start();
  6883. };
  6884. e.prototype.showDialogEnd = function() {
  6885. var t = this, e = cc.instantiate(this.mMapDialog);
  6886. e.group = "map";
  6887. e.zIndex = 9999;
  6888. e.x = this.node.x;
  6889. e.y = this.node.y + this.node.height;
  6890. e.parent = this.ff.mMap.mSprites;
  6891. var o = e.getComponent(s.default);
  6892. o.dialogs = [ "衣服做好了,快穿上看看吧" ];
  6893. o.setCallback(function() {
  6894. t.iconTouch.active = !1;
  6895. e.destroy();
  6896. t.ff.setBlockInputCallback(null);
  6897. t.ff.pauseSprite(!1);
  6898. t.ff.mBlockInputEvents.active = !1;
  6899. t.ff.mFFheader.removeTmpGood(t.goodId, t.goodNodes.length);
  6900. t.getMapObject(t.node.name);
  6901. });
  6902. this.ff.setBlockInputCallback(function() {
  6903. o.jump();
  6904. });
  6905. o._start();
  6906. };
  6907. e.prototype.getMapObject = function(t) {
  6908. var e = this, o = {
  6909. objectId: t
  6910. };
  6911. this.ff.main.gameHttp.sendJson("stage/v1/stageObject", o, function(o, i) {
  6912. e.ff.main.stopLoad();
  6913. if (o == c.HttpStateType.SUCCESS) if (0 == i.retCode) {
  6914. e.ff.main.player.stage.element.push(t);
  6915. var n = e.ff.main.sManage.getRewards(i);
  6916. e.ff.addGoods(n, e.node.getPosition());
  6917. e.iconTouch.active = !1;
  6918. e.ff.mFFheader.removeTmpGood(e.goodNodes, e.goodNodes.length);
  6919. e.node.removeComponent(cc.PhysicsBoxCollider);
  6920. } else e.ff.main.showTips(i.message); else e.ff.main.showTips("网络异常");
  6921. });
  6922. };
  6923. r([ f(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  6924. r([ f({
  6925. type: cc.Node,
  6926. displayName: "任务提示"
  6927. }) ], e.prototype, "iconTouch", void 0);
  6928. r([ f({
  6929. displayName: "收集的道具id"
  6930. }) ], e.prototype, "goodId", void 0);
  6931. r([ f({
  6932. type: [ p.default ],
  6933. displayName: "收集的地图上的果子"
  6934. }) ], e.prototype, "goodNodes", void 0);
  6935. return r([ u ], e);
  6936. }(cc.Component);
  6937. o.default = h;
  6938. cc._RF.pop();
  6939. }, {
  6940. "../../../../util/CHttp": "CHttp",
  6941. "../../object/FSprite": "FSprite",
  6942. "../map1/WOneByone": "WOneByone",
  6943. "./FFruit26": "FFruit26"
  6944. } ],
  6945. FDialogPet: [ function(t, e, o) {
  6946. "use strict";
  6947. cc._RF.push(e, "5fa744AhD1EfpdkNrs/WU7w", "FDialogPet");
  6948. var i, n = this && this.__extends || (i = function(t, e) {
  6949. return (i = Object.setPrototypeOf || {
  6950. __proto__: []
  6951. } instanceof Array && function(t, e) {
  6952. t.__proto__ = e;
  6953. } || function(t, e) {
  6954. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  6955. })(t, e);
  6956. }, function(t, e) {
  6957. i(t, e);
  6958. function o() {
  6959. this.constructor = t;
  6960. }
  6961. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  6962. }), r = this && this.__decorate || function(t, e, o, i) {
  6963. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  6964. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  6965. return r > 3 && c && Object.defineProperty(e, o, c), c;
  6966. };
  6967. Object.defineProperty(o, "__esModule", {
  6968. value: !0
  6969. });
  6970. var c = t("../object/FObject"), a = t("../object/FSprite"), s = t("./map1/WOneByone"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  6971. n(e, t);
  6972. function e() {
  6973. var e = null !== t && t.apply(this, arguments) || this;
  6974. e.mMapDialog = null;
  6975. e.text = [];
  6976. e.mRemoveId = [];
  6977. e.isOver = !1;
  6978. return e;
  6979. }
  6980. e.prototype.onBeginContact = function(t, e, o) {
  6981. if (!this.isOver && "A" == o.node.group) {
  6982. var i = o.node.getComponent(a.default);
  6983. this.ff = i.ff;
  6984. if (i == this.ff.mainSprite) {
  6985. this.node.removeComponent(cc.PhysicsBoxCollider);
  6986. this.ff = i.ff;
  6987. this.isOver = !0;
  6988. this.startFight();
  6989. }
  6990. }
  6991. };
  6992. e.prototype.startFight = function() {
  6993. this.ff.pauseSprite(!0);
  6994. this.dialog(0);
  6995. };
  6996. e.prototype.removePet = function() {
  6997. for (var t = 0; t < this.mRemoveId.length; t++) {
  6998. var e = this.mRemoveId[t];
  6999. this.ff.removePet(e);
  7000. }
  7001. };
  7002. e.prototype.dialog = function(t) {
  7003. var e = this;
  7004. if (t >= this.text.length) {
  7005. this.ff.mBlockInputEvents.active = !1;
  7006. this.ff.pauseSprite(!1);
  7007. this.node.destroy();
  7008. this.removePet();
  7009. } else {
  7010. var o = this.ff.getGroupBy(c.GroupType.A), i = this.text[t].split("|"), n = i.shift(), r = o[parseInt(n)].node;
  7011. this.showDialog(r, i, function() {
  7012. t++;
  7013. e.dialog(t);
  7014. });
  7015. }
  7016. };
  7017. e.prototype.showDialog = function(t, e, o) {
  7018. var i = this, n = e[0];
  7019. if (0 == n.indexOf("#")) {
  7020. var r = t.getComponent(a.default).spine;
  7021. if (r) {
  7022. r.setCompleteListener(function() {
  7023. r.setAnimation(0, a.SpriteActionType.stand, !0);
  7024. o();
  7025. });
  7026. var c = n.replace("#", "");
  7027. r.setAnimation(0, c, !1);
  7028. } else o();
  7029. } else {
  7030. this.ff.mBlockInputEvents.active = !0;
  7031. var p = cc.instantiate(this.mMapDialog);
  7032. p.group = "map";
  7033. p.zIndex = 9999;
  7034. p.x = t.x;
  7035. p.y = t.y + t.height;
  7036. p.parent = this.ff.mMap.mSprites;
  7037. var l = p.getComponent(s.default);
  7038. l.dialogs = e;
  7039. l.setCallback(function() {
  7040. p.destroy();
  7041. i.ff.setBlockInputCallback(null);
  7042. o();
  7043. });
  7044. this.ff.setBlockInputCallback(function() {
  7045. l.jump();
  7046. });
  7047. l._start();
  7048. }
  7049. };
  7050. r([ u(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  7051. r([ u([ cc.String ]) ], e.prototype, "text", void 0);
  7052. r([ u({
  7053. displayName: "移除伙伴id",
  7054. type: [ cc.Integer ]
  7055. }) ], e.prototype, "mRemoveId", void 0);
  7056. return r([ l ], e);
  7057. }(cc.Component);
  7058. o.default = f;
  7059. cc._RF.pop();
  7060. }, {
  7061. "../object/FObject": "FObject",
  7062. "../object/FSprite": "FSprite",
  7063. "./map1/WOneByone": "WOneByone"
  7064. } ],
  7065. FDialogTest_Zeus: [ function(t, e, o) {
  7066. "use strict";
  7067. cc._RF.push(e, "406easz9z1KPoQwwBZsefTm", "FDialogTest_Zeus");
  7068. var i, n = this && this.__extends || (i = function(t, e) {
  7069. return (i = Object.setPrototypeOf || {
  7070. __proto__: []
  7071. } instanceof Array && function(t, e) {
  7072. t.__proto__ = e;
  7073. } || function(t, e) {
  7074. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  7075. })(t, e);
  7076. }, function(t, e) {
  7077. i(t, e);
  7078. function o() {
  7079. this.constructor = t;
  7080. }
  7081. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  7082. }), r = this && this.__decorate || function(t, e, o, i) {
  7083. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  7084. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  7085. return r > 3 && c && Object.defineProperty(e, o, c), c;
  7086. };
  7087. Object.defineProperty(o, "__esModule", {
  7088. value: !0
  7089. });
  7090. var c = t("../../object/FObject"), a = t("../../object/FSprite"), s = t("../dialog/FDialogBox"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  7091. n(e, t);
  7092. function e() {
  7093. var e = null !== t && t.apply(this, arguments) || this;
  7094. e.mDialog = null;
  7095. return e;
  7096. }
  7097. e.prototype.onBeginContact = function(t, e, o) {
  7098. if ("A" == o.node.group) {
  7099. var i = o.node.getComponent(a.default);
  7100. this.ff = i.ff;
  7101. i == this.ff.mainSprite && this.showButton();
  7102. }
  7103. };
  7104. e.prototype.onEndContact = function(t, e, o) {
  7105. "A" == o.node.group && o.node.getComponent(a.default) == this.ff.mainSprite && this.closeButton();
  7106. };
  7107. e.prototype.showButton = function() {
  7108. var t = this;
  7109. this.ff.control.mEventButton.node.active = !0;
  7110. this.ff.control.mEventButton.setCallback(function() {
  7111. t.showDialog();
  7112. });
  7113. };
  7114. e.prototype.closeButton = function() {
  7115. this.ff.control.mEventButton.node.active = !1;
  7116. };
  7117. e.prototype.exitDialog = function() {
  7118. this.dialogBox.node.destroy();
  7119. };
  7120. e.prototype.showDialog = function() {
  7121. var t = this, e = cc.instantiate(this.mDialog);
  7122. this.ff.main.viewManage.popView(e);
  7123. this.dialogBox = e.getComponent(s.default);
  7124. this.dialogBox.setData([ {
  7125. name: "宙斯",
  7126. name1: "众神之王",
  7127. icon: "3",
  7128. content: "1111111"
  7129. }, {
  7130. name: "宙斯",
  7131. name1: "众神之王",
  7132. icon: "3",
  7133. content: "222222"
  7134. }, {
  7135. name: "宙斯",
  7136. name1: "众神之王",
  7137. icon: "3",
  7138. content: "3333333"
  7139. } ]);
  7140. this.dialogBox.setCallback(function() {
  7141. t.showAttr();
  7142. });
  7143. };
  7144. e.prototype.showAttr = function() {
  7145. var t = this;
  7146. this.dialogBox.setAttr([ {
  7147. name: "附加攻击力",
  7148. about: "普通攻击增加",
  7149. icon: "attribute_icon_1",
  7150. vaule: 40,
  7151. type: 1
  7152. }, {
  7153. name: "附加攻击力",
  7154. about: "普通攻击增加",
  7155. icon: "attribute_icon_1",
  7156. vaule: 40,
  7157. type: 1
  7158. }, {
  7159. name: "附加攻击力",
  7160. about: "普通攻击增加",
  7161. icon: "attribute_icon_1",
  7162. vaule: 40,
  7163. type: 1
  7164. } ]);
  7165. this.dialogBox.setAttrCallback(function(e) {
  7166. t.exitDialog();
  7167. t.node.destroy();
  7168. cc.log("选择增加属性类型:", e);
  7169. t.ff.getGroupBy(c.GroupType.A).forEach(function(o) {
  7170. t.addAttr(o, e);
  7171. });
  7172. });
  7173. };
  7174. e.prototype.addAttr = function(t, e) {
  7175. var o = t.attrData;
  7176. 1 == e.type && (o.atk += Math.floor(o.atk * e.vaule / 100));
  7177. };
  7178. r([ u(cc.Prefab) ], e.prototype, "mDialog", void 0);
  7179. return r([ l ], e);
  7180. }(cc.Component);
  7181. o.default = f;
  7182. cc._RF.pop();
  7183. }, {
  7184. "../../object/FObject": "FObject",
  7185. "../../object/FSprite": "FSprite",
  7186. "../dialog/FDialogBox": "FDialogBox"
  7187. } ],
  7188. FDialogTest_athena: [ function(t, e, o) {
  7189. "use strict";
  7190. cc._RF.push(e, "fdef2xCLfJGSbO1WaSa4AK8", "FDialogTest_athena");
  7191. var i, n = this && this.__extends || (i = function(t, e) {
  7192. return (i = Object.setPrototypeOf || {
  7193. __proto__: []
  7194. } instanceof Array && function(t, e) {
  7195. t.__proto__ = e;
  7196. } || function(t, e) {
  7197. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  7198. })(t, e);
  7199. }, function(t, e) {
  7200. i(t, e);
  7201. function o() {
  7202. this.constructor = t;
  7203. }
  7204. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  7205. }), r = this && this.__decorate || function(t, e, o, i) {
  7206. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  7207. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  7208. return r > 3 && c && Object.defineProperty(e, o, c), c;
  7209. };
  7210. Object.defineProperty(o, "__esModule", {
  7211. value: !0
  7212. });
  7213. var c = t("../../object/FSprite"), a = t("../dialog/FDialogBox"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  7214. n(e, t);
  7215. function e() {
  7216. var e = null !== t && t.apply(this, arguments) || this;
  7217. e.mDialog = null;
  7218. return e;
  7219. }
  7220. e.prototype.onBeginContact = function(t, e, o) {
  7221. if ("A" == o.node.group) {
  7222. var i = o.node.getComponent(c.default);
  7223. this.ff = i.ff;
  7224. i == this.ff.mainSprite && this.showButton();
  7225. }
  7226. };
  7227. e.prototype.onEndContact = function(t, e, o) {
  7228. "A" == o.node.group && o.node.getComponent(c.default) == this.ff.mainSprite && this.closeButton();
  7229. };
  7230. e.prototype.showButton = function() {
  7231. var t = this;
  7232. this.ff.control.mEventButton.node.active = !0;
  7233. this.ff.control.mEventButton.setCallback(function() {
  7234. t.showDialog();
  7235. });
  7236. };
  7237. e.prototype.closeButton = function() {
  7238. this.ff.control.mEventButton.node.active = !1;
  7239. };
  7240. e.prototype.exitDialog = function() {
  7241. this.dialogBox.node.destroy();
  7242. };
  7243. e.prototype.showDialog = function() {
  7244. var t = this, e = cc.instantiate(this.mDialog);
  7245. this.ff.main.viewManage.popView(e);
  7246. this.dialogBox = e.getComponent(a.default);
  7247. this.dialogBox.setData([ {
  7248. name: "雅典娜",
  7249. name1: "智慧女神",
  7250. icon: "role_half_12006",
  7251. content: "来自奥林匹斯王国灰眼公主的祝福,燃烧吧,小宇宙"
  7252. } ]);
  7253. this.dialogBox.setCallback(function() {
  7254. t.showAttr();
  7255. });
  7256. };
  7257. e.prototype.showAttr = function() {
  7258. var t = this;
  7259. this.dialogBox.setAttr([ {
  7260. name: "附加攻击力",
  7261. about: "普通攻击增加",
  7262. icon: "attribute_icon_1",
  7263. vaule: 40,
  7264. type: 1
  7265. }, {
  7266. name: "附加攻击力",
  7267. about: "普通攻击增加",
  7268. icon: "attribute_icon_1",
  7269. vaule: 40,
  7270. type: 1
  7271. }, {
  7272. name: "附加攻击力",
  7273. about: "普通攻击增加",
  7274. icon: "attribute_icon_1",
  7275. vaule: 40,
  7276. type: 1
  7277. } ]);
  7278. this.dialogBox.setAttrCallback(function(e) {
  7279. t.exitDialog();
  7280. t.node.destroy();
  7281. var o = t.ff.mainSprite;
  7282. t.addAttr(o, e);
  7283. });
  7284. };
  7285. e.prototype.addAttr = function(t, e) {
  7286. var o = t.attrData;
  7287. 1 == e.type && (o.atk += Math.floor(o.atk * e.vaule / 100));
  7288. };
  7289. r([ l(cc.Prefab) ], e.prototype, "mDialog", void 0);
  7290. return r([ p ], e);
  7291. }(cc.Component);
  7292. o.default = u;
  7293. cc._RF.pop();
  7294. }, {
  7295. "../../object/FSprite": "FSprite",
  7296. "../dialog/FDialogBox": "FDialogBox"
  7297. } ],
  7298. FDialogTest: [ function(t, e, o) {
  7299. "use strict";
  7300. cc._RF.push(e, "a3b379XRWFPVqIUFfUIx9as", "FDialogTest");
  7301. var i, n = this && this.__extends || (i = function(t, e) {
  7302. return (i = Object.setPrototypeOf || {
  7303. __proto__: []
  7304. } instanceof Array && function(t, e) {
  7305. t.__proto__ = e;
  7306. } || function(t, e) {
  7307. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  7308. })(t, e);
  7309. }, function(t, e) {
  7310. i(t, e);
  7311. function o() {
  7312. this.constructor = t;
  7313. }
  7314. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  7315. }), r = this && this.__decorate || function(t, e, o, i) {
  7316. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  7317. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  7318. return r > 3 && c && Object.defineProperty(e, o, c), c;
  7319. };
  7320. Object.defineProperty(o, "__esModule", {
  7321. value: !0
  7322. });
  7323. var c = t("../object/FSprite"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  7324. n(e, t);
  7325. function e() {
  7326. var e = null !== t && t.apply(this, arguments) || this;
  7327. e.mDialog = null;
  7328. e.count = 0;
  7329. return e;
  7330. }
  7331. e.prototype.onBeginContact = function(t, e, o) {
  7332. if ("A" == o.node.group) {
  7333. this.count++;
  7334. var i = o.node.getComponent(c.default);
  7335. this.ff = i.ff;
  7336. this.showButton();
  7337. }
  7338. };
  7339. e.prototype.onEndContact = function(t, e, o) {
  7340. if ("A" == o.node.group) {
  7341. this.count--;
  7342. this.count <= 0 && this.closeButton();
  7343. }
  7344. };
  7345. e.prototype.showButton = function() {
  7346. var t = this;
  7347. this.ff.control.mEventButton.node.active = !0;
  7348. this.ff.control.mEventButton.setCallback(function() {
  7349. t.showDialog();
  7350. });
  7351. };
  7352. e.prototype.closeButton = function() {
  7353. this.ff.control.mEventButton.node.active = !1;
  7354. };
  7355. e.prototype.exitDialog = function() {};
  7356. e.prototype.showDialog = function() {
  7357. var t = cc.instantiate(this.mDialog);
  7358. this.ff.main.viewManage.popView(t);
  7359. };
  7360. r([ p(cc.Prefab) ], e.prototype, "mDialog", void 0);
  7361. return r([ s ], e);
  7362. }(cc.Component);
  7363. o.default = l;
  7364. cc._RF.pop();
  7365. }, {
  7366. "../object/FSprite": "FSprite"
  7367. } ],
  7368. FDoorTips: [ function(t, e, o) {
  7369. "use strict";
  7370. cc._RF.push(e, "717b87oBiRDWq7vNDlVkHwP", "FDoorTips");
  7371. var i, n = this && this.__extends || (i = function(t, e) {
  7372. return (i = Object.setPrototypeOf || {
  7373. __proto__: []
  7374. } instanceof Array && function(t, e) {
  7375. t.__proto__ = e;
  7376. } || function(t, e) {
  7377. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  7378. })(t, e);
  7379. }, function(t, e) {
  7380. i(t, e);
  7381. function o() {
  7382. this.constructor = t;
  7383. }
  7384. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  7385. }), r = this && this.__decorate || function(t, e, o, i) {
  7386. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  7387. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  7388. return r > 3 && c && Object.defineProperty(e, o, c), c;
  7389. };
  7390. Object.defineProperty(o, "__esModule", {
  7391. value: !0
  7392. });
  7393. var c = t("../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  7394. n(e, t);
  7395. function e() {
  7396. var e = null !== t && t.apply(this, arguments) || this;
  7397. e.mMapDialog = null;
  7398. e.text = [];
  7399. e.mTipsIcon = null;
  7400. e.mGearNode = null;
  7401. return e;
  7402. }
  7403. e.prototype.onLoad = function() {
  7404. t.prototype.onLoad.call(this);
  7405. this.mGearNode && (this.mGearNode.active = !1);
  7406. };
  7407. e.prototype.onBegin = function(t) {
  7408. var e = this;
  7409. 1 == t && this.showOpt(this.mTipsIcon, function() {
  7410. e.dialog(0);
  7411. });
  7412. };
  7413. e.prototype.onEnd = function(t) {
  7414. 1 == t && this.closeOpt();
  7415. };
  7416. e.prototype.dialog = function(t) {
  7417. var e = this;
  7418. if (t >= this.text.length) {
  7419. this.mGearNode && (this.mGearNode.active = !0);
  7420. this.closeOpt();
  7421. } else {
  7422. var o = this.text[t].split("|");
  7423. if (-1 == parseInt(o.shift())) {
  7424. var i = this.ff.mainSprite.node;
  7425. this.showDialog(i, o, function() {
  7426. t++;
  7427. e.dialog(t);
  7428. });
  7429. }
  7430. }
  7431. };
  7432. r([ p(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  7433. r([ p([ cc.String ]) ], e.prototype, "text", void 0);
  7434. r([ p({
  7435. displayName: "提示图标",
  7436. type: cc.SpriteFrame
  7437. }) ], e.prototype, "mTipsIcon", void 0);
  7438. r([ p({
  7439. displayName: "出现的机关",
  7440. type: cc.Node
  7441. }) ], e.prototype, "mGearNode", void 0);
  7442. return r([ s ], e);
  7443. }(c.default);
  7444. o.default = l;
  7445. cc._RF.pop();
  7446. }, {
  7447. "../base/BaseEvent": "BaseEvent"
  7448. } ],
  7449. FEndSign: [ function(t, e, o) {
  7450. "use strict";
  7451. cc._RF.push(e, "304a4VKFIRMXqIoQoyvvUTv", "FEndSign");
  7452. var i, n = this && this.__extends || (i = function(t, e) {
  7453. return (i = Object.setPrototypeOf || {
  7454. __proto__: []
  7455. } instanceof Array && function(t, e) {
  7456. t.__proto__ = e;
  7457. } || function(t, e) {
  7458. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  7459. })(t, e);
  7460. }, function(t, e) {
  7461. i(t, e);
  7462. function o() {
  7463. this.constructor = t;
  7464. }
  7465. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  7466. }), r = this && this.__decorate || function(t, e, o, i) {
  7467. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  7468. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  7469. return r > 3 && c && Object.defineProperty(e, o, c), c;
  7470. };
  7471. Object.defineProperty(o, "__esModule", {
  7472. value: !0
  7473. });
  7474. var c = t("../../object/FSprite"), a = t("./WOneByone"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  7475. n(e, t);
  7476. function e() {
  7477. var e = null !== t && t.apply(this, arguments) || this;
  7478. e.mMapDialog = null;
  7479. e.mD1 = null;
  7480. e.ff = null;
  7481. e.isOver = !1;
  7482. return e;
  7483. }
  7484. e.prototype.onBeginContact = function(t, e, o) {
  7485. if (!this.isOver && "A" == o.node.group) {
  7486. var i = o.node.getComponent(c.default);
  7487. this.ff = i.ff;
  7488. if (i == this.ff.mainSprite) {
  7489. this.isOver = !0;
  7490. this.node.removeComponent(cc.PhysicsBoxCollider);
  7491. this.run();
  7492. }
  7493. }
  7494. };
  7495. e.prototype.run = function() {
  7496. var t = this;
  7497. this.ff.pauseSprite(!0);
  7498. this.ff.mBlockInputEvents.active = !0;
  7499. var e = this.ff.mMap, o = cc.winSize, i = e.mCamera, n = this.node.x - o.width / 2, r = this.node.y - o.height / 2;
  7500. cc.tween(i.node).sequence(cc.moveTo(.7, cc.v2(n, r)), cc.callFunc(function() {
  7501. t.run1();
  7502. })).start();
  7503. };
  7504. e.prototype.run1 = function() {
  7505. var t = this;
  7506. this.mD1.active = !0;
  7507. this.mD1.getChildByName("chuansongmen1").active = !0;
  7508. var e = this.mD1.getChildByName("monster56");
  7509. e.active = !0;
  7510. e.opacity = 0;
  7511. cc.tween(e).sequence(cc.fadeIn(1), cc.callFunc(function() {
  7512. t.d1();
  7513. })).start();
  7514. };
  7515. e.prototype.d1 = function() {
  7516. var t = this, e = cc.instantiate(this.mMapDialog);
  7517. e.group = "map";
  7518. e.zIndex = 9999;
  7519. e.x = this.mD1.x;
  7520. e.y = this.mD1.y + this.mD1.height;
  7521. e.parent = this.ff.mMap.mSprites;
  7522. var o = e.getComponent(a.default);
  7523. o.dialogs = [ "看来你已经学会了基本的冒险方法,去吧,到了那边会有东西接应你的。", "加油,我的孩子,拯救众神的任务就交给你了" ];
  7524. o.setCallback(function() {
  7525. t.mD1.active = !1;
  7526. e.destroy();
  7527. t.ff.setBlockInputCallback(null);
  7528. t.ff.pauseSprite(!1);
  7529. t.ff.mBlockInputEvents.active = !1;
  7530. });
  7531. this.ff.setBlockInputCallback(function() {
  7532. o.jump();
  7533. });
  7534. o._start();
  7535. };
  7536. r([ l(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  7537. r([ l(cc.Node) ], e.prototype, "mD1", void 0);
  7538. return r([ p ], e);
  7539. }(cc.Component);
  7540. o.default = u;
  7541. cc._RF.pop();
  7542. }, {
  7543. "../../object/FSprite": "FSprite",
  7544. "./WOneByone": "WOneByone"
  7545. } ],
  7546. FExitBox: [ function(t, e, o) {
  7547. "use strict";
  7548. cc._RF.push(e, "21009R12i1D1aQl2tdRByB+", "FExitBox");
  7549. var i, n = this && this.__extends || (i = function(t, e) {
  7550. return (i = Object.setPrototypeOf || {
  7551. __proto__: []
  7552. } instanceof Array && function(t, e) {
  7553. t.__proto__ = e;
  7554. } || function(t, e) {
  7555. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  7556. })(t, e);
  7557. }, function(t, e) {
  7558. i(t, e);
  7559. function o() {
  7560. this.constructor = t;
  7561. }
  7562. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  7563. }), r = this && this.__decorate || function(t, e, o, i) {
  7564. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  7565. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  7566. return r > 3 && c && Object.defineProperty(e, o, c), c;
  7567. };
  7568. Object.defineProperty(o, "__esModule", {
  7569. value: !0
  7570. });
  7571. var c = t("../../../i18n/i18n"), a = t("../../../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  7572. n(e, t);
  7573. function e() {
  7574. var e = null !== t && t.apply(this, arguments) || this;
  7575. e.mAbout = null;
  7576. e.mGoodIcon1 = null;
  7577. e.mGood1 = null;
  7578. e.mGoodIcon2 = null;
  7579. e.mGood2 = null;
  7580. e.mStar = null;
  7581. e.mStarx = [];
  7582. e.endType = 0;
  7583. return e;
  7584. }
  7585. e.prototype.setOKCallback = function(t) {
  7586. this.callbackOK = t;
  7587. };
  7588. e.prototype.setCloseCallback = function(t) {
  7589. this.callbackClose = t;
  7590. };
  7591. e.prototype.onclickOK = function() {
  7592. this.__distroyAll();
  7593. this.callbackOK();
  7594. cc.director.getPhysicsManager().enabled = !0;
  7595. };
  7596. e.prototype.onclickCancel = function() {
  7597. this.__distroyAll();
  7598. this.callbackClose && this.callbackClose();
  7599. };
  7600. e.prototype.init = function(t) {
  7601. var e = this;
  7602. this.stageData = t;
  7603. var o = this.main.sManage, i = o.getGoodById1(this.stageData.goodId1);
  7604. cc.resources.load("icon/good/" + i.icon, cc.SpriteFrame, function(t, o) {
  7605. t ? cc.error(t) : e.mGoodIcon1.spriteFrame = o;
  7606. });
  7607. var n = o.getGoodById1(this.stageData.goodId2);
  7608. cc.resources.load("icon/good/" + n.icon, cc.SpriteFrame, function(t, o) {
  7609. t ? cc.error(t) : e.mGoodIcon2.spriteFrame = o;
  7610. });
  7611. this.flush();
  7612. for (var r = this.getStarCount(), a = this.mStar.children, s = 0; s < a.length; s++) {
  7613. a[s].getComponent(cc.Sprite).spriteFrame = s < r ? this.mStarx[1] : this.mStarx[0];
  7614. }
  7615. var p = 0;
  7616. if (null != this.main.player.stage.data[this.stageData.id]) {
  7617. this.getCount(this.stageData.goodId1) >= this.stageData.goodCount1 && p++;
  7618. this.getCount(this.stageData.goodId2) >= this.stageData.goodCount2 && p++;
  7619. }
  7620. this.mAbout.string = p >= 2 ? c.default.t("关卡内任务已完成") : c.default.t("关卡内还有未完成的任务,是否确定退出?");
  7621. };
  7622. e.prototype.getStarCount = function() {
  7623. var t = this.main.player.stage, e = t.data[this.stageData.id], o = 0;
  7624. 0 == this.endType ? o++ : t.stageIndex > this.stageData.id && o++;
  7625. if (null != e) {
  7626. this.getCount(this.stageData.goodId1) >= this.stageData.goodCount1 && o++;
  7627. this.getCount(this.stageData.goodId2) >= this.stageData.goodCount2 && o++;
  7628. }
  7629. return o;
  7630. };
  7631. e.prototype.flush = function() {
  7632. var t = this.getCount(this.stageData.goodId1);
  7633. this.mGood1.string = t + "/" + this.stageData.goodCount1;
  7634. var e = this.getCount(this.stageData.goodId2);
  7635. this.mGood2.string = e + "/" + this.stageData.goodCount2;
  7636. };
  7637. e.prototype.getCount = function(t) {
  7638. var e = this.main.player.stage.data[this.stageData.id];
  7639. if (e && e.good) {
  7640. var o = e.good["" + t];
  7641. return null == o ? 0 : o;
  7642. }
  7643. return 0;
  7644. };
  7645. r([ l(cc.Label) ], e.prototype, "mAbout", void 0);
  7646. r([ l(cc.Sprite) ], e.prototype, "mGoodIcon1", void 0);
  7647. r([ l(cc.Label) ], e.prototype, "mGood1", void 0);
  7648. r([ l(cc.Sprite) ], e.prototype, "mGoodIcon2", void 0);
  7649. r([ l(cc.Label) ], e.prototype, "mGood2", void 0);
  7650. r([ l(cc.Node) ], e.prototype, "mStar", void 0);
  7651. r([ l([ cc.SpriteFrame ]) ], e.prototype, "mStarx", void 0);
  7652. return r([ p ], e);
  7653. }(a.default);
  7654. o.default = u;
  7655. cc._RF.pop();
  7656. }, {
  7657. "../../../i18n/i18n": "i18n",
  7658. "../../../main/ViewObject": "ViewObject"
  7659. } ],
  7660. FExit: [ function(t, e, o) {
  7661. "use strict";
  7662. cc._RF.push(e, "72dd2Av1ktEx5SAo//c4wLp", "FExit");
  7663. var i, n = this && this.__extends || (i = function(t, e) {
  7664. return (i = Object.setPrototypeOf || {
  7665. __proto__: []
  7666. } instanceof Array && function(t, e) {
  7667. t.__proto__ = e;
  7668. } || function(t, e) {
  7669. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  7670. })(t, e);
  7671. }, function(t, e) {
  7672. i(t, e);
  7673. function o() {
  7674. this.constructor = t;
  7675. }
  7676. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  7677. }), r = this && this.__decorate || function(t, e, o, i) {
  7678. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  7679. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  7680. return r > 3 && c && Object.defineProperty(e, o, c), c;
  7681. };
  7682. Object.defineProperty(o, "__esModule", {
  7683. value: !0
  7684. });
  7685. var c = t("../../../login/FqLogin"), a = t("../../../main/ViewManage"), s = t("../box/FExitBox"), p = t("./base/BaseEvent"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  7686. n(e, t);
  7687. function e() {
  7688. var e = null !== t && t.apply(this, arguments) || this;
  7689. e.mTipsIcon = null;
  7690. e.isEnd = !1;
  7691. return e;
  7692. }
  7693. e.prototype.onBegin = function(t) {
  7694. var e = this;
  7695. this.isEnd || 1 == t && this.showOpt(this.mTipsIcon, function() {
  7696. e.exitFF(e.ff);
  7697. });
  7698. };
  7699. e.prototype.onEnd = function(t) {
  7700. 1 == t && this.closeOpt();
  7701. };
  7702. e.prototype.exitFF = function(t) {
  7703. var e = this;
  7704. this.ff = t;
  7705. t.stopRuning();
  7706. t.pauseSprite(!0);
  7707. var o = cc.instantiate(this.ff.mExitBox).getComponent(s.default);
  7708. o.main = this.ff.main;
  7709. o.init(this.ff.mFFheader.stageData);
  7710. o.show();
  7711. o.setCloseCallback(function() {
  7712. t.pauseSprite(!1);
  7713. });
  7714. o.setOKCallback(function() {
  7715. e.isEnd = !0;
  7716. e.ff.exitCallback();
  7717. e.ff.main.topNode.active = !0;
  7718. e.ff.main.playMusicByPath(a.AudioMgr.homeMusic);
  7719. });
  7720. c.default.commitEvent(this.node.name, "", "");
  7721. };
  7722. r([ f({
  7723. displayName: "提示图标",
  7724. type: cc.SpriteFrame
  7725. }) ], e.prototype, "mTipsIcon", void 0);
  7726. return r([ u ], e);
  7727. }(p.default);
  7728. o.default = h;
  7729. cc._RF.pop();
  7730. }, {
  7731. "../../../login/FqLogin": "FqLogin",
  7732. "../../../main/ViewManage": "ViewManage",
  7733. "../box/FExitBox": "FExitBox",
  7734. "./base/BaseEvent": "BaseEvent"
  7735. } ],
  7736. FExtra: [ function(t, e, o) {
  7737. "use strict";
  7738. cc._RF.push(e, "cd238R9TE1M/K6VilUaIM0e", "FExtra");
  7739. var i, n = this && this.__extends || (i = function(t, e) {
  7740. return (i = Object.setPrototypeOf || {
  7741. __proto__: []
  7742. } instanceof Array && function(t, e) {
  7743. t.__proto__ = e;
  7744. } || function(t, e) {
  7745. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  7746. })(t, e);
  7747. }, function(t, e) {
  7748. i(t, e);
  7749. function o() {
  7750. this.constructor = t;
  7751. }
  7752. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  7753. }), r = this && this.__decorate || function(t, e, o, i) {
  7754. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  7755. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  7756. return r > 3 && c && Object.defineProperty(e, o, c), c;
  7757. };
  7758. Object.defineProperty(o, "__esModule", {
  7759. value: !0
  7760. });
  7761. var c = t("../../../../util/CHttp"), a = t("../../map/FMap"), s = t("../../object/FSprite"), p = t("../map1/WOneByone"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  7762. n(e, t);
  7763. function e() {
  7764. var e = null !== t && t.apply(this, arguments) || this;
  7765. e.extraId = 1001;
  7766. e.spine = null;
  7767. e.iconTouch = null;
  7768. e.mFenceTrigger = [];
  7769. e.mMapDialog = null;
  7770. return e;
  7771. }
  7772. e.prototype.onLoad = function() {
  7773. this.spine.active = !1;
  7774. this.map = this.node.parent.parent.getComponent(a.default);
  7775. };
  7776. e.prototype.start = function() {
  7777. if (this.map.ff.main.player.stage.extraStage.indexOf(this.extraId) >= 0) {
  7778. this.node.active = !1;
  7779. this.mFenceTrigger.forEach(function(t) {
  7780. t.active = !1;
  7781. });
  7782. } else this.node.active = !0;
  7783. };
  7784. e.prototype.onBeginContact = function(t, e, o) {
  7785. if ("A" == o.node.group) {
  7786. var i = o.node.getComponent(s.default);
  7787. this.ff = i.ff;
  7788. i == this.ff.mainSprite && this.showButton();
  7789. }
  7790. };
  7791. e.prototype.onEndContact = function(t, e, o) {
  7792. if ("A" == o.node.group) {
  7793. var i = o.node.getComponent(s.default);
  7794. this.ff = i.ff;
  7795. i == this.ff.mainSprite && this.closeButton();
  7796. }
  7797. };
  7798. e.prototype.showButton = function() {
  7799. var t = this;
  7800. this.ff.control.mEventButton.node.active = !0;
  7801. this.ff.control.mEventButton.setCallback(function() {
  7802. t.startStory();
  7803. });
  7804. };
  7805. e.prototype.closeButton = function() {
  7806. this.ff.control.mEventButton.node.active = !1;
  7807. };
  7808. e.prototype.startStory = function() {
  7809. this.ff.pauseSprite(!0);
  7810. this.iconTouch.active = !1;
  7811. this.ff.mBlockInputEvents.active = !0;
  7812. this.showDialog1();
  7813. };
  7814. e.prototype.showDialog1 = function() {
  7815. var t = this, e = cc.instantiate(this.mMapDialog);
  7816. e.group = "map";
  7817. e.zIndex = 9999;
  7818. e.x = this.node.x;
  7819. e.y = this.node.y + this.node.height;
  7820. e.parent = this.ff.mMap.mSprites;
  7821. var o = e.getComponent(p.default);
  7822. o.dialogs = [ "城堡里有个美丽的公主", "刚收到消息,说她后妈嫉妒她的美貌,用毒苹果把她毒死了", "现在去夺取解药,应该还能救活她" ];
  7823. o.setCallback(function() {
  7824. e.destroy();
  7825. t.playAction();
  7826. });
  7827. this.ff.setBlockInputCallback(function() {
  7828. o.jump();
  7829. });
  7830. o._start();
  7831. };
  7832. e.prototype.exitExtra = function() {
  7833. this.ff.pauseSprite(!1);
  7834. this.ff.mBlockInputEvents.active = !1;
  7835. this.node.removeComponent(cc.PhysicsBoxCollider);
  7836. };
  7837. e.prototype.playAction = function() {
  7838. var t = this;
  7839. this.spine.active = !0;
  7840. var e = this.spine.getComponent(sp.Skeleton);
  7841. e.setCompleteListener(function() {
  7842. e.setCompleteListener(null);
  7843. t.spine.active = !1;
  7844. t.openExtraStage();
  7845. });
  7846. e.setAnimation(0, "vs_direct", !1);
  7847. };
  7848. e.prototype.moveCarmea = function() {
  7849. var t = this, e = this.ff.mMap.mCamera, o = this.mFenceTrigger[0], i = cc.v2(), n = cc.winSize;
  7850. i.x = o.x - n.width / 2;
  7851. i.y = o.y - n.height / 2;
  7852. cc.tween(e.node).sequence(cc.moveTo(1.5, i), cc.callFunc(function() {
  7853. t.mFenceTrigger.forEach(function(e) {
  7854. t.showFence(e, "close");
  7855. });
  7856. }), cc.delayTime(1), cc.callFunc(function() {
  7857. t.mFenceTrigger.forEach(function(t) {
  7858. t.active = !1;
  7859. });
  7860. t.exitExtra();
  7861. })).start();
  7862. };
  7863. e.prototype.showFence = function() {};
  7864. e.prototype.openExtraStage = function() {
  7865. var t = this, e = {
  7866. id: this.extraId
  7867. }, o = this.ff;
  7868. o.main.gameHttp.sendJson("stage/v1/openExtraStage", e, function(e, i) {
  7869. if (e == c.HttpStateType.SUCCESS) if (0 == i.retCode) {
  7870. o.main.player.stage.extraStage.push(t.extraId);
  7871. t.moveCarmea();
  7872. } else {
  7873. t.exitExtra();
  7874. o.main.showTips(i.message);
  7875. } else {
  7876. t.exitExtra();
  7877. o.main.showTips("网络异常");
  7878. }
  7879. });
  7880. };
  7881. r([ f({
  7882. type: cc.Integer,
  7883. displayName: "附加关卡id"
  7884. }) ], e.prototype, "extraId", void 0);
  7885. r([ f({
  7886. type: cc.Node,
  7887. displayName: "开启特效"
  7888. }) ], e.prototype, "spine", void 0);
  7889. r([ f({
  7890. type: cc.Node,
  7891. displayName: "任务提示"
  7892. }) ], e.prototype, "iconTouch", void 0);
  7893. r([ f([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0);
  7894. r([ f(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  7895. return r([ u ], e);
  7896. }(cc.Component);
  7897. o.default = h;
  7898. cc._RF.pop();
  7899. }, {
  7900. "../../../../util/CHttp": "CHttp",
  7901. "../../map/FMap": "FMap",
  7902. "../../object/FSprite": "FSprite",
  7903. "../map1/WOneByone": "WOneByone"
  7904. } ],
  7905. FFAutoEquip: [ function(t, e, o) {
  7906. "use strict";
  7907. cc._RF.push(e, "8ec87tSAlFC1Z00/HgSn7bj", "FFAutoEquip");
  7908. var i, n = this && this.__extends || (i = function(t, e) {
  7909. return (i = Object.setPrototypeOf || {
  7910. __proto__: []
  7911. } instanceof Array && function(t, e) {
  7912. t.__proto__ = e;
  7913. } || function(t, e) {
  7914. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  7915. })(t, e);
  7916. }, function(t, e) {
  7917. i(t, e);
  7918. function o() {
  7919. this.constructor = t;
  7920. }
  7921. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  7922. }), r = this && this.__decorate || function(t, e, o, i) {
  7923. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  7924. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  7925. return r > 3 && c && Object.defineProperty(e, o, c), c;
  7926. };
  7927. Object.defineProperty(o, "__esModule", {
  7928. value: !0
  7929. });
  7930. var c = t("../../../main/ViewObject"), a = t("../../common/GoodItem"), s = t("../../data/FFCalAttr"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  7931. n(e, t);
  7932. function e() {
  7933. var e = null !== t && t.apply(this, arguments) || this;
  7934. e.mGoodItem = null;
  7935. e.mAtk = null;
  7936. e.mDef = null;
  7937. e.mHp = null;
  7938. e.mMj = null;
  7939. e.mAutoTime = null;
  7940. return e;
  7941. }
  7942. e.prototype.setEquip = function(t) {
  7943. this.mGoodItem.initEquip(this.main, t);
  7944. var e = s.default.getEquipAttr(this.main, t, this.mGoodItem.equipData);
  7945. e.atk > 0 ? this.mAtk.node.active = !0 : this.mAtk.node.active = !1;
  7946. e.def > 0 ? this.mDef.node.active = !0 : this.mDef.node.active = !1;
  7947. e.hp > 0 ? this.mHp.node.active = !0 : this.mHp.node.active = !1;
  7948. e.sp > 0 ? this.mMj.node.active = !0 : this.mMj.node.active = !1;
  7949. 1 == this.mGoodItem.equipData.type ? 1 == this.mGoodItem.equipData.occ || 2 == this.mGoodItem.equipData.occ || this.mGoodItem.equipData.occ : 2 == this.mGoodItem.equipData.type || 3 == this.mGoodItem.equipData.type || 4 == this.mGoodItem.equipData.type || this.mGoodItem.equipData.type;
  7950. return !1;
  7951. };
  7952. e.prototype.onclick = function() {};
  7953. r([ u(a.default) ], e.prototype, "mGoodItem", void 0);
  7954. r([ u(cc.Label) ], e.prototype, "mAtk", void 0);
  7955. r([ u(cc.Label) ], e.prototype, "mDef", void 0);
  7956. r([ u(cc.Label) ], e.prototype, "mHp", void 0);
  7957. r([ u(cc.Label) ], e.prototype, "mMj", void 0);
  7958. r([ u(cc.Label) ], e.prototype, "mAutoTime", void 0);
  7959. return r([ l ], e);
  7960. }(c.default);
  7961. o.default = f;
  7962. cc._RF.pop();
  7963. }, {
  7964. "../../../main/ViewObject": "ViewObject",
  7965. "../../common/GoodItem": "GoodItem",
  7966. "../../data/FFCalAttr": "FFCalAttr"
  7967. } ],
  7968. FFCalAttr: [ function(t, e, o) {
  7969. "use strict";
  7970. cc._RF.push(e, "e0992XLok9P95q8eD11IzbR", "FFCalAttr");
  7971. Object.defineProperty(o, "__esModule", {
  7972. value: !0
  7973. });
  7974. var i = function() {
  7975. function t() {}
  7976. t.getAttr = function(e, o) {
  7977. for (var i = e.sManage.getRoleById(o.id), n = {
  7978. id: o.id,
  7979. type: 3,
  7980. post: i.post,
  7981. path: "prefab/role/" + i.act,
  7982. atk: i.atk,
  7983. def: i.def,
  7984. hp: i.hp,
  7985. sp: i.sp,
  7986. water: 0,
  7987. fire: 0,
  7988. wind: 0,
  7989. thunder: 0,
  7990. earth: 0,
  7991. sd: 0,
  7992. weaponSkill: 0,
  7993. suitId: 0,
  7994. suitCount: 0,
  7995. attrs: [],
  7996. zdl: 0,
  7997. skin: "30000",
  7998. weapon: "",
  7999. bullet: null
  8000. }, r = 0; r < o.equips.length; r++) {
  8001. var c = o.equips[r], a = e.sManage.getEquipById(c.id);
  8002. if (1 == a.type) {
  8003. n.weapon = "" + a.id;
  8004. n.bullet = a.bulletEffect;
  8005. } else 5 == a.type && (n.skin = "" + a.id);
  8006. n.atk += a.atk;
  8007. n.def += a.def;
  8008. n.hp += a.hp;
  8009. n.sp += a.sp;
  8010. n.sd += a.sd;
  8011. a.skill > 0 && (n.weaponSkill = a.skill);
  8012. if (c.attr) for (var s = 0; s < c.attr.length; s++) {
  8013. for (var p = c.attr[s], l = !0, u = 0; u < n.attrs.length; u++) if ((g = n.attrs[u]).K == p.K) {
  8014. g.V += p.V;
  8015. l = !1;
  8016. break;
  8017. }
  8018. l && n.attrs.push({
  8019. K: p.K,
  8020. V: p.V
  8021. });
  8022. }
  8023. var f = t.getEquipQH(e, c, a);
  8024. if (f > 0) {
  8025. var h = e.sManage.getEquipQHByType(a)[f - 1];
  8026. n.atk += h.atk;
  8027. n.def += h.def;
  8028. n.hp += h.hp;
  8029. n.sp += h.sp;
  8030. }
  8031. if (c.star > 0) {
  8032. n.atk += Math.floor(n.atk * c.star / 10);
  8033. n.def += Math.floor(n.def * c.star / 10);
  8034. n.hp += Math.floor(n.hp * c.star / 10);
  8035. n.sp += Math.floor(n.sp * c.star / 10);
  8036. }
  8037. }
  8038. for (r = 0; r < n.attrs.length; r++) 1 == (c = n.attrs[r]).K ? n.atk += Math.floor(n.atk * c.V / 100) : 2 == c.K ? n.def += Math.floor(n.def * c.V / 100) : 3 == c.K ? n.hp += Math.floor(n.hp * c.V / 100) : 4 == c.K ? n.sp += Math.floor(n.sp * c.V / 100) : 5 == c.K ? n.atk += Math.floor(n.atk * c.V / 100) : 6 == c.K ? n.def += Math.floor(n.def * c.V / 100) : 7 == c.K ? n.hp += Math.floor(n.hp * c.V / 100) : 8 == c.K && (n.sp += Math.floor(n.sp * c.V / 100));
  8039. var d = e.player.godCard;
  8040. for (var m in d) {
  8041. var y = d[m], v = e.sManage.getGodCardById(y.id);
  8042. t.addCardAttr(n, v);
  8043. if (y.level > 0) {
  8044. var g = v.list[y.level - 1];
  8045. t.addCardAttr(n, g);
  8046. }
  8047. y.reborn > 0 && t.addCardAttr(n, v.godReborn);
  8048. }
  8049. var _ = e.player.roleIcon.open;
  8050. for (r = 0; r < _.length; r++) {
  8051. c = _[r];
  8052. var b = e.sManage.getRoleIconById(c);
  8053. n.atk += b.atk;
  8054. n.def += b.def;
  8055. n.hp += b.hp;
  8056. n.sp += b.sp;
  8057. }
  8058. n.zdl = t.getZdl(n);
  8059. n.bullet || (1 == i.post ? n.bullet = e.sManage.getEquipById(1001).bulletEffect : 2 == i.post ? n.bullet = e.sManage.getEquipById(1102).bulletEffect : 3 == i.post && (n.bullet = e.sManage.getEquipById(1202).bulletEffect));
  8060. return n;
  8061. };
  8062. t.addCardAttr = function(t, e) {
  8063. t.atk += e.atk;
  8064. t.def += e.def;
  8065. t.hp += e.hp;
  8066. t.sp += e.sp;
  8067. t.atk += e.water;
  8068. t.def += e.fire;
  8069. t.hp += e.wind;
  8070. t.sp += e.thunder;
  8071. t.sp += e.earth;
  8072. };
  8073. t.getEquipAttr = function(e, o, i) {
  8074. var n = {
  8075. id: 0,
  8076. type: 3,
  8077. post: 0,
  8078. path: null,
  8079. atk: i.atk,
  8080. def: i.def,
  8081. hp: i.hp,
  8082. sp: i.sp,
  8083. water: 0,
  8084. fire: 0,
  8085. wind: 0,
  8086. thunder: 0,
  8087. earth: 0,
  8088. sd: 0,
  8089. weaponSkill: 0,
  8090. suitId: 0,
  8091. suitCount: 0,
  8092. attrs: [],
  8093. zdl: 0,
  8094. skin: "30000",
  8095. weapon: "",
  8096. bullet: null
  8097. }, r = t.getEquipQH(e, o, i);
  8098. if (r > 0) {
  8099. var c = e.sManage.getEquipQHByType(i)[r - 1];
  8100. n.atk += c.atk;
  8101. n.def += c.def;
  8102. n.hp += c.hp;
  8103. n.sp += c.sp;
  8104. }
  8105. if (o.star > 0) {
  8106. n.atk += Math.floor(n.atk * o.star / 10);
  8107. n.def += Math.floor(n.def * o.star / 10);
  8108. n.hp += Math.floor(n.hp * o.star / 10);
  8109. n.sp += Math.floor(n.sp * o.star / 10);
  8110. }
  8111. n.zdl = t.getZdl(n);
  8112. return n;
  8113. };
  8114. t.getZdl = function(t) {
  8115. return t.atk + t.def + Math.floor(t.hp / 10) + t.sp;
  8116. };
  8117. t.getEquipQH = function(t, e, o) {
  8118. if (o.type > 4) return 0;
  8119. for (var i = t.sManage.getEquipQHByType(o), n = -1, r = 0; r < i.length; r++) if (i[r].exp > e.PI) {
  8120. n = r;
  8121. break;
  8122. }
  8123. -1 == n && (n = i.length);
  8124. var c = o.level + 5 * e.qhMax;
  8125. n > c && (n = c);
  8126. return n;
  8127. };
  8128. t.getEquipQHLevel = function(t, e, o) {
  8129. if (o.type > 4) return 0;
  8130. for (var i = t.sManage.getEquipQHByType(o), n = 0; n < i.length; n++) if (i[n].exp > e) return n;
  8131. return i.length;
  8132. };
  8133. t.getGodCardAttr = function(t, e) {
  8134. var o = t.sManage.getGodCardById(e.id), i = {
  8135. id: 0,
  8136. type: 3,
  8137. post: 0,
  8138. path: null,
  8139. atk: o.atk,
  8140. def: o.def,
  8141. hp: o.hp,
  8142. sp: o.sp,
  8143. bjgl: 0,
  8144. water: o.water,
  8145. fire: o.fire,
  8146. wind: o.wind,
  8147. thunder: o.thunder,
  8148. earth: o.earth,
  8149. sd: 0,
  8150. weaponSkill: 0,
  8151. suitId: 0,
  8152. suitCount: 0,
  8153. attrs: [],
  8154. zdl: 0,
  8155. skin: "30000",
  8156. weapon: "",
  8157. bullet: null
  8158. };
  8159. if (e.level > 0) {
  8160. var n = o.list[e.level - 1];
  8161. i.atk += n.atk;
  8162. i.def += n.def;
  8163. i.hp += n.hp;
  8164. i.sp += n.sp;
  8165. i.water += n.water;
  8166. i.fire += n.fire;
  8167. i.wind += n.wind;
  8168. i.thunder += n.thunder;
  8169. i.earth += n.earth;
  8170. }
  8171. if (e.reborn > 0) {
  8172. var r = o.godReborn;
  8173. i.atk += r.atk;
  8174. i.def += r.def;
  8175. i.hp += r.hp;
  8176. i.sp += r.sp;
  8177. i.water += r.water;
  8178. i.fire += r.fire;
  8179. i.wind += r.wind;
  8180. i.thunder += r.thunder;
  8181. i.earth += r.earth;
  8182. }
  8183. return i;
  8184. };
  8185. return t;
  8186. }();
  8187. o.default = i;
  8188. cc._RF.pop();
  8189. }, {} ],
  8190. FFDialogBox: [ function(t, e, o) {
  8191. "use strict";
  8192. cc._RF.push(e, "e09cbpagkFJc60GZktKld+d", "FFDialogBox");
  8193. var i, n = this && this.__extends || (i = function(t, e) {
  8194. return (i = Object.setPrototypeOf || {
  8195. __proto__: []
  8196. } instanceof Array && function(t, e) {
  8197. t.__proto__ = e;
  8198. } || function(t, e) {
  8199. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  8200. })(t, e);
  8201. }, function(t, e) {
  8202. i(t, e);
  8203. function o() {
  8204. this.constructor = t;
  8205. }
  8206. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  8207. }), r = this && this.__decorate || function(t, e, o, i) {
  8208. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  8209. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  8210. return r > 3 && c && Object.defineProperty(e, o, c), c;
  8211. };
  8212. Object.defineProperty(o, "__esModule", {
  8213. value: !0
  8214. });
  8215. var c = t("../../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  8216. n(e, t);
  8217. function e() {
  8218. var e = null !== t && t.apply(this, arguments) || this;
  8219. e.mTitle = null;
  8220. e.mContent = null;
  8221. e.mBtLabelOK = null;
  8222. e.mBtLabelCancel = null;
  8223. return e;
  8224. }
  8225. e.prototype.onclickOK = function() {
  8226. this.okCallback && this.okCallback();
  8227. };
  8228. e.prototype.onclickCancel = function() {
  8229. this.cancelCallback && this.cancelCallback();
  8230. };
  8231. e.prototype.setOKCallback = function(t) {
  8232. this.okCallback = t;
  8233. };
  8234. e.prototype.setCancelCallback = function(t) {
  8235. this.cancelCallback = t;
  8236. };
  8237. r([ p(cc.Label) ], e.prototype, "mTitle", void 0);
  8238. r([ p(cc.Label) ], e.prototype, "mContent", void 0);
  8239. r([ p(cc.Label) ], e.prototype, "mBtLabelOK", void 0);
  8240. r([ p(cc.Label) ], e.prototype, "mBtLabelCancel", void 0);
  8241. return r([ s ], e);
  8242. }(c.default);
  8243. o.default = l;
  8244. cc._RF.pop();
  8245. }, {
  8246. "../../../main/ViewObject": "ViewObject"
  8247. } ],
  8248. FFHeader: [ function(t, e, o) {
  8249. "use strict";
  8250. cc._RF.push(e, "bc7c7PfxuxKK40QteAq7pnm", "FFHeader");
  8251. var i, n = this && this.__extends || (i = function(t, e) {
  8252. return (i = Object.setPrototypeOf || {
  8253. __proto__: []
  8254. } instanceof Array && function(t, e) {
  8255. t.__proto__ = e;
  8256. } || function(t, e) {
  8257. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  8258. })(t, e);
  8259. }, function(t, e) {
  8260. i(t, e);
  8261. function o() {
  8262. this.constructor = t;
  8263. }
  8264. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  8265. }), r = this && this.__decorate || function(t, e, o, i) {
  8266. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  8267. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  8268. return r > 3 && c && Object.defineProperty(e, o, c), c;
  8269. };
  8270. Object.defineProperty(o, "__esModule", {
  8271. value: !0
  8272. });
  8273. var c = t("../../i18n/i18n"), a = t("./FTmpTaskGood"), s = t("./FTmpTaskPanel"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  8274. n(e, t);
  8275. function e() {
  8276. var e = null !== t && t.apply(this, arguments) || this;
  8277. e.mGoodIcon1 = null;
  8278. e.mGood1 = null;
  8279. e.mGoodIcon2 = null;
  8280. e.mGood2 = null;
  8281. e.mGoodIcon3 = null;
  8282. e.mGood3 = null;
  8283. e.mTmpGoods = null;
  8284. e.mTmpContent = null;
  8285. e.mTmpGoodItem = null;
  8286. e.mTmpPanel = null;
  8287. e.tmpGoods = new Map();
  8288. return e;
  8289. }
  8290. e.prototype.onLoad = function() {
  8291. this.mTmpPanel.node.active = !1;
  8292. };
  8293. e.prototype.init = function(t, e) {
  8294. var o = this;
  8295. this.ff = t;
  8296. this.main = this.ff.main;
  8297. this.stageData = e;
  8298. var i = this.main.sManage, n = i.getGoodById1(this.stageData.goodId1);
  8299. cc.resources.load("icon/good/" + n.icon, cc.SpriteFrame, function(t, e) {
  8300. t ? cc.error(t) : o.mGoodIcon1.spriteFrame = e;
  8301. });
  8302. var r = i.getGoodById1(this.stageData.goodId2);
  8303. cc.resources.load("icon/good/" + r.icon, cc.SpriteFrame, function(t, e) {
  8304. t ? cc.error(t) : o.mGoodIcon2.spriteFrame = e;
  8305. });
  8306. var c = i.getGoodById1(this.stageData.goodId3);
  8307. cc.resources.load("icon/good/" + c.icon, cc.SpriteFrame, function(t, e) {
  8308. t ? cc.error(t) : o.mGoodIcon3.spriteFrame = e;
  8309. });
  8310. this.flush();
  8311. };
  8312. e.prototype.flush = function() {
  8313. this.main.player.stage;
  8314. var t = this.getCount(this.stageData.goodId1);
  8315. this.mGood1.string = t + "/" + this.stageData.goodCount1;
  8316. var e = this.getCount(this.stageData.goodId2);
  8317. this.mGood2.string = e + "/" + this.stageData.goodCount2;
  8318. var o = this.getCount(this.stageData.goodId3);
  8319. this.mGood3.string = o + "/" + this.stageData.goodCount3;
  8320. };
  8321. e.prototype.getCount = function(t) {
  8322. var e = this.main.player.stage.data["" + this.stageData.id];
  8323. if (e && e.good) {
  8324. var o = e.good["" + t];
  8325. return null == o ? 0 : o;
  8326. }
  8327. return 0;
  8328. };
  8329. e.prototype.addTmpGood = function(t, e) {
  8330. var o = this.tmpGoods.get(t);
  8331. if (this.tmpGoods.has(t)) {
  8332. o += e;
  8333. this.tmpGoods.set(t, o);
  8334. } else this.tmpGoods.set(t, e);
  8335. this.flushTmpGood();
  8336. var i = this.main.sManage.getGoodById(t), n = "<color=#FFFFFF>" + c.default.t("获得道具") + ":</c><color=#0fffff>" + c.default.t(i.name) + "x" + e + "</c>";
  8337. this.main.showTips(n);
  8338. };
  8339. e.prototype.removeTmpGood = function(t, e) {
  8340. if (this.tmpGoods.has(t)) {
  8341. var o = this.tmpGoods.get(t);
  8342. (o -= e) > 0 ? this.tmpGoods.set(t, o) : this.tmpGoods.delete(t);
  8343. this.flushTmpGood();
  8344. }
  8345. };
  8346. e.prototype.getTmpCount = function(t) {
  8347. return this.tmpGoods.has(t) ? this.tmpGoods.get(t) : 0;
  8348. };
  8349. e.prototype.flushTmpGood = function() {
  8350. var t = this;
  8351. this.mTmpGoods.active = this.tmpGoods.size > 0;
  8352. var e = this.ff.main.sManage;
  8353. this.mTmpContent.destroyAllChildren();
  8354. this.tmpGoods.forEach(function(o, i) {
  8355. var n = e.getGoodById1(i), r = cc.instantiate(t.mTmpGoodItem);
  8356. r.parent = t.mTmpContent;
  8357. var c = r.getComponent(a.default);
  8358. c.init(n, o);
  8359. c.setCallback(function(e, o) {
  8360. o ? t.mTmpPanel.show(e) : t.mTmpPanel.node.active = !1;
  8361. });
  8362. });
  8363. };
  8364. r([ u(cc.Sprite) ], e.prototype, "mGoodIcon1", void 0);
  8365. r([ u(cc.Label) ], e.prototype, "mGood1", void 0);
  8366. r([ u(cc.Sprite) ], e.prototype, "mGoodIcon2", void 0);
  8367. r([ u(cc.Label) ], e.prototype, "mGood2", void 0);
  8368. r([ u(cc.Sprite) ], e.prototype, "mGoodIcon3", void 0);
  8369. r([ u(cc.Label) ], e.prototype, "mGood3", void 0);
  8370. r([ u(cc.Node) ], e.prototype, "mTmpGoods", void 0);
  8371. r([ u(cc.Node) ], e.prototype, "mTmpContent", void 0);
  8372. r([ u(cc.Prefab) ], e.prototype, "mTmpGoodItem", void 0);
  8373. r([ u(s.default) ], e.prototype, "mTmpPanel", void 0);
  8374. return r([ l ], e);
  8375. }(cc.Component);
  8376. o.default = f;
  8377. cc._RF.pop();
  8378. }, {
  8379. "../../i18n/i18n": "i18n",
  8380. "./FTmpTaskGood": "FTmpTaskGood",
  8381. "./FTmpTaskPanel": "FTmpTaskPanel"
  8382. } ],
  8383. FFRes: [ function(t, e, o) {
  8384. "use strict";
  8385. cc._RF.push(e, "7224fNSOZhBJo2xQ3XxASP2", "FFRes");
  8386. var i, n = this && this.__extends || (i = function(t, e) {
  8387. return (i = Object.setPrototypeOf || {
  8388. __proto__: []
  8389. } instanceof Array && function(t, e) {
  8390. t.__proto__ = e;
  8391. } || function(t, e) {
  8392. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  8393. })(t, e);
  8394. }, function(t, e) {
  8395. i(t, e);
  8396. function o() {
  8397. this.constructor = t;
  8398. }
  8399. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  8400. }), r = this && this.__decorate || function(t, e, o, i) {
  8401. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  8402. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  8403. return r > 3 && c && Object.defineProperty(e, o, c), c;
  8404. };
  8405. Object.defineProperty(o, "__esModule", {
  8406. value: !0
  8407. });
  8408. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  8409. n(e, t);
  8410. function e() {
  8411. var e = null !== t && t.apply(this, arguments) || this;
  8412. e.grayMaterial = null;
  8413. e.normalMaterial = null;
  8414. e.mHudNode = null;
  8415. e.mHudPrefab = null;
  8416. return e;
  8417. }
  8418. r([ s(cc.Material) ], e.prototype, "grayMaterial", void 0);
  8419. r([ s(cc.Material) ], e.prototype, "normalMaterial", void 0);
  8420. r([ s(cc.Node) ], e.prototype, "mHudNode", void 0);
  8421. r([ s(cc.Prefab) ], e.prototype, "mHudPrefab", void 0);
  8422. return r([ a ], e);
  8423. }(cc.Component);
  8424. o.default = p;
  8425. cc._RF.pop();
  8426. }, {} ],
  8427. FFZsjTips: [ function(t, e, o) {
  8428. "use strict";
  8429. cc._RF.push(e, "3f40a/g7gxMV6dqGBfl+GHv", "FFZsjTips");
  8430. var i, n = this && this.__extends || (i = function(t, e) {
  8431. return (i = Object.setPrototypeOf || {
  8432. __proto__: []
  8433. } instanceof Array && function(t, e) {
  8434. t.__proto__ = e;
  8435. } || function(t, e) {
  8436. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  8437. })(t, e);
  8438. }, function(t, e) {
  8439. i(t, e);
  8440. function o() {
  8441. this.constructor = t;
  8442. }
  8443. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  8444. }), r = this && this.__decorate || function(t, e, o, i) {
  8445. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  8446. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  8447. return r > 3 && c && Object.defineProperty(e, o, c), c;
  8448. };
  8449. Object.defineProperty(o, "__esModule", {
  8450. value: !0
  8451. });
  8452. var c = t("../../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = (a.property,
  8453. function(t) {
  8454. n(e, t);
  8455. function e() {
  8456. return null !== t && t.apply(this, arguments) || this;
  8457. }
  8458. e.prototype.start = function() {
  8459. cc.tween(this.node).sequence(cc.delayTime(5), cc.destroySelf()).start();
  8460. };
  8461. return r([ s ], e);
  8462. }(c.default));
  8463. o.default = p;
  8464. cc._RF.pop();
  8465. }, {
  8466. "../../../main/ViewObject": "ViewObject"
  8467. } ],
  8468. FFenceTrigger: [ function(t, e, o) {
  8469. "use strict";
  8470. cc._RF.push(e, "aa67cinkn1NAahhotVQTywj", "FFenceTrigger");
  8471. var i, n = this && this.__extends || (i = function(t, e) {
  8472. return (i = Object.setPrototypeOf || {
  8473. __proto__: []
  8474. } instanceof Array && function(t, e) {
  8475. t.__proto__ = e;
  8476. } || function(t, e) {
  8477. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  8478. })(t, e);
  8479. }, function(t, e) {
  8480. i(t, e);
  8481. function o() {
  8482. this.constructor = t;
  8483. }
  8484. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  8485. }), r = this && this.__decorate || function(t, e, o, i) {
  8486. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  8487. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  8488. return r > 3 && c && Object.defineProperty(e, o, c), c;
  8489. };
  8490. Object.defineProperty(o, "__esModule", {
  8491. value: !0
  8492. });
  8493. var c = t("../../../login/FqLogin"), a = t("../../../util/CMath"), s = t("../object/FObject"), p = t("../object/FSprite"), l = t("./map1/WOneByone"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  8494. n(e, t);
  8495. function e() {
  8496. var e = null !== t && t.apply(this, arguments) || this;
  8497. e.mInitA = null;
  8498. e.mInitB = null;
  8499. e.mCameraPos = null;
  8500. e.mAppear = null;
  8501. e.mFenceTrigger = [];
  8502. e.mMonster1 = [];
  8503. e.mMonster2 = [];
  8504. e.mMonster3 = [];
  8505. e.mMonster4 = [];
  8506. e.mMonster5 = [];
  8507. e.mMapDialog = null;
  8508. e.text = [];
  8509. e.isBoss = !1;
  8510. e.countDown = -1;
  8511. e.isOver = !1;
  8512. e.mIndex = 0;
  8513. e.groupMonster = [];
  8514. e.mMonster = null;
  8515. return e;
  8516. }
  8517. e.prototype.onLoad = function() {
  8518. this.groupMonster.push(this.mMonster1);
  8519. this.mMonster2.length > 0 && this.groupMonster.push(this.mMonster2);
  8520. this.mMonster3.length > 0 && this.groupMonster.push(this.mMonster3);
  8521. this.mMonster4.length > 0 && this.groupMonster.push(this.mMonster4);
  8522. this.mMonster5.length > 0 && this.groupMonster.push(this.mMonster5);
  8523. };
  8524. e.prototype.start = function() {
  8525. for (var t = 0; t < this.groupMonster.length; t++) for (var e = this.groupMonster[t], o = 0; o < e.length; o++) {
  8526. var i = e[o];
  8527. i.isActive = !1;
  8528. t > 0 && (i.node.active = !1);
  8529. }
  8530. this.mMonster = this.groupMonster[0];
  8531. };
  8532. e.prototype.onBeginContact = function(t, e, o) {
  8533. var i = this;
  8534. if (!this.isOver && "A" == o.node.group) {
  8535. var n = o.node.getComponent(p.default);
  8536. this.ff = n.ff;
  8537. if (n == this.ff.mainSprite) {
  8538. this.node.removeComponent(cc.PhysicsBoxCollider);
  8539. this.ff = n.ff;
  8540. this.ff.regRemoveCallback(function(t) {
  8541. i.removeCallback(t);
  8542. });
  8543. this.isOver = !0;
  8544. this.startFight();
  8545. c.default.commitEvent(this.node.name, "", "");
  8546. }
  8547. }
  8548. };
  8549. e.prototype.startFight = function() {
  8550. var t = this;
  8551. this.ff.pauseSprite(!0);
  8552. this.moveCamera(function() {
  8553. t.dialog(0);
  8554. });
  8555. };
  8556. e.prototype.dialog = function(t) {
  8557. var e = this;
  8558. if (t >= this.text.length) this.startFight1(); else {
  8559. var o = this.text[t].split("|"), i = parseInt(o.shift());
  8560. if (-1 == i) {
  8561. var n = this.ff.mainSprite.node;
  8562. this.showDialog(n, o, function() {
  8563. t++;
  8564. e.dialog(t);
  8565. });
  8566. } else {
  8567. n = this.mMonster[i].node;
  8568. this.showDialog(n, o, function() {
  8569. t++;
  8570. e.dialog(t);
  8571. });
  8572. }
  8573. }
  8574. };
  8575. e.prototype.showDialog = function(t, e, o) {
  8576. var i = this;
  8577. this.ff.mBlockInputEvents.active = !0;
  8578. var n = cc.instantiate(this.mMapDialog);
  8579. n.group = "map";
  8580. n.zIndex = 9999;
  8581. n.x = t.x;
  8582. n.y = t.y + t.height;
  8583. n.parent = this.ff.mMap.mSprites;
  8584. var r = n.getComponent(l.default);
  8585. r.dialogs = e;
  8586. r.setCallback(function() {
  8587. n.destroy();
  8588. i.ff.setBlockInputCallback(null);
  8589. o();
  8590. });
  8591. this.ff.setBlockInputCallback(function() {
  8592. r.jump();
  8593. });
  8594. r._start();
  8595. };
  8596. e.prototype.startFight1 = function() {
  8597. var t = this;
  8598. this.addMark();
  8599. this.moveTo();
  8600. this.isBoss && this.ff.flushHP(this.mMonster[0]);
  8601. -1 != this.countDown && this.ff.mCountDown.startCountDown(this.countDown);
  8602. cc.tween(this).sequence(cc.delayTime(.6), cc.callFunc(function() {
  8603. t.playSkill(1);
  8604. t.playSkill(2);
  8605. t.playSkill(3);
  8606. }), cc.delayTime(1.5), cc.callFunc(function() {
  8607. t.ff.pauseSprite(!1);
  8608. t.ff.mBlockInputEvents.active = !1;
  8609. for (var e = 0; e < t.mFenceTrigger.length; e++) {
  8610. (o = t.mFenceTrigger[e]).active = !0;
  8611. o.children.forEach(function(t) {
  8612. var e = t.getComponent(sp.Skeleton);
  8613. e && e.setAnimation(0, "open", !1);
  8614. });
  8615. }
  8616. for (e = 0; e < t.mMonster.length; e++) {
  8617. var o;
  8618. (o = t.mMonster[e]).isActive = !0;
  8619. }
  8620. })).start();
  8621. };
  8622. e.prototype.addMark = function() {
  8623. for (var t = 0; t < this.mMonster.length; t++) {
  8624. var e = this.mMonster[t].addActiveIcon();
  8625. this.actionMark(e);
  8626. }
  8627. };
  8628. e.prototype.actionMark = function(t) {
  8629. t.scale = 0;
  8630. cc.tween(t).sequence(cc.delayTime(1), cc.scaleTo(.2, 1.2, 1.2), cc.scaleTo(.2, .9, .9), cc.scaleTo(.2, 1.1, 1.1), cc.scaleTo(.2, .9, .9), cc.scaleTo(.2, 1.1, 1.1), cc.scaleTo(.2, 1, 1), cc.blink(1, 3), cc.fadeOut(1.5), cc.destroySelf()).start();
  8631. };
  8632. e.prototype.moveCamera = function(t) {
  8633. if (this.mCameraPos) {
  8634. var e = this.ff.mMap.mCamera, o = cc.v2(), i = cc.winSize;
  8635. o.x = this.node.x + this.mCameraPos.x - i.width / 2;
  8636. o.y = this.node.y + this.mCameraPos.y - i.height / 2;
  8637. cc.tween(e.node).sequence(cc.moveTo(1, o), cc.callFunc(function() {
  8638. t();
  8639. })).start();
  8640. } else t();
  8641. };
  8642. e.prototype.moveTo = function() {
  8643. for (var t = this.ff.getGroupBy(s.GroupType.A), e = function(e) {
  8644. var i = t[e];
  8645. if (i) {
  8646. i.setRuning(!1);
  8647. i.setDir({
  8648. x: 0,
  8649. y: 0
  8650. });
  8651. i.playAction(p.SpriteActionType.run, !0);
  8652. var n = i.attrData, r = cc.v2();
  8653. if (3 == n.post) {
  8654. r.x = o.node.x + o.mInitB.x + a.default.getRandom(-o.mInitB.width, o.mInitB.width);
  8655. r.y = o.node.y + o.mInitB.y + a.default.getRandom(-o.mInitB.height, o.mInitB.height);
  8656. } else {
  8657. r.x = o.node.x + o.mInitA.x + a.default.getRandom(-o.mInitA.width, o.mInitA.width);
  8658. r.y = o.node.y + o.mInitA.y + a.default.getRandom(-o.mInitA.height, o.mInitA.height);
  8659. }
  8660. cc.tween(i.node).sequence(cc.moveTo(.5, r), cc.callFunc(function() {
  8661. i.playAction(p.SpriteActionType.stand, !0);
  8662. })).start();
  8663. }
  8664. }, o = this, i = 0; i < t.length; i++) e(i);
  8665. };
  8666. e.prototype.removeCallback = function(t) {
  8667. for (var e = this, o = 0; o < this.mMonster.length; o++) if ((i = this.mMonster[o]) == t) {
  8668. this.mMonster.splice(o, 1);
  8669. break;
  8670. }
  8671. if (this.mMonster.length <= 0) {
  8672. this.mIndex++;
  8673. if (this.mIndex < this.groupMonster.length) {
  8674. this.mMonster = this.groupMonster[this.mIndex];
  8675. this.playAppear();
  8676. } else {
  8677. for (o = 0; o < this.mFenceTrigger.length; o++) {
  8678. var i = this.mFenceTrigger[o];
  8679. this.playCancelFence(i);
  8680. }
  8681. this.ff.regRemoveCallback(null);
  8682. this.ff.mainSprite.setPause(!0);
  8683. cc.tween(this.node).sequence(cc.delayTime(.5), cc.callFunc(function() {
  8684. e.ff.mainSprite.setPause(!1);
  8685. })).start();
  8686. }
  8687. }
  8688. };
  8689. e.prototype.playAppear = function() {
  8690. for (var t = function(t) {
  8691. var o = e.mMonster[t];
  8692. o.node.active = !0;
  8693. if (e.mAppear) {
  8694. var i = cc.instantiate(e.mAppear);
  8695. i.parent = o.node;
  8696. i.group = o.node.group;
  8697. var n = i.getComponent(sp.Skeleton);
  8698. n.setCompleteListener(function() {
  8699. i.destroy();
  8700. o.isActive = !0;
  8701. });
  8702. n.setAnimation(0, "animation", !1);
  8703. } else o.isActive = !0;
  8704. }, e = this, o = 0; o < this.mMonster.length; o++) t(o);
  8705. };
  8706. e.prototype.playCancelFence = function(t) {
  8707. -1 != this.countDown && this.ff.mCountDown.stopCountDown();
  8708. var e = t.children, o = 0;
  8709. e.forEach(function(i) {
  8710. var n = i.getComponent(sp.Skeleton);
  8711. if (n) {
  8712. n.setCompleteListener(function() {
  8713. i.active = !1;
  8714. ++o >= e.length && (t.active = !1);
  8715. });
  8716. n.setAnimation(0, "close", !1);
  8717. }
  8718. });
  8719. };
  8720. e.prototype.playSkill = function(t) {
  8721. var e = this;
  8722. cc.resources.load("prefab/role/skills/skills_" + t, cc.Prefab, function(o, i) {
  8723. if (o) cc.error(o); else for (var n = e.ff.getGroupBy(s.GroupType.A), r = function(e) {
  8724. var o = n[e];
  8725. if (o) {
  8726. var r = cc.instantiate(i);
  8727. r.parent = o.node;
  8728. r.zIndex = 9999;
  8729. var c = r.getComponent(sp.Skeleton);
  8730. if (3 != t) c.setCompleteListener(function() {
  8731. r.destroy();
  8732. }); else {
  8733. o.hasDun = !0;
  8734. cc.tween(r).sequence(cc.delayTime(10), cc.callFunc(function() {
  8735. o.hasDun = !1;
  8736. }), cc.destroySelf()).start();
  8737. }
  8738. }
  8739. }, c = 0; c < n.length; c++) r(c);
  8740. });
  8741. };
  8742. r([ h({
  8743. type: cc.Node,
  8744. displayName: "远程初始位置"
  8745. }) ], e.prototype, "mInitA", void 0);
  8746. r([ h({
  8747. type: cc.Node,
  8748. displayName: "近战初始位置"
  8749. }) ], e.prototype, "mInitB", void 0);
  8750. r([ h({
  8751. type: cc.Node,
  8752. displayName: "摄像机移动的目标位置"
  8753. }) ], e.prototype, "mCameraPos", void 0);
  8754. r([ h({
  8755. type: cc.Prefab,
  8756. displayName: "怪物出现动画"
  8757. }) ], e.prototype, "mAppear", void 0);
  8758. r([ h([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0);
  8759. r([ h([ p.default ]) ], e.prototype, "mMonster1", void 0);
  8760. r([ h([ p.default ]) ], e.prototype, "mMonster2", void 0);
  8761. r([ h([ p.default ]) ], e.prototype, "mMonster3", void 0);
  8762. r([ h([ p.default ]) ], e.prototype, "mMonster4", void 0);
  8763. r([ h([ p.default ]) ], e.prototype, "mMonster5", void 0);
  8764. r([ h(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  8765. r([ h([ cc.String ]) ], e.prototype, "text", void 0);
  8766. r([ h({
  8767. displayName: "是否开始就显示boss"
  8768. }) ], e.prototype, "isBoss", void 0);
  8769. r([ h({
  8770. displayName: "倒计时时间"
  8771. }) ], e.prototype, "countDown", void 0);
  8772. return r([ f ], e);
  8773. }(cc.Component);
  8774. o.default = d;
  8775. cc._RF.pop();
  8776. }, {
  8777. "../../../login/FqLogin": "FqLogin",
  8778. "../../../util/CMath": "CMath",
  8779. "../object/FObject": "FObject",
  8780. "../object/FSprite": "FSprite",
  8781. "./map1/WOneByone": "WOneByone"
  8782. } ],
  8783. FFire1_4: [ function(t, e, o) {
  8784. "use strict";
  8785. cc._RF.push(e, "a82ccWM1AdPVK1Kr3GjlyCo", "FFire1_4");
  8786. var i, n = this && this.__extends || (i = function(t, e) {
  8787. return (i = Object.setPrototypeOf || {
  8788. __proto__: []
  8789. } instanceof Array && function(t, e) {
  8790. t.__proto__ = e;
  8791. } || function(t, e) {
  8792. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  8793. })(t, e);
  8794. }, function(t, e) {
  8795. i(t, e);
  8796. function o() {
  8797. this.constructor = t;
  8798. }
  8799. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  8800. }), r = this && this.__decorate || function(t, e, o, i) {
  8801. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  8802. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  8803. return r > 3 && c && Object.defineProperty(e, o, c), c;
  8804. };
  8805. Object.defineProperty(o, "__esModule", {
  8806. value: !0
  8807. });
  8808. var c = t("../../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  8809. n(e, t);
  8810. function e() {
  8811. var e = null !== t && t.apply(this, arguments) || this;
  8812. e.spine = null;
  8813. e.mMapDialog = null;
  8814. e.icon = null;
  8815. e.mTipsIcon = null;
  8816. e.text = [];
  8817. e.fireList = [];
  8818. e.goodId = 2004;
  8819. e.saveId = "";
  8820. e.count = 0;
  8821. e.state = !1;
  8822. return e;
  8823. }
  8824. e.prototype.start = function() {};
  8825. e.prototype.onBegin = function(t) {
  8826. var e = this;
  8827. this.ff.mFFheader.getTmpCount(this.goodId) ? 1 == t && this.showOpt(this.mTipsIcon, function() {
  8828. e.state || e.playAnima();
  8829. }) : this.showOpt(this.icon, function() {
  8830. var t = e.ff.mainSprite.node;
  8831. e.showDialog(t, e.text, function() {
  8832. e.closeOpt();
  8833. });
  8834. });
  8835. };
  8836. e.prototype.onEnd = function(t) {
  8837. 1 == t && this.closeOpt();
  8838. };
  8839. e.prototype.playAnima = function() {
  8840. var t = this;
  8841. this.state = !0;
  8842. this.spineAction(this.spine, "zuan", function() {
  8843. t.state = !1;
  8844. t.spineAction(t.spine, "idle", function() {});
  8845. t.count++;
  8846. t.fireList[t.count - 1].active = !0;
  8847. t.getFire();
  8848. });
  8849. };
  8850. e.prototype.getFire = function() {
  8851. var t = this.ff.mFFheader;
  8852. if (this.count == this.fireList.length) {
  8853. t.removeTmpGood(this.goodId, 1);
  8854. this.node.active = !1;
  8855. this.closeOpt();
  8856. }
  8857. };
  8858. r([ p({
  8859. displayName: "动画",
  8860. type: sp.Skeleton
  8861. }) ], e.prototype, "spine", void 0);
  8862. r([ p(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  8863. r([ p({
  8864. displayName: "靠近的提示",
  8865. type: cc.SpriteFrame
  8866. }) ], e.prototype, "icon", void 0);
  8867. r([ p({
  8868. displayName: "提示图标",
  8869. type: cc.SpriteFrame
  8870. }) ], e.prototype, "mTipsIcon", void 0);
  8871. r([ p({
  8872. displayName: "对话内容",
  8873. type: [ cc.String ]
  8874. }) ], e.prototype, "text", void 0);
  8875. r([ p({
  8876. displayName: "火把列表",
  8877. type: [ cc.Node ]
  8878. }) ], e.prototype, "fireList", void 0);
  8879. r([ p({
  8880. displayName: "需要的物品id"
  8881. }) ], e.prototype, "goodId", void 0);
  8882. r([ p({
  8883. displayName: "存储ID"
  8884. }) ], e.prototype, "saveId", void 0);
  8885. return r([ s ], e);
  8886. }(c.default);
  8887. o.default = l;
  8888. cc._RF.pop();
  8889. }, {
  8890. "../../base/BaseEvent": "BaseEvent"
  8891. } ],
  8892. FFruit1_3: [ function(t, e, o) {
  8893. "use strict";
  8894. cc._RF.push(e, "6e9b9Se3mlB+buguf9S+mET", "FFruit1_3");
  8895. var i, n = this && this.__extends || (i = function(t, e) {
  8896. return (i = Object.setPrototypeOf || {
  8897. __proto__: []
  8898. } instanceof Array && function(t, e) {
  8899. t.__proto__ = e;
  8900. } || function(t, e) {
  8901. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  8902. })(t, e);
  8903. }, function(t, e) {
  8904. i(t, e);
  8905. function o() {
  8906. this.constructor = t;
  8907. }
  8908. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  8909. }), r = this && this.__decorate || function(t, e, o, i) {
  8910. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  8911. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  8912. return r > 3 && c && Object.defineProperty(e, o, c), c;
  8913. };
  8914. Object.defineProperty(o, "__esModule", {
  8915. value: !0
  8916. });
  8917. var c = t("../../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  8918. n(e, t);
  8919. function e() {
  8920. var e = null !== t && t.apply(this, arguments) || this;
  8921. e.mProgressBar = null;
  8922. e.mTipsIcon = null;
  8923. return e;
  8924. }
  8925. e.prototype.onLoad = function() {
  8926. t.prototype.onLoad.call(this);
  8927. this.mProgressBar.node.active = !1;
  8928. };
  8929. e.prototype.setPick26 = function(t) {
  8930. this.pick26 = t;
  8931. };
  8932. e.prototype.onBegin = function() {
  8933. var t = this;
  8934. this.pick26 && 1 == this.pick26.state && this.showOpt(this.mTipsIcon, function() {
  8935. t.pick();
  8936. });
  8937. };
  8938. e.prototype.onEnd = function() {
  8939. this.closeOpt();
  8940. };
  8941. e.prototype.pick = function() {
  8942. this.closeOpt();
  8943. this.mProgressBar.node.active = !0;
  8944. this.mProgressBar.progress = 0;
  8945. this.ff.mBlockInputEvents.active = !0;
  8946. this.schedule(this.pupdate, .1);
  8947. };
  8948. e.prototype.pupdate = function() {
  8949. var t = this.mProgressBar.progress;
  8950. t += .1;
  8951. this.mProgressBar.progress = t;
  8952. if (t >= 1) {
  8953. this.ff.mBlockInputEvents.active = !1;
  8954. this.unschedule(this.pupdate);
  8955. this.ff.mFFheader.addTmpGood(this.pick26.goodId, 1);
  8956. this.node.removeComponent(cc.PhysicsBoxCollider);
  8957. cc.tween(this.node).sequence(cc.fadeOut(.5), cc.destroySelf()).start();
  8958. }
  8959. };
  8960. r([ p({
  8961. type: cc.ProgressBar,
  8962. displayName: "进度条"
  8963. }) ], e.prototype, "mProgressBar", void 0);
  8964. r([ p({
  8965. displayName: "提示图标",
  8966. type: cc.SpriteFrame
  8967. }) ], e.prototype, "mTipsIcon", void 0);
  8968. return r([ s ], e);
  8969. }(c.default);
  8970. o.default = l;
  8971. cc._RF.pop();
  8972. }, {
  8973. "../../base/BaseEvent": "BaseEvent"
  8974. } ],
  8975. FFruit26: [ function(t, e, o) {
  8976. "use strict";
  8977. cc._RF.push(e, "e5ccaGTZAZMuq25wTmRt3hj", "FFruit26");
  8978. var i, n = this && this.__extends || (i = function(t, e) {
  8979. return (i = Object.setPrototypeOf || {
  8980. __proto__: []
  8981. } instanceof Array && function(t, e) {
  8982. t.__proto__ = e;
  8983. } || function(t, e) {
  8984. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  8985. })(t, e);
  8986. }, function(t, e) {
  8987. i(t, e);
  8988. function o() {
  8989. this.constructor = t;
  8990. }
  8991. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  8992. }), r = this && this.__decorate || function(t, e, o, i) {
  8993. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  8994. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  8995. return r > 3 && c && Object.defineProperty(e, o, c), c;
  8996. };
  8997. Object.defineProperty(o, "__esModule", {
  8998. value: !0
  8999. });
  9000. var c = t("../../object/FSprite"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  9001. n(e, t);
  9002. function e() {
  9003. var e = null !== t && t.apply(this, arguments) || this;
  9004. e.mProgressBar = null;
  9005. return e;
  9006. }
  9007. e.prototype.onLoad = function() {
  9008. this.mProgressBar.node.active = !1;
  9009. };
  9010. e.prototype.setPick26 = function(t) {
  9011. this.pick26 = t;
  9012. };
  9013. e.prototype.onBeginContact = function(t, e, o) {
  9014. if ("A" == o.node.group && this.pick26 && 1 == this.pick26.state) {
  9015. var i = o.node.getComponent(c.default);
  9016. this.ff = i.ff;
  9017. i == this.ff.mainSprite && this.showButton();
  9018. }
  9019. };
  9020. e.prototype.onEndContact = function(t, e, o) {
  9021. if ("A" == o.node.group) {
  9022. var i = o.node.getComponent(c.default);
  9023. this.ff = i.ff;
  9024. i == this.ff.mainSprite && this.closeButton();
  9025. }
  9026. };
  9027. e.prototype.showButton = function() {
  9028. var t = this;
  9029. this.ff.control.mEventButton.node.active = !0;
  9030. this.ff.control.mEventButton.setCallback(function() {
  9031. t.pick();
  9032. });
  9033. };
  9034. e.prototype.closeButton = function() {
  9035. this.ff.control.mEventButton.node.active = !1;
  9036. };
  9037. e.prototype.pick = function() {
  9038. this.mProgressBar.node.active = !0;
  9039. this.mProgressBar.progress = 0;
  9040. this.ff.mBlockInputEvents.active = !0;
  9041. this.schedule(this.pupdate, .1);
  9042. };
  9043. e.prototype.pupdate = function() {
  9044. var t = this.mProgressBar.progress;
  9045. t += .1;
  9046. this.mProgressBar.progress = t;
  9047. if (t >= 1) {
  9048. this.ff.mBlockInputEvents.active = !1;
  9049. this.unschedule(this.pupdate);
  9050. this.ff.mFFheader.addTmpGood(this.pick26.goodId, 1);
  9051. this.node.removeComponent(cc.PhysicsBoxCollider);
  9052. cc.tween(this.node).sequence(cc.fadeOut(.5), cc.destroySelf()).start();
  9053. }
  9054. };
  9055. r([ p({
  9056. type: cc.ProgressBar,
  9057. displayName: "进度条"
  9058. }) ], e.prototype, "mProgressBar", void 0);
  9059. return r([ s ], e);
  9060. }(cc.Component);
  9061. o.default = l;
  9062. cc._RF.pop();
  9063. }, {
  9064. "../../object/FSprite": "FSprite"
  9065. } ],
  9066. FF: [ function(t, e, o) {
  9067. "use strict";
  9068. cc._RF.push(e, "aa4c8D8nhNNdrcjq53dlte3", "FF");
  9069. var i, n = this && this.__extends || (i = function(t, e) {
  9070. return (i = Object.setPrototypeOf || {
  9071. __proto__: []
  9072. } instanceof Array && function(t, e) {
  9073. t.__proto__ = e;
  9074. } || function(t, e) {
  9075. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  9076. })(t, e);
  9077. }, function(t, e) {
  9078. i(t, e);
  9079. function o() {
  9080. this.constructor = t;
  9081. }
  9082. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  9083. }), r = this && this.__decorate || function(t, e, o, i) {
  9084. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  9085. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  9086. return r > 3 && c && Object.defineProperty(e, o, c), c;
  9087. };
  9088. Object.defineProperty(o, "__esModule", {
  9089. value: !0
  9090. });
  9091. o.FF_Result_Type = void 0;
  9092. var c = t("../../main/ViewObject"), a = t("./object/FSprite"), s = t("./map/FLiteMap"), p = t("../../util/CMath"), l = t("./box/FExitBox"), u = t("./object/FObject"), f = t("./object/AI/AIPet"), h = t("./FControl"), d = t("../../util/CHttp"), m = t("./FFHeader"), y = t("./object/FPanel"), v = t("./FObjectFly"), g = t("./object/MSprite"), _ = t("./object/PSprite"), b = t("./FCountDown"), O = t("../../util/Joystick"), w = t("./FFRes"), C = t("./object/FPanelIcon"), F = t("../data/FFCalAttr"), P = t("../../main/ViewManage"), j = t("./evnet/FTmpGood"), I = t("../data/RedPoint"), S = cc._decorator, k = S.ccclass, M = S.property;
  9093. o.FF_Result_Type = cc.Enum({
  9094. none: 0,
  9095. fail: 1,
  9096. win: 2
  9097. });
  9098. var R = function(t) {
  9099. n(e, t);
  9100. function e() {
  9101. var e = null !== t && t.apply(this, arguments) || this;
  9102. e.mBlockInputEvents = null;
  9103. e.mMapLayer = null;
  9104. e.mJoystick = null;
  9105. e.mLietMap = null;
  9106. e.mControl = null;
  9107. e.mRed = null;
  9108. e.mBjFont = null;
  9109. e.mSkillFont = null;
  9110. e.mMu = null;
  9111. e.mExitBox = null;
  9112. e.mMapDialog = null;
  9113. e.mActiveIcon = null;
  9114. e.mDeadIcon = null;
  9115. e.mFFheader = null;
  9116. e.mSmailHP = null;
  9117. e.mBossHP = null;
  9118. e.mTop = null;
  9119. e.mCountDown = null;
  9120. e.mWalk = null;
  9121. e.mRun = null;
  9122. e.control = null;
  9123. e.fres = null;
  9124. e.mainSprite = null;
  9125. e.mMap = null;
  9126. e.ffResultType = 0;
  9127. e.lockCamera = !0;
  9128. e.isBack = !1;
  9129. return e;
  9130. }
  9131. e.prototype.onLoad = function() {
  9132. var t = this;
  9133. cc.director.getPhysicsManager().enabled = !0;
  9134. this.control = this.mControl.getComponent(h.default);
  9135. this.fres = this.node.getComponent(w.default);
  9136. this.mCountDown.setCallback(function() {
  9137. t.clearCallback(t.mainSprite);
  9138. });
  9139. };
  9140. e.prototype.onDestroy = function() {};
  9141. e.prototype.stopRuning = function() {
  9142. this.mJoystick.stop();
  9143. };
  9144. e.prototype.startRuning = function() {};
  9145. e.prototype.regClearCallback = function(t) {
  9146. this.clearCallback = t;
  9147. };
  9148. e.prototype.regRemoveCallback = function(t) {
  9149. this.removeCallback = t;
  9150. };
  9151. e.prototype.regExitCallback = function(t) {
  9152. this.exitCallback = t;
  9153. };
  9154. e.prototype.loadMap = function(t) {
  9155. var e = this;
  9156. this.mMap = t;
  9157. this.mMap.mCamera = this.main.mMapCamera;
  9158. this.mMap.mCamera.zoomRatio = 1;
  9159. this.mMap.setFF(this);
  9160. this.mMap.node.parent = this.mMapLayer;
  9161. t.node.zIndex = 0;
  9162. this.mMapLayer.x = -cc.winSize.width / 2;
  9163. this.mMapLayer.y = -cc.winSize.height / 2;
  9164. this.mMu.zIndex = 9999;
  9165. this.mMu.width = 2 * cc.winSize.width;
  9166. this.mMu.height = 2 * cc.winSize.height;
  9167. this.mMu.active = !0;
  9168. this.mLietMap.initMap(this);
  9169. this.mMap.getSprites().forEach(function(t) {
  9170. var o = t.getComponent(u.default);
  9171. if (o) {
  9172. o.ff = e;
  9173. o.map = e.mMap;
  9174. }
  9175. });
  9176. };
  9177. e.prototype.update = function() {
  9178. if (this.lockCamera && this.mainSprite) {
  9179. var t = this.mainSprite.node;
  9180. this.mMap.updateShoot(t.x, t.y);
  9181. this.mLietMap.clearMask(t.getPosition());
  9182. }
  9183. };
  9184. e.prototype.loadRole = function(t) {
  9185. for (var e = 0; e < t.length; e++) if ((i = t[e]) instanceof g.default) {
  9186. this.mainSprite = i;
  9187. i.setPosition(this.mMap.mInit.getPosition());
  9188. }
  9189. this.mainSprite.setJoystick(this.mJoystick);
  9190. var o = this.mainSprite;
  9191. for (e = 0; e < t.length; e++) {
  9192. var i;
  9193. if ((i = t[e]) instanceof _.default) {
  9194. i.setLeader(o);
  9195. o.setNext(i);
  9196. o = i;
  9197. i.addComponent(f.default);
  9198. }
  9199. i.node.group = u.GroupType.A;
  9200. this.mMap.addSprite(i);
  9201. i.addPanelHUD();
  9202. }
  9203. var n = this.mainSprite.node;
  9204. this.mMap.updateShoot(n.x, n.y);
  9205. this.mLietMap.clearMask(n.getPosition());
  9206. this.mMap.initCamera();
  9207. this.control.updateSkill();
  9208. };
  9209. e.prototype.addRole = function(t) {
  9210. for (var e = this.mainSprite; e.nextSprite; ) e = e.nextSprite;
  9211. t.setLeader(e);
  9212. e.setNext(t);
  9213. t.node.group = u.GroupType.A;
  9214. this.mMap.addSprite(t);
  9215. t.addPanelHUD();
  9216. };
  9217. e.prototype.updateRole = function() {
  9218. for (var t = this.fres.mHudNode.children, e = 0; e < t.length; e++) {
  9219. var o = t[e].getComponent(C.default), i = o.sprite, n = i.attrData, r = this.main.player.pet[n.id], c = F.default.getAttr(this.main, r);
  9220. i.flushAttrData(c);
  9221. o.setIcon();
  9222. }
  9223. if (this.mainSprite && this.mainSprite.isValid) {
  9224. this.mainSprite.setAttrData(this.mainSprite.attrData);
  9225. this.control.updateSkill();
  9226. }
  9227. };
  9228. e.prototype.getRandInit = function() {
  9229. var t = cc.v2();
  9230. t.x = p.default.getRandom(this.mMap.mInit.x - 100, this.mMap.mInit.x + 100);
  9231. t.y = p.default.getRandom(this.mMap.mInit.y - 100, this.mMap.mInit.y + 100);
  9232. return t;
  9233. };
  9234. e.prototype.activeCount = function() {
  9235. for (var t = this.mMap.getSprites(), e = 0, o = 0; o < t.length; o++) t[o].group == u.GroupType.A && e++;
  9236. return e;
  9237. };
  9238. e.prototype.getGroupBy = function(t) {
  9239. for (var e = [], o = this.mMap.getSprites(), i = 0; i < o.length; i++) {
  9240. var n = o[i];
  9241. n.group == t && e.push(n.getComponent(a.default));
  9242. }
  9243. return e;
  9244. };
  9245. e.prototype.onclickExit = function() {
  9246. var t = this, e = cc.instantiate(this.mExitBox).getComponent(l.default);
  9247. e.main = this.main;
  9248. e.endType = 1;
  9249. e.init(this.mFFheader.stageData);
  9250. e.show();
  9251. e.setOKCallback(function() {
  9252. t.exitDistroy();
  9253. t.main.topNode.active = !0;
  9254. t.main.playMusicByPath(P.AudioMgr.homeMusic);
  9255. });
  9256. this.pauseSprite(!0);
  9257. e.setCloseCallback(function() {
  9258. t.pauseSprite(!1);
  9259. });
  9260. };
  9261. e.prototype.getMapObject = function(t) {
  9262. var e = this, o = {
  9263. objectId: t
  9264. };
  9265. this.main.gameHttp.sendJson("stage/v1/stageObject", o, function(o, i) {
  9266. e.main.stopLoad();
  9267. if (o == d.HttpStateType.SUCCESS) if (0 == i.retCode) {
  9268. var n = e.main.player.stage;
  9269. n.element.push(t);
  9270. n.data[e.mFFheader.stageData.id] = i.data._stage;
  9271. e.mFFheader.flush();
  9272. e.main.showTips1(i);
  9273. } else e.main.showTips(i.message); else e.main.showTips("网络异常");
  9274. });
  9275. };
  9276. e.prototype.pauseSprite = function(t) {
  9277. this.lockCamera = !t;
  9278. this.mMap.getSprites().forEach(function(e) {
  9279. var o = e.getComponent(a.default);
  9280. o && o.setPause(t);
  9281. });
  9282. if (t) {
  9283. this.mJoystick.stop();
  9284. this.mainSprite && this.mainSprite.setShooting(!1);
  9285. this.uiOutAction();
  9286. cc.director.getPhysicsManager().enabled = !1;
  9287. } else {
  9288. this.uiInAction();
  9289. cc.director.getPhysicsManager().enabled = !0;
  9290. }
  9291. };
  9292. e.prototype.uiOutAction = function() {
  9293. this.mJoystick.node.active = !1;
  9294. this.mControl.active = !1;
  9295. this.mTop.active = !1;
  9296. };
  9297. e.prototype.uiInAction = function() {
  9298. this.mJoystick.node.active = !0;
  9299. this.mControl.active = !0;
  9300. this.mTop.active = !0;
  9301. };
  9302. e.prototype.flushHP = function(t) {
  9303. this.mBossHP.node.active = !1;
  9304. this.mSmailHP.node.active = !1;
  9305. if (!(t.hp <= 0)) {
  9306. var e = null;
  9307. (e = 2 == t.attrData.type ? this.mBossHP : this.mSmailHP).node.active = !0;
  9308. e.sprite = t;
  9309. e.updatePanel();
  9310. e.setCancel();
  9311. }
  9312. };
  9313. e.prototype.updateHP = function(t) {
  9314. var e = null;
  9315. this.mBossHP.node.active ? e = this.mBossHP : this.mSmailHP.node.active && (e = this.mSmailHP);
  9316. e && t == e.sprite && e.updatePanel();
  9317. };
  9318. e.prototype.addGoods = function(t, e) {
  9319. var o = this;
  9320. t.forEach(function(t) {
  9321. cc.resources.load(t.icon, cc.SpriteFrame, function(t, i) {
  9322. if (t) cc.error(t); else {
  9323. var n = new cc.Node();
  9324. n.group = "map";
  9325. n.addComponent(cc.Sprite).spriteFrame = i;
  9326. n.x = e.x;
  9327. n.y = e.y;
  9328. n.parent = o.mMap.mSprites;
  9329. var r = n.addComponent(v.default);
  9330. r.ff = o;
  9331. n.setScale(1.5);
  9332. var c = p.default.getRandom(-100, 100), a = cc.jumpBy(.5, cc.v2(c, 0), 100, 1);
  9333. cc.tween(n).sequence(a, cc.delayTime(.5), cc.callFunc(function() {
  9334. o.main.playerEffectByPath(P.AudioMgr.getCoin);
  9335. r.move = !0;
  9336. cc.tween(n).repeatForever(cc.rotateBy(1, 360)).start();
  9337. })).start();
  9338. }
  9339. });
  9340. });
  9341. };
  9342. e.prototype.addGoodToMap = function(t, e) {
  9343. var o = this, i = this.main.sManage.getGoodById1(t);
  9344. cc.resources.load("icon/good/" + i.icon, cc.SpriteFrame, function(i, n) {
  9345. if (i) cc.error(i); else {
  9346. var r = new cc.Node();
  9347. r.group = "map";
  9348. r.addComponent(cc.Sprite).spriteFrame = n;
  9349. r.addComponent(j.default).goodId = t;
  9350. var c = r.addComponent(cc.RigidBody);
  9351. c.enabledContactListener = !0;
  9352. c.type = cc.RigidBodyType.Static;
  9353. var a = r.addComponent(cc.PhysicsBoxCollider);
  9354. a.sensor = !0;
  9355. a.size.width = n.getRect().width;
  9356. a.size.height = n.getRect().height;
  9357. r.x = e.x;
  9358. r.y = e.y;
  9359. r.parent = o.mMap.mSprites;
  9360. r.setScale(1.5);
  9361. var s = p.default.getRandom(-100, 100), l = cc.jumpBy(.5, cc.v2(s, 0), 100, 1);
  9362. cc.tween(r).sequence(l, cc.delayTime(.5), cc.callFunc(function() {
  9363. cc.tween(r).repeatForever(cc.rotateBy(1, 360)).start();
  9364. })).start();
  9365. }
  9366. });
  9367. };
  9368. e.prototype.setBlockInputCallback = function(t) {
  9369. this.blockInputCallback = t;
  9370. };
  9371. e.prototype.blockInputEvents = function() {
  9372. this.blockInputCallback && this.blockInputCallback();
  9373. };
  9374. e.prototype.shockMap = function() {
  9375. cc.tween(this.mMapLayer).sequence(cc.moveBy(.05, 0, 15).easing(cc.easeBackOut()), cc.moveBy(.05, 0, -15).easing(cc.easeBackOut())).start();
  9376. };
  9377. e.prototype.removePet = function(t) {
  9378. for (var e = this.mainSprite.nextSprite; ;) {
  9379. if (!e) return;
  9380. if (e.attrData.id == t) {
  9381. e.nextSprite && e.nextSprite.setLeader(e.inFront);
  9382. e.node.destroy();
  9383. return;
  9384. }
  9385. e = e.nextSprite;
  9386. }
  9387. };
  9388. e.prototype.openSet = function() {
  9389. var t = this;
  9390. this.pauseSprite(!0);
  9391. this.main.viewManage.loadFunc(P.GameViewType.tap_set, function(e) {
  9392. e.setCloseCallback(function() {
  9393. t.pauseSprite(!1);
  9394. });
  9395. e.show();
  9396. });
  9397. };
  9398. e.prototype.fuhuo = function() {
  9399. this.ffResultType = o.FF_Result_Type.none;
  9400. for (var t = this.getGroupBy("A"), e = 0; e < t.length; e++) {
  9401. var i = t[e];
  9402. if (i.hp <= 0) {
  9403. i.isActive = !0;
  9404. i.wudi(2);
  9405. i.hp = i.attrData.hp;
  9406. var n = i.node.getChildByName("juese01").getChildByName("spineRight").getComponent(sp.Skeleton);
  9407. if (!n.node.active) {
  9408. i.spine.destroy();
  9409. i.spine = n;
  9410. n.node.active = !0;
  9411. }
  9412. } else i.hp = i.attrData.hp;
  9413. i.updatePanel();
  9414. }
  9415. };
  9416. e.prototype.firstGetSkillTips = function() {
  9417. var t = this, e = this.mControl.getChildByName("1");
  9418. e.active = !0;
  9419. this.mBlockInputEvents.active = !0;
  9420. this.setBlockInputCallback(function() {
  9421. e.active = !1;
  9422. t.mBlockInputEvents.active = !1;
  9423. });
  9424. };
  9425. e.prototype.firstGetGoodsTips = function() {
  9426. var t = this, e = this.mControl.parent.getChildByName("goodAbout");
  9427. console.log("======", e);
  9428. e.active = !0;
  9429. this.mBlockInputEvents.active = !0;
  9430. this.setBlockInputCallback(function() {
  9431. e.active = !1;
  9432. t.mBlockInputEvents.active = !1;
  9433. });
  9434. };
  9435. e.prototype.httpEvent = function(t) {
  9436. var e = t.data;
  9437. if (null != e._equip && e._equip.length > 0) for (var o = this.fres.mHudNode.children, i = 0; i < o.length; i++) {
  9438. var n = o[i], r = n.getComponent(C.default).sprite.attrData.id, c = this.main.player.getPet(r);
  9439. I.default.petRedPoint(this.main, c) && I.default.addRed(this.main, n, !0);
  9440. }
  9441. };
  9442. r([ M(cc.Node) ], e.prototype, "mBlockInputEvents", void 0);
  9443. r([ M(cc.Node) ], e.prototype, "mMapLayer", void 0);
  9444. r([ M(O.default) ], e.prototype, "mJoystick", void 0);
  9445. r([ M(s.default) ], e.prototype, "mLietMap", void 0);
  9446. r([ M(cc.Node) ], e.prototype, "mControl", void 0);
  9447. r([ M(cc.Font) ], e.prototype, "mRed", void 0);
  9448. r([ M(cc.Font) ], e.prototype, "mBjFont", void 0);
  9449. r([ M(cc.Font) ], e.prototype, "mSkillFont", void 0);
  9450. r([ M(cc.Node) ], e.prototype, "mMu", void 0);
  9451. r([ M(cc.Prefab) ], e.prototype, "mExitBox", void 0);
  9452. r([ M(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  9453. r([ M(cc.SpriteFrame) ], e.prototype, "mActiveIcon", void 0);
  9454. r([ M(cc.SpriteFrame) ], e.prototype, "mDeadIcon", void 0);
  9455. r([ M(m.default) ], e.prototype, "mFFheader", void 0);
  9456. r([ M(y.default) ], e.prototype, "mSmailHP", void 0);
  9457. r([ M(y.default) ], e.prototype, "mBossHP", void 0);
  9458. r([ M(cc.Node) ], e.prototype, "mTop", void 0);
  9459. r([ M(b.default) ], e.prototype, "mCountDown", void 0);
  9460. r([ M(cc.AudioClip) ], e.prototype, "mWalk", void 0);
  9461. r([ M(cc.AudioClip) ], e.prototype, "mRun", void 0);
  9462. return r([ k ], e);
  9463. }(c.default);
  9464. o.default = R;
  9465. cc._RF.pop();
  9466. }, {
  9467. "../../main/ViewManage": "ViewManage",
  9468. "../../main/ViewObject": "ViewObject",
  9469. "../../util/CHttp": "CHttp",
  9470. "../../util/CMath": "CMath",
  9471. "../../util/Joystick": "Joystick",
  9472. "../data/FFCalAttr": "FFCalAttr",
  9473. "../data/RedPoint": "RedPoint",
  9474. "./FControl": "FControl",
  9475. "./FCountDown": "FCountDown",
  9476. "./FFHeader": "FFHeader",
  9477. "./FFRes": "FFRes",
  9478. "./FObjectFly": "FObjectFly",
  9479. "./box/FExitBox": "FExitBox",
  9480. "./evnet/FTmpGood": "FTmpGood",
  9481. "./map/FLiteMap": "FLiteMap",
  9482. "./object/AI/AIPet": "AIPet",
  9483. "./object/FObject": "FObject",
  9484. "./object/FPanel": "FPanel",
  9485. "./object/FPanelIcon": "FPanelIcon",
  9486. "./object/FSprite": "FSprite",
  9487. "./object/MSprite": "MSprite",
  9488. "./object/PSprite": "PSprite"
  9489. } ],
  9490. FGass: [ function(t, e, o) {
  9491. "use strict";
  9492. cc._RF.push(e, "f0361ZSAAhCdqmi7wMO0No1", "FGass");
  9493. var i, n = this && this.__extends || (i = function(t, e) {
  9494. return (i = Object.setPrototypeOf || {
  9495. __proto__: []
  9496. } instanceof Array && function(t, e) {
  9497. t.__proto__ = e;
  9498. } || function(t, e) {
  9499. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  9500. })(t, e);
  9501. }, function(t, e) {
  9502. i(t, e);
  9503. function o() {
  9504. this.constructor = t;
  9505. }
  9506. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  9507. }), r = this && this.__decorate || function(t, e, o, i) {
  9508. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  9509. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  9510. return r > 3 && c && Object.defineProperty(e, o, c), c;
  9511. };
  9512. Object.defineProperty(o, "__esModule", {
  9513. value: !0
  9514. });
  9515. var c = t("../object/FObject"), a = t("../box/DialogSay"), s = t("../../../util/CMath"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  9516. n(e, t);
  9517. function e() {
  9518. var e = null !== t && t.apply(this, arguments) || this;
  9519. e.mDialog = null;
  9520. e.mContents = [];
  9521. e.mMonster = [];
  9522. return e;
  9523. }
  9524. e.prototype.onBeginContact = function(t, e, o) {
  9525. if ("A" == o.node.group) {
  9526. var i = o.node.getComponent(c.default);
  9527. if (i) {
  9528. this.node.removeComponent(cc.PhysicsBoxCollider);
  9529. var n = i.ff;
  9530. n.stopRuning();
  9531. this.showDialog(n);
  9532. }
  9533. }
  9534. };
  9535. e.prototype.showDialog = function(t) {
  9536. var e = this, o = cc.instantiate(this.mDialog);
  9537. t.main.viewManage.popView(o);
  9538. var i = o.getComponent(a.default);
  9539. i.setContents(this.mContents);
  9540. i.setEndCallback(function() {
  9541. t.startRuning();
  9542. e.flushMonster(t);
  9543. });
  9544. };
  9545. e.prototype.flushMonster = function() {
  9546. for (var t = 0; t < this.mMonster.length; t++) ;
  9547. };
  9548. e.prototype.getRandInit = function() {
  9549. var t = cc.v2();
  9550. t.x = s.default.getRandom(this.node.x - this.node.width / 2, this.node.x + this.node.width / 2);
  9551. t.y = s.default.getRandom(this.node.y - this.node.height / 2, this.node.y + this.node.height / 2);
  9552. return t;
  9553. };
  9554. r([ u({
  9555. type: cc.Prefab,
  9556. displayName: "对话框"
  9557. }) ], e.prototype, "mDialog", void 0);
  9558. r([ u({
  9559. type: [ cc.String ],
  9560. displayName: "对话内容"
  9561. }) ], e.prototype, "mContents", void 0);
  9562. r([ u({
  9563. type: [ cc.Prefab ],
  9564. displayName: "对话完成刷怪"
  9565. }) ], e.prototype, "mMonster", void 0);
  9566. return r([ l ], e);
  9567. }(cc.Component);
  9568. o.default = f;
  9569. cc._RF.pop();
  9570. }, {
  9571. "../../../util/CMath": "CMath",
  9572. "../box/DialogSay": "DialogSay",
  9573. "../object/FObject": "FObject"
  9574. } ],
  9575. FGetSkill: [ function(t, e, o) {
  9576. "use strict";
  9577. cc._RF.push(e, "3dd6afgSGFD4Kziq/eX7jID", "FGetSkill");
  9578. var i, n = this && this.__extends || (i = function(t, e) {
  9579. return (i = Object.setPrototypeOf || {
  9580. __proto__: []
  9581. } instanceof Array && function(t, e) {
  9582. t.__proto__ = e;
  9583. } || function(t, e) {
  9584. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  9585. })(t, e);
  9586. }, function(t, e) {
  9587. i(t, e);
  9588. function o() {
  9589. this.constructor = t;
  9590. }
  9591. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  9592. }), r = this && this.__decorate || function(t, e, o, i) {
  9593. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  9594. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  9595. return r > 3 && c && Object.defineProperty(e, o, c), c;
  9596. };
  9597. Object.defineProperty(o, "__esModule", {
  9598. value: !0
  9599. });
  9600. var c = t("../../base/BaseEvent"), a = t("../../../../../main/ViewManage"), s = t("../../../../../login/FqLogin"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  9601. n(e, t);
  9602. function e() {
  9603. var e = null !== t && t.apply(this, arguments) || this;
  9604. e.mMapDialog = null;
  9605. e.text = [];
  9606. e.finish = [];
  9607. e.icon = null;
  9608. e.mTipsIcon = null;
  9609. e.goodId = 2006;
  9610. e.saveId = "";
  9611. e.mOpenDoor = null;
  9612. e.isEnd = !1;
  9613. return e;
  9614. }
  9615. e.prototype.onLoad = function() {
  9616. t.prototype.onLoad.call(this);
  9617. this.ff.main.player.stage.element.indexOf(this.saveId) > -1 && (this.mOpenDoor.active = !1);
  9618. };
  9619. e.prototype.onBegin = function(t) {
  9620. var e = this;
  9621. this.isEnd || 1 == t && this.showOpt(this.mTipsIcon, function() {
  9622. e.startDialog();
  9623. });
  9624. };
  9625. e.prototype.onEnd = function(t) {
  9626. 1 == t && this.closeOpt();
  9627. };
  9628. e.prototype.startDialog = function() {
  9629. var t = this;
  9630. this.closeOpt();
  9631. var e = this.ff.mFFheader;
  9632. if (e.getTmpCount(this.goodId) > 0) {
  9633. e.removeTmpGood(this.goodId, 1);
  9634. if (this.ff.main.player.role.openSkill) {
  9635. this.pause();
  9636. this.moveCamera(this.mOpenDoor.getPosition(), 1, function() {
  9637. t.openGear();
  9638. });
  9639. } else this.showDialog(this.node, this.finish, function() {
  9640. t.pause();
  9641. t.moveCamera(t.mOpenDoor.getPosition(), 1, function() {
  9642. t.openGear();
  9643. });
  9644. t.getMapObject(t.saveId, null);
  9645. s.default.commitEvent(t.node.name, "", "");
  9646. });
  9647. } else this.showDialog1(0);
  9648. };
  9649. e.prototype.showDialog1 = function(t) {
  9650. var e = this;
  9651. if (!(t >= this.text.length)) {
  9652. var o = this.text[t].split("|");
  9653. if (-1 == parseInt(o.shift())) {
  9654. var i = this.ff.mainSprite.node;
  9655. this.showDialog(i, o, function() {
  9656. t++;
  9657. e.showDialog1(t);
  9658. });
  9659. } else {
  9660. i = this.node;
  9661. this.showDialog(i, o, function() {
  9662. t++;
  9663. e.showDialog1(t);
  9664. });
  9665. }
  9666. }
  9667. };
  9668. e.prototype.openGear = function() {
  9669. var t = this;
  9670. this.isEnd = !0;
  9671. this.icon && (this.icon.active = !1);
  9672. this.mOpenDoor.children.forEach(function(e) {
  9673. var o = e.getComponent(sp.Skeleton);
  9674. if (o) {
  9675. o.setCompleteListener(function() {
  9676. e.active = !1;
  9677. });
  9678. o.setAnimation(0, "close", !1);
  9679. t.ff.main.playerEffectByPath(a.AudioMgr.openDoor);
  9680. }
  9681. });
  9682. cc.tween(this.ff.mMap.node).sequence(cc.delayTime(1), cc.callFunc(function() {
  9683. t.mOpenDoor.active = !1;
  9684. t.resume();
  9685. })).start();
  9686. };
  9687. r([ u(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  9688. r([ u({
  9689. displayName: "对话内容",
  9690. type: [ cc.String ]
  9691. }) ], e.prototype, "text", void 0);
  9692. r([ u({
  9693. displayName: "完成后的对话",
  9694. type: [ cc.String ]
  9695. }) ], e.prototype, "finish", void 0);
  9696. r([ u({
  9697. displayName: "靠近的提示",
  9698. type: cc.Node
  9699. }) ], e.prototype, "icon", void 0);
  9700. r([ u({
  9701. displayName: "提示图标",
  9702. type: cc.SpriteFrame
  9703. }) ], e.prototype, "mTipsIcon", void 0);
  9704. r([ u({
  9705. displayName: "需要的物品id"
  9706. }) ], e.prototype, "goodId", void 0);
  9707. r([ u({
  9708. displayName: "需要存储的ID"
  9709. }) ], e.prototype, "saveId", void 0);
  9710. r([ u({
  9711. displayName: "需要打开的门",
  9712. type: cc.Node
  9713. }) ], e.prototype, "mOpenDoor", void 0);
  9714. return r([ l ], e);
  9715. }(c.default);
  9716. o.default = f;
  9717. cc._RF.pop();
  9718. }, {
  9719. "../../../../../login/FqLogin": "FqLogin",
  9720. "../../../../../main/ViewManage": "ViewManage",
  9721. "../../base/BaseEvent": "BaseEvent"
  9722. } ],
  9723. FGold: [ function(t, e, o) {
  9724. "use strict";
  9725. cc._RF.push(e, "fd8edE1vIlHdqMZCk4gY4Q4", "FGold");
  9726. var i, n = this && this.__extends || (i = function(t, e) {
  9727. return (i = Object.setPrototypeOf || {
  9728. __proto__: []
  9729. } instanceof Array && function(t, e) {
  9730. t.__proto__ = e;
  9731. } || function(t, e) {
  9732. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  9733. })(t, e);
  9734. }, function(t, e) {
  9735. i(t, e);
  9736. function o() {
  9737. this.constructor = t;
  9738. }
  9739. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  9740. }), r = this && this.__decorate || function(t, e, o, i) {
  9741. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  9742. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  9743. return r > 3 && c && Object.defineProperty(e, o, c), c;
  9744. };
  9745. Object.defineProperty(o, "__esModule", {
  9746. value: !0
  9747. });
  9748. var c = t("../../../main/ViewManage"), a = t("./base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  9749. n(e, t);
  9750. function e() {
  9751. var e = null !== t && t.apply(this, arguments) || this;
  9752. e.mGuideMark = null;
  9753. return e;
  9754. }
  9755. e.prototype.onLoad = function() {
  9756. t.prototype.onLoad.call(this);
  9757. this.node.zIndex = 9999;
  9758. };
  9759. e.prototype.onBegin = function() {
  9760. var t = this;
  9761. this.mGuideMark && (this.mGuideMark.active = !1);
  9762. this.node.getChildByName("ani_zuanshi") && this.ff.main.playerEffectByPath(c.AudioMgr.amethyst);
  9763. this.node.removeComponent(cc.PhysicsBoxCollider);
  9764. var e, o = cc.moveBy(1, cc.v2(0, 200)).easing(cc.easeSineOut()), i = cc.fadeOut(1), n = cc.sequence(cc.scaleTo(.1, 1.8), cc.scaleTo(.2, 2));
  9765. e = cc.spawn(o, i, n);
  9766. var r = cc.sequence(cc.delayTime(.1), e, cc.callFunc(function() {
  9767. t.node.removeFromParent(!0);
  9768. t.node.destroy();
  9769. "109" == t.node.name && t.ff.main.viewManage.loadFunc(c.GameViewType.fight_zsj_tips, function(t) {
  9770. t.show();
  9771. });
  9772. }));
  9773. this.node.runAction(r);
  9774. this.ff.getMapObject(this.node.name);
  9775. };
  9776. e.prototype.onEnd = function() {};
  9777. r([ l({
  9778. type: cc.Node,
  9779. displayName: "引导箭头标识"
  9780. }) ], e.prototype, "mGuideMark", void 0);
  9781. return r([ p ], e);
  9782. }(a.default);
  9783. o.default = u;
  9784. cc._RF.pop();
  9785. }, {
  9786. "../../../main/ViewManage": "ViewManage",
  9787. "./base/BaseEvent": "BaseEvent"
  9788. } ],
  9789. FGrassShard: [ function(t, e, o) {
  9790. "use strict";
  9791. cc._RF.push(e, "be338iNKm9MtqRPOklFulPW", "FGrassShard");
  9792. var i, n = this && this.__extends || (i = function(t, e) {
  9793. return (i = Object.setPrototypeOf || {
  9794. __proto__: []
  9795. } instanceof Array && function(t, e) {
  9796. t.__proto__ = e;
  9797. } || function(t, e) {
  9798. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  9799. })(t, e);
  9800. }, function(t, e) {
  9801. i(t, e);
  9802. function o() {
  9803. this.constructor = t;
  9804. }
  9805. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  9806. }), r = this && this.__decorate || function(t, e, o, i) {
  9807. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  9808. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  9809. return r > 3 && c && Object.defineProperty(e, o, c), c;
  9810. };
  9811. Object.defineProperty(o, "__esModule", {
  9812. value: !0
  9813. });
  9814. var c = t("../object/FObject"), a = cc._decorator, s = a.ccclass, p = (a.property,
  9815. function(t) {
  9816. n(e, t);
  9817. function e() {
  9818. var e = null !== t && t.apply(this, arguments) || this;
  9819. e.count = 0;
  9820. return e;
  9821. }
  9822. e.prototype.onBeginContact = function(t, e, o) {
  9823. if ("A" == o.node.group && o.node.getComponent(c.default)) {
  9824. this.count++;
  9825. this.node.opacity = 100;
  9826. }
  9827. };
  9828. e.prototype.onEndContact = function(t, e, o) {
  9829. if ("A" == o.node.group && o.node.getComponent(c.default)) {
  9830. this.count--;
  9831. this.count <= 0 && (this.node.opacity = 255);
  9832. }
  9833. };
  9834. return r([ s ], e);
  9835. }(cc.Component));
  9836. o.default = p;
  9837. cc._RF.pop();
  9838. }, {
  9839. "../object/FObject": "FObject"
  9840. } ],
  9841. FHD_ZB: [ function(t, e, o) {
  9842. "use strict";
  9843. cc._RF.push(e, "4fc4ekH5jZBCoQjG8YnmpDC", "FHD_ZB");
  9844. var i, n = this && this.__extends || (i = function(t, e) {
  9845. return (i = Object.setPrototypeOf || {
  9846. __proto__: []
  9847. } instanceof Array && function(t, e) {
  9848. t.__proto__ = e;
  9849. } || function(t, e) {
  9850. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  9851. })(t, e);
  9852. }, function(t, e) {
  9853. i(t, e);
  9854. function o() {
  9855. this.constructor = t;
  9856. }
  9857. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  9858. }), r = this && this.__decorate || function(t, e, o, i) {
  9859. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  9860. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  9861. return r > 3 && c && Object.defineProperty(e, o, c), c;
  9862. };
  9863. Object.defineProperty(o, "__esModule", {
  9864. value: !0
  9865. });
  9866. var c = t("../../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = (a.property,
  9867. function(t) {
  9868. n(e, t);
  9869. function e() {
  9870. return null !== t && t.apply(this, arguments) || this;
  9871. }
  9872. e.prototype.onLoad = function() {};
  9873. e.prototype.onclick = function() {};
  9874. return r([ s ], e);
  9875. }(c.default));
  9876. o.default = p;
  9877. cc._RF.pop();
  9878. }, {
  9879. "../../../main/ViewObject": "ViewObject"
  9880. } ],
  9881. FHitBoxOpenDoor: [ function(t, e, o) {
  9882. "use strict";
  9883. cc._RF.push(e, "3e601I+7b9PMpLA7ubv5SKL", "FHitBoxOpenDoor");
  9884. var i, n = this && this.__extends || (i = function(t, e) {
  9885. return (i = Object.setPrototypeOf || {
  9886. __proto__: []
  9887. } instanceof Array && function(t, e) {
  9888. t.__proto__ = e;
  9889. } || function(t, e) {
  9890. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  9891. })(t, e);
  9892. }, function(t, e) {
  9893. i(t, e);
  9894. function o() {
  9895. this.constructor = t;
  9896. }
  9897. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  9898. }), r = this && this.__decorate || function(t, e, o, i) {
  9899. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  9900. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  9901. return r > 3 && c && Object.defineProperty(e, o, c), c;
  9902. };
  9903. Object.defineProperty(o, "__esModule", {
  9904. value: !0
  9905. });
  9906. var c = t("../../object/FSprite"), a = t("./FHitBox"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  9907. n(e, t);
  9908. function e() {
  9909. var e = null !== t && t.apply(this, arguments) || this;
  9910. e.mOtherBox = [];
  9911. e.isClose = !1;
  9912. return e;
  9913. }
  9914. o = e;
  9915. e.prototype.hitBox = function() {
  9916. var t = this;
  9917. this.onEnd(1);
  9918. this.ff.pauseSprite(!0);
  9919. this.node.removeComponent(cc.PhysicsBoxCollider);
  9920. this.node.removeComponent(cc.PhysicsBoxCollider);
  9921. var e = this.ff.mainSprite;
  9922. e.useHammer();
  9923. e.playAction2(c.SpriteActionType.chuizi, !1, function() {
  9924. t.ff.pauseSprite(!1);
  9925. e.playAction2(c.SpriteActionType.stand, !0);
  9926. e.updateSkin();
  9927. });
  9928. this.isClose = !0;
  9929. cc.tween(e.node).sequence(cc.delayTime(.2), cc.callFunc(function() {
  9930. t.spine.setCompleteListener(function() {
  9931. t.node.destroy();
  9932. });
  9933. t.openDoor();
  9934. t.spine.setAnimation(0, "boom", !1);
  9935. })).start();
  9936. };
  9937. e.prototype.openDoor = function() {
  9938. for (var t = this, e = 0; e < this.mOtherBox.length; e++) {
  9939. var i = this.mOtherBox[e];
  9940. if (i.isValid && !i.getComponent(o).isClose) return;
  9941. }
  9942. this.pause();
  9943. this.moveCamera(this.hide.getPosition(), 1, function() {
  9944. t.resume();
  9945. t.hide && t.hide.isValid && (t.hide.active = !0);
  9946. });
  9947. };
  9948. var o;
  9949. r([ l({
  9950. displayName: "需要打碎的其它箱子",
  9951. type: [ cc.Node ]
  9952. }) ], e.prototype, "mOtherBox", void 0);
  9953. return o = r([ p ], e);
  9954. }(a.default);
  9955. o.default = u;
  9956. cc._RF.pop();
  9957. }, {
  9958. "../../object/FSprite": "FSprite",
  9959. "./FHitBox": "FHitBox"
  9960. } ],
  9961. FHitBox: [ function(t, e, o) {
  9962. "use strict";
  9963. cc._RF.push(e, "3768f8jiWJDQ427kxDEoPa6", "FHitBox");
  9964. var i, n = this && this.__extends || (i = function(t, e) {
  9965. return (i = Object.setPrototypeOf || {
  9966. __proto__: []
  9967. } instanceof Array && function(t, e) {
  9968. t.__proto__ = e;
  9969. } || function(t, e) {
  9970. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  9971. })(t, e);
  9972. }, function(t, e) {
  9973. i(t, e);
  9974. function o() {
  9975. this.constructor = t;
  9976. }
  9977. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  9978. }), r = this && this.__decorate || function(t, e, o, i) {
  9979. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  9980. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  9981. return r > 3 && c && Object.defineProperty(e, o, c), c;
  9982. };
  9983. Object.defineProperty(o, "__esModule", {
  9984. value: !0
  9985. });
  9986. var c = t("../../../../main/ViewManage"), a = t("../../object/FSprite"), s = t(".././base/BaseEvent"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  9987. n(e, t);
  9988. function e() {
  9989. var e = null !== t && t.apply(this, arguments) || this;
  9990. e.spine = null;
  9991. e.icon = null;
  9992. e.hide = null;
  9993. e.mTipsIcon = null;
  9994. e.isOver = !1;
  9995. return e;
  9996. }
  9997. e.prototype.onLoad = function() {
  9998. t.prototype.onLoad.call(this);
  9999. this.icon && (this.icon.active = !1);
  10000. this.hide && this.hide.isValid && (this.hide.active = !1);
  10001. };
  10002. e.prototype.start = function() {
  10003. this.hide && this.ff.mMap.checkIn(this.hide.name) && this.node.destroy();
  10004. };
  10005. e.prototype.onBegin = function(t) {
  10006. var e = this;
  10007. this.isOver || (1 == t ? this.showOpt(this.mTipsIcon, function() {
  10008. e.isOver = !0;
  10009. e.hitBox();
  10010. }) : 2 == t && this.icon && (this.icon.active = !0));
  10011. };
  10012. e.prototype.onEnd = function(t) {
  10013. 1 == t ? this.closeOpt() : 2 == t && this.icon && (this.icon.active = !1);
  10014. };
  10015. e.prototype.hitBox = function() {
  10016. var t = this;
  10017. this.onEnd(1);
  10018. this.ff.pauseSprite(!0);
  10019. this.node.removeComponent(cc.PhysicsBoxCollider);
  10020. this.node.removeComponent(cc.PhysicsBoxCollider);
  10021. var e = this.ff.mainSprite;
  10022. e.useHammer();
  10023. e.playAction2(a.SpriteActionType.chuizi, !1, function() {
  10024. t.ff.pauseSprite(!1);
  10025. e.playAction2(a.SpriteActionType.stand, !0);
  10026. e.updateSkin();
  10027. });
  10028. cc.tween(e.node).sequence(cc.delayTime(.2), cc.callFunc(function() {
  10029. if (t.spine) {
  10030. t.spine.setCompleteListener(function() {
  10031. t.node.destroy();
  10032. });
  10033. t.hide && t.hide.isValid && (t.hide.active = !0);
  10034. t.spine.setAnimation(0, "boom", !1);
  10035. }
  10036. t.ff.main.playerEffectByPath(c.AudioMgr.wooden);
  10037. })).start();
  10038. };
  10039. r([ u(sp.Skeleton) ], e.prototype, "spine", void 0);
  10040. r([ u({
  10041. displayName: "靠近的提示",
  10042. type: cc.Node
  10043. }) ], e.prototype, "icon", void 0);
  10044. r([ u({
  10045. displayName: "打碎后显示",
  10046. type: cc.Node
  10047. }) ], e.prototype, "hide", void 0);
  10048. r([ u({
  10049. displayName: "提示图标",
  10050. type: cc.SpriteFrame
  10051. }) ], e.prototype, "mTipsIcon", void 0);
  10052. return r([ l ], e);
  10053. }(s.default);
  10054. o.default = f;
  10055. cc._RF.pop();
  10056. }, {
  10057. "../../../../main/ViewManage": "ViewManage",
  10058. "../../object/FSprite": "FSprite",
  10059. ".././base/BaseEvent": "BaseEvent"
  10060. } ],
  10061. FHitMound: [ function(t, e, o) {
  10062. "use strict";
  10063. cc._RF.push(e, "0358cMYT01PApfo2fh1hODK", "FHitMound");
  10064. var i, n = this && this.__extends || (i = function(t, e) {
  10065. return (i = Object.setPrototypeOf || {
  10066. __proto__: []
  10067. } instanceof Array && function(t, e) {
  10068. t.__proto__ = e;
  10069. } || function(t, e) {
  10070. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  10071. })(t, e);
  10072. }, function(t, e) {
  10073. i(t, e);
  10074. function o() {
  10075. this.constructor = t;
  10076. }
  10077. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  10078. }), r = this && this.__decorate || function(t, e, o, i) {
  10079. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  10080. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  10081. return r > 3 && c && Object.defineProperty(e, o, c), c;
  10082. };
  10083. Object.defineProperty(o, "__esModule", {
  10084. value: !0
  10085. });
  10086. var c = t("../object/FSprite"), a = t("./base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  10087. n(e, t);
  10088. function e() {
  10089. var e = null !== t && t.apply(this, arguments) || this;
  10090. e.spine = null;
  10091. e.icon = null;
  10092. e.hide = null;
  10093. e.mTipsIcon = null;
  10094. e.mHitCount = 1;
  10095. e.hitCount = 0;
  10096. return e;
  10097. }
  10098. e.prototype.onLoad = function() {
  10099. t.prototype.onLoad.call(this);
  10100. this.icon && (this.icon.active = !1);
  10101. this.hide && this.hide.isValid && (this.hide.active = !1);
  10102. };
  10103. e.prototype.onBegin = function(t) {
  10104. var e = this;
  10105. 1 == t ? this.showOpt(this.mTipsIcon, function() {
  10106. e.hitCount++;
  10107. var t = e.ff.mainSprite;
  10108. t.useHammer();
  10109. t.playAction2(c.SpriteActionType.chuizi, !1, function() {
  10110. e.ff.pauseSprite(!1);
  10111. t.playAction2(c.SpriteActionType.stand, !0);
  10112. t.updateSkin();
  10113. });
  10114. e.hitCount >= e.mHitCount ? e.hitBox() : e.spine.setAnimation(0, "hit", !1);
  10115. }) : 2 == t && this.icon && (this.icon.active = !0);
  10116. };
  10117. e.prototype.onEnd = function(t) {
  10118. 1 == t ? this.closeOpt() : 2 == t && this.icon && (this.icon.active = !1);
  10119. };
  10120. e.prototype.hitBox = function() {
  10121. var t = this;
  10122. this.onEnd(1);
  10123. this.ff.pauseSprite(!0);
  10124. this.node.removeComponent(cc.PhysicsBoxCollider);
  10125. this.node.removeComponent(cc.PhysicsBoxCollider);
  10126. var e = this.ff.mainSprite;
  10127. e.useHammer();
  10128. e.playAction2(c.SpriteActionType.chuizi, !1, function() {
  10129. t.ff.pauseSprite(!1);
  10130. e.playAction2(c.SpriteActionType.stand, !0);
  10131. e.updateSkin();
  10132. });
  10133. cc.tween(e.node).sequence(cc.delayTime(.2), cc.callFunc(function() {
  10134. t.spine.setCompleteListener(function() {
  10135. t.node.destroy();
  10136. });
  10137. t.hide && t.hide.isValid && (t.hide.active = !0);
  10138. t.spine.setAnimation(0, "dead", !1);
  10139. })).start();
  10140. };
  10141. r([ l(sp.Skeleton) ], e.prototype, "spine", void 0);
  10142. r([ l({
  10143. displayName: "靠近的提示",
  10144. type: cc.Node
  10145. }) ], e.prototype, "icon", void 0);
  10146. r([ l({
  10147. displayName: "打碎后显示",
  10148. type: cc.Node
  10149. }) ], e.prototype, "hide", void 0);
  10150. r([ l({
  10151. displayName: "提示图标",
  10152. type: cc.SpriteFrame
  10153. }) ], e.prototype, "mTipsIcon", void 0);
  10154. r([ l({
  10155. displayName: "敲击次数"
  10156. }) ], e.prototype, "mHitCount", void 0);
  10157. return r([ p ], e);
  10158. }(a.default);
  10159. o.default = u;
  10160. cc._RF.pop();
  10161. }, {
  10162. "../object/FSprite": "FSprite",
  10163. "./base/BaseEvent": "BaseEvent"
  10164. } ],
  10165. FIconBlink: [ function(t, e, o) {
  10166. "use strict";
  10167. cc._RF.push(e, "07ac2M4oy1N3qsSirba0WQ9", "FIconBlink");
  10168. var i, n = this && this.__extends || (i = function(t, e) {
  10169. return (i = Object.setPrototypeOf || {
  10170. __proto__: []
  10171. } instanceof Array && function(t, e) {
  10172. t.__proto__ = e;
  10173. } || function(t, e) {
  10174. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  10175. })(t, e);
  10176. }, function(t, e) {
  10177. i(t, e);
  10178. function o() {
  10179. this.constructor = t;
  10180. }
  10181. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  10182. }), r = this && this.__decorate || function(t, e, o, i) {
  10183. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  10184. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  10185. return r > 3 && c && Object.defineProperty(e, o, c), c;
  10186. };
  10187. Object.defineProperty(o, "__esModule", {
  10188. value: !0
  10189. });
  10190. var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) {
  10191. n(e, t);
  10192. function e() {
  10193. return null !== t && t.apply(this, arguments) || this;
  10194. }
  10195. e.prototype.onLoad = function() {
  10196. cc.tween(this.node).repeatForever(cc.blink(.5, 1)).start();
  10197. };
  10198. return r([ a ], e);
  10199. }(cc.Component));
  10200. o.default = s;
  10201. cc._RF.pop();
  10202. }, {} ],
  10203. FLiteMap: [ function(t, e, o) {
  10204. "use strict";
  10205. cc._RF.push(e, "764c5KNICBGAaGFeY6yI3HS", "FLiteMap");
  10206. var i, n = this && this.__extends || (i = function(t, e) {
  10207. return (i = Object.setPrototypeOf || {
  10208. __proto__: []
  10209. } instanceof Array && function(t, e) {
  10210. t.__proto__ = e;
  10211. } || function(t, e) {
  10212. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  10213. })(t, e);
  10214. }, function(t, e) {
  10215. i(t, e);
  10216. function o() {
  10217. this.constructor = t;
  10218. }
  10219. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  10220. }), r = this && this.__decorate || function(t, e, o, i) {
  10221. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  10222. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  10223. return r > 3 && c && Object.defineProperty(e, o, c), c;
  10224. };
  10225. Object.defineProperty(o, "__esModule", {
  10226. value: !0
  10227. });
  10228. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  10229. n(e, t);
  10230. function e() {
  10231. var e = null !== t && t.apply(this, arguments) || this;
  10232. e.maskNode = null;
  10233. e.mIcon = null;
  10234. e.mMapSprite = null;
  10235. e.grid = new Array();
  10236. e.tempDrawPoint = null;
  10237. return e;
  10238. }
  10239. e.prototype.onLoad = function() {
  10240. var t = this.maskNode.getComponent(cc.Mask);
  10241. this.stencil = t._graphics;
  10242. this.stencil.lineWidth = 20;
  10243. this.stencil.lineCap = cc.Graphics.LineCap.ROUND;
  10244. this.stencil.lineJoin = cc.Graphics.LineJoin.ROUND;
  10245. this.stencil.strokeColor = cc.color(255, 255, 255, 255);
  10246. for (var e = 0; e < this.node.height; e++) {
  10247. this.grid.push([]);
  10248. for (var o = 0; o < this.node.width; o++) this.grid[e].push(0);
  10249. }
  10250. };
  10251. e.prototype.loadMap = function(t) {
  10252. var e = this;
  10253. cc.resources.load("icon/map/" + t, cc.SpriteFrame, function(t, o) {
  10254. t ? cc.error(t) : e.mMapSprite.spriteFrame = o;
  10255. });
  10256. };
  10257. e.prototype.initMap = function(t) {
  10258. this.ff = t;
  10259. this.node.getComponent(cc.Widget).target = this.ff.main.node;
  10260. };
  10261. e.prototype.transform = function(t) {
  10262. var e = Math.floor(t.x * this.node.width / this.ff.mMap.node.width), o = Math.floor(t.y * this.node.height / this.ff.mMap.node.height);
  10263. return cc.v2(e, o);
  10264. };
  10265. e.prototype.clearMask = function(t) {
  10266. var e = this.transform(t);
  10267. if (1 != this.grid[e.y][e.x]) if (null == this.tempDrawPoint) {
  10268. this.stencil.circle(e.x, e.y, 5);
  10269. this.stencil.fill();
  10270. this.tempDrawPoint = e;
  10271. this.mIcon.setPosition(e);
  10272. this.grid[e.y][e.x] = 1;
  10273. } else if (this.tempDrawPoint.x == e.x && this.tempDrawPoint.y == e.y) ; else {
  10274. var o = this.tempDrawPoint, i = e;
  10275. this.stencil.moveTo(o.x, o.y);
  10276. this.stencil.lineTo(i.x, i.y);
  10277. this.stencil.stroke();
  10278. this.tempDrawPoint = e;
  10279. this.mIcon.setPosition(e);
  10280. this.grid[e.y][e.x] = 1;
  10281. }
  10282. };
  10283. e.prototype.reset = function() {
  10284. this.maskNode.getComponent(cc.Mask)._graphics.clear();
  10285. };
  10286. r([ s(cc.Node) ], e.prototype, "maskNode", void 0);
  10287. r([ s(cc.Node) ], e.prototype, "mIcon", void 0);
  10288. r([ s(cc.Sprite) ], e.prototype, "mMapSprite", void 0);
  10289. return r([ a ], e);
  10290. }(cc.Component);
  10291. o.default = p;
  10292. cc._RF.pop();
  10293. }, {} ],
  10294. FLoad: [ function(t, e, o) {
  10295. "use strict";
  10296. cc._RF.push(e, "5c721RZVZJBP6b3dOFrZdBH", "FLoad");
  10297. Object.defineProperty(o, "__esModule", {
  10298. value: !0
  10299. });
  10300. var i = t("./map/FMap"), n = t("./object/MSprite"), r = t("./object/PSprite"), c = function() {
  10301. function t() {}
  10302. t.loadMap = function(t, e, o) {
  10303. cc.resources.load("prefab/map/" + e.mapId, cc.Prefab, function(n, r) {
  10304. if (n) cc.error(n); else {
  10305. var c = cc.instantiate(r).getComponent(i.default);
  10306. t.mLietMap.loadMap(e.mapId);
  10307. o(c);
  10308. }
  10309. });
  10310. };
  10311. t.loadRole = function(t, e, o) {
  10312. if (e.length <= 0) o([]); else {
  10313. for (var i = [], c = 0; c < e.length; c++) {
  10314. var a = e[c];
  10315. i.push(a.path);
  10316. }
  10317. cc.resources.load(i, cc.Prefab, function(i, c) {
  10318. if (i) cc.error(i); else {
  10319. for (var a = t.main.player, s = [], p = 0; p < e.length; p++) {
  10320. var l = c[p], u = cc.instantiate(l), f = null;
  10321. (f = e[p].id == a.role.leader ? u.addComponent(n.default) : u.addComponent(r.default)).ff = t;
  10322. f.setAttrData(e[p]);
  10323. f.hp = f.attrData.hp;
  10324. s.push(f);
  10325. }
  10326. o(s);
  10327. }
  10328. });
  10329. }
  10330. };
  10331. return t;
  10332. }();
  10333. o.default = c;
  10334. cc._RF.pop();
  10335. }, {
  10336. "./map/FMap": "FMap",
  10337. "./object/MSprite": "MSprite",
  10338. "./object/PSprite": "PSprite"
  10339. } ],
  10340. FMapDialog: [ function(t, e, o) {
  10341. "use strict";
  10342. cc._RF.push(e, "f3dedfoaPtE1IiyWQ1qcdVi", "FMapDialog");
  10343. Object.defineProperty(o, "__esModule", {
  10344. value: !0
  10345. });
  10346. var i = t("../map1/WOneByone"), n = function() {
  10347. function t(t, e) {
  10348. this.ff = t;
  10349. this.mMapDialog = e;
  10350. }
  10351. t.prototype.showDialog = function(t, e, o, n) {
  10352. var r = this, c = cc.instantiate(this.mMapDialog);
  10353. c.group = "map";
  10354. c.zIndex = 9999;
  10355. c.x = e.x;
  10356. c.y = e.y;
  10357. c.parent = this.ff.mMap.mSprites;
  10358. var a = c.getComponent(i.default);
  10359. this.ff.mBlockInputEvents.active = !0;
  10360. a.dialogs = t;
  10361. a.spine = o;
  10362. a.setCallback(function() {
  10363. c.destroy();
  10364. r.ff.setBlockInputCallback(null);
  10365. r.ff.mBlockInputEvents.active = !1;
  10366. n();
  10367. });
  10368. this.ff.setBlockInputCallback(function() {
  10369. a.jump();
  10370. });
  10371. a._start();
  10372. };
  10373. return t;
  10374. }();
  10375. o.default = n;
  10376. cc._RF.pop();
  10377. }, {
  10378. "../map1/WOneByone": "WOneByone"
  10379. } ],
  10380. FMap: [ function(t, e, o) {
  10381. "use strict";
  10382. cc._RF.push(e, "8b035ikh5dA9pFG8DzzDakl", "FMap");
  10383. var i, n = this && this.__extends || (i = function(t, e) {
  10384. return (i = Object.setPrototypeOf || {
  10385. __proto__: []
  10386. } instanceof Array && function(t, e) {
  10387. t.__proto__ = e;
  10388. } || function(t, e) {
  10389. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  10390. })(t, e);
  10391. }, function(t, e) {
  10392. i(t, e);
  10393. function o() {
  10394. this.constructor = t;
  10395. }
  10396. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  10397. }), r = this && this.__decorate || function(t, e, o, i) {
  10398. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  10399. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  10400. return r > 3 && c && Object.defineProperty(e, o, c), c;
  10401. };
  10402. Object.defineProperty(o, "__esModule", {
  10403. value: !0
  10404. });
  10405. var c = t("../evnet/guide/GuideBase"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  10406. n(e, t);
  10407. function e() {
  10408. var e = null !== t && t.apply(this, arguments) || this;
  10409. e.mSprites = null;
  10410. e.mInit = null;
  10411. e.mRooms = null;
  10412. e.mBgm = null;
  10413. e.mGuide = null;
  10414. e.shoot = cc.v2();
  10415. e.mCamera = null;
  10416. e.rooms = null;
  10417. e.midWidth = 360;
  10418. e.midHeidht = 640;
  10419. e.curRoom = null;
  10420. e.cellSize = 64;
  10421. return e;
  10422. }
  10423. e.prototype.onLoad = function() {
  10424. this.midWidth = cc.winSize.width / 2;
  10425. this.midHeidht = cc.winSize.height / 2;
  10426. this.rooms = this.mRooms.children;
  10427. };
  10428. e.prototype.getRoom = function() {
  10429. for (var t = 0; t < this.rooms.length; t++) {
  10430. var e = this.rooms[t];
  10431. if (this.inRoom(e)) return e;
  10432. }
  10433. return null;
  10434. };
  10435. e.prototype.inRoom = function(t) {
  10436. return !(this.shoot.x <= t.x || this.shoot.y <= t.y || this.shoot.x >= t.x + t.width || this.shoot.y >= t.y + t.height);
  10437. };
  10438. e.prototype.setFF = function(t) {
  10439. var e = this;
  10440. this.ff = t;
  10441. this.mSprites.children.forEach(function(t) {
  10442. e.checkIn(t.name) && t.destroy();
  10443. });
  10444. this.mBgm && t.main.playMusicByClip(this.mBgm);
  10445. };
  10446. e.prototype.checkIn = function(t) {
  10447. return this.ff.main.player.stage.element.indexOf(t) >= 0;
  10448. };
  10449. e.prototype.initCamera = function() {
  10450. var t = cc.winSize, e = this.shoot, o = e.x - this.midWidth;
  10451. if (o != this.mCamera.node.x) {
  10452. this.mCamera.node.x = o;
  10453. this.mCamera.node.x < 0 && (this.mCamera.node.x = 0);
  10454. this.mCamera.node.x > this.node.width - t.width && (this.mCamera.node.x = this.node.width - t.width);
  10455. }
  10456. var i = e.y - this.midHeidht;
  10457. if (i != this.mCamera.node.y) {
  10458. this.mCamera.node.y = i;
  10459. this.mCamera.node.y < 0 && (this.mCamera.node.y = 0);
  10460. this.mCamera.node.y > this.node.height - t.height && (this.mCamera.node.y = this.node.height - t.height);
  10461. }
  10462. if (this.mGuide) {
  10463. this.mGuide.ff = this.ff;
  10464. this.mGuide.run();
  10465. }
  10466. };
  10467. e.prototype.pauseFF = function() {
  10468. var t = this;
  10469. this.ff.mainSprite.setPause(!0);
  10470. cc.tween(this).sequence(cc.delayTime(.6), cc.callFunc(function() {
  10471. t.ff.mainSprite.setPause(!1);
  10472. })).start();
  10473. };
  10474. e.prototype.lateUpdate = function(t) {
  10475. this.spriteOrder();
  10476. this.ff.mMu.x = this.mCamera.node.x + this.midWidth;
  10477. this.ff.mMu.y = this.mCamera.node.y + this.midHeidht;
  10478. if (this.ff.lockCamera) {
  10479. var e = this.getRoom();
  10480. if (e) {
  10481. if (this.curRoom != e) {
  10482. null != this.curRoom && this.pauseFF();
  10483. this.curRoom = e;
  10484. }
  10485. var o = cc.winSize, i = this.shoot, n = i.x - this.midWidth, r = e.x + e.width - o.width;
  10486. n < e.x ? n = e.x : n > r && (n = r);
  10487. if (n != this.mCamera.node.x) {
  10488. var c = n - this.mCamera.node.x;
  10489. if (c >= -5 && c <= 5) this.mCamera.node.x = n; else {
  10490. var a = c / 10;
  10491. Math.abs(a) < 5 && (a = a > 0 ? 5 : -5);
  10492. a *= 1 + t;
  10493. this.mCamera.node.x += a;
  10494. }
  10495. }
  10496. var s = i.y - this.midHeidht, p = e.y + e.height - o.height;
  10497. s < e.y ? s = e.y : s > p && (s = p);
  10498. if (s != this.mCamera.node.y) {
  10499. var l = s - this.mCamera.node.y;
  10500. if (l >= -5 && l <= 5) this.mCamera.node.y = s; else {
  10501. var u = l / 10;
  10502. Math.abs(u) < 5 && (u = u > 0 ? 5 : -5);
  10503. u *= 1 + t;
  10504. this.mCamera.node.y += u;
  10505. }
  10506. }
  10507. }
  10508. }
  10509. };
  10510. e.prototype.spriteOrder = function() {
  10511. for (var t = this.mSprites.children, e = 0; e < t.length; e++) {
  10512. var o = t[e];
  10513. if (9999 == o.zIndex || -9999 == o.zIndex) ; else {
  10514. var i = (cc.macro.MAX_ZINDEX - o.y) / 10;
  10515. o.zIndex = i;
  10516. }
  10517. }
  10518. };
  10519. e.prototype.addSprite = function(t) {
  10520. t.ff = this.ff;
  10521. t.map = this;
  10522. this.mSprites.addChild(t.node);
  10523. };
  10524. e.prototype.setCamera = function(t) {
  10525. this.mCamera = t;
  10526. };
  10527. e.prototype.updateShoot = function(t, e) {
  10528. if (this.shoot.x == t && this.shoot.y == e) return !1;
  10529. this.shoot.x = t;
  10530. this.shoot.y = e;
  10531. return !0;
  10532. };
  10533. e.prototype.getSprites = function() {
  10534. return this.mSprites.children;
  10535. };
  10536. e.prototype.cameraStop = function() {
  10537. return !1;
  10538. };
  10539. r([ p(cc.Node) ], e.prototype, "mSprites", void 0);
  10540. r([ p(cc.Node) ], e.prototype, "mInit", void 0);
  10541. r([ p(cc.Node) ], e.prototype, "mRooms", void 0);
  10542. r([ p(cc.AudioClip) ], e.prototype, "mBgm", void 0);
  10543. r([ p(c.default) ], e.prototype, "mGuide", void 0);
  10544. return r([ s ], e);
  10545. }(cc.Component);
  10546. o.default = l;
  10547. cc._RF.pop();
  10548. }, {
  10549. "../evnet/guide/GuideBase": "GuideBase"
  10550. } ],
  10551. FMqs: [ function(t, e, o) {
  10552. "use strict";
  10553. cc._RF.push(e, "98fadAv5PxInJHDR7dxXugX", "FMqs");
  10554. var i, n = this && this.__extends || (i = function(t, e) {
  10555. return (i = Object.setPrototypeOf || {
  10556. __proto__: []
  10557. } instanceof Array && function(t, e) {
  10558. t.__proto__ = e;
  10559. } || function(t, e) {
  10560. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  10561. })(t, e);
  10562. }, function(t, e) {
  10563. i(t, e);
  10564. function o() {
  10565. this.constructor = t;
  10566. }
  10567. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  10568. }), r = this && this.__decorate || function(t, e, o, i) {
  10569. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  10570. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  10571. return r > 3 && c && Object.defineProperty(e, o, c), c;
  10572. };
  10573. Object.defineProperty(o, "__esModule", {
  10574. value: !0
  10575. });
  10576. var c = t("../object/FObject"), a = t("../box/DialogButton"), s = t("../../../i18n/i18n"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  10577. n(e, t);
  10578. function e() {
  10579. var e = null !== t && t.apply(this, arguments) || this;
  10580. e.mDialog = null;
  10581. e.mDialog1 = null;
  10582. e.temp = null;
  10583. e.ff = null;
  10584. e.count = 0;
  10585. return e;
  10586. }
  10587. e.prototype.onBeginContact = function(t, e, o) {
  10588. if ("A" == o.node.group) {
  10589. var i = o.node.getComponent(c.default);
  10590. if (i) {
  10591. var n = i.ff;
  10592. this.ff = n;
  10593. this.count++;
  10594. this.showButton(n);
  10595. }
  10596. }
  10597. };
  10598. e.prototype.onEndContact = function(t, e, o) {
  10599. if ("A" == o.node.group) {
  10600. var i = o.node.getComponent(c.default);
  10601. if (i) {
  10602. i.ff;
  10603. this.count--;
  10604. this.count <= 0 && this.closeButton();
  10605. }
  10606. }
  10607. };
  10608. e.prototype.showButton = function(t) {
  10609. var e = this;
  10610. if (!this.temp) {
  10611. var o = cc.instantiate(this.mDialog);
  10612. t.main.viewManage.popView(o);
  10613. this.temp = o;
  10614. var i = o.getComponent(a.default);
  10615. i.label.string = s.default.t("饮用");
  10616. i.setCallback(function() {
  10617. e.closeButton();
  10618. e.openDialog();
  10619. });
  10620. }
  10621. };
  10622. e.prototype.closeButton = function() {
  10623. this.count = 0;
  10624. if (this.temp) {
  10625. this.temp.destroy();
  10626. this.temp = null;
  10627. }
  10628. };
  10629. e.prototype.openDialog = function() {
  10630. var t = cc.instantiate(this.mDialog1);
  10631. this.ff.main.viewManage.popView(t);
  10632. };
  10633. r([ u({
  10634. type: cc.Prefab,
  10635. displayName: "事件按钮"
  10636. }) ], e.prototype, "mDialog", void 0);
  10637. r([ u({
  10638. type: cc.Prefab,
  10639. displayName: "对话框"
  10640. }) ], e.prototype, "mDialog1", void 0);
  10641. return r([ l ], e);
  10642. }(cc.Component);
  10643. o.default = f;
  10644. cc._RF.pop();
  10645. }, {
  10646. "../../../i18n/i18n": "i18n",
  10647. "../box/DialogButton": "DialogButton",
  10648. "../object/FObject": "FObject"
  10649. } ],
  10650. FObjectFly: [ function(t, e, o) {
  10651. "use strict";
  10652. cc._RF.push(e, "3f6aeRiO29NnL3Cd2e8HaG0", "FObjectFly");
  10653. var i, n = this && this.__extends || (i = function(t, e) {
  10654. return (i = Object.setPrototypeOf || {
  10655. __proto__: []
  10656. } instanceof Array && function(t, e) {
  10657. t.__proto__ = e;
  10658. } || function(t, e) {
  10659. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  10660. })(t, e);
  10661. }, function(t, e) {
  10662. i(t, e);
  10663. function o() {
  10664. this.constructor = t;
  10665. }
  10666. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  10667. }), r = this && this.__decorate || function(t, e, o, i) {
  10668. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  10669. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  10670. return r > 3 && c && Object.defineProperty(e, o, c), c;
  10671. };
  10672. Object.defineProperty(o, "__esModule", {
  10673. value: !0
  10674. });
  10675. var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) {
  10676. n(e, t);
  10677. function e() {
  10678. var e = null !== t && t.apply(this, arguments) || this;
  10679. e.move = !1;
  10680. return e;
  10681. }
  10682. e.prototype.update = function(t) {
  10683. if (this.move && this.ff.mainSprite && this.ff.mainSprite.node) {
  10684. var e = this.ff.mainSprite.node, o = e.getPosition();
  10685. o.y = o.y + e.height / 2;
  10686. this.Genzong(o, t) && this.node.destroy();
  10687. }
  10688. };
  10689. e.prototype.Genzong = function(t, e) {
  10690. var o = t, i = cc.v2(this.node.x, this.node.y), n = o.sub(i), r = i.sub(o).mag();
  10691. if (r <= 10) return !0;
  10692. var c = i.x + 700 * e * n.x / r, a = i.y + 700 * e * n.y / r, s = cc.v2(c, a);
  10693. this.node.setPosition(s);
  10694. };
  10695. return r([ a ], e);
  10696. }(cc.Component));
  10697. o.default = s;
  10698. cc._RF.pop();
  10699. }, {} ],
  10700. FObject: [ function(t, e, o) {
  10701. "use strict";
  10702. cc._RF.push(e, "dfe94ft1kpNYKENASSkfOPn", "FObject");
  10703. var i, n = this && this.__extends || (i = function(t, e) {
  10704. return (i = Object.setPrototypeOf || {
  10705. __proto__: []
  10706. } instanceof Array && function(t, e) {
  10707. t.__proto__ = e;
  10708. } || function(t, e) {
  10709. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  10710. })(t, e);
  10711. }, function(t, e) {
  10712. i(t, e);
  10713. function o() {
  10714. this.constructor = t;
  10715. }
  10716. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  10717. }), r = this && this.__decorate || function(t, e, o, i) {
  10718. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  10719. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  10720. return r > 3 && c && Object.defineProperty(e, o, c), c;
  10721. };
  10722. Object.defineProperty(o, "__esModule", {
  10723. value: !0
  10724. });
  10725. o.GroupType = void 0;
  10726. var c = cc._decorator, a = c.ccclass, s = c.property;
  10727. o.GroupType = cc.Enum({
  10728. N: "map",
  10729. A: "A",
  10730. B: "B"
  10731. });
  10732. var p = function(t) {
  10733. n(e, t);
  10734. function e() {
  10735. var e = null !== t && t.apply(this, arguments) || this;
  10736. e.id = 0;
  10737. return e;
  10738. }
  10739. r([ s ], e.prototype, "id", void 0);
  10740. return r([ a ], e);
  10741. }(cc.Component);
  10742. o.default = p;
  10743. cc._RF.pop();
  10744. }, {} ],
  10745. FOpenDoorButton: [ function(t, e, o) {
  10746. "use strict";
  10747. cc._RF.push(e, "156feYqwT9Jjpg9j66KaLhO", "FOpenDoorButton");
  10748. var i, n = this && this.__extends || (i = function(t, e) {
  10749. return (i = Object.setPrototypeOf || {
  10750. __proto__: []
  10751. } instanceof Array && function(t, e) {
  10752. t.__proto__ = e;
  10753. } || function(t, e) {
  10754. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  10755. })(t, e);
  10756. }, function(t, e) {
  10757. i(t, e);
  10758. function o() {
  10759. this.constructor = t;
  10760. }
  10761. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  10762. }), r = this && this.__decorate || function(t, e, o, i) {
  10763. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  10764. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  10765. return r > 3 && c && Object.defineProperty(e, o, c), c;
  10766. };
  10767. Object.defineProperty(o, "__esModule", {
  10768. value: !0
  10769. });
  10770. var c = t("../../../../login/FqLogin"), a = t("../../../../main/ViewManage"), s = t("../base/BaseEvent"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  10771. n(e, t);
  10772. function e() {
  10773. var e = null !== t && t.apply(this, arguments) || this;
  10774. e.mIcon = null;
  10775. e.mIcon0 = null;
  10776. e.mIcon1 = null;
  10777. e.mButtons = [];
  10778. e.mFenceTrigger = [];
  10779. e.isHang = !1;
  10780. e.isOver = !1;
  10781. e.count = 0;
  10782. return e;
  10783. }
  10784. o = e;
  10785. e.prototype.onBeginContact = function(t, e) {
  10786. this.count++;
  10787. this.onBegin(e.tag);
  10788. };
  10789. e.prototype.onEndContact = function(t, e) {
  10790. this.count--;
  10791. if (this.count <= 0) {
  10792. this.count = 0;
  10793. this.onEnd(e.tag);
  10794. }
  10795. };
  10796. e.prototype.onBegin = function() {
  10797. this.isHang = !0;
  10798. this.mIcon.spriteFrame = this.mIcon1;
  10799. this.checkOpen();
  10800. };
  10801. e.prototype.onEnd = function() {
  10802. this.isHang = !1;
  10803. this.mIcon.spriteFrame = this.mIcon0;
  10804. };
  10805. e.prototype.checkOpen = function() {
  10806. var t = this;
  10807. if (!this.isOver) {
  10808. for (var e = 0; e < this.mButtons.length; e++) if (!this.mButtons[e].getComponent(o).isHang) {
  10809. for (var i = 0; i < this.mFenceTrigger.length; i++) {
  10810. var n = this.mFenceTrigger[i];
  10811. this.showFence(n, "shake");
  10812. }
  10813. return;
  10814. }
  10815. this.isOver = !0;
  10816. this.pause();
  10817. this.moveCamera(this.mFenceTrigger[0].getPosition(), 1, function() {
  10818. cc.tween(t.node).sequence(cc.callFunc(function() {
  10819. for (var e = 0; e < t.mFenceTrigger.length; e++) {
  10820. var o = t.mFenceTrigger[e];
  10821. t.showFence(o, "close");
  10822. }
  10823. t.ff.main.playerEffectByPath(a.AudioMgr.openDoor);
  10824. }), cc.delayTime(1), cc.callFunc(function() {
  10825. t.resume();
  10826. c.default.commitEvent(t.node.name, "", "");
  10827. for (var e = 0; e < t.mFenceTrigger.length; e++) t.mFenceTrigger[e].active = !1;
  10828. })).start();
  10829. });
  10830. }
  10831. };
  10832. e.prototype.showFence = function(t, e) {
  10833. for (var o = t.children, i = 0; i < o.length; i++) {
  10834. var n = o[i].getComponent(sp.Skeleton);
  10835. n && n.setAnimation(0, e, !1);
  10836. }
  10837. };
  10838. var o;
  10839. r([ u({
  10840. displayName: "替换的图片",
  10841. type: cc.Sprite
  10842. }) ], e.prototype, "mIcon", void 0);
  10843. r([ u({
  10844. displayName: "未踩上图片",
  10845. type: cc.SpriteFrame
  10846. }) ], e.prototype, "mIcon0", void 0);
  10847. r([ u({
  10848. displayName: "踩上后的图片",
  10849. type: cc.SpriteFrame
  10850. }) ], e.prototype, "mIcon1", void 0);
  10851. r([ u({
  10852. displayName: "其它开关",
  10853. type: [ cc.Node ]
  10854. }) ], e.prototype, "mButtons", void 0);
  10855. r([ u({
  10856. displayName: "控制的机关",
  10857. type: [ cc.Node ]
  10858. }) ], e.prototype, "mFenceTrigger", void 0);
  10859. return o = r([ l ], e);
  10860. }(s.default);
  10861. o.default = f;
  10862. cc._RF.pop();
  10863. }, {
  10864. "../../../../login/FqLogin": "FqLogin",
  10865. "../../../../main/ViewManage": "ViewManage",
  10866. "../base/BaseEvent": "BaseEvent"
  10867. } ],
  10868. FOpenDoorChat: [ function(t, e, o) {
  10869. "use strict";
  10870. cc._RF.push(e, "1b3efRc681Pf7Kaut2SPRjA", "FOpenDoorChat");
  10871. var i, n = this && this.__extends || (i = function(t, e) {
  10872. return (i = Object.setPrototypeOf || {
  10873. __proto__: []
  10874. } instanceof Array && function(t, e) {
  10875. t.__proto__ = e;
  10876. } || function(t, e) {
  10877. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  10878. })(t, e);
  10879. }, function(t, e) {
  10880. i(t, e);
  10881. function o() {
  10882. this.constructor = t;
  10883. }
  10884. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  10885. }), r = this && this.__decorate || function(t, e, o, i) {
  10886. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  10887. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  10888. return r > 3 && c && Object.defineProperty(e, o, c), c;
  10889. };
  10890. Object.defineProperty(o, "__esModule", {
  10891. value: !0
  10892. });
  10893. var c = t("../../../../login/FqLogin"), a = t("../../../../main/ViewManage"), s = t("../base/BaseEvent"), p = t("./FOpenDoorCheck"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  10894. n(e, t);
  10895. function e() {
  10896. var e = null !== t && t.apply(this, arguments) || this;
  10897. e.mMapDialog = null;
  10898. e.text = [];
  10899. e.finish = [];
  10900. e.icon = null;
  10901. e.mTipsIcon = null;
  10902. e.mCheck = null;
  10903. e.mOpenDoor = null;
  10904. e.spine = null;
  10905. return e;
  10906. }
  10907. e.prototype.onLoad = function() {
  10908. t.prototype.onLoad.call(this);
  10909. };
  10910. e.prototype.onBegin = function(t) {
  10911. var e = this;
  10912. this.mOpenDoor.active && 1 == t && this.showOpt(this.mTipsIcon, function() {
  10913. e.closeOpt();
  10914. e.pause();
  10915. e.startDialog();
  10916. });
  10917. };
  10918. e.prototype.onEnd = function(t) {
  10919. 1 == t && this.closeOpt();
  10920. };
  10921. e.prototype.startDialog = function() {
  10922. this.mCheck.mDriveNode.active ? this.dialog1(0) : this.dialog2(0);
  10923. };
  10924. e.prototype.dialog1 = function(t) {
  10925. var e = this;
  10926. if (t >= this.text.length) this.resume(); else {
  10927. var o = this.text[t].split("|");
  10928. if (-1 == parseInt(o.shift())) {
  10929. var i = this.ff.mainSprite.node;
  10930. this.showDialog(i, o, function() {
  10931. t++;
  10932. e.dialog1(t);
  10933. });
  10934. } else this.showDialog(this.node, o, function() {
  10935. t++;
  10936. e.dialog1(t);
  10937. });
  10938. }
  10939. };
  10940. e.prototype.dialog2 = function(t) {
  10941. var e = this;
  10942. if (t >= this.finish.length) {
  10943. this.spine.setCompleteListener(function() {
  10944. e.spine.setCompleteListener(null);
  10945. e.spine.destroy();
  10946. e.moveCamera(e.mOpenDoor.getPosition(), 1, function() {
  10947. e.openGear();
  10948. });
  10949. });
  10950. this.spine.setAnimation(0, "escape2", !1);
  10951. } else {
  10952. var o = this.finish[t].split("|");
  10953. if (-1 == parseInt(o.shift())) {
  10954. var i = this.ff.mainSprite.node;
  10955. this.showDialog(i, o, function() {
  10956. t++;
  10957. e.dialog2(t);
  10958. });
  10959. } else this.showDialog(this.node, o, function() {
  10960. t++;
  10961. e.dialog2(t);
  10962. });
  10963. }
  10964. };
  10965. e.prototype.openGear = function() {
  10966. var t = this;
  10967. this.icon && (this.icon.active = !1);
  10968. this.mOpenDoor.children.forEach(function(t) {
  10969. var e = t.getComponent(sp.Skeleton);
  10970. if (e) {
  10971. e.setCompleteListener(function() {
  10972. t.active = !1;
  10973. });
  10974. e.setAnimation(0, "close", !1);
  10975. }
  10976. });
  10977. this.ff.main.playerEffectByPath(a.AudioMgr.openDoor);
  10978. cc.tween(this.ff.mMap.node).sequence(cc.delayTime(1), cc.callFunc(function() {
  10979. t.mOpenDoor.active = !1;
  10980. t.resume();
  10981. t.node.destroy();
  10982. c.default.commitEvent(t.node.name, "", "");
  10983. })).start();
  10984. };
  10985. r([ f(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  10986. r([ f({
  10987. displayName: "对话内容",
  10988. type: [ cc.String ]
  10989. }) ], e.prototype, "text", void 0);
  10990. r([ f({
  10991. displayName: "完成后的对话",
  10992. type: [ cc.String ]
  10993. }) ], e.prototype, "finish", void 0);
  10994. r([ f({
  10995. displayName: "靠近的提示",
  10996. type: cc.Node
  10997. }) ], e.prototype, "icon", void 0);
  10998. r([ f({
  10999. displayName: "提示图标",
  11000. type: cc.SpriteFrame
  11001. }) ], e.prototype, "mTipsIcon", void 0);
  11002. r([ f({
  11003. displayName: "驱赶条件对象",
  11004. type: p.default
  11005. }) ], e.prototype, "mCheck", void 0);
  11006. r([ f({
  11007. displayName: "需要打开的门",
  11008. type: cc.Node
  11009. }) ], e.prototype, "mOpenDoor", void 0);
  11010. r([ f({
  11011. displayName: "精灵动画",
  11012. type: sp.Skeleton
  11013. }) ], e.prototype, "spine", void 0);
  11014. return r([ u ], e);
  11015. }(s.default);
  11016. o.default = h;
  11017. cc._RF.pop();
  11018. }, {
  11019. "../../../../login/FqLogin": "FqLogin",
  11020. "../../../../main/ViewManage": "ViewManage",
  11021. "../base/BaseEvent": "BaseEvent",
  11022. "./FOpenDoorCheck": "FOpenDoorCheck"
  11023. } ],
  11024. FOpenDoorCheck: [ function(t, e, o) {
  11025. "use strict";
  11026. cc._RF.push(e, "a82a9WCp+9GB4Myc0HlJIAq", "FOpenDoorCheck");
  11027. var i, n = this && this.__extends || (i = function(t, e) {
  11028. return (i = Object.setPrototypeOf || {
  11029. __proto__: []
  11030. } instanceof Array && function(t, e) {
  11031. t.__proto__ = e;
  11032. } || function(t, e) {
  11033. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  11034. })(t, e);
  11035. }, function(t, e) {
  11036. i(t, e);
  11037. function o() {
  11038. this.constructor = t;
  11039. }
  11040. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  11041. }), r = this && this.__decorate || function(t, e, o, i) {
  11042. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  11043. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  11044. return r > 3 && c && Object.defineProperty(e, o, c), c;
  11045. };
  11046. Object.defineProperty(o, "__esModule", {
  11047. value: !0
  11048. });
  11049. var c = t("../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  11050. n(e, t);
  11051. function e() {
  11052. var e = null !== t && t.apply(this, arguments) || this;
  11053. e.goodId = 2002;
  11054. e.mMapDialog = null;
  11055. e.text = [];
  11056. e.mTipsIcon = null;
  11057. e.mDriveNode = null;
  11058. e.mGunNode = null;
  11059. e.mSpine = null;
  11060. return e;
  11061. }
  11062. e.prototype.onLoad = function() {
  11063. t.prototype.onLoad.call(this);
  11064. this.mGunNode.active = !1;
  11065. };
  11066. e.prototype.onBegin = function(t) {
  11067. var e = this;
  11068. if (1 == t) {
  11069. if (!this.mDriveNode.active) return;
  11070. this.showOpt(this.mTipsIcon, function() {
  11071. e.closeOpt();
  11072. var t = e.ff.mFFheader;
  11073. if (t.getTmpCount(e.goodId) > 0) {
  11074. e.ff.pauseSprite(!0);
  11075. e.ff.mBlockInputEvents.active = !0;
  11076. t.removeTmpGood(e.goodId, 1);
  11077. e.mGunNode.active = !0;
  11078. e.mSpine.setAnimation(0, "hurt", !1);
  11079. cc.tween(e.mGunNode).sequence(cc.moveBy(.2, cc.v2(0, 40)), cc.moveBy(.2, cc.v2(0, -40)), cc.moveBy(.2, cc.v2(0, 40)), cc.moveBy(.2, cc.v2(0, -40)), cc.moveBy(.2, cc.v2(0, 40)), cc.moveBy(.2, cc.v2(0, -40)), cc.callFunc(function() {
  11080. e.flyGo();
  11081. }), cc.moveBy(.2, cc.v2(0, 20)), cc.moveBy(.2, cc.v2(0, -20)), cc.fadeOut(1)).start();
  11082. } else e.dialog(0);
  11083. });
  11084. }
  11085. };
  11086. e.prototype.flyGo = function() {
  11087. var t = this;
  11088. this.ff.pauseSprite(!1);
  11089. this.ff.mBlockInputEvents.active = !1;
  11090. this.mSpine.setCompleteListener(function() {
  11091. t.mDriveNode.active = !1;
  11092. t.pause();
  11093. t.showDialog(t.ff.mainSprite.node, [ "乌鸦被赶走了,去告诉神秘人吧" ], function() {
  11094. t.resume();
  11095. });
  11096. });
  11097. this.mSpine.setAnimation(0, "fly", !1);
  11098. };
  11099. e.prototype.onEnd = function(t) {
  11100. 1 == t && this.closeOpt();
  11101. };
  11102. e.prototype.dialog = function(t) {
  11103. var e = this;
  11104. if (t >= this.text.length) {
  11105. this.closeOpt();
  11106. this.ff.pauseSprite(!1);
  11107. this.ff.mBlockInputEvents.active = !1;
  11108. } else {
  11109. var o = this.text[t].split("|");
  11110. if (-1 == parseInt(o.shift())) {
  11111. var i = this.ff.mainSprite.node;
  11112. this.showDialog(i, o, function() {
  11113. t++;
  11114. e.dialog(t);
  11115. });
  11116. }
  11117. }
  11118. };
  11119. r([ p({
  11120. displayName: "需要的物品id"
  11121. }) ], e.prototype, "goodId", void 0);
  11122. r([ p(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  11123. r([ p({
  11124. displayName: "对话内容",
  11125. type: [ cc.String ]
  11126. }) ], e.prototype, "text", void 0);
  11127. r([ p({
  11128. displayName: "提示图标",
  11129. type: cc.SpriteFrame
  11130. }) ], e.prototype, "mTipsIcon", void 0);
  11131. r([ p({
  11132. displayName: "驱赶的对象",
  11133. type: cc.Node
  11134. }) ], e.prototype, "mDriveNode", void 0);
  11135. r([ p({
  11136. displayName: "棍子",
  11137. type: cc.Node
  11138. }) ], e.prototype, "mGunNode", void 0);
  11139. r([ p({
  11140. displayName: "乌鸦",
  11141. type: sp.Skeleton
  11142. }) ], e.prototype, "mSpine", void 0);
  11143. return r([ s ], e);
  11144. }(c.default);
  11145. o.default = l;
  11146. cc._RF.pop();
  11147. }, {
  11148. "../base/BaseEvent": "BaseEvent"
  11149. } ],
  11150. FOpenDoorFW: [ function(t, e, o) {
  11151. "use strict";
  11152. cc._RF.push(e, "29ac9u82z1PwZ3tHEB7op8D", "FOpenDoorFW");
  11153. var i, n = this && this.__extends || (i = function(t, e) {
  11154. return (i = Object.setPrototypeOf || {
  11155. __proto__: []
  11156. } instanceof Array && function(t, e) {
  11157. t.__proto__ = e;
  11158. } || function(t, e) {
  11159. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  11160. })(t, e);
  11161. }, function(t, e) {
  11162. i(t, e);
  11163. function o() {
  11164. this.constructor = t;
  11165. }
  11166. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  11167. }), r = this && this.__decorate || function(t, e, o, i) {
  11168. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  11169. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  11170. return r > 3 && c && Object.defineProperty(e, o, c), c;
  11171. };
  11172. Object.defineProperty(o, "__esModule", {
  11173. value: !0
  11174. });
  11175. var c = t("../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  11176. n(e, t);
  11177. function e() {
  11178. var e = null !== t && t.apply(this, arguments) || this;
  11179. e.mNodes = [];
  11180. e.pos = [];
  11181. return e;
  11182. }
  11183. e.prototype.onLoad = function() {
  11184. t.prototype.onLoad.call(this);
  11185. for (var e = 0; e < this.mNodes.length; e++) {
  11186. var o = this.mNodes[e];
  11187. this.pos.push(o.getPosition());
  11188. }
  11189. };
  11190. e.prototype.onBegin = function() {
  11191. for (var t = function(t) {
  11192. var o = e.mNodes[t], i = e.pos[t];
  11193. cc.tween(o).sequence(cc.delayTime(.1), cc.callFunc(function() {
  11194. o.x = i.x;
  11195. o.y = i.y;
  11196. })).start();
  11197. }, e = this, o = 0; o < this.mNodes.length; o++) t(o);
  11198. };
  11199. e.prototype.onEnd = function() {};
  11200. r([ p({
  11201. type: [ cc.Node ],
  11202. displayName: "需要复位的节点"
  11203. }) ], e.prototype, "mNodes", void 0);
  11204. return r([ s ], e);
  11205. }(c.default);
  11206. o.default = l;
  11207. cc._RF.pop();
  11208. }, {
  11209. "../base/BaseEvent": "BaseEvent"
  11210. } ],
  11211. FOpenDoorVineEx: [ function(t, e, o) {
  11212. "use strict";
  11213. cc._RF.push(e, "fcab2JcNb9BHrerHTb0YPlo", "FOpenDoorVineEx");
  11214. var i, n = this && this.__extends || (i = function(t, e) {
  11215. return (i = Object.setPrototypeOf || {
  11216. __proto__: []
  11217. } instanceof Array && function(t, e) {
  11218. t.__proto__ = e;
  11219. } || function(t, e) {
  11220. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  11221. })(t, e);
  11222. }, function(t, e) {
  11223. i(t, e);
  11224. function o() {
  11225. this.constructor = t;
  11226. }
  11227. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  11228. }), r = this && this.__decorate || function(t, e, o, i) {
  11229. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  11230. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  11231. return r > 3 && c && Object.defineProperty(e, o, c), c;
  11232. };
  11233. Object.defineProperty(o, "__esModule", {
  11234. value: !0
  11235. });
  11236. var c = t("../../../../login/FqLogin"), a = t("../../../../main/ViewManage"), s = t("../base/BaseEvent"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  11237. n(e, t);
  11238. function e() {
  11239. var e = null !== t && t.apply(this, arguments) || this;
  11240. e.mTipsIcon = null;
  11241. e.mFenceTrigger = [];
  11242. e.guides = [];
  11243. e.isOver = !1;
  11244. return e;
  11245. }
  11246. e.prototype.onBegin = function() {
  11247. var t = this;
  11248. this.isOver || this.showOpt(this.mTipsIcon, function() {
  11249. t.closeOpt();
  11250. t.pause();
  11251. var e = t.node.children[0].children[0];
  11252. cc.tween(e).sequence(cc.moveBy(.2, cc.v2(0, -20)), cc.moveBy(.2, cc.v2(0, 20)), cc.moveBy(.2, cc.v2(0, -20)), cc.moveBy(.2, cc.v2(0, 20)), cc.moveBy(.5, cc.v2(0, 200)), cc.callFunc(function() {
  11253. t.moveCamera(t.mFenceTrigger[0].getPosition(), 1, function() {
  11254. cc.tween(t.node).sequence(cc.callFunc(function() {
  11255. for (var e = 0; e < t.mFenceTrigger.length; e++) {
  11256. var o = t.mFenceTrigger[e];
  11257. t.showFence(o, "close");
  11258. }
  11259. t.ff.main.playerEffectByPath(a.AudioMgr.openDoor);
  11260. }), cc.delayTime(1), cc.callFunc(function() {
  11261. t.resume();
  11262. c.default.commitEvent(t.node.name, "", "");
  11263. for (var e = 0; e < t.mFenceTrigger.length; e++) t.mFenceTrigger[e].destroy();
  11264. t.node.destroy();
  11265. })).start();
  11266. });
  11267. })).start();
  11268. });
  11269. };
  11270. e.prototype.showFence = function(t, e) {
  11271. for (var o = t.children, i = 0; i < o.length; i++) {
  11272. var n = o[i].getComponent(sp.Skeleton);
  11273. n && n.setAnimation(0, e, !1);
  11274. }
  11275. };
  11276. r([ u({
  11277. displayName: "提示图标",
  11278. type: cc.SpriteFrame
  11279. }) ], e.prototype, "mTipsIcon", void 0);
  11280. r([ u([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0);
  11281. r([ u([ cc.Node ]) ], e.prototype, "guides", void 0);
  11282. return r([ l ], e);
  11283. }(s.default);
  11284. o.default = f;
  11285. cc._RF.pop();
  11286. }, {
  11287. "../../../../login/FqLogin": "FqLogin",
  11288. "../../../../main/ViewManage": "ViewManage",
  11289. "../base/BaseEvent": "BaseEvent"
  11290. } ],
  11291. FOpenDoorVine: [ function(t, e, o) {
  11292. "use strict";
  11293. cc._RF.push(e, "35630MZ0aJLi7qAZdzd5r0g", "FOpenDoorVine");
  11294. var i, n = this && this.__extends || (i = function(t, e) {
  11295. return (i = Object.setPrototypeOf || {
  11296. __proto__: []
  11297. } instanceof Array && function(t, e) {
  11298. t.__proto__ = e;
  11299. } || function(t, e) {
  11300. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  11301. })(t, e);
  11302. }, function(t, e) {
  11303. i(t, e);
  11304. function o() {
  11305. this.constructor = t;
  11306. }
  11307. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  11308. }), r = this && this.__decorate || function(t, e, o, i) {
  11309. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  11310. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  11311. return r > 3 && c && Object.defineProperty(e, o, c), c;
  11312. };
  11313. Object.defineProperty(o, "__esModule", {
  11314. value: !0
  11315. });
  11316. var c = t("../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  11317. n(e, t);
  11318. function e() {
  11319. var e = null !== t && t.apply(this, arguments) || this;
  11320. e.mMapDialog = null;
  11321. e.text = [];
  11322. e.mNearTips = null;
  11323. e.mFindTips = null;
  11324. e.mTipsIcon = null;
  11325. e.mGearNode = null;
  11326. e.isOver = !1;
  11327. return e;
  11328. }
  11329. e.prototype.onLoad = function() {
  11330. t.prototype.onLoad.call(this);
  11331. this.mGearNode && (this.mGearNode.active = !1);
  11332. this.mNearTips && (this.mNearTips.active = !1);
  11333. this.mFindTips && (this.mFindTips.active = !1);
  11334. };
  11335. e.prototype.onBegin = function(t) {
  11336. var e = this;
  11337. if (!this.isOver) if (1 == t) {
  11338. this.mNearTips && (this.mNearTips.active = !1);
  11339. this.showOpt(this.mTipsIcon, function() {
  11340. e.closeOpt();
  11341. e.pause();
  11342. e.dialog(0);
  11343. });
  11344. } else 2 == t && this.mNearTips && (this.mNearTips.active = !0);
  11345. };
  11346. e.prototype.onEnd = function(t) {
  11347. 1 == t ? this.closeOpt() : 2 == t && this.mNearTips && (this.mNearTips.active = !1);
  11348. };
  11349. e.prototype.dialog = function(t) {
  11350. var e = this;
  11351. if (t >= this.text.length) this.mGearNode && this.vine(); else {
  11352. var o = this.text[t].split("|");
  11353. if (-1 == parseInt(o.shift())) {
  11354. var i = this.ff.mainSprite.node;
  11355. this.showDialog(i, o, function() {
  11356. t++;
  11357. e.dialog(t);
  11358. });
  11359. }
  11360. }
  11361. };
  11362. e.prototype.vine = function() {
  11363. var t = this, e = this.mGearNode.getPosition(), o = this.mGearNode.children[0].children[0];
  11364. this.mGearNode.active = !0;
  11365. o.y += 100;
  11366. this.moveCamera(e, 1, function() {
  11367. cc.tween(o).sequence(cc.moveBy(1, cc.v2(0, -100)), cc.callFunc(function() {
  11368. t.isOver = !0;
  11369. t.resume();
  11370. t.mFindTips && (t.mFindTips.active = !0);
  11371. })).start();
  11372. });
  11373. };
  11374. r([ p(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  11375. r([ p([ cc.String ]) ], e.prototype, "text", void 0);
  11376. r([ p({
  11377. displayName: "靠近的提示",
  11378. type: cc.Node
  11379. }) ], e.prototype, "mNearTips", void 0);
  11380. r([ p({
  11381. displayName: "藤蔓出现的提示",
  11382. type: cc.Node
  11383. }) ], e.prototype, "mFindTips", void 0);
  11384. r([ p({
  11385. displayName: "提示图标",
  11386. type: cc.SpriteFrame
  11387. }) ], e.prototype, "mTipsIcon", void 0);
  11388. r([ p({
  11389. displayName: "出现的藤蔓",
  11390. type: cc.Node
  11391. }) ], e.prototype, "mGearNode", void 0);
  11392. return r([ s ], e);
  11393. }(c.default);
  11394. o.default = l;
  11395. cc._RF.pop();
  11396. }, {
  11397. "../base/BaseEvent": "BaseEvent"
  11398. } ],
  11399. FOpenTrigger: [ function(t, e, o) {
  11400. "use strict";
  11401. cc._RF.push(e, "2afa8bLm7ZAaa8AhbyItyy+", "FOpenTrigger");
  11402. var i, n = this && this.__extends || (i = function(t, e) {
  11403. return (i = Object.setPrototypeOf || {
  11404. __proto__: []
  11405. } instanceof Array && function(t, e) {
  11406. t.__proto__ = e;
  11407. } || function(t, e) {
  11408. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  11409. })(t, e);
  11410. }, function(t, e) {
  11411. i(t, e);
  11412. function o() {
  11413. this.constructor = t;
  11414. }
  11415. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  11416. }), r = this && this.__decorate || function(t, e, o, i) {
  11417. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  11418. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  11419. return r > 3 && c && Object.defineProperty(e, o, c), c;
  11420. };
  11421. Object.defineProperty(o, "__esModule", {
  11422. value: !0
  11423. });
  11424. var c = t("../../../login/FqLogin"), a = t("../../../main/ViewManage"), s = t("../map/FMap"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  11425. n(e, t);
  11426. function e() {
  11427. var e = null !== t && t.apply(this, arguments) || this;
  11428. e.mFenceTrigger = [];
  11429. e.guides = [];
  11430. e.closeFrame = null;
  11431. e.isOver = !1;
  11432. return e;
  11433. }
  11434. e.prototype.onLoad = function() {
  11435. this.fMap = this.node.parent.parent.getComponent(s.default);
  11436. };
  11437. e.prototype.onBeginContact = function(t, e, o) {
  11438. var i = this;
  11439. if (!this.isOver && "bullet" != o.node.group) {
  11440. this.isOver = !0;
  11441. this.node.removeComponent(cc.PhysicsBoxCollider);
  11442. var n = this.fMap.ff;
  11443. n.pauseSprite(!0);
  11444. var r = this.fMap.mCamera, s = this.mFenceTrigger[0], p = cc.v2(), l = cc.winSize;
  11445. p.x = s.x - l.width / 2;
  11446. p.y = s.y - l.height / 2;
  11447. for (var u = 0; u < this.guides.length; u++) this.guides[u].destroy();
  11448. this.guides = [];
  11449. this.node.getComponent(cc.Sprite).spriteFrame = this.closeFrame;
  11450. cc.tween(r.node).sequence(cc.moveTo(1.5, p), cc.callFunc(function() {
  11451. for (var t = 0; t < i.mFenceTrigger.length; t++) {
  11452. var e = i.mFenceTrigger[t];
  11453. i.showFence(e, "close");
  11454. }
  11455. n.main.playerEffectByPath(a.AudioMgr.openDoor);
  11456. }), cc.delayTime(1), cc.callFunc(function() {
  11457. n.pauseSprite(!1);
  11458. for (var t = 0; t < i.mFenceTrigger.length; t++) i.mFenceTrigger[t].active = !1;
  11459. c.default.commitEvent(i.node.name, "", "");
  11460. })).start();
  11461. }
  11462. };
  11463. e.prototype.showFence = function(t, e) {
  11464. for (var o = t.children, i = 0; i < o.length; i++) {
  11465. var n = o[i].getComponent(sp.Skeleton);
  11466. n && n.setAnimation(0, e, !1);
  11467. }
  11468. };
  11469. r([ u([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0);
  11470. r([ u([ cc.Node ]) ], e.prototype, "guides", void 0);
  11471. r([ u(cc.SpriteFrame) ], e.prototype, "closeFrame", void 0);
  11472. return r([ l ], e);
  11473. }(cc.Component);
  11474. o.default = f;
  11475. cc._RF.pop();
  11476. }, {
  11477. "../../../login/FqLogin": "FqLogin",
  11478. "../../../main/ViewManage": "ViewManage",
  11479. "../map/FMap": "FMap"
  11480. } ],
  11481. FPanelIcon: [ function(t, e, o) {
  11482. "use strict";
  11483. cc._RF.push(e, "43691pmQ2lJVZUhZUEo8LnQ", "FPanelIcon");
  11484. var i, n = this && this.__extends || (i = function(t, e) {
  11485. return (i = Object.setPrototypeOf || {
  11486. __proto__: []
  11487. } instanceof Array && function(t, e) {
  11488. t.__proto__ = e;
  11489. } || function(t, e) {
  11490. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  11491. })(t, e);
  11492. }, function(t, e) {
  11493. i(t, e);
  11494. function o() {
  11495. this.constructor = t;
  11496. }
  11497. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  11498. }), r = this && this.__decorate || function(t, e, o, i) {
  11499. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  11500. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  11501. return r > 3 && c && Object.defineProperty(e, o, c), c;
  11502. };
  11503. Object.defineProperty(o, "__esModule", {
  11504. value: !0
  11505. });
  11506. var c = t("../../../main/ViewManage"), a = t("../../data/RedPoint"), s = t("../../home/equip/SetLeader"), p = t("./FPanel"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  11507. n(e, t);
  11508. function e() {
  11509. var e = null !== t && t.apply(this, arguments) || this;
  11510. e.mIcon = null;
  11511. e.mIconX = null;
  11512. e.mLeader = null;
  11513. e.inGuide = !1;
  11514. e.guideStep = 0;
  11515. return e;
  11516. }
  11517. e.prototype.onLoad = function() {
  11518. this.mIconX.active = !1;
  11519. };
  11520. e.prototype.setGuideCallback = function(t) {
  11521. this.guideCallback = t;
  11522. };
  11523. e.prototype.updatePanel = function() {
  11524. if (this.sprite) {
  11525. this.mHPBar.progress = this.sprite.hp / this.sprite.attrData.hp;
  11526. this.mLabel && (this.mLabel.string = this.sprite.hp + "/" + this.sprite.attrData.hp);
  11527. this.sprite.hp <= 0 ? this.mIconX.active = !0 : this.mIconX.active = !1;
  11528. }
  11529. };
  11530. e.prototype.setCancel = function() {};
  11531. e.prototype.setClose = function() {};
  11532. e.prototype.setIcon = function() {
  11533. var t = this, e = this.sprite.attrData, o = e.skin;
  11534. "30000" == o && (o = "" + e.id);
  11535. cc.resources.load("icon/role_head/" + o, cc.SpriteFrame, function(e, o) {
  11536. e ? cc.error(e) : t.mIcon.spriteFrame = o;
  11537. });
  11538. var i = this.sprite.ff.main.player;
  11539. this.sprite.attrData.id == i.role.leader ? this.mLeader.active = !0 : this.mLeader.active = !1;
  11540. };
  11541. e.prototype.onclick = function() {
  11542. for (var t = this, e = this.sprite.map.ff.fres.mHudNode.children, o = 0; o < e.length; o++) {
  11543. var i = e[o];
  11544. a.default.removeRed(i);
  11545. }
  11546. var n = this.sprite.map.ff.main;
  11547. this.sprite.ff.pauseSprite(!0);
  11548. n.viewManage.loadFunc(c.GameViewType.equip, function(e) {
  11549. e.show();
  11550. var o = t.sprite.ff.main.topNode;
  11551. o.active = !0;
  11552. var i = e;
  11553. i.inGuide = t.inGuide;
  11554. i.guideStep = t.guideStep;
  11555. t.inGuide = !1;
  11556. i.openId = t.sprite.attrData.id;
  11557. i.node.getComponent(s.default).mSetButton.active = !1;
  11558. i.setCloseCallback(function() {
  11559. if (t.sprite.isValid && t.sprite.ff.isValid) {
  11560. t.sprite.ff.pauseSprite(!1);
  11561. t.sprite.map.ff.updateRole();
  11562. }
  11563. o.active = !1;
  11564. });
  11565. });
  11566. this.guideCallback && this.guideCallback();
  11567. };
  11568. r([ f(cc.Sprite) ], e.prototype, "mIcon", void 0);
  11569. r([ f(cc.Node) ], e.prototype, "mIconX", void 0);
  11570. r([ f(cc.Node) ], e.prototype, "mLeader", void 0);
  11571. return r([ u ], e);
  11572. }(p.default);
  11573. o.default = h;
  11574. cc._RF.pop();
  11575. }, {
  11576. "../../../main/ViewManage": "ViewManage",
  11577. "../../data/RedPoint": "RedPoint",
  11578. "../../home/equip/SetLeader": "SetLeader",
  11579. "./FPanel": "FPanel"
  11580. } ],
  11581. FPanel: [ function(t, e, o) {
  11582. "use strict";
  11583. cc._RF.push(e, "0d350gXK3RDrKnYjpJgJHI+", "FPanel");
  11584. var i, n = this && this.__extends || (i = function(t, e) {
  11585. return (i = Object.setPrototypeOf || {
  11586. __proto__: []
  11587. } instanceof Array && function(t, e) {
  11588. t.__proto__ = e;
  11589. } || function(t, e) {
  11590. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  11591. })(t, e);
  11592. }, function(t, e) {
  11593. i(t, e);
  11594. function o() {
  11595. this.constructor = t;
  11596. }
  11597. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  11598. }), r = this && this.__decorate || function(t, e, o, i) {
  11599. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  11600. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  11601. return r > 3 && c && Object.defineProperty(e, o, c), c;
  11602. };
  11603. Object.defineProperty(o, "__esModule", {
  11604. value: !0
  11605. });
  11606. var c = t("./FSprite"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  11607. n(e, t);
  11608. function e() {
  11609. var e = null !== t && t.apply(this, arguments) || this;
  11610. e.mHPBar = null;
  11611. e.mLabel = null;
  11612. return e;
  11613. }
  11614. e.prototype.onLoad = function() {
  11615. this.sprite = this.node.parent.getComponent(c.default);
  11616. this.mLabel && (this.mLabel.string = "");
  11617. };
  11618. e.prototype.updatePanel = function() {
  11619. if (this.sprite) {
  11620. this.mHPBar.progress = this.sprite.hp / this.sprite.attrData.hp;
  11621. this.mLabel && (this.mLabel.string = this.sprite.hp + "/" + this.sprite.attrData.hp);
  11622. this.sprite.hp <= 0 ? this.node.active = !1 : this.node.active = !0;
  11623. }
  11624. };
  11625. e.prototype.setCancel = function() {
  11626. var t = this;
  11627. if (this.sprite && this.sprite.isValid && 2 != this.sprite.attrData.type) {
  11628. this.node.stopAllActions();
  11629. cc.tween(this.node).sequence(cc.delayTime(2), cc.callFunc(function() {
  11630. t.node.active = !1;
  11631. })).start();
  11632. }
  11633. };
  11634. e.prototype.setClose = function() {
  11635. this.node.active = !1;
  11636. };
  11637. r([ p(cc.ProgressBar) ], e.prototype, "mHPBar", void 0);
  11638. r([ p(cc.Label) ], e.prototype, "mLabel", void 0);
  11639. return r([ s ], e);
  11640. }(cc.Component);
  11641. o.default = l;
  11642. cc._RF.pop();
  11643. }, {
  11644. "./FSprite": "FSprite"
  11645. } ],
  11646. FPatrolWarn: [ function(t, e, o) {
  11647. "use strict";
  11648. cc._RF.push(e, "75ed5BfwqFNlJPg0sTzFlVd", "FPatrolWarn");
  11649. var i, n = this && this.__extends || (i = function(t, e) {
  11650. return (i = Object.setPrototypeOf || {
  11651. __proto__: []
  11652. } instanceof Array && function(t, e) {
  11653. t.__proto__ = e;
  11654. } || function(t, e) {
  11655. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  11656. })(t, e);
  11657. }, function(t, e) {
  11658. i(t, e);
  11659. function o() {
  11660. this.constructor = t;
  11661. }
  11662. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  11663. }), r = this && this.__decorate || function(t, e, o, i) {
  11664. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  11665. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  11666. return r > 3 && c && Object.defineProperty(e, o, c), c;
  11667. };
  11668. Object.defineProperty(o, "__esModule", {
  11669. value: !0
  11670. });
  11671. var c = t("../../object/FObject"), a = t("../../object/FSprite"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  11672. n(e, t);
  11673. function e() {
  11674. var e = null !== t && t.apply(this, arguments) || this;
  11675. e.mInitPos = null;
  11676. e.isOver = !1;
  11677. return e;
  11678. }
  11679. e.prototype.onBeginContact = function(t, e, o) {
  11680. var i = this;
  11681. if (!this.isOver && "A" == o.node.group) {
  11682. var n = o.node.getComponent(a.default);
  11683. this.ff = n.ff;
  11684. this.isOver = !0;
  11685. this.ff.pauseSprite(!0);
  11686. cc.tween(this).sequence(cc.delayTime(.01), cc.callFunc(function() {
  11687. for (var t = i.mInitPos.getPosition(), e = i.ff.getGroupBy(c.GroupType.A), o = 0; o < e.length; o++) {
  11688. var n = e[o];
  11689. n && n.setPosition(t);
  11690. }
  11691. }), cc.delayTime(.01), cc.callFunc(function() {
  11692. i.isOver = !1;
  11693. i.ff.pauseSprite(!1);
  11694. })).start();
  11695. }
  11696. };
  11697. r([ l(cc.Node) ], e.prototype, "mInitPos", void 0);
  11698. return r([ p ], e);
  11699. }(cc.Component);
  11700. o.default = u;
  11701. cc._RF.pop();
  11702. }, {
  11703. "../../object/FObject": "FObject",
  11704. "../../object/FSprite": "FSprite"
  11705. } ],
  11706. FPatrol: [ function(t, e, o) {
  11707. "use strict";
  11708. cc._RF.push(e, "f92a4YXnSFBj5Cp4o0bmf4I", "FPatrol");
  11709. var i, n = this && this.__extends || (i = function(t, e) {
  11710. return (i = Object.setPrototypeOf || {
  11711. __proto__: []
  11712. } instanceof Array && function(t, e) {
  11713. t.__proto__ = e;
  11714. } || function(t, e) {
  11715. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  11716. })(t, e);
  11717. }, function(t, e) {
  11718. i(t, e);
  11719. function o() {
  11720. this.constructor = t;
  11721. }
  11722. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  11723. }), r = this && this.__decorate || function(t, e, o, i) {
  11724. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  11725. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  11726. return r > 3 && c && Object.defineProperty(e, o, c), c;
  11727. };
  11728. Object.defineProperty(o, "__esModule", {
  11729. value: !0
  11730. });
  11731. var c = t("../../../../util/CMath"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  11732. n(e, t);
  11733. function e() {
  11734. var e = null !== t && t.apply(this, arguments) || this;
  11735. e.time = 2;
  11736. e.interval = .5;
  11737. e.target = null;
  11738. e.warn = null;
  11739. e.spine = null;
  11740. return e;
  11741. }
  11742. e.prototype.onLoad = function() {
  11743. this.initPos = this.node.getPosition();
  11744. this.targetPos = this.target.getPosition();
  11745. this.moveToB();
  11746. };
  11747. e.prototype.moveToB = function() {
  11748. var t = this;
  11749. cc.tween(this.node).sequence(cc.delayTime(this.interval), cc.callFunc(function() {}), cc.moveBy(this.time, this.targetPos), cc.callFunc(function() {
  11750. t.moveToA();
  11751. })).start();
  11752. cc.tween(this.warn).sequence(cc.delayTime(this.interval), cc.callFunc(function() {
  11753. var e = 180 * c.default.getAngle(cc.Vec2.ZERO_R, t.targetPos) / Math.PI;
  11754. t.warn.angle = e;
  11755. }), cc.moveBy(this.time, this.targetPos), cc.callFunc(function() {})).start();
  11756. };
  11757. e.prototype.moveToA = function() {
  11758. var t = this, e = this.targetPos.clone();
  11759. e.x = -e.x;
  11760. e.y = -e.y;
  11761. cc.tween(this.node).sequence(cc.delayTime(this.interval), cc.callFunc(function() {}), cc.moveBy(this.time, e), cc.callFunc(function() {
  11762. t.moveToB();
  11763. })).start();
  11764. cc.tween(this.warn).sequence(cc.delayTime(this.interval), cc.callFunc(function() {
  11765. var o = 180 * c.default.getAngle(cc.Vec2.ZERO_R, e) / Math.PI;
  11766. t.warn.angle = o;
  11767. }), cc.moveBy(this.time, e), cc.callFunc(function() {})).start();
  11768. };
  11769. r([ p({
  11770. displayName: "起点到终点时间(秒)"
  11771. }) ], e.prototype, "time", void 0);
  11772. r([ p({
  11773. displayName: "每次巡逻停留时间(秒)"
  11774. }) ], e.prototype, "interval", void 0);
  11775. r([ p({
  11776. type: cc.Node,
  11777. displayName: "巡逻目的地"
  11778. }) ], e.prototype, "target", void 0);
  11779. r([ p({
  11780. type: cc.Node,
  11781. displayName: "警示区域"
  11782. }) ], e.prototype, "warn", void 0);
  11783. r([ p({
  11784. type: sp.Skeleton,
  11785. displayName: "精灵动画"
  11786. }) ], e.prototype, "spine", void 0);
  11787. return r([ s ], e);
  11788. }(cc.Component);
  11789. o.default = l;
  11790. cc._RF.pop();
  11791. }, {
  11792. "../../../../util/CMath": "CMath"
  11793. } ],
  11794. FPick1_3: [ function(t, e, o) {
  11795. "use strict";
  11796. cc._RF.push(e, "96504f55QRPN4ibNjTH99nl", "FPick1_3");
  11797. var i, n = this && this.__extends || (i = function(t, e) {
  11798. return (i = Object.setPrototypeOf || {
  11799. __proto__: []
  11800. } instanceof Array && function(t, e) {
  11801. t.__proto__ = e;
  11802. } || function(t, e) {
  11803. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  11804. })(t, e);
  11805. }, function(t, e) {
  11806. i(t, e);
  11807. function o() {
  11808. this.constructor = t;
  11809. }
  11810. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  11811. }), r = this && this.__decorate || function(t, e, o, i) {
  11812. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  11813. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  11814. return r > 3 && c && Object.defineProperty(e, o, c), c;
  11815. };
  11816. Object.defineProperty(o, "__esModule", {
  11817. value: !0
  11818. });
  11819. var c = t("../../../../../login/FqLogin"), a = t("../../../../../main/ViewManage"), s = t("../../base/BaseEvent"), p = t("./FFruit1_3"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  11820. n(e, t);
  11821. function e() {
  11822. var e = null !== t && t.apply(this, arguments) || this;
  11823. e.mMapDialog = null;
  11824. e.iconTouch = null;
  11825. e.goodId = 2005;
  11826. e.giveGoodId = 2004;
  11827. e.goodNodes = [];
  11828. e.text = [];
  11829. e.text_1 = "";
  11830. e.finish = [];
  11831. e.mTipsIcon = null;
  11832. e.mFenceTrigger = [];
  11833. e.state = 0;
  11834. e.isOver = !1;
  11835. return e;
  11836. }
  11837. e.prototype.onLoad = function() {
  11838. t.prototype.onLoad.call(this);
  11839. for (var e = 0; e < this.goodNodes.length; e++) this.goodNodes[e].setPick26(this);
  11840. };
  11841. e.prototype.onBegin = function(t) {
  11842. var e = this;
  11843. this.isOver || 1 == t && this.showOpt(this.mTipsIcon, function() {
  11844. e.ff.mFFheader.getTmpCount(e.goodId) < 3 ? 0 == e.state ? e.dialog1() : e.dialog1_1() : e.dialog2();
  11845. });
  11846. };
  11847. e.prototype.onEnd = function(t) {
  11848. 1 == t && this.closeOpt();
  11849. };
  11850. e.prototype.dialog1 = function() {
  11851. var t = this;
  11852. this.closeOpt();
  11853. this.showDialog(this.node, this.text, function() {
  11854. t.state = 1;
  11855. t.activateGood();
  11856. });
  11857. };
  11858. e.prototype.dialog1_1 = function() {
  11859. this.closeOpt();
  11860. this.showDialog(this.node, [ this.text_1 ], function() {});
  11861. };
  11862. e.prototype.dialog2 = function() {
  11863. var t = this;
  11864. this.closeOpt();
  11865. this.showDialog(this.node, this.finish, function() {
  11866. var e = t.ff.mFFheader;
  11867. e.removeTmpGood(t.goodId, 3);
  11868. t.giveGoodId && e.addTmpGood(t.giveGoodId, 1);
  11869. c.default.commitEvent(t.node.name, "", "");
  11870. t.node.active = !1;
  11871. t.isOver = !0;
  11872. t.iconTouch.active = !1;
  11873. t.openmFenceTrigger();
  11874. });
  11875. };
  11876. e.prototype.openmFenceTrigger = function() {
  11877. var t = this;
  11878. if (!(this.mFenceTrigger.length <= 0)) {
  11879. this.pause();
  11880. this.moveCamera(this.mFenceTrigger[0].getPosition(), 1, function() {
  11881. cc.tween(t.node).sequence(cc.callFunc(function() {
  11882. for (var e = 0; e < t.mFenceTrigger.length; e++) {
  11883. var o = t.mFenceTrigger[e];
  11884. t.showFence(o, "close");
  11885. }
  11886. t.ff.main.playerEffectByPath(a.AudioMgr.openDoor);
  11887. }), cc.delayTime(1), cc.callFunc(function() {
  11888. t.resume();
  11889. for (var e = 0; e < t.mFenceTrigger.length; e++) t.mFenceTrigger[e].active = !1;
  11890. })).start();
  11891. });
  11892. }
  11893. };
  11894. e.prototype.showFence = function(t, e) {
  11895. for (var o = t.children, i = 0; i < o.length; i++) {
  11896. var n = o[i].getComponent(sp.Skeleton);
  11897. n && n.setAnimation(0, e, !1);
  11898. }
  11899. };
  11900. e.prototype.activateGood = function() {
  11901. for (var t = 0; t < this.goodNodes.length; t++) this.goodNodes[t].node.getChildByName("lizi_gs").active = !0;
  11902. };
  11903. r([ f(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  11904. r([ f({
  11905. type: cc.Node,
  11906. displayName: "任务提示"
  11907. }) ], e.prototype, "iconTouch", void 0);
  11908. r([ f({
  11909. displayName: "收集的道具id"
  11910. }) ], e.prototype, "goodId", void 0);
  11911. r([ f({
  11912. displayName: "给以的道具id"
  11913. }) ], e.prototype, "giveGoodId", void 0);
  11914. r([ f({
  11915. type: [ p.default ],
  11916. displayName: "收集的地图上的果子"
  11917. }) ], e.prototype, "goodNodes", void 0);
  11918. r([ f({
  11919. displayName: "对话内容",
  11920. type: [ cc.String ]
  11921. }) ], e.prototype, "text", void 0);
  11922. r([ f({
  11923. displayName: "对话过一次之后的提示",
  11924. type: ""
  11925. }) ], e.prototype, "text_1", void 0);
  11926. r([ f({
  11927. displayName: "完成后的对话",
  11928. type: [ cc.String ]
  11929. }) ], e.prototype, "finish", void 0);
  11930. r([ f({
  11931. displayName: "提示图标",
  11932. type: cc.SpriteFrame
  11933. }) ], e.prototype, "mTipsIcon", void 0);
  11934. r([ f([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0);
  11935. return r([ u ], e);
  11936. }(s.default);
  11937. o.default = h;
  11938. cc._RF.pop();
  11939. }, {
  11940. "../../../../../login/FqLogin": "FqLogin",
  11941. "../../../../../main/ViewManage": "ViewManage",
  11942. "../../base/BaseEvent": "BaseEvent",
  11943. "./FFruit1_3": "FFruit1_3"
  11944. } ],
  11945. FPickGood: [ function(t, e, o) {
  11946. "use strict";
  11947. cc._RF.push(e, "74a79l3QJRK95oSKmdMEke+", "FPickGood");
  11948. var i, n = this && this.__extends || (i = function(t, e) {
  11949. return (i = Object.setPrototypeOf || {
  11950. __proto__: []
  11951. } instanceof Array && function(t, e) {
  11952. t.__proto__ = e;
  11953. } || function(t, e) {
  11954. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  11955. })(t, e);
  11956. }, function(t, e) {
  11957. i(t, e);
  11958. function o() {
  11959. this.constructor = t;
  11960. }
  11961. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  11962. }), r = this && this.__decorate || function(t, e, o, i) {
  11963. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  11964. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  11965. return r > 3 && c && Object.defineProperty(e, o, c), c;
  11966. };
  11967. Object.defineProperty(o, "__esModule", {
  11968. value: !0
  11969. });
  11970. var c = t("../../../login/FqLogin"), a = t("./base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  11971. n(e, t);
  11972. function e() {
  11973. var e = null !== t && t.apply(this, arguments) || this;
  11974. e.goodId = 2002;
  11975. return e;
  11976. }
  11977. e.prototype.onLoad = function() {
  11978. t.prototype.onLoad.call(this);
  11979. this.node.zIndex = 9999;
  11980. };
  11981. e.prototype.onBegin = function() {
  11982. var t = this;
  11983. this.node.removeComponent(cc.PhysicsBoxCollider);
  11984. this.ff.mFFheader.addTmpGood(this.goodId, 1);
  11985. cc.tween(this.node).sequence(cc.spawn(cc.moveBy(1, cc.v2(0, 200)).easing(cc.easeSineOut()), cc.fadeOut(1)), cc.callFunc(function() {
  11986. c.default.commitEvent(t.node.name, "", "");
  11987. t.node.removeFromParent(!0);
  11988. t.node.destroy();
  11989. })).start();
  11990. };
  11991. r([ l({
  11992. displayName: "捡起的物品id"
  11993. }) ], e.prototype, "goodId", void 0);
  11994. return r([ p ], e);
  11995. }(a.default);
  11996. o.default = u;
  11997. cc._RF.pop();
  11998. }, {
  11999. "../../../login/FqLogin": "FqLogin",
  12000. "./base/BaseEvent": "BaseEvent"
  12001. } ],
  12002. FPlantTrre: [ function(t, e, o) {
  12003. "use strict";
  12004. cc._RF.push(e, "866efFkMXpGOaZyWLfUzERj", "FPlantTrre");
  12005. var i, n = this && this.__extends || (i = function(t, e) {
  12006. return (i = Object.setPrototypeOf || {
  12007. __proto__: []
  12008. } instanceof Array && function(t, e) {
  12009. t.__proto__ = e;
  12010. } || function(t, e) {
  12011. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  12012. })(t, e);
  12013. }, function(t, e) {
  12014. i(t, e);
  12015. function o() {
  12016. this.constructor = t;
  12017. }
  12018. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  12019. }), r = this && this.__decorate || function(t, e, o, i) {
  12020. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  12021. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  12022. return r > 3 && c && Object.defineProperty(e, o, c), c;
  12023. };
  12024. Object.defineProperty(o, "__esModule", {
  12025. value: !0
  12026. });
  12027. var c = t("../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  12028. n(e, t);
  12029. function e() {
  12030. var e = null !== t && t.apply(this, arguments) || this;
  12031. e.mSpine = null;
  12032. e.text = [];
  12033. e.mTipsIcon = null;
  12034. e.mGearNode = null;
  12035. e.mKeyNode = null;
  12036. return e;
  12037. }
  12038. e.prototype.onLoad = function() {
  12039. t.prototype.onLoad.call(this);
  12040. this.mSpine && (this.mSpine.node.active = !1);
  12041. this.mGearNode && (this.mGearNode.active = !1);
  12042. this.mKeyNode && (this.mKeyNode.active = !1);
  12043. };
  12044. e.prototype.onBegin = function(t) {
  12045. var e = this;
  12046. 1 == t && this.showOpt(this.mTipsIcon, function() {
  12047. var t = e.ff.mFFheader;
  12048. if (t.getTmpCount(2007) > 0) {
  12049. t.removeTmpGood(2007, 1);
  12050. e.showKey();
  12051. } else {
  12052. e.pause();
  12053. e.dialog(0);
  12054. }
  12055. });
  12056. };
  12057. e.prototype.onEnd = function(t) {
  12058. 1 == t && this.closeOpt();
  12059. };
  12060. e.prototype.dialog = function(t) {
  12061. var e = this;
  12062. if (t >= this.text.length) this.resume(); else {
  12063. var o = this.text[t].split("|");
  12064. if (-1 == parseInt(o.shift())) {
  12065. var i = this.ff.mainSprite.node;
  12066. this.showDialog(i, o, function() {
  12067. t++;
  12068. e.dialog(t);
  12069. });
  12070. }
  12071. }
  12072. };
  12073. e.prototype.showKey = function() {
  12074. var t = this;
  12075. this.pause();
  12076. this.mSpine.node.active = !0;
  12077. this.mSpine.setCompleteListener(function() {
  12078. t.mSpine.setCompleteListener(null);
  12079. var e = t.mGearNode.getPosition();
  12080. t.moveCamera(e, 1, function() {
  12081. t.showKey1();
  12082. });
  12083. });
  12084. this.mSpine.setAnimation(0, "grow", !1);
  12085. };
  12086. e.prototype.showKey1 = function() {
  12087. var t = this;
  12088. this.mGearNode.active = !0;
  12089. this.mKeyNode.active = !0;
  12090. this.mGearNode.y += 200;
  12091. this.mKeyNode.y += 200;
  12092. cc.tween(this.mGearNode).sequence(cc.moveBy(1, cc.v2(0, -200)), cc.callFunc(function() {
  12093. t.resume();
  12094. })).start();
  12095. cc.tween(this.mKeyNode).sequence(cc.moveBy(1, cc.v2(0, -200)), cc.callFunc(function() {})).start();
  12096. };
  12097. r([ p({
  12098. displayName: "魔树动画",
  12099. type: sp.Skeleton
  12100. }) ], e.prototype, "mSpine", void 0);
  12101. r([ p([ cc.String ]) ], e.prototype, "text", void 0);
  12102. r([ p({
  12103. displayName: "提示图标",
  12104. type: cc.SpriteFrame
  12105. }) ], e.prototype, "mTipsIcon", void 0);
  12106. r([ p({
  12107. displayName: "出现的机关",
  12108. type: cc.Node
  12109. }) ], e.prototype, "mGearNode", void 0);
  12110. r([ p({
  12111. displayName: "钥匙",
  12112. type: cc.Node
  12113. }) ], e.prototype, "mKeyNode", void 0);
  12114. return r([ s ], e);
  12115. }(c.default);
  12116. o.default = l;
  12117. cc._RF.pop();
  12118. }, {
  12119. "../base/BaseEvent": "BaseEvent"
  12120. } ],
  12121. FSjpPanel: [ function(t, e, o) {
  12122. "use strict";
  12123. cc._RF.push(e, "0886cVuxUJNFKBE47fC4OSP", "FSjpPanel");
  12124. var i, n = this && this.__extends || (i = function(t, e) {
  12125. return (i = Object.setPrototypeOf || {
  12126. __proto__: []
  12127. } instanceof Array && function(t, e) {
  12128. t.__proto__ = e;
  12129. } || function(t, e) {
  12130. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  12131. })(t, e);
  12132. }, function(t, e) {
  12133. i(t, e);
  12134. function o() {
  12135. this.constructor = t;
  12136. }
  12137. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  12138. }), r = this && this.__decorate || function(t, e, o, i) {
  12139. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  12140. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  12141. return r > 3 && c && Object.defineProperty(e, o, c), c;
  12142. };
  12143. Object.defineProperty(o, "__esModule", {
  12144. value: !0
  12145. });
  12146. var c = t("../../../../../main/ViewObject"), a = t("../../../../../util/CHttp"), s = cc._decorator, p = s.ccclass, l = (s.property,
  12147. function(t) {
  12148. n(e, t);
  12149. function e() {
  12150. return null !== t && t.apply(this, arguments) || this;
  12151. }
  12152. e.prototype.setCallback = function(t) {
  12153. this.callback = t;
  12154. };
  12155. e.prototype.onclick = function() {
  12156. this.openSkill();
  12157. };
  12158. e.prototype.openSkill = function() {
  12159. var t = this;
  12160. this.main.startLoad();
  12161. this.main.gameHttp.sendJson("stage/v1/openSkill", {}, function(e, o) {
  12162. t.main.stopLoad();
  12163. if (e == a.HttpStateType.SUCCESS) if (0 == o.retCode) {
  12164. t.main.player.role.openSkill = 1;
  12165. t.callback();
  12166. t.exitDistroy();
  12167. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  12168. });
  12169. };
  12170. return r([ p ], e);
  12171. }(c.default));
  12172. o.default = l;
  12173. cc._RF.pop();
  12174. }, {
  12175. "../../../../../main/ViewObject": "ViewObject",
  12176. "../../../../../util/CHttp": "CHttp"
  12177. } ],
  12178. FSpring: [ function(t, e, o) {
  12179. "use strict";
  12180. cc._RF.push(e, "2b575VOH5BBCbFqsbVQ/0RW", "FSpring");
  12181. var i, n = this && this.__extends || (i = function(t, e) {
  12182. return (i = Object.setPrototypeOf || {
  12183. __proto__: []
  12184. } instanceof Array && function(t, e) {
  12185. t.__proto__ = e;
  12186. } || function(t, e) {
  12187. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  12188. })(t, e);
  12189. }, function(t, e) {
  12190. i(t, e);
  12191. function o() {
  12192. this.constructor = t;
  12193. }
  12194. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  12195. }), r = this && this.__decorate || function(t, e, o, i) {
  12196. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  12197. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  12198. return r > 3 && c && Object.defineProperty(e, o, c), c;
  12199. };
  12200. Object.defineProperty(o, "__esModule", {
  12201. value: !0
  12202. });
  12203. var c = t("../../../../main/ViewManage"), a = t("../../object/FObject"), s = t("../../object/FSprite"), p = t("../base/BaseEvent"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  12204. n(e, t);
  12205. function e() {
  12206. var e = null !== t && t.apply(this, arguments) || this;
  12207. e.effect = null;
  12208. e.effectNumber = null;
  12209. e.spine = null;
  12210. e.icon = null;
  12211. e.mTipsIcon = null;
  12212. e.mProgressBar = null;
  12213. e.guides = [];
  12214. e.isOpen = !1;
  12215. return e;
  12216. }
  12217. e.prototype.onLoad = function() {
  12218. t.prototype.onLoad.call(this);
  12219. this.mProgressBar.node.active = !1;
  12220. this.icon && (this.icon.active = !1);
  12221. };
  12222. e.prototype.onBegin = function(t) {
  12223. this.isOpen || (1 == t ? this.showButton() : 2 == t && this.icon && (this.icon.active = !0));
  12224. };
  12225. e.prototype.onEnd = function(t) {
  12226. 1 == t ? this.closeOpt() : 2 == t && this.icon && (this.icon.active = !1);
  12227. };
  12228. e.prototype.showButton = function() {
  12229. var t = this;
  12230. this.showOpt(this.mTipsIcon, function() {
  12231. t.isOpen = !0;
  12232. t.huifu();
  12233. });
  12234. };
  12235. e.prototype.huifu = function() {
  12236. this.spine && this.spine.setAnimation(0, "hit", !0);
  12237. for (var t = 0; t < this.guides.length; t++) this.guides[t].destroy();
  12238. this.guides = [];
  12239. this.closeOpt();
  12240. this.ff.pauseSprite(!0);
  12241. this.ff.mainSprite.playAction(s.SpriteActionType.shiqu, !0);
  12242. this.playProgressBar();
  12243. };
  12244. e.prototype.playProgressBar = function() {
  12245. this.mProgressBar.progress = 0;
  12246. this.mProgressBar.node.active = !0;
  12247. this.schedule(this.progressBarUpdate, .1, 11);
  12248. };
  12249. e.prototype.progressBarUpdate = function() {
  12250. this.mProgressBar.progress += .1;
  12251. if (this.mProgressBar.progress >= 1) {
  12252. this.ff.main.playerEffectByPath(c.AudioMgr.blood);
  12253. this.unschedule(this.progressBarUpdate);
  12254. this.mProgressBar.node.active = !1;
  12255. this.ff.mainSprite.playAction(s.SpriteActionType.stand, !0);
  12256. this.addHP();
  12257. }
  12258. };
  12259. e.prototype.addHP = function() {
  12260. var t = this;
  12261. this.ff.pauseSprite(!1);
  12262. if (this.spine) {
  12263. this.spine.setAnimation(0, "dead", !1);
  12264. this.spine.setCompleteListener(function() {
  12265. t.spine.setCompleteListener(null);
  12266. });
  12267. }
  12268. cc.tween(this.node).sequence(cc.callFunc(function() {
  12269. t.playEffect();
  12270. }), cc.delayTime(.5), cc.callFunc(function() {
  12271. t.playEffect();
  12272. }), cc.delayTime(.5), cc.callFunc(function() {
  12273. t.playEffect();
  12274. })).start();
  12275. };
  12276. e.prototype.playEffect = function() {
  12277. for (var t = this.ff.getGroupBy(a.GroupType.A), e = 0; e < t.length; e++) {
  12278. var o = t[e];
  12279. if (o && o.hp > 0) {
  12280. var i = o.getComponent(s.default), n = Math.floor(i.attrData.hp / 5);
  12281. i.hp += n;
  12282. i.hp > i.attrData.hp && (i.hp = i.attrData.hp);
  12283. i.updatePanel();
  12284. this.playNumber(i, n);
  12285. }
  12286. }
  12287. };
  12288. e.prototype.playNumber = function(t, e) {
  12289. var o = cc.instantiate(this.effect);
  12290. o.parent = t.node;
  12291. o.group = t.node.group;
  12292. var i = new cc.Node("hp");
  12293. i.group = "map";
  12294. var n = i.addComponent(cc.Label);
  12295. n.fontSize = 26;
  12296. n.font = this.effectNumber;
  12297. n.string = "." + e;
  12298. i.x = t.node.x;
  12299. i.y = t.node.y + 40;
  12300. this.ff.mMap.node.addChild(i);
  12301. cc.tween(i).sequence(cc.spawn(cc.moveBy(1, cc.v2(0, 60)).easing(cc.easeSineOut()), cc.fadeOut(1)), cc.callFunc(function() {
  12302. i.destroy();
  12303. o.destroy();
  12304. })).start();
  12305. };
  12306. r([ f({
  12307. type: cc.Prefab,
  12308. displayName: "恢复的动画效果"
  12309. }) ], e.prototype, "effect", void 0);
  12310. r([ f({
  12311. type: cc.Font,
  12312. displayName: "恢复的数字"
  12313. }) ], e.prototype, "effectNumber", void 0);
  12314. r([ f({
  12315. type: sp.Skeleton,
  12316. displayName: "泉水动画"
  12317. }) ], e.prototype, "spine", void 0);
  12318. r([ f({
  12319. displayName: "靠近的提示",
  12320. type: cc.Node
  12321. }) ], e.prototype, "icon", void 0);
  12322. r([ f({
  12323. displayName: "提示图标",
  12324. type: cc.SpriteFrame
  12325. }) ], e.prototype, "mTipsIcon", void 0);
  12326. r([ f({
  12327. displayName: "采摘进度条",
  12328. type: cc.ProgressBar
  12329. }) ], e.prototype, "mProgressBar", void 0);
  12330. r([ f(cc.Node) ], e.prototype, "guides", void 0);
  12331. return r([ u ], e);
  12332. }(p.default);
  12333. o.default = h;
  12334. cc._RF.pop();
  12335. }, {
  12336. "../../../../main/ViewManage": "ViewManage",
  12337. "../../object/FObject": "FObject",
  12338. "../../object/FSprite": "FSprite",
  12339. "../base/BaseEvent": "BaseEvent"
  12340. } ],
  12341. FSpriteTmpGood: [ function(t, e, o) {
  12342. "use strict";
  12343. cc._RF.push(e, "176c6cmZItNoZYxZXna6Abz", "FSpriteTmpGood");
  12344. var i, n = this && this.__extends || (i = function(t, e) {
  12345. return (i = Object.setPrototypeOf || {
  12346. __proto__: []
  12347. } instanceof Array && function(t, e) {
  12348. t.__proto__ = e;
  12349. } || function(t, e) {
  12350. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  12351. })(t, e);
  12352. }, function(t, e) {
  12353. i(t, e);
  12354. function o() {
  12355. this.constructor = t;
  12356. }
  12357. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  12358. }), r = this && this.__decorate || function(t, e, o, i) {
  12359. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  12360. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  12361. return r > 3 && c && Object.defineProperty(e, o, c), c;
  12362. };
  12363. Object.defineProperty(o, "__esModule", {
  12364. value: !0
  12365. });
  12366. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  12367. n(e, t);
  12368. function e() {
  12369. var e = null !== t && t.apply(this, arguments) || this;
  12370. e.goodId = 2004;
  12371. e.goodCount = 1;
  12372. return e;
  12373. }
  12374. r([ s ], e.prototype, "goodId", void 0);
  12375. r([ s ], e.prototype, "goodCount", void 0);
  12376. return r([ a ], e);
  12377. }(cc.Component);
  12378. o.default = p;
  12379. cc._RF.pop();
  12380. }, {} ],
  12381. FSprite: [ function(t, e, o) {
  12382. "use strict";
  12383. cc._RF.push(e, "cc65bYPVW5My7ctVKJuPNMm", "FSprite");
  12384. var i, n = this && this.__extends || (i = function(t, e) {
  12385. return (i = Object.setPrototypeOf || {
  12386. __proto__: []
  12387. } instanceof Array && function(t, e) {
  12388. t.__proto__ = e;
  12389. } || function(t, e) {
  12390. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  12391. })(t, e);
  12392. }, function(t, e) {
  12393. i(t, e);
  12394. function o() {
  12395. this.constructor = t;
  12396. }
  12397. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  12398. }), r = this && this.__decorate || function(t, e, o, i) {
  12399. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  12400. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  12401. return r > 3 && c && Object.defineProperty(e, o, c), c;
  12402. };
  12403. Object.defineProperty(o, "__esModule", {
  12404. value: !0
  12405. });
  12406. o.SpriteActionType = o.SpriteType = void 0;
  12407. var c = t("./FObject"), a = t("../../../util/CMath"), s = t("../../fight/bullet/BObject"), p = t("./FPanel"), l = t("./AI/AIBase"), u = t("./FPanelIcon"), f = t("../../home/equip/Equip"), h = cc._decorator, d = h.ccclass, m = h.property;
  12408. o.SpriteType = cc.Enum({
  12409. NONE: 0,
  12410. MOVE: 1,
  12411. ATK: 2
  12412. });
  12413. o.SpriteActionType = cc.Enum({
  12414. stand: "idle",
  12415. move: "move",
  12416. run: "run",
  12417. atk: "atk",
  12418. atk1: "atk1",
  12419. dead: "dead",
  12420. yun: "yun",
  12421. yun2: "yun2",
  12422. dang: "dang",
  12423. chuizi: "chuizi",
  12424. shiqu: "shiqu"
  12425. });
  12426. var y = function(t) {
  12427. n(e, t);
  12428. function e() {
  12429. var e = null !== t && t.apply(this, arguments) || this;
  12430. e.spine = null;
  12431. e.mBullet = null;
  12432. e.mAtkSite = null;
  12433. e.mWeapon1 = null;
  12434. e.mButtleDis = 10;
  12435. e.mPanels = [];
  12436. e.status = o.SpriteType.NONE;
  12437. e.hp = -1;
  12438. e.attrData = null;
  12439. e.isActive = !0;
  12440. e.SPEED_WALK = 300;
  12441. e.SPEED_SHOOT = 100;
  12442. e.dir = {
  12443. x: 0,
  12444. y: 0
  12445. };
  12446. e.isWalk = !1;
  12447. e.isRuning = !1;
  12448. e.isShooting = !1;
  12449. e.wAngle = 0;
  12450. e.gamePause = !1;
  12451. e.hitCount = 0;
  12452. e.yanwu = null;
  12453. e.hasDun = !1;
  12454. e.hasWudi = !1;
  12455. e.tmpDir = {
  12456. x: 0,
  12457. y: 0
  12458. };
  12459. e.tmpActionType = null;
  12460. return e;
  12461. }
  12462. i = e;
  12463. e.prototype.onLoad = function() {
  12464. var t = this.node.getChildByName("juese01"), e = t.getChildByName("spineRight");
  12465. "s1" == this.node.name && (this.yanwu = t.getChildByName("yanwu_gs"));
  12466. this.mRigidBody = this.node.getComponent(cc.RigidBody);
  12467. this.mRigidBody.allowSleep = !1;
  12468. this.spine = e.getComponent(sp.Skeleton);
  12469. this.mAtkSite = this.spine.findBone("zidan");
  12470. this.mWeapon1 = this.spine.findBone("control");
  12471. };
  12472. e.prototype.start = function() {
  12473. if (this.id > 0) {
  12474. var t = this.map.ff.main.sManage.getMonsterData(this.id);
  12475. this.setAttrData(t);
  12476. this.hp = this.attrData.hp;
  12477. for (var e = 0; e < this.mPanels.length; e++) this.mPanels[e].updatePanel();
  12478. }
  12479. this.setYanwu(!1);
  12480. this.updateSkin();
  12481. };
  12482. e.prototype.useHammer = function() {
  12483. f.default.chaneWeapon(this.spine, "1000");
  12484. };
  12485. e.prototype.updateSkin = function() {
  12486. if (!(this.hp <= 0)) {
  12487. this.attrData.skin && this.spine.setSkin(this.attrData.skin);
  12488. this.attrData.weapon && f.default.chaneWeapon(this.spine, this.attrData.weapon);
  12489. }
  12490. };
  12491. e.prototype.update = function(t) {
  12492. this.gamePause || this.updateMove(t);
  12493. };
  12494. e.prototype.setMaterial = function() {
  12495. var t = this;
  12496. this.spine.setMaterial(0, this.ff.fres.grayMaterial);
  12497. var e = .8;
  12498. this.schedule(function() {
  12499. (e -= .1) <= 0 ? t.spine.setMaterial(0, t.ff.fres.normalMaterial) : t.spine.getMaterial(0).setProperty("addColor", [ e, e, e, e ]);
  12500. }, .01, 10);
  12501. };
  12502. e.prototype.setPause = function(t) {
  12503. this.gamePause = t;
  12504. if (this.gamePause) {
  12505. this.setDir({
  12506. x: 0,
  12507. y: 0
  12508. });
  12509. this.setWalk(!1);
  12510. }
  12511. };
  12512. e.prototype.setPosition = function(t) {
  12513. this.node.setPosition(t);
  12514. };
  12515. e.prototype.setBullet = function(t) {
  12516. this.mBullet = t;
  12517. };
  12518. e.prototype.setAttrData = function(t) {
  12519. var e = this;
  12520. this.attrData = t;
  12521. if (this.mBullet) {
  12522. var o = cc.instantiate(this.mBullet);
  12523. this.mButtleDis = o.getComponent(s.default).distance;
  12524. o.destroy();
  12525. } else {
  12526. t.bullet || (t.bullet = "1001");
  12527. cc.resources.load("prefab/bullet/" + t.bullet, cc.Prefab, function(t, o) {
  12528. if (t) cc.error(t); else {
  12529. e.mBullet = o;
  12530. var i = cc.instantiate(e.mBullet);
  12531. e.mButtleDis = i.getComponent(s.default).distance;
  12532. i.destroy();
  12533. }
  12534. });
  12535. }
  12536. var i = "prefab/common/hp_monter";
  12537. "B" == this.node.group && (i = "prefab/common/hp_monter_red");
  12538. cc.resources.load(i, cc.Prefab, function(t, o) {
  12539. if (t) cc.error(t); else {
  12540. var i = cc.instantiate(o), n = i.getComponent(p.default);
  12541. n.sprite = e;
  12542. e.mPanels.push(n);
  12543. i.y = -10;
  12544. i.parent = e.node;
  12545. n.updatePanel();
  12546. }
  12547. });
  12548. };
  12549. e.prototype.flushAttrData = function(t) {
  12550. var e = this;
  12551. this.attrData = t;
  12552. this.updateSkin();
  12553. t.bullet || (t.bullet = "1001");
  12554. cc.resources.load("prefab/bullet/" + t.bullet, cc.Prefab, function(t, o) {
  12555. if (t) cc.error(t); else {
  12556. e.mBullet = o;
  12557. var i = cc.instantiate(e.mBullet);
  12558. e.mButtleDis = i.getComponent(s.default).distance;
  12559. i.destroy();
  12560. }
  12561. });
  12562. };
  12563. e.prototype.addPanelHUD = function() {
  12564. var t = this.ff.fres, e = cc.instantiate(t.mHudPrefab);
  12565. e.parent = t.mHudNode;
  12566. var o = e.getComponent(u.default);
  12567. o.sprite = this;
  12568. o.setIcon();
  12569. this.mPanels.push(o);
  12570. };
  12571. e.prototype.setWeaponAngle = function(t) {
  12572. this.wAngle = 180 * t / Math.PI;
  12573. };
  12574. e.prototype.updateWeaponAngle = function(t) {
  12575. if (this.mWeapon1) {
  12576. this.mWeapon1.data.rotation = (t - 90) * this.spine.node.scaleX + 90;
  12577. this.mWeapon1.rotation = (t - 90) * this.spine.node.scaleX + 90;
  12578. }
  12579. };
  12580. e.prototype.updateAction = function() {
  12581. var t = this;
  12582. if (this.status == o.SpriteType.ATK) ; else if (this.isShooting) {
  12583. if (this.status == o.SpriteType.NONE) {
  12584. this.spineEventListener();
  12585. this.playAction(o.SpriteActionType.atk, !1, function() {
  12586. t.status = o.SpriteType.NONE;
  12587. t.updateSpine();
  12588. t.tmpDir.x = t.dir.x;
  12589. t.tmpDir.y = t.dir.y;
  12590. t.updateAction();
  12591. }) && (this.status = o.SpriteType.ATK);
  12592. }
  12593. } else this.isWalk ? this.playAction(o.SpriteActionType.run, !0) : this.playAction(o.SpriteActionType.stand, !0);
  12594. };
  12595. e.prototype.updateSpine = function() {
  12596. var t = this.findEnemy(1300).sprite, e = this.node.getPosition();
  12597. if (t && t.isValid) {
  12598. var o = t.node.getPosition();
  12599. e.x == o.x || (e.x - o.x > 3 ? this.setLR(-1) : this.setLR(1));
  12600. var i = Math.floor(a.default.getAngle(e, o) * (180 / Math.PI));
  12601. this.updateWeaponAngle(i);
  12602. } else {
  12603. this.updateSpineByDir();
  12604. this.updateWeaponAngle(this.wAngle);
  12605. }
  12606. return !1;
  12607. };
  12608. e.prototype.updateSpineByDir = function() {
  12609. this.dir.x >= 0 ? this.setLR(1) : this.setLR(-1);
  12610. };
  12611. e.prototype.setDir = function(t) {
  12612. if (!this.gamePause) {
  12613. if (0 == t.x && 0 == t.y) {
  12614. this.setWalk(!1);
  12615. return !1;
  12616. }
  12617. if (this.isWalk && this.dir.x == t.x && this.dir.y == t.y) return !0;
  12618. this.dir.x = t.x;
  12619. this.dir.y = t.y;
  12620. this.setWalk(!0);
  12621. return !0;
  12622. }
  12623. };
  12624. e.prototype.setWalk = function(t) {
  12625. this.isWalk = t;
  12626. this.updateSpine();
  12627. this.updateAction();
  12628. };
  12629. e.prototype.setRuning = function(t) {
  12630. this.isRuning = t;
  12631. this.updateAction();
  12632. };
  12633. e.prototype.setShooting = function(t) {
  12634. this.isShooting = t;
  12635. if (t && this.status == o.SpriteType.NONE) {
  12636. this.tmpDir.x = this.dir.x;
  12637. this.tmpDir.y = this.dir.y;
  12638. this.updateAction();
  12639. }
  12640. };
  12641. e.prototype.updateMove = function(t) {
  12642. if (this.isWalk) {
  12643. var e;
  12644. e = this.isShooting ? this.SPEED_SHOOT : this.SPEED_WALK;
  12645. this.node.x += this.dir.x * t * e;
  12646. this.node.y += this.dir.y * t * e;
  12647. this.setYanwu(!0);
  12648. } else this.setYanwu(!1);
  12649. };
  12650. e.prototype.moveTo = function(t, e) {
  12651. var o = this.node.x > t.x ? -1200 : 1200, i = this.node.y > t.y ? -1200 : 1200;
  12652. this.node.x += e * o;
  12653. this.node.y += e * i;
  12654. o > 0 ? this.node.x > t.x && (this.node.x = t.x) : this.node.x < t.x && (this.node.x = t.x);
  12655. i > 0 ? this.node.y > t.y && (this.node.y = t.y) : this.node.y < t.y && (this.node.y = t.y);
  12656. return !1;
  12657. };
  12658. e.prototype.setLR = function(t) {
  12659. var e = Math.abs(this.spine.node.scaleX);
  12660. this.spine.node.scaleX = -1 == t ? -e : e;
  12661. };
  12662. e.prototype.getLR = function() {
  12663. return this.spine.node.scaleX > 0 ? 1 : -1;
  12664. };
  12665. e.prototype.setFireCallback = function(t) {
  12666. this.fireCallback = t;
  12667. };
  12668. e.prototype.addSendEffect = function(t, e) {
  12669. if (t) {
  12670. var o = cc.instantiate(t), i = this.mAtkSite.worldX * this.spine.node.scaleX, n = this.mAtkSite.worldY, r = cc.v2(i, n);
  12671. o.setPosition(r);
  12672. o.parent = this.node;
  12673. if (e) {
  12674. var c = this.node.getPosition(), s = e.getPosition(), p = Math.floor(a.default.getAngle(c, s) * (180 / Math.PI));
  12675. o.angle = p;
  12676. } else o.angle = this.wAngle;
  12677. var l = o.getComponent(sp.Skeleton);
  12678. l.setCompleteListener(function() {
  12679. o.destroy();
  12680. });
  12681. l.setAnimation(0, "atk", !1);
  12682. }
  12683. };
  12684. e.prototype.spineEventListener = function() {
  12685. var t = this;
  12686. this.spine.setEventListener(function(e, o) {
  12687. if (t.isValid && !t.gamePause && t.node.isValid && "hit" == o.data.name) {
  12688. var i = cc.instantiate(t.mBullet);
  12689. i.group = "bullet";
  12690. var n = t.node.x + t.mAtkSite.worldX * t.spine.node.scaleX, r = t.node.y + t.mAtkSite.worldY, c = cc.v2(n, r);
  12691. i.setPosition(c);
  12692. var a = i.getComponent(s.default);
  12693. a.setSprite(t);
  12694. var p = t.findEnemy(2e3).sprite;
  12695. i.parent = t.map.mSprites;
  12696. if (p && p.isValid) {
  12697. a.fire(p.node);
  12698. t.addSendEffect(a.mStartEffect, p.node);
  12699. } else {
  12700. a.fireAngle1(t.wAngle);
  12701. t.addSendEffect(a.mStartEffect, null);
  12702. }
  12703. t.fireCallback && t.fireCallback();
  12704. if (t.node == t.ff.mainSprite.node) if (t.hitCount > 4) {
  12705. t.ff.shockMap();
  12706. t.hitCount = 0;
  12707. } else t.hitCount++;
  12708. t.ff.main.playerEffectByPath("music/magic_1001_fs");
  12709. }
  12710. });
  12711. };
  12712. e.prototype.playAction = function(t, e, o) {
  12713. var i = this;
  12714. if (!this.isActive) return !1;
  12715. if (!this.spine) return !1;
  12716. if (t == this.tmpActionType) return !1;
  12717. o && this.spine.setCompleteListener(function() {
  12718. i.spine.setCompleteListener(null);
  12719. i.tmpActionType = null;
  12720. o();
  12721. });
  12722. this.tmpActionType = t;
  12723. this.spine.setAnimation(0, t, e);
  12724. return !0;
  12725. };
  12726. e.prototype.playAction2 = function(t, e, i) {
  12727. var n = this;
  12728. this.status = o.SpriteType.NONE;
  12729. i && this.spine.setCompleteListener(function() {
  12730. n.spine.setCompleteListener(null);
  12731. n.tmpActionType = null;
  12732. i();
  12733. });
  12734. this.spine.setEventListener(null);
  12735. this.spine.setAnimation(0, t, e);
  12736. };
  12737. e.prototype.atkjs = function(t, e) {
  12738. var o = this.calculate(this.attrData, t.attrData, e);
  12739. t.reduce(o);
  12740. this == this.ff.mainSprite ? this.ff.flushHP(t) : this.ff.updateHP(t);
  12741. if (t.hp > 0) {
  12742. var i = t.node.getComponent(l.default);
  12743. i && i.setTarget(this);
  12744. }
  12745. };
  12746. e.prototype.bAtkjs = function(t) {
  12747. var e = this.calculate(t, this.attrData);
  12748. this.reduce(e);
  12749. };
  12750. e.prototype.calculate = function(t, e, o) {
  12751. var i = t.atk - e.def;
  12752. o && (1 == o.value4 ? i += t.water : 2 == o.value4 ? i += t.fire : 3 == o.value4 ? i += t.earth : 4 == o.value4 ? i += t.wind : 5 == o.value4 && (i += t.thunder));
  12753. i <= 0 && (i = 1);
  12754. var n = 500 * i / (e.def + 300);
  12755. n < 1 && (n = 1);
  12756. var r = !1, c = !1;
  12757. if (a.default.getRandom(1, 100) < 30) {
  12758. r = !0;
  12759. n += 3 * n / 10;
  12760. }
  12761. if (o) {
  12762. n = n * o.value1 / 100;
  12763. c = !0;
  12764. }
  12765. var s = n / 10;
  12766. (n += a.default.getRandom(-s, s)) < 10 && (n = a.default.getRandom(1, 10));
  12767. n = Math.floor(n);
  12768. return {
  12769. hp: Math.floor(n),
  12770. bj: r,
  12771. sk: c
  12772. };
  12773. };
  12774. e.prototype.getEnemyGroup = function() {
  12775. return "A" == this.node.group ? "B" : "A";
  12776. };
  12777. e.prototype.findEnemy = function(t) {
  12778. var e = this.getEnemyGroup(), o = 0, n = null;
  12779. if (this.map) for (var r = this.map.getSprites(), c = 0; c < r.length; c++) {
  12780. var a = r[c], s = a.getComponent(i);
  12781. if (s && a.active && s.isActive && s.hp > 0 && s.node.group == e) {
  12782. var p = cc.Vec2.distance(this.node.getPosition(), a.getPosition());
  12783. if (p < t) if (null == n) {
  12784. n = s;
  12785. o = p;
  12786. } else if (p < o) {
  12787. n = s;
  12788. o = p;
  12789. }
  12790. }
  12791. }
  12792. return {
  12793. sprite: n,
  12794. dis: o
  12795. };
  12796. };
  12797. e.prototype.wudi = function(t) {
  12798. var e = this;
  12799. this.hasWudi = !0;
  12800. cc.tween(this.node).sequence(cc.delayTime(t), cc.callFunc(function() {
  12801. e.hasWudi = !1;
  12802. })).start();
  12803. };
  12804. e.prototype.reduce = function(t) {
  12805. var e = t.hp;
  12806. if (!(e <= 0) && !this.hasWudi && !(this.hp <= 0) && this.ff.lockCamera) {
  12807. var o = t.bj, i = t.sk;
  12808. this.playHit();
  12809. this.hasDun && (e = Math.floor(e / 2));
  12810. i ? this.showNumber("/" + e, this.ff.mSkillFont) : o ? this.showNumber("/" + e, this.ff.mBjFont, null, !0) : this.showNumber("/" + e, this.ff.mRed);
  12811. this.hp -= e;
  12812. if (this.hp <= 0) {
  12813. this.hp = 0;
  12814. this.isActive = !1;
  12815. this.ff.clearCallback && this.ff.clearCallback(this);
  12816. this.ff.removeCallback && this.ff.removeCallback(this);
  12817. this == this.ff.mainSprite || this.removeSelf();
  12818. }
  12819. this.updatePanel();
  12820. }
  12821. };
  12822. e.prototype.updatePanel = function() {
  12823. for (var t = 0; t < this.mPanels.length; t++) this.mPanels[t].updatePanel();
  12824. };
  12825. e.prototype.removeSelf = function() {
  12826. var t = this;
  12827. this.gamePause = !0;
  12828. this.playAction2(o.SpriteActionType.dead, !1, function() {
  12829. t.node.destroy();
  12830. });
  12831. };
  12832. e.prototype.showNumber = function(t, e, o, i) {
  12833. var n = new cc.Node("hp");
  12834. n.group = "map";
  12835. var r = n.addComponent(cc.Label);
  12836. r.fontSize = 30;
  12837. e && (r.font = e);
  12838. o && (n.color = o);
  12839. r.string = t;
  12840. n.x = this.node.x;
  12841. n.y = this.node.y + 3 * this.node.height / 4;
  12842. this.map.node.addChild(n);
  12843. var c = cc.moveBy(2, cc.v2(0, 150)).easing(cc.easeSineOut()), a = cc.fadeOut(2), s = null;
  12844. if (i) {
  12845. var p = cc.sequence(cc.scaleTo(.05, 1.5), cc.scaleTo(.2, 1.2));
  12846. s = cc.spawn(c, a, p);
  12847. } else s = cc.spawn(c, a);
  12848. var l = cc.sequence(cc.delayTime(.1), s, cc.callFunc(function() {
  12849. n.removeFromParent(!0);
  12850. n.destroy();
  12851. }));
  12852. n.runAction(l);
  12853. };
  12854. e.prototype.playHit = function() {
  12855. var t = this.node.getChildByName("juese01");
  12856. t && cc.tween(t).sequence(cc.scaleTo(.06, 1.1, .95), cc.scaleTo(.06, 1, 1.1), cc.scaleTo(.06, 1, 1)).start();
  12857. };
  12858. e.prototype.addActiveIcon = function() {
  12859. var t = new cc.Node("activeIcon");
  12860. t.addComponent(cc.Sprite).spriteFrame = this.ff.mActiveIcon;
  12861. t.parent = this.node;
  12862. t.y = this.node.height + 20;
  12863. return t;
  12864. };
  12865. e.prototype.removeActiveIcon = function() {
  12866. var t = this.node.getChildByName("activeIcon");
  12867. t && t.destroy();
  12868. };
  12869. e.prototype.setNext = function(t) {
  12870. this.nextSprite = t;
  12871. };
  12872. e.prototype.tangentMove = function() {};
  12873. e.prototype.setYanwu = function(t) {
  12874. if (this.yanwu) {
  12875. if (this.yanwu.active == t) return;
  12876. this.yanwu.active = t;
  12877. }
  12878. };
  12879. var i;
  12880. r([ m(cc.Prefab) ], e.prototype, "mBullet", void 0);
  12881. return i = r([ d ], e);
  12882. }(c.default);
  12883. o.default = y;
  12884. cc._RF.pop();
  12885. }, {
  12886. "../../../util/CMath": "CMath",
  12887. "../../fight/bullet/BObject": "BObject",
  12888. "../../home/equip/Equip": "Equip",
  12889. "./AI/AIBase": "AIBase",
  12890. "./FObject": "FObject",
  12891. "./FPanel": "FPanel",
  12892. "./FPanelIcon": "FPanelIcon"
  12893. } ],
  12894. FStoenRoll: [ function(t, e, o) {
  12895. "use strict";
  12896. cc._RF.push(e, "2d187U3W8RPV65wVEErqYXV", "FStoenRoll");
  12897. var i, n = this && this.__extends || (i = function(t, e) {
  12898. return (i = Object.setPrototypeOf || {
  12899. __proto__: []
  12900. } instanceof Array && function(t, e) {
  12901. t.__proto__ = e;
  12902. } || function(t, e) {
  12903. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  12904. })(t, e);
  12905. }, function(t, e) {
  12906. i(t, e);
  12907. function o() {
  12908. this.constructor = t;
  12909. }
  12910. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  12911. }), r = this && this.__decorate || function(t, e, o, i) {
  12912. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  12913. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  12914. return r > 3 && c && Object.defineProperty(e, o, c), c;
  12915. };
  12916. Object.defineProperty(o, "__esModule", {
  12917. value: !0
  12918. });
  12919. var c = t("../../object/FSprite"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  12920. n(e, t);
  12921. function e() {
  12922. var e = null !== t && t.apply(this, arguments) || this;
  12923. e.monsterId = 1001;
  12924. e.time = 2;
  12925. e.interval = 2;
  12926. e.target = null;
  12927. e.spine = null;
  12928. e.warnNode = null;
  12929. e.isRoll = !1;
  12930. return e;
  12931. }
  12932. e.prototype.onLoad = function() {
  12933. var t = this;
  12934. this.initPos = this.node.getPosition();
  12935. this.targetPos = this.target.getPosition();
  12936. cc.tween(this.node).sequence(cc.delayTime(this.interval), cc.callFunc(function() {
  12937. t.node.getComponent(cc.RigidBody).enabledContactListener = !0;
  12938. t.node.getComponent(cc.RigidBody).allowSleep = !1;
  12939. t.node.opacity = 255;
  12940. t.node.setPosition(t.initPos);
  12941. t.isRoll = !0;
  12942. t.warnAction();
  12943. }), cc.moveBy(this.time, this.targetPos), cc.callFunc(function() {
  12944. t.node.getComponent(cc.RigidBody).allowSleep = !0;
  12945. t.isRoll = !1;
  12946. if (t.warnNode) {
  12947. t.warnNode.stopAllActions();
  12948. t.warnNode.opacity = 0;
  12949. }
  12950. }), cc.fadeOut(.5), cc.callFunc(function() {
  12951. t.node.getComponent(cc.RigidBody).enabledContactListener = !1;
  12952. })).repeatForever().start();
  12953. };
  12954. e.prototype.onBeginContact = function(t, e, o) {
  12955. if ("A" == o.node.group && 1 == o.tag) {
  12956. var i = o.node.getComponent(c.default);
  12957. if (i.hp > 0) {
  12958. this.ff = i.ff;
  12959. var n = this.ff.main.sManage.getMonsterData(this.monsterId);
  12960. i.bAtkjs(n);
  12961. }
  12962. }
  12963. };
  12964. e.prototype.warnAction = function() {
  12965. if (this.warnNode) {
  12966. this.warnNode.opacity = 0;
  12967. cc.tween(this.warnNode).sequence(cc.fadeTo(.2, 120), cc.fadeTo(.2, 0)).repeatForever().start();
  12968. }
  12969. };
  12970. r([ p({
  12971. displayName: "数值(怪物id)"
  12972. }) ], e.prototype, "monsterId", void 0);
  12973. r([ p({
  12974. displayName: "起点到终点时间(秒)"
  12975. }) ], e.prototype, "time", void 0);
  12976. r([ p({
  12977. displayName: "每次滚动停留时间(秒)"
  12978. }) ], e.prototype, "interval", void 0);
  12979. r([ p({
  12980. type: cc.Node,
  12981. displayName: "滚动目的地"
  12982. }) ], e.prototype, "target", void 0);
  12983. r([ p({
  12984. type: sp.Skeleton,
  12985. displayName: "滚动动画"
  12986. }) ], e.prototype, "spine", void 0);
  12987. r([ p({
  12988. displayName: "警告",
  12989. type: cc.Node
  12990. }) ], e.prototype, "warnNode", void 0);
  12991. return r([ s ], e);
  12992. }(cc.Component);
  12993. o.default = l;
  12994. cc._RF.pop();
  12995. }, {
  12996. "../../object/FSprite": "FSprite"
  12997. } ],
  12998. FStoneDrop: [ function(t, e, o) {
  12999. "use strict";
  13000. cc._RF.push(e, "ae49bisQD9GL47J/Gpqh3tx", "FStoneDrop");
  13001. var i, n = this && this.__extends || (i = function(t, e) {
  13002. return (i = Object.setPrototypeOf || {
  13003. __proto__: []
  13004. } instanceof Array && function(t, e) {
  13005. t.__proto__ = e;
  13006. } || function(t, e) {
  13007. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  13008. })(t, e);
  13009. }, function(t, e) {
  13010. i(t, e);
  13011. function o() {
  13012. this.constructor = t;
  13013. }
  13014. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  13015. }), r = this && this.__decorate || function(t, e, o, i) {
  13016. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  13017. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  13018. return r > 3 && c && Object.defineProperty(e, o, c), c;
  13019. };
  13020. Object.defineProperty(o, "__esModule", {
  13021. value: !0
  13022. });
  13023. var c = t("../../object/FSprite"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  13024. n(e, t);
  13025. function e() {
  13026. var e = null !== t && t.apply(this, arguments) || this;
  13027. e.monsterId = 1001;
  13028. e.interval = 2;
  13029. e.spine = null;
  13030. e.warnNode = null;
  13031. e.isRoll = !1;
  13032. e.isHit = !1;
  13033. e.isWarn = !1;
  13034. e.tempTime = 0;
  13035. e.spriteList = [];
  13036. e.callFunc = null;
  13037. return e;
  13038. }
  13039. e.prototype.onLoad = function() {
  13040. var t = this;
  13041. cc.tween(this.node).sequence(cc.delayTime(this.interval), cc.fadeIn(0), cc.callFunc(function() {
  13042. t.isRoll = !0;
  13043. t.spine.setAnimation(0, "atk", !1);
  13044. }), cc.delayTime(1), cc.fadeOut(.2), cc.callFunc(function() {
  13045. t.isRoll = !1;
  13046. t.isHit = !1;
  13047. t.tempTime = 0;
  13048. t.isWarn = !1;
  13049. })).repeatForever().start();
  13050. };
  13051. e.prototype.onBeginContact = function(t, e, o) {
  13052. if ("A" == o.node.group && 1 == o.tag) {
  13053. var i = o.node.getComponent(c.default);
  13054. this.ff = i.ff;
  13055. -1 == this.spriteList.indexOf(i) && this.spriteList.push(i);
  13056. }
  13057. };
  13058. e.prototype.onEndContact = function(t, e, o) {
  13059. if ("A" == o.node.group && 1 == o.tag) {
  13060. var i = o.node.getComponent(c.default);
  13061. this.removeSprite(i);
  13062. this.isHit = !1;
  13063. }
  13064. };
  13065. e.prototype.removeSprite = function(t) {
  13066. for (var e = 0; e < this.spriteList.length; e++) if (this.spriteList[e] == t) {
  13067. this.spriteList.splice(e, 1);
  13068. break;
  13069. }
  13070. };
  13071. e.prototype.hit = function() {
  13072. var t = this;
  13073. this.isHit = !0;
  13074. this.spriteList.forEach(function(e) {
  13075. var o = t.ff.main.sManage.getMonsterData(t.monsterId);
  13076. e.bAtkjs(o);
  13077. });
  13078. };
  13079. e.prototype.warnAction = function() {
  13080. if (!this.isWarn) {
  13081. this.warnNode.stopActionByTag(1);
  13082. this.isWarn = !0;
  13083. this.warnNode.opacity = 0;
  13084. cc.tween(this.warnNode).sequence(cc.fadeIn(.1), cc.fadeOut(.1)).repeat(6).start().tag(1);
  13085. }
  13086. };
  13087. e.prototype.update = function(t) {
  13088. this.isRoll && !this.isHit && this.hit();
  13089. this.tempTime += t;
  13090. this.interval - this.tempTime <= 1 && this.warnAction();
  13091. };
  13092. r([ p({
  13093. displayName: "数值(怪物id)"
  13094. }) ], e.prototype, "monsterId", void 0);
  13095. r([ p({
  13096. displayName: "每次滚动停留时间(秒)"
  13097. }) ], e.prototype, "interval", void 0);
  13098. r([ p({
  13099. type: sp.Skeleton,
  13100. displayName: "滚动动画"
  13101. }) ], e.prototype, "spine", void 0);
  13102. r([ p({
  13103. displayName: "警告",
  13104. type: cc.Node
  13105. }) ], e.prototype, "warnNode", void 0);
  13106. return r([ s ], e);
  13107. }(cc.Component);
  13108. o.default = l;
  13109. cc._RF.pop();
  13110. }, {
  13111. "../../object/FSprite": "FSprite"
  13112. } ],
  13113. FStoreTS: [ function(t, e, o) {
  13114. "use strict";
  13115. cc._RF.push(e, "7cfebyQsTxLOq2sZptWB0Jc", "FStoreTS");
  13116. var i, n = this && this.__extends || (i = function(t, e) {
  13117. return (i = Object.setPrototypeOf || {
  13118. __proto__: []
  13119. } instanceof Array && function(t, e) {
  13120. t.__proto__ = e;
  13121. } || function(t, e) {
  13122. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  13123. })(t, e);
  13124. }, function(t, e) {
  13125. i(t, e);
  13126. function o() {
  13127. this.constructor = t;
  13128. }
  13129. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  13130. }), r = this && this.__decorate || function(t, e, o, i) {
  13131. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  13132. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  13133. return r > 3 && c && Object.defineProperty(e, o, c), c;
  13134. };
  13135. Object.defineProperty(o, "__esModule", {
  13136. value: !0
  13137. });
  13138. var c = t("./base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  13139. n(e, t);
  13140. function e() {
  13141. var e = null !== t && t.apply(this, arguments) || this;
  13142. e.mTipsIcon = null;
  13143. e.mRigidBody = null;
  13144. e.isPull = !1;
  13145. e.moveVt = cc.v2();
  13146. return e;
  13147. }
  13148. e.prototype.start = function() {
  13149. this.mRigidBody = this.node.getComponent(cc.RigidBody);
  13150. };
  13151. e.prototype.onBegin = function(t) {
  13152. this.startEvent();
  13153. if (1 == t) {
  13154. this.moveVt.y = 0;
  13155. this.ff.mainSprite.node.x < this.node.x ? this.moveVt.x = 7 : this.moveVt.x = -7;
  13156. } else if (2 == t) {
  13157. this.moveVt.x = 0;
  13158. this.ff.mainSprite.node.y < this.node.y ? this.moveVt.y = 7 : this.moveVt.y = -7;
  13159. }
  13160. };
  13161. e.prototype.onEnd = function() {
  13162. this.endEvent();
  13163. };
  13164. e.prototype.startEvent = function() {
  13165. var t = this.ff.control;
  13166. t.mEventButton.node.on(cc.Node.EventType.TOUCH_START, this._touchRunningStartEvent, this);
  13167. t.mEventButton.node.on(cc.Node.EventType.TOUCH_MOVE, this._touchRunningMoveEvent, this);
  13168. t.mEventButton.node.on(cc.Node.EventType.TOUCH_END, this._touchRunningEndEvent, this);
  13169. t.mEventButton.node.on(cc.Node.EventType.TOUCH_CANCEL, this._touchRunningEndEvent, this);
  13170. this.showOpt(this.mTipsIcon, function() {});
  13171. };
  13172. e.prototype.endEvent = function() {
  13173. this.closeOpt();
  13174. var t = this.ff.control;
  13175. t.mEventButton.node.off(cc.Node.EventType.TOUCH_START);
  13176. t.mEventButton.node.off(cc.Node.EventType.TOUCH_MOVE);
  13177. t.mEventButton.node.off(cc.Node.EventType.TOUCH_END);
  13178. t.mEventButton.node.off(cc.Node.EventType.TOUCH_CANCEL);
  13179. this.isPull = !1;
  13180. };
  13181. e.prototype._touchRunningMoveEvent = function() {
  13182. cc.log("_touchRunningMoveEvent");
  13183. };
  13184. e.prototype._touchRunningStartEvent = function() {
  13185. var t = this;
  13186. cc.log("_touchRunningStartEvent");
  13187. this.isPull = !0;
  13188. cc.tween(this).sequence(cc.delayTime(.01), cc.callFunc(function() {
  13189. t.mRigidBody.type = cc.RigidBodyType.Dynamic;
  13190. })).start();
  13191. this.ff.mainSprite;
  13192. };
  13193. e.prototype._touchRunningEndEvent = function() {
  13194. var t = this;
  13195. cc.log("_touchRunningEndEvent");
  13196. this.isPull = !1;
  13197. cc.tween(this).sequence(cc.delayTime(.01), cc.callFunc(function() {
  13198. t.mRigidBody.type = cc.RigidBodyType.Static;
  13199. })).start();
  13200. };
  13201. e.prototype.update = function() {
  13202. if (this.isPull) {
  13203. var t = this.ff.mainSprite;
  13204. t.node.x += this.moveVt.x;
  13205. t.node.y += this.moveVt.y;
  13206. }
  13207. };
  13208. r([ p({
  13209. displayName: "提示按钮图标",
  13210. type: cc.SpriteFrame
  13211. }) ], e.prototype, "mTipsIcon", void 0);
  13212. return r([ s ], e);
  13213. }(c.default);
  13214. o.default = l;
  13215. cc._RF.pop();
  13216. }, {
  13217. "./base/BaseEvent": "BaseEvent"
  13218. } ],
  13219. FStory_rescue: [ function(t, e, o) {
  13220. "use strict";
  13221. cc._RF.push(e, "b01b9n7jutC5aeT0jX/mBgn", "FStory_rescue");
  13222. var i, n = this && this.__extends || (i = function(t, e) {
  13223. return (i = Object.setPrototypeOf || {
  13224. __proto__: []
  13225. } instanceof Array && function(t, e) {
  13226. t.__proto__ = e;
  13227. } || function(t, e) {
  13228. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  13229. })(t, e);
  13230. }, function(t, e) {
  13231. i(t, e);
  13232. function o() {
  13233. this.constructor = t;
  13234. }
  13235. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  13236. }), r = this && this.__decorate || function(t, e, o, i) {
  13237. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  13238. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  13239. return r > 3 && c && Object.defineProperty(e, o, c), c;
  13240. };
  13241. Object.defineProperty(o, "__esModule", {
  13242. value: !0
  13243. });
  13244. var c = t("../../object/FSprite"), a = t("./WOneByone"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  13245. n(e, t);
  13246. function e() {
  13247. var e = null !== t && t.apply(this, arguments) || this;
  13248. e.mMapDialog = null;
  13249. e.mMonster = null;
  13250. e.iconTouch = null;
  13251. return e;
  13252. }
  13253. e.prototype.onLoad = function() {};
  13254. e.prototype.onBeginContact = function(t, e, o) {
  13255. if ("A" == o.node.group) {
  13256. var i = o.node.getComponent(c.default);
  13257. this.ff = i.ff;
  13258. i == this.ff.mainSprite && this.showButton();
  13259. }
  13260. };
  13261. e.prototype.onEndContact = function(t, e, o) {
  13262. "A" == o.node.group && o.node.getComponent(c.default) == this.ff.mainSprite && this.closeButton();
  13263. };
  13264. e.prototype.showButton = function() {
  13265. var t = this;
  13266. this.ff.control.mEventButton.node.active = !0;
  13267. this.ff.control.mEventButton.setCallback(function() {
  13268. t.startStory();
  13269. });
  13270. };
  13271. e.prototype.closeButton = function() {
  13272. this.ff.control.mEventButton.node.active = !1;
  13273. };
  13274. e.prototype.startStory = function() {
  13275. this.iconTouch.active = !1;
  13276. this.ff.pauseSprite(!0);
  13277. this.ff.mBlockInputEvents.active = !0;
  13278. this.showDialog1();
  13279. };
  13280. e.prototype.showDialog1 = function() {
  13281. var t = this, e = cc.instantiate(this.mMapDialog);
  13282. e.group = "map";
  13283. e.zIndex = 9999;
  13284. e.x = this.node.x;
  13285. e.y = this.node.y + this.node.height;
  13286. e.parent = this.ff.mMap.mSprites;
  13287. var o = e.getComponent(a.default);
  13288. o.dialogs = [ "别打我,我就是个零时工", "钥匙给你" ];
  13289. o.setCallback(function() {
  13290. e.destroy();
  13291. t.ff.setBlockInputCallback(null);
  13292. t.ff.pauseSprite(!1);
  13293. t.ff.mBlockInputEvents.active = !1;
  13294. t.closeButton();
  13295. t.node.removeComponent(cc.PhysicsBoxCollider);
  13296. t.addKey();
  13297. });
  13298. this.ff.setBlockInputCallback(function() {
  13299. o.jump();
  13300. });
  13301. o._start();
  13302. };
  13303. e.prototype.addKey = function() {
  13304. var t = this.mMonster.node.parent.getPosition();
  13305. this.ff.addGoods([ {
  13306. type: 2,
  13307. icon: "icon/good/2001",
  13308. count: 1,
  13309. id: 2001,
  13310. pz: 0,
  13311. star: 0,
  13312. PR: 0
  13313. } ], t);
  13314. this.ff.mFFheader.addTmpGood(2001, 1);
  13315. };
  13316. r([ l(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  13317. r([ l(dragonBones.ArmatureDisplay) ], e.prototype, "mMonster", void 0);
  13318. r([ l({
  13319. type: cc.Node,
  13320. displayName: "任务提示"
  13321. }) ], e.prototype, "iconTouch", void 0);
  13322. return r([ p ], e);
  13323. }(cc.Component);
  13324. o.default = u;
  13325. cc._RF.pop();
  13326. }, {
  13327. "../../object/FSprite": "FSprite",
  13328. "./WOneByone": "WOneByone"
  13329. } ],
  13330. FTipsEvent: [ function(t, e, o) {
  13331. "use strict";
  13332. cc._RF.push(e, "571c8ZitSZPmrqxdU8dBL8k", "FTipsEvent");
  13333. var i, n = this && this.__extends || (i = function(t, e) {
  13334. return (i = Object.setPrototypeOf || {
  13335. __proto__: []
  13336. } instanceof Array && function(t, e) {
  13337. t.__proto__ = e;
  13338. } || function(t, e) {
  13339. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  13340. })(t, e);
  13341. }, function(t, e) {
  13342. i(t, e);
  13343. function o() {
  13344. this.constructor = t;
  13345. }
  13346. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  13347. }), r = this && this.__decorate || function(t, e, o, i) {
  13348. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  13349. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  13350. return r > 3 && c && Object.defineProperty(e, o, c), c;
  13351. };
  13352. Object.defineProperty(o, "__esModule", {
  13353. value: !0
  13354. });
  13355. var c = t("../../../../i18n/i18n"), a = t("../../../../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  13356. n(e, t);
  13357. function e() {
  13358. var e = null !== t && t.apply(this, arguments) || this;
  13359. e.mLabel = null;
  13360. e.mBtName = null;
  13361. return e;
  13362. }
  13363. e.prototype.init = function(t, e) {
  13364. this.mBtName.string = c.default.t(t);
  13365. this.mLabel.string = c.default.t(e);
  13366. };
  13367. e.prototype.setCallback = function(t) {
  13368. this.onclickCallback = t;
  13369. };
  13370. e.prototype.onclick = function() {
  13371. this.onclickCallback();
  13372. };
  13373. r([ l(cc.Label) ], e.prototype, "mLabel", void 0);
  13374. r([ l(cc.Label) ], e.prototype, "mBtName", void 0);
  13375. return r([ p ], e);
  13376. }(a.default);
  13377. o.default = u;
  13378. cc._RF.pop();
  13379. }, {
  13380. "../../../../i18n/i18n": "i18n",
  13381. "../../../../main/ViewObject": "ViewObject"
  13382. } ],
  13383. FTmpGood: [ function(t, e, o) {
  13384. "use strict";
  13385. cc._RF.push(e, "2991eOR3OpH5oN5xKI1Ogf8", "FTmpGood");
  13386. var i, n = this && this.__extends || (i = function(t, e) {
  13387. return (i = Object.setPrototypeOf || {
  13388. __proto__: []
  13389. } instanceof Array && function(t, e) {
  13390. t.__proto__ = e;
  13391. } || function(t, e) {
  13392. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  13393. })(t, e);
  13394. }, function(t, e) {
  13395. i(t, e);
  13396. function o() {
  13397. this.constructor = t;
  13398. }
  13399. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  13400. }), r = this && this.__decorate || function(t, e, o, i) {
  13401. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  13402. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  13403. return r > 3 && c && Object.defineProperty(e, o, c), c;
  13404. };
  13405. Object.defineProperty(o, "__esModule", {
  13406. value: !0
  13407. });
  13408. var c = t("./base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  13409. n(e, t);
  13410. function e() {
  13411. var e = null !== t && t.apply(this, arguments) || this;
  13412. e.goodId = 2001;
  13413. e.isCheck = !1;
  13414. return e;
  13415. }
  13416. e.prototype.onBegin = function() {
  13417. var t = this;
  13418. if (!this.isCheck) {
  13419. this.isCheck = !0;
  13420. this.ff.mFFheader.addTmpGood(this.goodId, 1);
  13421. cc.tween(this.node).sequence(cc.spawn(cc.moveBy(1, cc.v2(0, 60)).easing(cc.easeSineOut()), cc.fadeOut(1)), cc.callFunc(function() {
  13422. t.node.removeFromParent(!0);
  13423. t.node.destroy();
  13424. })).start();
  13425. }
  13426. };
  13427. e.prototype.onEnd = function() {};
  13428. r([ p({
  13429. displayName: "临时道具id"
  13430. }) ], e.prototype, "goodId", void 0);
  13431. return r([ s ], e);
  13432. }(c.default);
  13433. o.default = l;
  13434. cc._RF.pop();
  13435. }, {
  13436. "./base/BaseEvent": "BaseEvent"
  13437. } ],
  13438. FTmpTaskGood: [ function(t, e, o) {
  13439. "use strict";
  13440. cc._RF.push(e, "c1999D8f3RNn5PN/Un/hL/C", "FTmpTaskGood");
  13441. var i, n = this && this.__extends || (i = function(t, e) {
  13442. return (i = Object.setPrototypeOf || {
  13443. __proto__: []
  13444. } instanceof Array && function(t, e) {
  13445. t.__proto__ = e;
  13446. } || function(t, e) {
  13447. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  13448. })(t, e);
  13449. }, function(t, e) {
  13450. i(t, e);
  13451. function o() {
  13452. this.constructor = t;
  13453. }
  13454. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  13455. }), r = this && this.__decorate || function(t, e, o, i) {
  13456. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  13457. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  13458. return r > 3 && c && Object.defineProperty(e, o, c), c;
  13459. };
  13460. Object.defineProperty(o, "__esModule", {
  13461. value: !0
  13462. });
  13463. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  13464. n(e, t);
  13465. function e() {
  13466. var e = null !== t && t.apply(this, arguments) || this;
  13467. e.mCount = null;
  13468. e.mIcon = null;
  13469. return e;
  13470. }
  13471. e.prototype.onLoad = function() {
  13472. this.node.on(cc.Node.EventType.TOUCH_START, this._touchStartEvent, this);
  13473. this.node.on(cc.Node.EventType.TOUCH_END, this._touchEndEvent, this);
  13474. this.node.on(cc.Node.EventType.TOUCH_CANCEL, this._touchEndEvent, this);
  13475. };
  13476. e.prototype.init = function(t, e) {
  13477. var o = this;
  13478. this._good = t;
  13479. this.count = e;
  13480. this.mCount.string = "x" + e;
  13481. cc.resources.load("icon/good/" + t.icon, cc.SpriteFrame, function(t, e) {
  13482. t ? cc.error(t) : o.mIcon.spriteFrame = e;
  13483. });
  13484. };
  13485. e.prototype.setCallback = function(t) {
  13486. this.callback = t;
  13487. };
  13488. e.prototype._touchStartEvent = function() {
  13489. this.callback(this, !0);
  13490. };
  13491. e.prototype._touchEndEvent = function() {
  13492. this.callback(this, !1);
  13493. };
  13494. r([ s(cc.Label) ], e.prototype, "mCount", void 0);
  13495. r([ s(cc.Sprite) ], e.prototype, "mIcon", void 0);
  13496. return r([ a ], e);
  13497. }(cc.Component);
  13498. o.default = p;
  13499. cc._RF.pop();
  13500. }, {} ],
  13501. FTmpTaskPanel: [ function(t, e, o) {
  13502. "use strict";
  13503. cc._RF.push(e, "e6a5evPr99GRpmip/JS09tv", "FTmpTaskPanel");
  13504. var i, n = this && this.__extends || (i = function(t, e) {
  13505. return (i = Object.setPrototypeOf || {
  13506. __proto__: []
  13507. } instanceof Array && function(t, e) {
  13508. t.__proto__ = e;
  13509. } || function(t, e) {
  13510. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  13511. })(t, e);
  13512. }, function(t, e) {
  13513. i(t, e);
  13514. function o() {
  13515. this.constructor = t;
  13516. }
  13517. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  13518. }), r = this && this.__decorate || function(t, e, o, i) {
  13519. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  13520. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  13521. return r > 3 && c && Object.defineProperty(e, o, c), c;
  13522. };
  13523. Object.defineProperty(o, "__esModule", {
  13524. value: !0
  13525. });
  13526. var c = t("../../i18n/i18n"), a = t("../../util/CUtil"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  13527. n(e, t);
  13528. function e() {
  13529. var e = null !== t && t.apply(this, arguments) || this;
  13530. e.mName = null;
  13531. e.mAbout = null;
  13532. e.time = 0;
  13533. return e;
  13534. }
  13535. e.prototype.show = function(t) {
  13536. this.node.active = !0;
  13537. this.mName.string = c.default.t(t._good.name) + "X" + t.count;
  13538. this.mAbout.string = c.default.t(t._good.about);
  13539. this.time = a.default.getNowTime();
  13540. };
  13541. e.prototype.update = function() {
  13542. a.default.getNowTime() - this.time > 2 && (this.node.active = !1);
  13543. };
  13544. r([ l(cc.Label) ], e.prototype, "mName", void 0);
  13545. r([ l(cc.Label) ], e.prototype, "mAbout", void 0);
  13546. return r([ p ], e);
  13547. }(cc.Component);
  13548. o.default = u;
  13549. cc._RF.pop();
  13550. }, {
  13551. "../../i18n/i18n": "i18n",
  13552. "../../util/CUtil": "CUtil"
  13553. } ],
  13554. FTransportDoor: [ function(t, e, o) {
  13555. "use strict";
  13556. cc._RF.push(e, "0f7434GxodPRoxu9K2DLteD", "FTransportDoor");
  13557. var i, n = this && this.__extends || (i = function(t, e) {
  13558. return (i = Object.setPrototypeOf || {
  13559. __proto__: []
  13560. } instanceof Array && function(t, e) {
  13561. t.__proto__ = e;
  13562. } || function(t, e) {
  13563. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  13564. })(t, e);
  13565. }, function(t, e) {
  13566. i(t, e);
  13567. function o() {
  13568. this.constructor = t;
  13569. }
  13570. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  13571. }), r = this && this.__decorate || function(t, e, o, i) {
  13572. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  13573. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  13574. return r > 3 && c && Object.defineProperty(e, o, c), c;
  13575. };
  13576. Object.defineProperty(o, "__esModule", {
  13577. value: !0
  13578. });
  13579. var c = t("../../object/FSprite"), a = t("../base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  13580. n(e, t);
  13581. function e() {
  13582. var e = null !== t && t.apply(this, arguments) || this;
  13583. e.posList = cc.v2(0, 0);
  13584. e.defaultIcon = null;
  13585. e.mIcon = null;
  13586. return e;
  13587. }
  13588. e.prototype.onBeginContact = function(t, e, o) {
  13589. if ("A" == o.node.group && 1 == o.tag) {
  13590. var i = o.node.getComponent(c.default);
  13591. this.ff = i.ff;
  13592. this.node.getComponent(cc.Sprite).spriteFrame = this.mIcon;
  13593. this.setPos();
  13594. }
  13595. };
  13596. e.prototype.setPos = function() {
  13597. var t = this;
  13598. this.pause();
  13599. var e = this.ff.mainSprite;
  13600. e.node.stopActionByTag(1);
  13601. cc.tween(e).sequence(cc.delayTime(.2), cc.callFunc(function() {
  13602. var e = t.ff.getGroupBy("A");
  13603. e && e.forEach(function(e) {
  13604. e.setPosition(t.posList);
  13605. });
  13606. t.node.getComponent(cc.Sprite).spriteFrame = t.defaultIcon;
  13607. t.resume();
  13608. })).start().tag(1);
  13609. };
  13610. e.prototype.pause = function() {
  13611. this.ff.pauseSprite(!0);
  13612. };
  13613. e.prototype.resume = function() {
  13614. this.ff.pauseSprite(!1);
  13615. };
  13616. r([ l({
  13617. displayName: "传送位置"
  13618. }) ], e.prototype, "posList", void 0);
  13619. r([ l({
  13620. displayName: "默认图片",
  13621. type: cc.SpriteFrame
  13622. }) ], e.prototype, "defaultIcon", void 0);
  13623. r([ l({
  13624. displayName: "踩的图片",
  13625. type: cc.SpriteFrame
  13626. }) ], e.prototype, "mIcon", void 0);
  13627. return r([ p ], e);
  13628. }(a.default);
  13629. o.default = u;
  13630. cc._RF.pop();
  13631. }, {
  13632. "../../object/FSprite": "FSprite",
  13633. "../base/BaseEvent": "BaseEvent"
  13634. } ],
  13635. FTreasureBox: [ function(t, e, o) {
  13636. "use strict";
  13637. cc._RF.push(e, "1113b7zL+NLVLsgpkD0uOUY", "FTreasureBox");
  13638. var i, n = this && this.__extends || (i = function(t, e) {
  13639. return (i = Object.setPrototypeOf || {
  13640. __proto__: []
  13641. } instanceof Array && function(t, e) {
  13642. t.__proto__ = e;
  13643. } || function(t, e) {
  13644. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  13645. })(t, e);
  13646. }, function(t, e) {
  13647. i(t, e);
  13648. function o() {
  13649. this.constructor = t;
  13650. }
  13651. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  13652. }), r = this && this.__decorate || function(t, e, o, i) {
  13653. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  13654. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  13655. return r > 3 && c && Object.defineProperty(e, o, c), c;
  13656. };
  13657. Object.defineProperty(o, "__esModule", {
  13658. value: !0
  13659. });
  13660. var c = t("../../../login/FqLogin"), a = t("../../../main/ViewManage"), s = t("../object/FPanelIcon"), p = t("./base/BaseEvent"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  13661. n(e, t);
  13662. function e() {
  13663. var e = null !== t && t.apply(this, arguments) || this;
  13664. e.boxId = "28";
  13665. e.text = [];
  13666. e.spine = null;
  13667. e.mTipsIcon = null;
  13668. e.guides = [];
  13669. e.isGuide = !1;
  13670. e.guideStep = 0;
  13671. e.mFenceTrigger = [];
  13672. e.mCancelNode = null;
  13673. e.isOpen = !1;
  13674. return e;
  13675. }
  13676. e.prototype.onLoad = function() {
  13677. t.prototype.onLoad.call(this);
  13678. if (this.ff.main.player.stage.element.indexOf(this.boxId) >= 0) {
  13679. this.node.destroy();
  13680. for (var e = 0; e < this.mFenceTrigger.length; e++) this.mFenceTrigger[e].destroy();
  13681. }
  13682. };
  13683. e.prototype.onBegin = function(t) {
  13684. var e = this;
  13685. this.isOpen || 1 == t && this.showOpt(this.mTipsIcon, function() {
  13686. e.mCancelNode && e.mCancelNode.destroy();
  13687. e.openBox();
  13688. });
  13689. };
  13690. e.prototype.onEnd = function(t) {
  13691. 1 == t && this.closeOpt();
  13692. };
  13693. e.prototype.openBox = function() {
  13694. var t = this;
  13695. this.closeOpt();
  13696. this.isOpen = !0;
  13697. this.pause();
  13698. for (var e = 0; e < this.guides.length; e++) this.guides[e].destroy();
  13699. this.guides = [];
  13700. this.spine.setCompleteListener(function() {
  13701. c.default.commitEvent(t.node.name, "", "");
  13702. t.spine.setCompleteListener(null);
  13703. t.getMapObject(t.boxId, function() {
  13704. t.showDialog1();
  13705. });
  13706. });
  13707. this.spine.setAnimation(0, "open", !1);
  13708. this.ff.main.playerEffectByPath(a.AudioMgr.box);
  13709. };
  13710. e.prototype.showDialog1 = function() {
  13711. var t = this;
  13712. this.text.length <= 0 ? this.resume() : this.showDialog(this.ff.mainSprite.node, this.text, function() {
  13713. t.resume();
  13714. t.isGuide && (0 == t.guideStep ? t.guide() : 1 == t.guideStep && t.guide_1());
  13715. });
  13716. };
  13717. e.prototype.guide = function() {
  13718. for (var t = this, e = 0; e < this.mFenceTrigger.length; e++) this.mFenceTrigger[e].destroy();
  13719. var o = this.ff.main.mGuideMask, i = this.ff.fres.mHudNode.children[0];
  13720. o.setTargetNode(i);
  13721. o.show();
  13722. var n = i.getComponent(s.default);
  13723. n.inGuide = !0;
  13724. n.setGuideCallback(function() {
  13725. n.setGuideCallback(null);
  13726. o.close();
  13727. t.ff.firstGetSkillTips();
  13728. });
  13729. };
  13730. e.prototype.guide_1 = function() {
  13731. for (var t = 0; t < this.mFenceTrigger.length; t++) this.mFenceTrigger[t].destroy();
  13732. var e = this.ff.main.mGuideMask, o = this.ff.fres.mHudNode.children[0];
  13733. e.setTargetNode(o);
  13734. e.show();
  13735. var i = o.getComponent(s.default);
  13736. i.inGuide = !0;
  13737. i.guideStep = this.guideStep;
  13738. i.setGuideCallback(function() {
  13739. e.close();
  13740. });
  13741. };
  13742. r([ f({
  13743. displayName: "地图元素id"
  13744. }) ], e.prototype, "boxId", void 0);
  13745. r([ f([ cc.String ]) ], e.prototype, "text", void 0);
  13746. r([ f(sp.Skeleton) ], e.prototype, "spine", void 0);
  13747. r([ f({
  13748. displayName: "提示图标",
  13749. type: cc.SpriteFrame
  13750. }) ], e.prototype, "mTipsIcon", void 0);
  13751. r([ f(cc.Node) ], e.prototype, "guides", void 0);
  13752. r([ f({
  13753. displayName: "是否需要引导穿装备"
  13754. }) ], e.prototype, "isGuide", void 0);
  13755. r([ f({
  13756. displayName: "指引步骤"
  13757. }) ], e.prototype, "guideStep", void 0);
  13758. r([ f({
  13759. displayName: "控制的机关",
  13760. type: [ cc.Node ]
  13761. }) ], e.prototype, "mFenceTrigger", void 0);
  13762. r([ f({
  13763. displayName: "消失的提示",
  13764. type: cc.Node
  13765. }) ], e.prototype, "mCancelNode", void 0);
  13766. return r([ u ], e);
  13767. }(p.default);
  13768. o.default = h;
  13769. cc._RF.pop();
  13770. }, {
  13771. "../../../login/FqLogin": "FqLogin",
  13772. "../../../main/ViewManage": "ViewManage",
  13773. "../object/FPanelIcon": "FPanelIcon",
  13774. "./base/BaseEvent": "BaseEvent"
  13775. } ],
  13776. FirstPay: [ function(t, e, o) {
  13777. "use strict";
  13778. cc._RF.push(e, "fe66d2As8pFk4CYtgbTpeDV", "FirstPay");
  13779. var i, n = this && this.__extends || (i = function(t, e) {
  13780. return (i = Object.setPrototypeOf || {
  13781. __proto__: []
  13782. } instanceof Array && function(t, e) {
  13783. t.__proto__ = e;
  13784. } || function(t, e) {
  13785. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  13786. })(t, e);
  13787. }, function(t, e) {
  13788. i(t, e);
  13789. function o() {
  13790. this.constructor = t;
  13791. }
  13792. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  13793. }), r = this && this.__decorate || function(t, e, o, i) {
  13794. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  13795. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  13796. return r > 3 && c && Object.defineProperty(e, o, c), c;
  13797. };
  13798. Object.defineProperty(o, "__esModule", {
  13799. value: !0
  13800. });
  13801. var c, a = t("../../../main/ViewManage"), s = t("../../../main/ViewObject"), p = t("../../../util/CHttp"), l = cc._decorator, u = l.ccclass, f = l.property;
  13802. (function(t) {
  13803. t.data = "data";
  13804. t.get = "get";
  13805. })(c || (c = {}));
  13806. var h = function(t) {
  13807. n(e, t);
  13808. function e() {
  13809. var e = null !== t && t.apply(this, arguments) || this;
  13810. e.itemList = [];
  13811. e.goodItem = null;
  13812. e.firstPayData = null;
  13813. e.canGet = !0;
  13814. e.target = null;
  13815. return e;
  13816. }
  13817. e.prototype.show = function(t) {
  13818. if (t) {
  13819. this.prev = t;
  13820. this.prev.__close();
  13821. }
  13822. this.main.viewManage.popView1(this.node);
  13823. this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this);
  13824. };
  13825. e.prototype.getFirstPayData = function(t) {
  13826. var e = this;
  13827. this.main.gameHttp.sendJson("firstPay/v1/" + t, {}, function(o, i) {
  13828. e.main.stopLoad();
  13829. if (o == p.HttpStateType.SUCCESS) if (0 == i.retCode) {
  13830. console.log("==reve=getFirstPayData===", i);
  13831. if (t == c.data) {
  13832. e.firstPayData = i.data;
  13833. e.initItem();
  13834. e.show();
  13835. } else if (t == c.get) {
  13836. e.refresh(e.target);
  13837. e.main.showReward(i);
  13838. }
  13839. } else e.main.showTips(i.message); else e.main.showTips("网络异常");
  13840. });
  13841. };
  13842. e.prototype.initItem = function() {
  13843. var t = this;
  13844. this.canGet = this.firstPayData.firstPay.canGet;
  13845. this.firstPayData.data.forEach(function(e, o) {
  13846. var i = t.itemList[o].getChildByName("goodList");
  13847. JSON.parse(e.reward).forEach(function(e) {
  13848. t.addGood(i, e);
  13849. });
  13850. });
  13851. this.initBtn();
  13852. };
  13853. e.prototype.initBtn = function() {
  13854. var t = this;
  13855. this.firstPayData.firstPay.open ? this.itemList.forEach(function(e, o) {
  13856. var i = e.getChildByName("btn_pay"), n = e.getChildByName("btn_get"), r = n.getChildByName("lbget"), c = n.getChildByName("lbgeted");
  13857. n.active = !0;
  13858. i.active = !1;
  13859. if (o > t.firstPayData.firstPay.count) {
  13860. n.getComponent(cc.Button).interactable = !1;
  13861. r.active = !0;
  13862. c.active = !1;
  13863. } else if (o < t.firstPayData.firstPay.count) {
  13864. n.getComponent(cc.Button).interactable = !1;
  13865. r.active = !1;
  13866. c.active = !0;
  13867. } else if (o == t.firstPayData.firstPay.count) {
  13868. r.active = !0;
  13869. c.active = !1;
  13870. }
  13871. t.firstPayData.firstPay.canGet || (n.getComponent(cc.Button).interactable = !1);
  13872. }) : this.itemList.forEach(function(t) {
  13873. t.getChildByName("btn_pay").active = !0;
  13874. t.getChildByName("btn_get").active = !1;
  13875. });
  13876. };
  13877. e.prototype.addGood = function(t, e) {
  13878. var o = cc.instantiate(this.goodItem);
  13879. t.addChild(o);
  13880. this.initGoodItem(o, e);
  13881. };
  13882. e.prototype.initGoodItem = function(t, e) {
  13883. var o = t.getChildByName("infoNode"), i = o.getChildByName("icon").getComponent(cc.Sprite), n = t.getChildByName("frame").getComponent(cc.Sprite);
  13884. this.initIcon(i, e.icon);
  13885. this.initFrameIcon(n, e.frame);
  13886. o.getChildByName("countNode").getChildByName("count").getComponent(cc.Label).string = e.count + "";
  13887. };
  13888. e.prototype.initIcon = function(t, e) {
  13889. cc.resources.load("icon/" + e, cc.SpriteFrame, function(e, o) {
  13890. e ? cc.error(e) : t.spriteFrame = o;
  13891. });
  13892. };
  13893. e.prototype.initFrameIcon = function(t, e) {
  13894. cc.resources.load("icon/frame/" + e, cc.SpriteFrame, function(e, o) {
  13895. e ? cc.error(e) : t.spriteFrame = o;
  13896. });
  13897. };
  13898. e.prototype.onClickPay = function() {
  13899. this.exitDistroy();
  13900. this.main.viewManage.loadFunc(a.GameViewType.tap_shop, function(t) {
  13901. var e = t;
  13902. e.init(Number(101));
  13903. e.show();
  13904. });
  13905. };
  13906. e.prototype.onClickGet = function(t) {
  13907. if (this.canGet) {
  13908. this.target = t.target;
  13909. this.getFirstPayData(c.get);
  13910. }
  13911. };
  13912. e.prototype.refresh = function(t) {
  13913. this.canGet = !1;
  13914. t.getComponent(cc.Button).interactable = !1;
  13915. t.getChildByName("lbgeted").active = !0;
  13916. t.getChildByName("lbget").active = !1;
  13917. };
  13918. r([ f([ cc.Node ]) ], e.prototype, "itemList", void 0);
  13919. r([ f(cc.Prefab) ], e.prototype, "goodItem", void 0);
  13920. return r([ u ], e);
  13921. }(s.default);
  13922. o.default = h;
  13923. cc._RF.pop();
  13924. }, {
  13925. "../../../main/ViewManage": "ViewManage",
  13926. "../../../main/ViewObject": "ViewObject",
  13927. "../../../util/CHttp": "CHttp"
  13928. } ],
  13929. FlowLightEffect: [ function(t, e, o) {
  13930. "use strict";
  13931. cc._RF.push(e, "0051eoAJ3hFZrjk0dCEh5+9", "FlowLightEffect");
  13932. var i, n = this && this.__extends || (i = function(t, e) {
  13933. return (i = Object.setPrototypeOf || {
  13934. __proto__: []
  13935. } instanceof Array && function(t, e) {
  13936. t.__proto__ = e;
  13937. } || function(t, e) {
  13938. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  13939. })(t, e);
  13940. }, function(t, e) {
  13941. i(t, e);
  13942. function o() {
  13943. this.constructor = t;
  13944. }
  13945. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  13946. }), r = this && this.__decorate || function(t, e, o, i) {
  13947. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  13948. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  13949. return r > 3 && c && Object.defineProperty(e, o, c), c;
  13950. };
  13951. Object.defineProperty(o, "__esModule", {
  13952. value: !0
  13953. });
  13954. var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) {
  13955. n(e, t);
  13956. function e() {
  13957. var e = null !== t && t.apply(this, arguments) || this;
  13958. e.sprite = null;
  13959. e.t1 = 0;
  13960. return e;
  13961. }
  13962. e.prototype.onLoad = function() {};
  13963. e.prototype.update = function() {};
  13964. return r([ a ], e);
  13965. }(cc.Component));
  13966. o.default = s;
  13967. cc._RF.pop();
  13968. }, {} ],
  13969. FoodView: [ function(t, e, o) {
  13970. "use strict";
  13971. cc._RF.push(e, "baa03NinnRKwIGB+PyNvRoj", "FoodView");
  13972. var i, n = this && this.__extends || (i = function(t, e) {
  13973. return (i = Object.setPrototypeOf || {
  13974. __proto__: []
  13975. } instanceof Array && function(t, e) {
  13976. t.__proto__ = e;
  13977. } || function(t, e) {
  13978. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  13979. })(t, e);
  13980. }, function(t, e) {
  13981. i(t, e);
  13982. function o() {
  13983. this.constructor = t;
  13984. }
  13985. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  13986. }), r = this && this.__decorate || function(t, e, o, i) {
  13987. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  13988. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  13989. return r > 3 && c && Object.defineProperty(e, o, c), c;
  13990. };
  13991. Object.defineProperty(o, "__esModule", {
  13992. value: !0
  13993. });
  13994. var c = t("../../../i18n/i18n"), a = t("../../../main/ViewObject"), s = t("../../../util/CHttp"), p = t("../../../util/CUtil"), l = t("../../common/GoodItem"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  13995. n(e, t);
  13996. function e() {
  13997. var e = null !== t && t.apply(this, arguments) || this;
  13998. e.mName = null;
  13999. e.mAbout = null;
  14000. e.mGoodItem = null;
  14001. e.mCount = null;
  14002. e.mUserLabel = null;
  14003. return e;
  14004. }
  14005. e.prototype.initGood = function(t, e) {
  14006. this.pack = t;
  14007. this.goodItem = e;
  14008. this.mGoodItem.initGood(this.main, this.goodItem.data);
  14009. this.mName.string = c.default.t(e.good.name);
  14010. this.mAbout.string = c.default.t(e.good.about);
  14011. 3 == e.good.type ? this.mUserLabel.string = c.default.t("使用") : 5 == e.good.type && (this.mUserLabel.string = c.default.t("食用"));
  14012. this.flush();
  14013. };
  14014. e.prototype.flush = function() {
  14015. if (5 == this.goodItem.good.type) {
  14016. var t = this.main.player.foodAttr, e = p.default.getNowDateInt();
  14017. if (e > t.date) {
  14018. t.date = e;
  14019. t.count = 0;
  14020. }
  14021. this.mCount.string = c.default.t("今日食用食物上限") + ":" + t.count + "/10";
  14022. }
  14023. };
  14024. e.prototype.onclickEat = function() {
  14025. 3 == this.goodItem.good.type ? this.eatGift() : 5 == this.goodItem.good.type && this.eatFood();
  14026. };
  14027. e.prototype.eatFood = function() {
  14028. var t = this, e = {
  14029. id: this.goodItem.good.id
  14030. };
  14031. this.main.startLoad();
  14032. this.main.gameHttp.sendJson("eatFood/v1/eat", e, function(e, o) {
  14033. t.main.stopLoad();
  14034. if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) {
  14035. t.main.player.foodAttr = o.data._foodAttr;
  14036. t.pack.flushGood();
  14037. t.flush();
  14038. t.mGoodItem.data.count -= 1;
  14039. t.mGoodItem.data.count <= 0 ? t.exitDistroy() : t.mGoodItem.flushGood();
  14040. t.main.showTips("成功食用");
  14041. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  14042. });
  14043. };
  14044. e.prototype.eatGift = function() {
  14045. var t = this, e = {
  14046. id: this.goodItem.good.id
  14047. };
  14048. this.main.gameHttp.sendJson("eatFood/v1/gift", e, function(e, o) {
  14049. t.main.stopLoad();
  14050. if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) {
  14051. t.pack.flushGood();
  14052. t.flush();
  14053. t.mGoodItem.data.count -= 1;
  14054. t.mGoodItem.data.count <= 0 ? t.exitDistroy() : t.mGoodItem.flushGood();
  14055. t.main.showReward(o);
  14056. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  14057. });
  14058. };
  14059. r([ h(cc.Label) ], e.prototype, "mName", void 0);
  14060. r([ h(cc.Label) ], e.prototype, "mAbout", void 0);
  14061. r([ h(l.default) ], e.prototype, "mGoodItem", void 0);
  14062. r([ h(cc.Label) ], e.prototype, "mCount", void 0);
  14063. r([ h(cc.Label) ], e.prototype, "mUserLabel", void 0);
  14064. return r([ f ], e);
  14065. }(a.default);
  14066. o.default = d;
  14067. cc._RF.pop();
  14068. }, {
  14069. "../../../i18n/i18n": "i18n",
  14070. "../../../main/ViewObject": "ViewObject",
  14071. "../../../util/CHttp": "CHttp",
  14072. "../../../util/CUtil": "CUtil",
  14073. "../../common/GoodItem": "GoodItem"
  14074. } ],
  14075. FopenDoorOrder: [ function(t, e, o) {
  14076. "use strict";
  14077. cc._RF.push(e, "a99beCncGxD+5t/D78gnzY9", "FopenDoorOrder");
  14078. var i, n = this && this.__extends || (i = function(t, e) {
  14079. return (i = Object.setPrototypeOf || {
  14080. __proto__: []
  14081. } instanceof Array && function(t, e) {
  14082. t.__proto__ = e;
  14083. } || function(t, e) {
  14084. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  14085. })(t, e);
  14086. }, function(t, e) {
  14087. i(t, e);
  14088. function o() {
  14089. this.constructor = t;
  14090. }
  14091. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  14092. }), r = this && this.__decorate || function(t, e, o, i) {
  14093. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  14094. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  14095. return r > 3 && c && Object.defineProperty(e, o, c), c;
  14096. };
  14097. Object.defineProperty(o, "__esModule", {
  14098. value: !0
  14099. });
  14100. var c = t("../../../../login/FqLogin"), a = t("../../../../main/ViewManage"), s = t("../../../../pay/FqPay"), p = t("../base/BaseEvent"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  14101. n(e, t);
  14102. function e() {
  14103. var e = null !== t && t.apply(this, arguments) || this;
  14104. e.mNumber = 1;
  14105. e.mIcon = null;
  14106. e.mIcon0 = null;
  14107. e.mIcon1 = null;
  14108. e.mFireNode = null;
  14109. e.mSiteNode = null;
  14110. e.mButtons = [];
  14111. e.mFenceTrigger = [];
  14112. e.mTipsWord = "";
  14113. e.checkOrder = [];
  14114. e.isHand = !1;
  14115. e.errorCount = 0;
  14116. return e;
  14117. }
  14118. o = e;
  14119. e.prototype.onLoad = function() {
  14120. t.prototype.onLoad.call(this);
  14121. this.mFireNode.active = !1;
  14122. };
  14123. e.prototype.onBegin = function() {
  14124. if (!this.isHand) {
  14125. this.isHand = !0;
  14126. this.mIcon.spriteFrame = this.mIcon1;
  14127. this.mFireNode.active = !0;
  14128. this.checkOpen();
  14129. }
  14130. };
  14131. e.prototype.checkOpen = function() {
  14132. var t = this.mButtons[0].getComponent(o);
  14133. t.checkOrder.push(this.mNumber);
  14134. if (t.checkOrder.length >= this.mButtons.length) if (this.check(t.checkOrder)) this.openDoor(); else {
  14135. this.resumeButton();
  14136. t.errorCount++;
  14137. if (t.errorCount >= 3) {
  14138. t.errorCount = 0;
  14139. this.openEventTips();
  14140. }
  14141. }
  14142. };
  14143. e.prototype.openEventTips = function() {
  14144. var t = this;
  14145. this.ff.main.viewManage.loadFunc(a.GameViewType.fight_map_event_tips, function(e) {
  14146. var o = e;
  14147. o.init("查看提示", "点击查看提示,可偷窥答案");
  14148. o.setCallback(function() {
  14149. e.exitDistroy();
  14150. var o = new s.default(t.ff.main);
  14151. "event12" == t.node.name ? o.adVideo(function(e) {
  14152. 1 == e ? t.openTips() : -1 == e && t.ff.main.showTips("广告还未加载好,请稍后在试");
  14153. }, s.UM_EVENT_ID.ad_color_2_0, s.UM_EVENT_ID.ad_color_2_1) : o.adVideo(function(e) {
  14154. 1 == e ? t.openTips() : -1 == e && t.ff.main.showTips("广告还未加载好,请稍后在试");
  14155. }, s.UM_EVENT_ID.ad_color_5_0, s.UM_EVENT_ID.ad_color_5_1);
  14156. });
  14157. e.show();
  14158. });
  14159. };
  14160. e.prototype.openTips = function() {
  14161. var t = this.mButtons[0].getComponent(o);
  14162. this.ff.main.viewManage.loadFunc(a.GameViewType.fight_map_event_tips, function(e) {
  14163. var o = e;
  14164. o.init("确定", t.mTipsWord);
  14165. o.setCallback(function() {
  14166. e.exitDistroy();
  14167. });
  14168. e.show();
  14169. });
  14170. };
  14171. e.prototype.check = function(t) {
  14172. for (var e = 0; e < t.length; e++) if (t[e] != e + 1) return !1;
  14173. return !0;
  14174. };
  14175. e.prototype.resumeButton = function() {
  14176. for (var t = this, e = 0; e < this.mButtons.length; e++) {
  14177. var i = this.mButtons[e].getComponent(o);
  14178. i.mIcon.spriteFrame = i.mIcon0;
  14179. i.mFireNode.active = !1;
  14180. i.isHand = !1;
  14181. i.checkOrder = [];
  14182. }
  14183. var n = this.mButtons[0].getComponent(o);
  14184. cc.tween(this).sequence(cc.delayTime(.1), cc.callFunc(function() {
  14185. t.ff.mainSprite.node.setPosition(n.mSiteNode.getPosition());
  14186. })).start();
  14187. };
  14188. e.prototype.openDoor = function() {
  14189. var t = this;
  14190. this.pause();
  14191. this.moveCamera(this.mFenceTrigger[0].getPosition(), 1, function() {
  14192. cc.tween(t.node).sequence(cc.callFunc(function() {
  14193. for (var e = 0; e < t.mFenceTrigger.length; e++) {
  14194. var o = t.mFenceTrigger[e];
  14195. t.showFence(o, "close");
  14196. }
  14197. t.ff.main.playerEffectByPath(a.AudioMgr.openDoor);
  14198. }), cc.delayTime(1), cc.callFunc(function() {
  14199. t.resume();
  14200. c.default.commitEvent(t.node.name, "", "");
  14201. for (var e = 0; e < t.mFenceTrigger.length; e++) t.mFenceTrigger[e].active = !1;
  14202. })).start();
  14203. });
  14204. };
  14205. e.prototype.showFence = function(t, e) {
  14206. for (var o = t.children, i = 0; i < o.length; i++) {
  14207. var n = o[i].getComponent(sp.Skeleton);
  14208. n && n.setAnimation(0, e, !1);
  14209. }
  14210. };
  14211. var o;
  14212. r([ f({
  14213. displayName: "顺序编号",
  14214. type: cc.Integer
  14215. }) ], e.prototype, "mNumber", void 0);
  14216. r([ f({
  14217. displayName: "替换的图片",
  14218. type: cc.Sprite
  14219. }) ], e.prototype, "mIcon", void 0);
  14220. r([ f({
  14221. displayName: "未踩上图片",
  14222. type: cc.SpriteFrame
  14223. }) ], e.prototype, "mIcon0", void 0);
  14224. r([ f({
  14225. displayName: "踩上后的图片",
  14226. type: cc.SpriteFrame
  14227. }) ], e.prototype, "mIcon1", void 0);
  14228. r([ f({
  14229. displayName: "踩上后点亮的火把",
  14230. type: cc.Node
  14231. }) ], e.prototype, "mFireNode", void 0);
  14232. r([ f({
  14233. displayName: "失败后传送的位置",
  14234. type: cc.Node
  14235. }) ], e.prototype, "mSiteNode", void 0);
  14236. r([ f({
  14237. displayName: "其它开关",
  14238. type: [ cc.Node ]
  14239. }) ], e.prototype, "mButtons", void 0);
  14240. r([ f({
  14241. displayName: "控制的机关",
  14242. type: [ cc.Node ]
  14243. }) ], e.prototype, "mFenceTrigger", void 0);
  14244. r([ f({
  14245. displayName: "提示文字"
  14246. }) ], e.prototype, "mTipsWord", void 0);
  14247. return o = r([ u ], e);
  14248. }(p.default);
  14249. o.default = h;
  14250. cc._RF.pop();
  14251. }, {
  14252. "../../../../login/FqLogin": "FqLogin",
  14253. "../../../../main/ViewManage": "ViewManage",
  14254. "../../../../pay/FqPay": "FqPay",
  14255. "../base/BaseEvent": "BaseEvent"
  14256. } ],
  14257. FqLogin: [ function(t, e, o) {
  14258. "use strict";
  14259. cc._RF.push(e, "5a3d94heT1D+prQcoaVlu1n", "FqLogin");
  14260. var i, n = this && this.__extends || (i = function(t, e) {
  14261. return (i = Object.setPrototypeOf || {
  14262. __proto__: []
  14263. } instanceof Array && function(t, e) {
  14264. t.__proto__ = e;
  14265. } || function(t, e) {
  14266. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  14267. })(t, e);
  14268. }, function(t, e) {
  14269. i(t, e);
  14270. function o() {
  14271. this.constructor = t;
  14272. }
  14273. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  14274. }), r = this && this.__decorate || function(t, e, o, i) {
  14275. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  14276. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  14277. return r > 3 && c && Object.defineProperty(e, o, c), c;
  14278. };
  14279. Object.defineProperty(o, "__esModule", {
  14280. value: !0
  14281. });
  14282. var c = t("../main/ViewObject"), a = t("../util/CHttp"), s = t("../main/ViewManage"), p = cc._decorator, l = p.ccclass, u = (p.property,
  14283. function(t) {
  14284. n(e, t);
  14285. function e() {
  14286. return null !== t && t.apply(this, arguments) || this;
  14287. }
  14288. e.prototype.start = function() {
  14289. if (cc.sys.isNative) {
  14290. if (cc.sys.os === cc.sys.OS_ANDROID) {
  14291. jsb.reflection.callStaticMethod("com/funqueue/android/xsdmx/MainActivity", "login", "(Ljava/lang/String;)V", '"this is a message from js"');
  14292. var t = this;
  14293. window._fqAndroidLoginCallback = function(e) {
  14294. console.log("window._fqAndroidLoginCallback", e);
  14295. t.loginAndroid(JSON.parse(e));
  14296. return "1";
  14297. };
  14298. } else if (cc.sys.os === cc.sys.OS_IOS) {
  14299. jsb.reflection.callStaticMethod("AppController", "showLogin");
  14300. var e = this;
  14301. window._fqIosLoginCallback = function(t) {
  14302. console.log("window._fqIosLoginCallback", t);
  14303. e.loginIos(JSON.parse(t));
  14304. return "1";
  14305. };
  14306. }
  14307. window._switchAccountCallback = function() {
  14308. console.log("window._fqIosLoginCallback");
  14309. cc.director.loadScene("hotUpdate");
  14310. return "1";
  14311. };
  14312. }
  14313. };
  14314. e.prototype.loginAndroid = function(t) {
  14315. var e = this, o = this.main.loginHttp, i = {
  14316. uid: t.uid,
  14317. token: t.token
  14318. };
  14319. this.main.startLoad();
  14320. o.sendForm("/fqLogin_android", i, function(t, o) {
  14321. e.main.stopLoad();
  14322. if (t == a.HttpStateType.SUCCESS) if (0 == o.retCode) {
  14323. e.main.userData = o.data;
  14324. e.openArea();
  14325. } else e.main.showTips(o.message); else e.main.showTips("网络异常");
  14326. });
  14327. };
  14328. e.prototype.loginIos = function(t) {
  14329. var e = this, o = this.main.loginHttp, i = {
  14330. uid: t.uid,
  14331. token: t.token
  14332. };
  14333. this.main.startLoad();
  14334. o.sendForm("/fqLogin_ios", i, function(t, o) {
  14335. e.main.stopLoad();
  14336. if (t == a.HttpStateType.SUCCESS) if (0 == o.retCode) {
  14337. e.main.userData = o.data;
  14338. e.openArea();
  14339. } else e.main.showTips(o.message); else e.main.showTips("网络异常");
  14340. });
  14341. };
  14342. e.prototype.openArea = function() {
  14343. var t = this.main;
  14344. t.startLoad();
  14345. t.viewManage.loadFunc(s.GameViewType.area, function(e) {
  14346. t.stopLoad();
  14347. e.show();
  14348. });
  14349. this.node.destroy();
  14350. };
  14351. e.commitEvent = function(t, e, o) {
  14352. var i = {
  14353. id: t,
  14354. key: e,
  14355. value: o
  14356. }, n = JSON.stringify(i);
  14357. console.log("====打点统计=====", n);
  14358. cc.sys.os === cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod("com/funqueue/android/xsdmx/MainActivity", "commitEvent", "(Ljava/lang/String;)V", JSON.stringify(i)) : cc.sys.os === cc.sys.OS_IOS && jsb.reflection.callStaticMethod("AppController", "commitEvent:", JSON.stringify(i));
  14359. };
  14360. return r([ l ], e);
  14361. }(c.default));
  14362. o.default = u;
  14363. cc._RF.pop();
  14364. }, {
  14365. "../main/ViewManage": "ViewManage",
  14366. "../main/ViewObject": "ViewObject",
  14367. "../util/CHttp": "CHttp"
  14368. } ],
  14369. FqPay: [ function(t, e, o) {
  14370. "use strict";
  14371. cc._RF.push(e, "ffb80tLvTJCdYi0CLKTY9El", "FqPay");
  14372. Object.defineProperty(o, "__esModule", {
  14373. value: !0
  14374. });
  14375. o.UM_EVENT_ID = void 0;
  14376. var i = t("../login/FqLogin"), n = t("../util/CHttp");
  14377. o.UM_EVENT_ID = cc.Enum({
  14378. ad_pdl_t_0: "ad_pdl_t_0",
  14379. ad_pdl_t_1: "ad_pdl_t_1",
  14380. ad_pdl_m_0: "ad_pdl_m_0",
  14381. ad_pdl_m_1: "ad_pdl_m_1",
  14382. ad_power_0: "ad_power_0",
  14383. ad_power_1: "ad_power_1",
  14384. ad_money_0: "ad_money_0",
  14385. ad_money_1: "ad_money_1",
  14386. ad_fuhuo_0: "ad_fuhuo_0",
  14387. ad_fuhuo_1: "ad_fuhuo_1",
  14388. ad_color_2_0: "ad_color_2_0",
  14389. ad_color_2_1: "ad_color_2_1",
  14390. ad_color_5_0: "ad_color_5_0",
  14391. ad_color_5_1: "ad_color_5_1",
  14392. ad_wish_0: "ad_wish_0",
  14393. ad_wish_1: "ad_wish_1"
  14394. });
  14395. var r = function() {
  14396. function t(t) {
  14397. this.main = t;
  14398. }
  14399. t.prototype.pay = function(t, e) {
  14400. var o = this;
  14401. this.callback = e;
  14402. this._payData = t;
  14403. this.createOrder(function(t) {
  14404. o.orderId = t;
  14405. o.openFqPay("" + t);
  14406. });
  14407. };
  14408. t.prototype.createOrder = function(t) {
  14409. var e = this, o = {
  14410. payId: this._payData.id
  14411. };
  14412. this.main.gameHttp.sendJson("pay/v1/createOrder", o, function(o, i) {
  14413. e.main.stopLoad();
  14414. o == n.HttpStateType.SUCCESS ? 0 == i.retCode ? t(i.data.orderId) : e.main.showTips(i.message) : e.main.showTips("网络异常");
  14415. });
  14416. };
  14417. t.prototype.openFqPay = function(t) {
  14418. var e = this.main.player, o = this.main.userData, i = {
  14419. productCode: "" + this._payData.id,
  14420. productCodeAndroid: this._payData.googleId,
  14421. productCodeIos: this._payData.iosId,
  14422. orderAmount: "" + this._payData.usd,
  14423. subject: "" + this._payData.name,
  14424. roleName: e.role.name,
  14425. cpBillNo: "" + t,
  14426. serverId: "" + o.zone.id,
  14427. extraInfo: "" + t
  14428. };
  14429. if (cc.sys.isNative) if (cc.sys.os === cc.sys.OS_ANDROID) {
  14430. var n = this;
  14431. window._fqAndroidPayCallback = function(t) {
  14432. console.log("window._fqAndroidPayCallback", t);
  14433. n.getPay();
  14434. return "1";
  14435. };
  14436. jsb.reflection.callStaticMethod("com/funqueue/android/xsdmx/MainActivity", "pay", "(Ljava/lang/String;)V", JSON.stringify(i));
  14437. } else if (cc.sys.os === cc.sys.OS_IOS || cc.sys.os === cc.sys.OS_OSX) {
  14438. var r = this;
  14439. window._fqIosPayCallback = function(t) {
  14440. console.log("window._fqIosPayCallback", t);
  14441. r.getPay();
  14442. return "1";
  14443. };
  14444. jsb.reflection.callStaticMethod("AppController", "pay:", JSON.stringify(i));
  14445. }
  14446. };
  14447. t.prototype.getPay = function() {
  14448. var t = this, e = {
  14449. orderId: this.orderId
  14450. };
  14451. this.main.gameHttp.sendJson("pay/v1/checkPay", e, function(e, o) {
  14452. t.main.stopLoad();
  14453. if (e == n.HttpStateType.SUCCESS) if (0 == o.retCode) {
  14454. t.callback(0);
  14455. t.main.showReward(o);
  14456. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  14457. });
  14458. };
  14459. t.prototype.adVideo = function(t, e, o) {
  14460. cc.log("用户观看视频 adVideo");
  14461. this.callback = t;
  14462. if (cc.sys.isNative) if (cc.sys.os === cc.sys.OS_ANDROID) {
  14463. i.default.commitEvent(e, "", "");
  14464. var n = this;
  14465. window._fqAndroidAdCallback = function(t) {
  14466. console.log("window._fqAndroidAdCallback", t);
  14467. if ("1" == t) {
  14468. n.callback(1);
  14469. i.default.commitEvent(o, "", "");
  14470. } else "-1" == t ? n.callback(-1) : n.callback(0);
  14471. return "1";
  14472. };
  14473. jsb.reflection.callStaticMethod("com/funqueue/android/xsdmx/MainActivity", "showRewardedVideo", "(Ljava/lang/String;)V", " jlsp1");
  14474. } else if (cc.sys.os === cc.sys.OS_IOS) {
  14475. i.default.commitEvent(e, "", "");
  14476. var r = this;
  14477. window._fqIosAdCallback = function(t) {
  14478. console.log("window._fqIosAdCallback", t);
  14479. if ("1" == t) {
  14480. i.default.commitEvent(o, "", "");
  14481. r.callback(1);
  14482. } else "-1" == t ? r.callback(-1) : r.callback(0);
  14483. return "1";
  14484. };
  14485. jsb.reflection.callStaticMethod("AppController", "showRewardedVideo:", "jlsp1");
  14486. } else this.callback(1); else this.callback(1);
  14487. };
  14488. return t;
  14489. }();
  14490. o.default = r;
  14491. cc._RF.pop();
  14492. }, {
  14493. "../login/FqLogin": "FqLogin",
  14494. "../util/CHttp": "CHttp"
  14495. } ],
  14496. FullScene: [ function(t, e, o) {
  14497. "use strict";
  14498. cc._RF.push(e, "50926/BsyZKHYMN6tib9fNS", "FullScene");
  14499. var i, n = this && this.__extends || (i = function(t, e) {
  14500. return (i = Object.setPrototypeOf || {
  14501. __proto__: []
  14502. } instanceof Array && function(t, e) {
  14503. t.__proto__ = e;
  14504. } || function(t, e) {
  14505. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  14506. })(t, e);
  14507. }, function(t, e) {
  14508. i(t, e);
  14509. function o() {
  14510. this.constructor = t;
  14511. }
  14512. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  14513. }), r = this && this.__decorate || function(t, e, o, i) {
  14514. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  14515. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  14516. return r > 3 && c && Object.defineProperty(e, o, c), c;
  14517. };
  14518. Object.defineProperty(o, "__esModule", {
  14519. value: !0
  14520. });
  14521. var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) {
  14522. n(e, t);
  14523. function e() {
  14524. return null !== t && t.apply(this, arguments) || this;
  14525. }
  14526. e.prototype.onLoad = function() {
  14527. var t = cc.winSize.height / cc.winSize.width, e = this.node.height / this.node.width;
  14528. this.node.scale = t > e ? cc.winSize.height / this.node.height : cc.winSize.width / this.node.width;
  14529. };
  14530. return r([ a ], e);
  14531. }(cc.Component));
  14532. o.default = s;
  14533. cc._RF.pop();
  14534. }, {} ],
  14535. GEffect: [ function(t, e, o) {
  14536. "use strict";
  14537. cc._RF.push(e, "99e099qUQdAPYqR0kOQ973+", "GEffect");
  14538. var i, n = this && this.__extends || (i = function(t, e) {
  14539. return (i = Object.setPrototypeOf || {
  14540. __proto__: []
  14541. } instanceof Array && function(t, e) {
  14542. t.__proto__ = e;
  14543. } || function(t, e) {
  14544. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  14545. })(t, e);
  14546. }, function(t, e) {
  14547. i(t, e);
  14548. function o() {
  14549. this.constructor = t;
  14550. }
  14551. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  14552. }), r = this && this.__decorate || function(t, e, o, i) {
  14553. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  14554. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  14555. return r > 3 && c && Object.defineProperty(e, o, c), c;
  14556. };
  14557. Object.defineProperty(o, "__esModule", {
  14558. value: !0
  14559. });
  14560. var c = t("../object/FSprite"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  14561. n(e, t);
  14562. function e() {
  14563. var e = null !== t && t.apply(this, arguments) || this;
  14564. e.maxCount = 1;
  14565. e.hitCount = 0;
  14566. return e;
  14567. }
  14568. e.prototype.start = function() {
  14569. var t = this;
  14570. this.hitCount = 0;
  14571. this.node.getComponent(dragonBones.ArmatureDisplay).addEventListener(dragonBones.EventObject.LOOP_COMPLETE, function() {
  14572. t.node.destroy();
  14573. }, this);
  14574. };
  14575. e.prototype.onBeginContact = function(t, e, o) {
  14576. if (!(this.hitCount >= this.maxCount) && this.sprite.node.group != o.node.group) {
  14577. var i = o.node.getComponent(c.default);
  14578. if (i) {
  14579. this.hitCount++;
  14580. this.sprite.atkjs(i);
  14581. }
  14582. }
  14583. };
  14584. r([ p({
  14585. displayName: "最大攻击人数"
  14586. }) ], e.prototype, "maxCount", void 0);
  14587. return r([ s ], e);
  14588. }(cc.Component);
  14589. o.default = l;
  14590. cc._RF.pop();
  14591. }, {
  14592. "../object/FSprite": "FSprite"
  14593. } ],
  14594. GodCardView: [ function(t, e, o) {
  14595. "use strict";
  14596. cc._RF.push(e, "2b7e5/sr4RBI705C8jMa7vm", "GodCardView");
  14597. var i, n = this && this.__extends || (i = function(t, e) {
  14598. return (i = Object.setPrototypeOf || {
  14599. __proto__: []
  14600. } instanceof Array && function(t, e) {
  14601. t.__proto__ = e;
  14602. } || function(t, e) {
  14603. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  14604. })(t, e);
  14605. }, function(t, e) {
  14606. i(t, e);
  14607. function o() {
  14608. this.constructor = t;
  14609. }
  14610. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  14611. }), r = this && this.__decorate || function(t, e, o, i) {
  14612. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  14613. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  14614. return r > 3 && c && Object.defineProperty(e, o, c), c;
  14615. };
  14616. Object.defineProperty(o, "__esModule", {
  14617. value: !0
  14618. });
  14619. var c = t("../../../main/ViewManage"), a = t("../../../main/ViewObject"), s = t("../../../util/CHttp"), p = t("./item/CardItem"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  14620. n(e, t);
  14621. function e() {
  14622. var e = null !== t && t.apply(this, arguments) || this;
  14623. e.mContent = null;
  14624. e.mCardItem = null;
  14625. return e;
  14626. }
  14627. e.prototype.onLoad = function() {
  14628. this.init(1);
  14629. };
  14630. e.prototype.init = function(t) {
  14631. var e = this;
  14632. this.mContent.destroyAllChildren();
  14633. for (var o = this.main.player.godCard, i = this.main.sManage.godCards, n = 0; n < i.length; n++) {
  14634. var r = i[n];
  14635. if (r.type == t) {
  14636. var c = o[r.id], a = cc.instantiate(this.mCardItem);
  14637. a.parent = this.mContent;
  14638. var s = a.getComponent(p.default);
  14639. if (c) {
  14640. s.init(this.main, c);
  14641. s.setCallback(function(t) {
  14642. e.openGodCard(t);
  14643. });
  14644. } else {
  14645. s.initNo(this.main, r);
  14646. s.setCallback(function(t) {
  14647. e.getGodCard(t);
  14648. });
  14649. }
  14650. }
  14651. }
  14652. for (var l in o) {
  14653. c = o[l];
  14654. this.main.sManage.getGodCardById(c.id).type;
  14655. }
  14656. };
  14657. e.prototype.onclickType = function(t, e) {
  14658. var o = parseInt(e);
  14659. this.init(o);
  14660. };
  14661. e.prototype.openGodCard = function(t) {
  14662. this.main.viewManage.loadFunc(c.GameViewType.god_card_info, function(e) {
  14663. e.init(t);
  14664. e.show();
  14665. });
  14666. };
  14667. e.prototype.getGodCard = function(t) {
  14668. var e = this, o = {
  14669. id: t._godCard.id
  14670. };
  14671. this.main.gameHttp.sendJson("card/v1/exchange", o, function(o, i) {
  14672. e.main.stopLoad();
  14673. if (o == s.HttpStateType.SUCCESS) if (0 == i.retCode) {
  14674. var n = i.data._godCard[0];
  14675. t.init(e.main, n);
  14676. e.main.showReward(i);
  14677. t.setCallback(function(t) {
  14678. e.openGodCard(t);
  14679. });
  14680. } else e.main.showTips(i.message); else e.main.showTips("网络异常");
  14681. });
  14682. };
  14683. r([ f(cc.Node) ], e.prototype, "mContent", void 0);
  14684. r([ f(cc.Prefab) ], e.prototype, "mCardItem", void 0);
  14685. return r([ u ], e);
  14686. }(a.default);
  14687. o.default = h;
  14688. cc._RF.pop();
  14689. }, {
  14690. "../../../main/ViewManage": "ViewManage",
  14691. "../../../main/ViewObject": "ViewObject",
  14692. "../../../util/CHttp": "CHttp",
  14693. "./item/CardItem": "CardItem"
  14694. } ],
  14695. GoodAbout: [ function(t, e, o) {
  14696. "use strict";
  14697. cc._RF.push(e, "53742kmpmROJIwt92PlbKBG", "GoodAbout");
  14698. var i, n = this && this.__extends || (i = function(t, e) {
  14699. return (i = Object.setPrototypeOf || {
  14700. __proto__: []
  14701. } instanceof Array && function(t, e) {
  14702. t.__proto__ = e;
  14703. } || function(t, e) {
  14704. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  14705. })(t, e);
  14706. }, function(t, e) {
  14707. i(t, e);
  14708. function o() {
  14709. this.constructor = t;
  14710. }
  14711. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  14712. }), r = this && this.__decorate || function(t, e, o, i) {
  14713. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  14714. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  14715. return r > 3 && c && Object.defineProperty(e, o, c), c;
  14716. };
  14717. Object.defineProperty(o, "__esModule", {
  14718. value: !0
  14719. });
  14720. var c = t("../../i18n/i18n"), a = t("../../main/ViewObject"), s = t("./GoodItem"), p = t("./EquipViewAttr"), l = t("../data/FFCalAttr"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  14721. n(e, t);
  14722. function e() {
  14723. var e = null !== t && t.apply(this, arguments) || this;
  14724. e.mName = null;
  14725. e.mAbout = null;
  14726. e.mGoodItem = null;
  14727. e.mZdl = null;
  14728. e.mAtk = null;
  14729. e.mDef = null;
  14730. e.mHp = null;
  14731. e.mSp = null;
  14732. e.mFAttrNode = null;
  14733. e.mFAttrItem = null;
  14734. e.baseAttNode = null;
  14735. e.addAttNode = null;
  14736. e.mSkillNode = null;
  14737. e.descNode = null;
  14738. e.lbdesc = null;
  14739. e.mSkillName = null;
  14740. e.mSkillAbout = null;
  14741. e.mSkillIcon = null;
  14742. e.mMainNode = [];
  14743. e.mEquipNode = null;
  14744. e.mGoodNode = null;
  14745. e.mUseNode = null;
  14746. e.mQHNode = null;
  14747. e.mUnInstallNode = null;
  14748. e.inGuide = !1;
  14749. e.guideStep = 0;
  14750. e.showQH = !0;
  14751. return e;
  14752. }
  14753. e.prototype.onLoad = function() {
  14754. this.node.zIndex = 1;
  14755. };
  14756. e.prototype.show = function(t) {
  14757. if (t) {
  14758. this.prev = t;
  14759. this.prev.__close();
  14760. }
  14761. this.main.viewManage.popView1(this.node);
  14762. this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this);
  14763. };
  14764. e.prototype.init = function(t, e) {
  14765. void 0 === e && (e = !0);
  14766. this.showQH = e;
  14767. if (t.equip) {
  14768. this.mEquipNode.active = !0;
  14769. this.mGoodNode.active = !1;
  14770. this.initEquip(t);
  14771. } else {
  14772. this.mEquipNode.active = !1;
  14773. this.mGoodNode.active = !0;
  14774. this.initGood(t);
  14775. }
  14776. this.inGuide && 1 == this.guideStep && this.onGuide_1();
  14777. };
  14778. e.prototype.initGood = function(t) {
  14779. this.mGoodItem.initGood(this.main, t.data);
  14780. this.mName.string = c.default.t(t.good.name);
  14781. this.mAbout.string = c.default.t(t.good.about);
  14782. this.mUseNode.active = 3 == t.good.type;
  14783. };
  14784. e.prototype.initEquip = function(t) {
  14785. var e = this;
  14786. this.goodItem = t;
  14787. var o = this.goodItem.equip;
  14788. this.mGoodItem.initEquip(this.main, o);
  14789. var i = this.goodItem.equipData;
  14790. this.mName.string = c.default.t(i.name);
  14791. this.mAbout.string = c.default.t(i.about);
  14792. this.goodItem.equip = o;
  14793. this.goodItem.equipData = i;
  14794. this.goodItem.flushEquip(this.main);
  14795. this.mQHNode.active = i.type <= 4 && this.showQH;
  14796. var n = l.default.getEquipAttr(this.main, o, i);
  14797. this.mZdl.string = "" + n.zdl;
  14798. if (i.atk > 0) {
  14799. this.mAtk.string = "" + n.atk;
  14800. this.mMainNode[0].active = !0;
  14801. } else this.mMainNode[0].active = !1;
  14802. if (i.def > 0) {
  14803. this.mDef.string = "" + n.def;
  14804. this.mMainNode[1].active = !0;
  14805. } else this.mMainNode[1].active = !1;
  14806. if (i.hp > 0) {
  14807. this.mHp.string = "" + n.hp;
  14808. this.mMainNode[2].active = !0;
  14809. } else this.mMainNode[2].active = !1;
  14810. if (i.sp > 0) {
  14811. this.mSp.string = "" + n.sp;
  14812. this.mMainNode[3].active = !0;
  14813. } else this.mMainNode[3].active = !1;
  14814. i.atk <= 0 && i.def <= 0 && i.hp <= 0 && i.sp <= 0 && (this.baseAttNode.active = !1);
  14815. if (o.attr.length <= 0) {
  14816. this.mFAttrNode.active = !1;
  14817. this.addAttNode.active = !1;
  14818. } else {
  14819. this.mFAttrNode.children.forEach(function(t) {
  14820. "fsx_name" != t.name && t.destroy();
  14821. });
  14822. this.mFAttrNode.active = !0;
  14823. for (var r = 0; r < o.attr.length; r++) {
  14824. var a = o.attr[r], s = cc.instantiate(this.mFAttrItem);
  14825. s.getComponent(p.default).init(this.main, a);
  14826. s.parent = this.mFAttrNode;
  14827. }
  14828. }
  14829. if (i.skill > 0) {
  14830. this.mSkillNode.active = !0;
  14831. var u = this.main.sManage.getSkillById(i.skill);
  14832. this.mSkillName.string = c.default.t(u.name);
  14833. this.mSkillAbout.string = c.default.t(u.about, {
  14834. VAL1: u.value1,
  14835. VAL2: u.value2,
  14836. VAL3: u.value3
  14837. });
  14838. cc.resources.load("icon/skill/" + u.icon, cc.SpriteFrame, function(t, o) {
  14839. t ? cc.error(t) : e.mSkillIcon.spriteFrame = o;
  14840. });
  14841. } else this.mSkillNode.active = !1;
  14842. "" != i.about ? this.lbdesc.string = c.default.t(i.about) : this.descNode.active = !1;
  14843. };
  14844. e.prototype.setQHCallback = function(t) {
  14845. this.qhCallback = t;
  14846. };
  14847. e.prototype.onclickQH = function() {
  14848. this.qhCallback && this.qhCallback(this.goodItem);
  14849. this.guideCallback && this.guideCallback();
  14850. };
  14851. e.prototype.setUnCallback = function(t) {
  14852. this.unCallback = t;
  14853. };
  14854. e.prototype.onclickUn = function() {
  14855. this.unCallback && this.unCallback(this.goodItem);
  14856. };
  14857. e.prototype.setGuideCallback = function(t) {
  14858. this.guideCallback = t;
  14859. };
  14860. e.prototype.onGuide_1 = function() {
  14861. var t = this.main.mGuideMask, e = this.mQHNode;
  14862. t.setTargetNode(e);
  14863. t.show();
  14864. this.setGuideCallback(function() {
  14865. t.close();
  14866. });
  14867. };
  14868. r([ h(cc.Label) ], e.prototype, "mName", void 0);
  14869. r([ h(cc.Label) ], e.prototype, "mAbout", void 0);
  14870. r([ h(s.default) ], e.prototype, "mGoodItem", void 0);
  14871. r([ h(cc.Label) ], e.prototype, "mZdl", void 0);
  14872. r([ h(cc.Label) ], e.prototype, "mAtk", void 0);
  14873. r([ h(cc.Label) ], e.prototype, "mDef", void 0);
  14874. r([ h(cc.Label) ], e.prototype, "mHp", void 0);
  14875. r([ h(cc.Label) ], e.prototype, "mSp", void 0);
  14876. r([ h(cc.Node) ], e.prototype, "mFAttrNode", void 0);
  14877. r([ h(cc.Prefab) ], e.prototype, "mFAttrItem", void 0);
  14878. r([ h(cc.Node) ], e.prototype, "baseAttNode", void 0);
  14879. r([ h(cc.Node) ], e.prototype, "addAttNode", void 0);
  14880. r([ h(cc.Node) ], e.prototype, "mSkillNode", void 0);
  14881. r([ h(cc.Node) ], e.prototype, "descNode", void 0);
  14882. r([ h(cc.Label) ], e.prototype, "lbdesc", void 0);
  14883. r([ h(cc.Label) ], e.prototype, "mSkillName", void 0);
  14884. r([ h(cc.Label) ], e.prototype, "mSkillAbout", void 0);
  14885. r([ h(cc.Sprite) ], e.prototype, "mSkillIcon", void 0);
  14886. r([ h([ cc.Node ]) ], e.prototype, "mMainNode", void 0);
  14887. r([ h(cc.Node) ], e.prototype, "mEquipNode", void 0);
  14888. r([ h(cc.Node) ], e.prototype, "mGoodNode", void 0);
  14889. r([ h(cc.Node) ], e.prototype, "mUseNode", void 0);
  14890. r([ h(cc.Node) ], e.prototype, "mQHNode", void 0);
  14891. r([ h(cc.Node) ], e.prototype, "mUnInstallNode", void 0);
  14892. return r([ f ], e);
  14893. }(a.default);
  14894. o.default = d;
  14895. cc._RF.pop();
  14896. }, {
  14897. "../../i18n/i18n": "i18n",
  14898. "../../main/ViewObject": "ViewObject",
  14899. "../data/FFCalAttr": "FFCalAttr",
  14900. "./EquipViewAttr": "EquipViewAttr",
  14901. "./GoodItem": "GoodItem"
  14902. } ],
  14903. GoodItem: [ function(t, e, o) {
  14904. "use strict";
  14905. cc._RF.push(e, "151bdPsfBdMXbh/WAVcXBV2", "GoodItem");
  14906. var i, n = this && this.__extends || (i = function(t, e) {
  14907. return (i = Object.setPrototypeOf || {
  14908. __proto__: []
  14909. } instanceof Array && function(t, e) {
  14910. t.__proto__ = e;
  14911. } || function(t, e) {
  14912. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  14913. })(t, e);
  14914. }, function(t, e) {
  14915. i(t, e);
  14916. function o() {
  14917. this.constructor = t;
  14918. }
  14919. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  14920. }), r = this && this.__decorate || function(t, e, o, i) {
  14921. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  14922. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  14923. return r > 3 && c && Object.defineProperty(e, o, c), c;
  14924. };
  14925. Object.defineProperty(o, "__esModule", {
  14926. value: !0
  14927. });
  14928. var c = t("../data/FFCalAttr"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  14929. n(e, t);
  14930. function e() {
  14931. var e = null !== t && t.apply(this, arguments) || this;
  14932. e.mBG = null;
  14933. e.mIcon = null;
  14934. e.mNullIcon = null;
  14935. e.mBGs = [];
  14936. e.mNullNode = null;
  14937. e.mStarNode = null;
  14938. e.mStar = null;
  14939. e.mLevel = null;
  14940. e.mContrast = null;
  14941. e.inGuide = !1;
  14942. return e;
  14943. }
  14944. e.prototype.initReward = function(t, e) {
  14945. var o = this;
  14946. this.mNullNode.active = !0;
  14947. cc.resources.load(e.icon, cc.SpriteFrame, function(t, e) {
  14948. t ? cc.error(t) : o.mIcon.spriteFrame = e;
  14949. });
  14950. this.mBG.spriteFrame = this.mBGs[e.pz - 1];
  14951. if (e.type < 3) this.mLevel.string = "x" + e.count; else {
  14952. var i = c.default.getEquipQHLevel(t, e.PI, e._data);
  14953. this.mLevel.string = i > 0 ? "Lv." + i : "";
  14954. this.mStarNode.destroyAllChildren();
  14955. for (var n = 0; n < e.star; n++) {
  14956. var r = new cc.Node();
  14957. r.addComponent(cc.Sprite).spriteFrame = this.mStar;
  14958. r.parent = this.mStarNode;
  14959. }
  14960. }
  14961. };
  14962. e.prototype.initRewardInfo = function(t) {
  14963. var e = this;
  14964. this.mNullNode.active = !0;
  14965. cc.resources.load(t.icon, cc.SpriteFrame, function(t, o) {
  14966. t ? cc.error(t) : e.mIcon.spriteFrame = o;
  14967. });
  14968. this.mBG.spriteFrame = this.mBGs[t.pz - 1];
  14969. t.count ? this.mLevel.string = "x" + t.count : this.mLevel.string = "";
  14970. };
  14971. e.prototype.initEquip = function(t, e) {
  14972. this.mNullNode.active = !0;
  14973. this.main = t;
  14974. this.equip = e;
  14975. var o = t.sManage;
  14976. this.equipData = o.getEquipById(e.id);
  14977. this.flushEquip(t);
  14978. };
  14979. e.prototype.initGood = function(t, e) {
  14980. this.mNullNode.active = !0;
  14981. this.main = t;
  14982. this.data = e;
  14983. if (null == this.data.icon) {
  14984. var o = this.main.sManage;
  14985. this.good = o.getGoodById(this.data.id);
  14986. this.data.icon = "good/" + this.good.icon;
  14987. }
  14988. this.flushGood();
  14989. };
  14990. e.prototype.init = function(t, e) {
  14991. this.mNullNode.active = !0;
  14992. this.main = t;
  14993. this.data = e;
  14994. this.flushGood();
  14995. };
  14996. e.prototype.flushEquip = function(t) {
  14997. var e = this, o = this.equipData, i = c.default.getEquipQH(t, this.equip, o);
  14998. this.mLevel.string = i > 0 ? "Lv." + i : "";
  14999. this.mNullNode.active = !0;
  15000. this.mBG.spriteFrame = this.mBGs[this.equipData.pz - 1];
  15001. cc.resources.load("icon/equip/" + this.equipData.icon, cc.SpriteFrame, function(t, o) {
  15002. t ? cc.error(t) : e.mIcon.spriteFrame = o;
  15003. });
  15004. this.mStarNode.destroyAllChildren();
  15005. for (var n = 0; n < this.equip.star; n++) {
  15006. var r = new cc.Node();
  15007. r.addComponent(cc.Sprite).spriteFrame = this.mStar;
  15008. r.parent = this.mStarNode;
  15009. }
  15010. };
  15011. e.prototype.flushGood = function() {
  15012. var t = this;
  15013. cc.resources.load("icon/" + this.data.icon, cc.SpriteFrame, function(e, o) {
  15014. e ? cc.error(e) : t.mIcon.spriteFrame = o;
  15015. });
  15016. this.mLevel.string = "x" + this.data.count;
  15017. this.good ? this.mBG.spriteFrame = this.mBGs[this.good.pz - 1] : this.data.pz && (this.mBG.spriteFrame = this.mBGs[this.data.pz - 1]);
  15018. };
  15019. e.prototype.setNull = function() {
  15020. this.equip = null;
  15021. this.equipData = null;
  15022. this.data = null;
  15023. this.good = null;
  15024. this.mBG.spriteFrame = this.mNullIcon;
  15025. this.mNullNode.active = !1;
  15026. this.callback = null;
  15027. };
  15028. e.prototype.setCallback = function(t) {
  15029. this.callback = t;
  15030. };
  15031. e.prototype.setGuideCallback = function(t) {
  15032. this.guideCallback = t;
  15033. };
  15034. e.prototype.onclick = function() {
  15035. this.callback && this.callback(this);
  15036. if (this.guideCallback) {
  15037. this.guideCallback();
  15038. this.guideCallback = null;
  15039. }
  15040. };
  15041. e.prototype.initContrast = function(t, e) {
  15042. this.main = t;
  15043. this.data = e;
  15044. if (this.data.id) {
  15045. var o = this.main.sManage;
  15046. this.good = o.getGoodById(this.data.id);
  15047. this.data.icon = "good/" + this.good.icon;
  15048. }
  15049. this.flushGood();
  15050. this.mLevel.node.active = !1;
  15051. this.mContrast.node.active = !0;
  15052. var i = this.main.player.getGoodCount(this.data.id);
  15053. this.mContrast.string = i + "/" + e.count;
  15054. i >= e.count ? this.mContrast.node.color = cc.color(75, 43, 0) : this.mContrast.node.color = cc.color(255, 0, 0);
  15055. };
  15056. r([ p(cc.Sprite) ], e.prototype, "mBG", void 0);
  15057. r([ p(cc.Sprite) ], e.prototype, "mIcon", void 0);
  15058. r([ p(cc.SpriteFrame) ], e.prototype, "mNullIcon", void 0);
  15059. r([ p([ cc.SpriteFrame ]) ], e.prototype, "mBGs", void 0);
  15060. r([ p(cc.Node) ], e.prototype, "mNullNode", void 0);
  15061. r([ p(cc.Node) ], e.prototype, "mStarNode", void 0);
  15062. r([ p(cc.SpriteFrame) ], e.prototype, "mStar", void 0);
  15063. r([ p(cc.Label) ], e.prototype, "mLevel", void 0);
  15064. r([ p(cc.Label) ], e.prototype, "mContrast", void 0);
  15065. return r([ s ], e);
  15066. }(cc.Component);
  15067. o.default = l;
  15068. cc._RF.pop();
  15069. }, {
  15070. "../data/FFCalAttr": "FFCalAttr"
  15071. } ],
  15072. Guide1: [ function(t, e, o) {
  15073. "use strict";
  15074. cc._RF.push(e, "496fcj9XbtNKZgF0/1JAD1N", "Guide1");
  15075. var i, n = this && this.__extends || (i = function(t, e) {
  15076. return (i = Object.setPrototypeOf || {
  15077. __proto__: []
  15078. } instanceof Array && function(t, e) {
  15079. t.__proto__ = e;
  15080. } || function(t, e) {
  15081. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  15082. })(t, e);
  15083. }, function(t, e) {
  15084. i(t, e);
  15085. function o() {
  15086. this.constructor = t;
  15087. }
  15088. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  15089. }), r = this && this.__decorate || function(t, e, o, i) {
  15090. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  15091. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  15092. return r > 3 && c && Object.defineProperty(e, o, c), c;
  15093. };
  15094. Object.defineProperty(o, "__esModule", {
  15095. value: !0
  15096. });
  15097. var c = t("../../../../i18n/i18n"), a = t("../../box/DialogButton"), s = t("../../object/FSprite"), p = t("../map1/WOneByone"), l = t("./GuideBase"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  15098. n(e, t);
  15099. function e() {
  15100. var e = null !== t && t.apply(this, arguments) || this;
  15101. e.mMapDialog = null;
  15102. e.spine = null;
  15103. e.speak1 = null;
  15104. e.speak2 = [];
  15105. e.speak3 = null;
  15106. e.speak3Move = null;
  15107. e.speak4 = null;
  15108. e.speak5 = null;
  15109. e.speak6 = null;
  15110. e.speak7 = null;
  15111. e.mChoiseDialog = null;
  15112. return e;
  15113. }
  15114. e.prototype.onLoad = function() {
  15115. this.node.zIndex = -9999;
  15116. };
  15117. e.prototype.run = function() {
  15118. var t = this.ff.mMap, e = cc.winSize, o = t.mCamera;
  15119. o.node.x = this.node.x - e.width / 2;
  15120. o.node.y = this.node.y - e.height / 2;
  15121. this.ff.pauseSprite(!0);
  15122. this.ff.mBlockInputEvents.active = !0;
  15123. this.showDialog1();
  15124. };
  15125. e.prototype.showDialog1 = function() {
  15126. var t = this, e = cc.instantiate(this.mMapDialog);
  15127. e.group = "map";
  15128. e.zIndex = 9999;
  15129. e.x = this.node.x + this.speak1.x;
  15130. e.y = this.node.y + this.speak1.y + this.speak1.height;
  15131. e.parent = this.ff.mMap.mSprites;
  15132. var o = e.getComponent(p.default);
  15133. o.dialogs = [ "干的不错", "身为阿萨神族的守护者,保卫阿斯加德不受邪恶的侵扰是我们的职责", "你叫什么名字?", "真不错,听名字就知道有前途", "有朝一日,希望你能成为阿斯加德新的守护神……", "来,一起祝众神之王与王后,仙福永享寿与天齐" ];
  15134. o.setCallback(function() {
  15135. e.destroy();
  15136. t.ff.setBlockInputCallback(null);
  15137. t.showDialog2();
  15138. });
  15139. this.ff.setBlockInputCallback(function() {
  15140. o.jump();
  15141. });
  15142. o._start();
  15143. };
  15144. e.prototype.showDialog2 = function() {
  15145. for (var t = this, e = [ "干杯" ], o = [], i = 0; i < this.speak2.length; i++) {
  15146. var n = this.speak2[i], r = cc.instantiate(this.mMapDialog);
  15147. r.group = "map";
  15148. r.zIndex = 9999;
  15149. r.x = this.node.x + n.x;
  15150. r.y = this.node.y + n.y + n.height;
  15151. r.parent = this.ff.mMap.mSprites;
  15152. var c = r.getComponent(p.default);
  15153. c.dialogs = e;
  15154. o.push(r);
  15155. c._start();
  15156. }
  15157. this.ff.setBlockInputCallback(null);
  15158. cc.tween(this.node).sequence(cc.delayTime(1), cc.callFunc(function() {
  15159. o.forEach(function(t) {
  15160. t.destroy();
  15161. });
  15162. t.showDialog3();
  15163. })).start();
  15164. };
  15165. e.prototype.showDialog3 = function() {
  15166. var t = this;
  15167. cc.tween(this.speak3).sequence(cc.moveTo(1, this.speak3Move.getPosition()), cc.callFunc(function() {
  15168. t.showDialog3_1();
  15169. })).start();
  15170. };
  15171. e.prototype.showDialog3_1 = function() {
  15172. var t = this, e = cc.instantiate(this.mMapDialog);
  15173. e.group = "map";
  15174. e.zIndex = 9999;
  15175. e.x = this.node.x + this.speak3.x;
  15176. e.y = this.node.y + this.speak3.y + this.speak3.height;
  15177. e.parent = this.ff.mMap.mSprites;
  15178. var o = e.getComponent(p.default);
  15179. o.dialogs = [ "报…报告……", "报告各位大神,邪恶四巨兽军团正在接近…", "从彩虹桥正面攻入…", "请…请…请……" ];
  15180. o.setCallback(function() {
  15181. e.destroy();
  15182. t.ff.setBlockInputCallback(null);
  15183. t.showDialog4();
  15184. });
  15185. this.ff.setBlockInputCallback(function() {
  15186. o.jump();
  15187. });
  15188. o._start();
  15189. };
  15190. e.prototype.showDialog4 = function() {
  15191. var t = this, e = cc.instantiate(this.mMapDialog);
  15192. e.group = "map";
  15193. e.zIndex = 9999;
  15194. e.x = this.node.x + this.speak4.x;
  15195. e.y = this.node.y + this.speak4.y + this.speak4.height;
  15196. e.parent = this.ff.mMap.mSprites;
  15197. var o = e.getComponent(p.default);
  15198. o.dialogs = [ "这是什么鬼东西" ];
  15199. o.setCallback(function() {
  15200. e.destroy();
  15201. t.ff.setBlockInputCallback(null);
  15202. t.showDialog5();
  15203. });
  15204. this.ff.setBlockInputCallback(function() {
  15205. o.jump();
  15206. });
  15207. o._start();
  15208. };
  15209. e.prototype.showDialog5 = function() {
  15210. var t = this, e = cc.instantiate(this.mMapDialog);
  15211. e.group = "map";
  15212. e.zIndex = 9999;
  15213. e.x = this.node.x + this.speak5.x;
  15214. e.y = this.node.y + this.speak5.y + this.speak5.height;
  15215. e.parent = this.ff.mMap.mSprites;
  15216. var o = e.getComponent(p.default);
  15217. o.dialogs = [ "伟大的圣母玛利亚呀" ];
  15218. o.setCallback(function() {
  15219. e.destroy();
  15220. t.ff.setBlockInputCallback(null);
  15221. t.showDialog6();
  15222. });
  15223. this.ff.setBlockInputCallback(function() {
  15224. o.jump();
  15225. });
  15226. o._start();
  15227. };
  15228. e.prototype.showDialog6 = function() {
  15229. var t = this, e = cc.instantiate(this.mMapDialog);
  15230. e.group = "map";
  15231. e.zIndex = 9999;
  15232. e.x = this.node.x + this.speak6.x;
  15233. e.y = this.node.y + this.speak6.y + this.speak6.height;
  15234. e.parent = this.ff.mMap.mSprites;
  15235. var o = e.getComponent(p.default);
  15236. o.dialogs = [ "……" ];
  15237. o.setCallback(function() {
  15238. e.destroy();
  15239. t.ff.setBlockInputCallback(null);
  15240. t.showDialog7();
  15241. });
  15242. this.ff.setBlockInputCallback(function() {
  15243. o.jump();
  15244. });
  15245. o._start();
  15246. };
  15247. e.prototype.showDialog7 = function() {
  15248. var t = this;
  15249. this.spine.setCompleteListener(function() {
  15250. t.spine.setCompleteListener(null);
  15251. t.spine.setAnimation(0, "idle", !0);
  15252. t.dead();
  15253. t.mainMove();
  15254. });
  15255. this.spine.setAnimation(0, "in", !1);
  15256. };
  15257. e.prototype.dead = function() {
  15258. for (var t = this.getAllSpine(), e = function(e) {
  15259. var o = t[e];
  15260. o.setCompleteListener(function() {
  15261. o.setCompleteListener(null);
  15262. o.setAnimation(0, s.SpriteActionType.yun2, !0);
  15263. });
  15264. o.setAnimation(0, s.SpriteActionType.yun, !1);
  15265. }, o = 0; o < t.length; o++) e(o);
  15266. };
  15267. e.prototype.getAllSpine = function() {
  15268. for (var t = this.node.children, e = [], o = 0; o < t.length; o++) {
  15269. var i = t[o].getChildByName("juese01");
  15270. if (i) {
  15271. i.zIndex = 2;
  15272. var n = i.getChildByName("spineRight");
  15273. if (n) {
  15274. var r = n.getComponent(sp.Skeleton);
  15275. e.push(r);
  15276. }
  15277. }
  15278. }
  15279. return e;
  15280. };
  15281. e.prototype.mainMove = function() {
  15282. var t = this, e = this.ff.mainSprite, o = cc.v2();
  15283. o.x = this.node.x + this.speak3Move.x;
  15284. o.y = this.node.y + this.speak3Move.y;
  15285. e.playAction2(s.SpriteActionType.run);
  15286. cc.tween(e.node).sequence(cc.moveTo(1, o), cc.callFunc(function() {
  15287. e.playAction2(s.SpriteActionType.stand);
  15288. t.showDialog8();
  15289. })).start();
  15290. };
  15291. e.prototype.showDialog8 = function() {
  15292. var t = this, e = this.ff.mainSprite, o = cc.instantiate(this.mMapDialog);
  15293. o.group = "map";
  15294. o.zIndex = 9999;
  15295. o.x = e.node.x;
  15296. o.y = e.node.y + e.node.height;
  15297. o.parent = this.ff.mMap.mSprites;
  15298. var i = o.getComponent(p.default);
  15299. i.dialogs = [ "危险,保护众神之王,保护众神之母", "保护,保护……" ];
  15300. i.setCallback(function() {
  15301. o.destroy();
  15302. t.ff.setBlockInputCallback(null);
  15303. t.showDialog9();
  15304. });
  15305. this.ff.setBlockInputCallback(function() {
  15306. i.jump();
  15307. });
  15308. i._start();
  15309. };
  15310. e.prototype.showDialog9 = function() {
  15311. var t = this;
  15312. this.speak7.active = !0;
  15313. this.speak7.getChildByName("chuansongmen1").active = !0;
  15314. var e = this.speak7.getChildByName("monster56");
  15315. e.active = !0;
  15316. e.opacity = 0;
  15317. cc.tween(e).sequence(cc.fadeIn(1), cc.callFunc(function() {
  15318. t.showDialog9_1();
  15319. })).start();
  15320. };
  15321. e.prototype.showDialog9_1 = function() {
  15322. var t = this, e = this.speak7, o = cc.instantiate(this.mMapDialog);
  15323. o.group = "map";
  15324. o.zIndex = 9999;
  15325. o.x = this.node.x + e.x;
  15326. o.y = this.node.y + e.y + e.height;
  15327. o.parent = this.ff.mMap.mSprites;
  15328. var i = o.getComponent(p.default);
  15329. i.dialogs = [ "亲爱的孩子,谁来保护你呢?" ];
  15330. i.setCallback(function() {
  15331. o.destroy();
  15332. t.ff.setBlockInputCallback(null);
  15333. t.showDialog9_1_1();
  15334. });
  15335. this.ff.setBlockInputCallback(function() {
  15336. i.jump();
  15337. });
  15338. i._start();
  15339. };
  15340. e.prototype.showDialog9_1_1 = function() {
  15341. var t = this, e = cc.instantiate(this.mChoiseDialog);
  15342. e.parent = this.ff.node;
  15343. e.getComponent(a.default).setCallback(function() {
  15344. e.destroy();
  15345. t.showDialog9_1_2();
  15346. });
  15347. };
  15348. e.prototype.showDialog9_1_2 = function() {
  15349. var t = this, e = this.speak7, o = cc.instantiate(this.mMapDialog);
  15350. o.group = "map";
  15351. o.zIndex = 9999;
  15352. o.x = this.node.x + e.x;
  15353. o.y = this.node.y + e.y + e.height;
  15354. o.parent = this.ff.mMap.mSprites;
  15355. var i = o.getComponent(p.default);
  15356. i.dialogs = [ "剧情要改……" ];
  15357. i.setCallback(function() {
  15358. o.destroy();
  15359. t.ff.setBlockInputCallback(null);
  15360. t.showDialog9_2_1();
  15361. });
  15362. this.ff.setBlockInputCallback(function() {
  15363. i.jump();
  15364. });
  15365. i._start();
  15366. };
  15367. e.prototype.showDialog9_2_1 = function() {
  15368. var t = this, e = this.speak7.getChildByName("1");
  15369. e.active = !0;
  15370. var o = this.speak7.getChildByName("chuansongmen2");
  15371. o.active = !0;
  15372. this.ff.setBlockInputCallback(function() {
  15373. e.active = !1;
  15374. o.active = !1;
  15375. t.showDialog9_2_2();
  15376. });
  15377. };
  15378. e.prototype.showDialog9_2_2 = function() {
  15379. var t = this, e = this.speak7, o = cc.instantiate(this.mMapDialog);
  15380. o.group = "map";
  15381. o.zIndex = 9999;
  15382. o.x = this.node.x + e.x;
  15383. o.y = this.node.y + e.y + e.height;
  15384. o.parent = this.ff.mMap.mSprites;
  15385. var i = o.getComponent(p.default);
  15386. i.dialogs = [ "哎呀,搞错了", "再来" ];
  15387. i.setCallback(function() {
  15388. o.destroy();
  15389. t.ff.setBlockInputCallback(null);
  15390. t.showDialog9_2_3();
  15391. });
  15392. this.ff.setBlockInputCallback(function() {
  15393. i.jump();
  15394. });
  15395. i._start();
  15396. };
  15397. e.prototype.showDialog9_2_3 = function() {
  15398. for (var t = this, e = [], o = 2; o <= 5; o++) {
  15399. var i = this.speak7.getChildByName("" + o);
  15400. e.push(i);
  15401. }
  15402. var n = 0, r = this.speak7.getChildByName("chuansongmen2");
  15403. r.active = !0;
  15404. e[0].active = !0;
  15405. var a = [ "巨狼芬尼尔", "黑龙尼德霍格", "尘世巨蟒耶梦加德", "死境之主海拉" ], s = this.speak7, l = cc.instantiate(this.mMapDialog);
  15406. l.group = "map";
  15407. l.zIndex = 9999;
  15408. l.x = this.node.x + s.x;
  15409. l.y = this.node.y + s.y + s.height;
  15410. l.parent = this.ff.mMap.mSprites;
  15411. var u = l.getComponent(p.default);
  15412. u.isOver = !0;
  15413. u.label.string = c.default.t(a[0]);
  15414. this.ff.setBlockInputCallback(function() {
  15415. if (++n >= e.length) {
  15416. l.destroy();
  15417. e[n - 1].active = !1;
  15418. r.active = !1;
  15419. t.showDialog9_3();
  15420. } else {
  15421. e[n - 1].active = !1;
  15422. e[n].active = !0;
  15423. u.label.string = c.default.t(a[n]);
  15424. }
  15425. });
  15426. };
  15427. e.prototype.showDialog9_3 = function() {
  15428. var t = this, e = this.speak7, o = cc.instantiate(this.mMapDialog);
  15429. o.group = "map";
  15430. o.zIndex = 9999;
  15431. o.x = this.node.x + e.x;
  15432. o.y = this.node.y + e.y + e.height;
  15433. o.parent = this.ff.mMap.mSprites;
  15434. var i = o.getComponent(p.default);
  15435. i.dialogs = [ "剧情要改" ];
  15436. i.setCallback(function() {
  15437. o.destroy();
  15438. t.ff.setBlockInputCallback(null);
  15439. t.ff.pauseSprite(!1);
  15440. t.ff.mBlockInputEvents.active = !1;
  15441. t.speak7.active = !1;
  15442. });
  15443. this.ff.setBlockInputCallback(function() {
  15444. i.jump();
  15445. });
  15446. i._start();
  15447. };
  15448. r([ h(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  15449. r([ h(sp.Skeleton) ], e.prototype, "spine", void 0);
  15450. r([ h(cc.Node) ], e.prototype, "speak1", void 0);
  15451. r([ h([ cc.Node ]) ], e.prototype, "speak2", void 0);
  15452. r([ h(cc.Node) ], e.prototype, "speak3", void 0);
  15453. r([ h(cc.Node) ], e.prototype, "speak3Move", void 0);
  15454. r([ h(cc.Node) ], e.prototype, "speak4", void 0);
  15455. r([ h(cc.Node) ], e.prototype, "speak5", void 0);
  15456. r([ h(cc.Node) ], e.prototype, "speak6", void 0);
  15457. r([ h(cc.Node) ], e.prototype, "speak7", void 0);
  15458. r([ h(cc.Prefab) ], e.prototype, "mChoiseDialog", void 0);
  15459. return r([ f ], e);
  15460. }(l.default);
  15461. o.default = d;
  15462. cc._RF.pop();
  15463. }, {
  15464. "../../../../i18n/i18n": "i18n",
  15465. "../../box/DialogButton": "DialogButton",
  15466. "../../object/FSprite": "FSprite",
  15467. "../map1/WOneByone": "WOneByone",
  15468. "./GuideBase": "GuideBase"
  15469. } ],
  15470. GuideBase: [ function(t, e, o) {
  15471. "use strict";
  15472. cc._RF.push(e, "e5c4fht4dBDh70bXU1a+Zap", "GuideBase");
  15473. var i, n = this && this.__extends || (i = function(t, e) {
  15474. return (i = Object.setPrototypeOf || {
  15475. __proto__: []
  15476. } instanceof Array && function(t, e) {
  15477. t.__proto__ = e;
  15478. } || function(t, e) {
  15479. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  15480. })(t, e);
  15481. }, function(t, e) {
  15482. i(t, e);
  15483. function o() {
  15484. this.constructor = t;
  15485. }
  15486. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  15487. }), r = this && this.__decorate || function(t, e, o, i) {
  15488. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  15489. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  15490. return r > 3 && c && Object.defineProperty(e, o, c), c;
  15491. };
  15492. Object.defineProperty(o, "__esModule", {
  15493. value: !0
  15494. });
  15495. var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) {
  15496. n(e, t);
  15497. function e() {
  15498. return null !== t && t.apply(this, arguments) || this;
  15499. }
  15500. e.prototype.run = function() {};
  15501. return r([ a ], e);
  15502. }(cc.Component));
  15503. o.default = s;
  15504. cc._RF.pop();
  15505. }, {} ],
  15506. GuideMask: [ function(t, e, o) {
  15507. "use strict";
  15508. cc._RF.push(e, "1406cpHqdNFWah+/ezPk5P5", "GuideMask");
  15509. var i, n = this && this.__extends || (i = function(t, e) {
  15510. return (i = Object.setPrototypeOf || {
  15511. __proto__: []
  15512. } instanceof Array && function(t, e) {
  15513. t.__proto__ = e;
  15514. } || function(t, e) {
  15515. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  15516. })(t, e);
  15517. }, function(t, e) {
  15518. i(t, e);
  15519. function o() {
  15520. this.constructor = t;
  15521. }
  15522. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  15523. }), r = this && this.__decorate || function(t, e, o, i) {
  15524. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  15525. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  15526. return r > 3 && c && Object.defineProperty(e, o, c), c;
  15527. };
  15528. Object.defineProperty(o, "__esModule", {
  15529. value: !0
  15530. });
  15531. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  15532. n(e, t);
  15533. function e() {
  15534. var e = null !== t && t.apply(this, arguments) || this;
  15535. e.mLayout0 = null;
  15536. e.mMask = null;
  15537. e.mShadow = null;
  15538. e.guideMark = null;
  15539. e.pTargetNode = null;
  15540. return e;
  15541. }
  15542. e.prototype.onLoad = function() {
  15543. this.node.active = !1;
  15544. };
  15545. e.prototype.show = function() {
  15546. var t = this;
  15547. this.node.active = !0;
  15548. this.mLayout0.on(cc.Node.EventType.TOUCH_START, function(e) {
  15549. e.target == t.pTargetNode || e.stopPropagation();
  15550. }, !0);
  15551. this.mLayout0.on(cc.Node.EventType.TOUCH_MOVE, function(e) {
  15552. e.target == t.pTargetNode || e.stopPropagation();
  15553. }, !0);
  15554. this.mLayout0.on(cc.Node.EventType.TOUCH_END, function(e) {
  15555. e.target == t.pTargetNode || e.stopPropagation();
  15556. }, !0);
  15557. };
  15558. e.prototype.close = function() {
  15559. this.node.active = !1;
  15560. this.mLayout0.off(cc.Node.EventType.TOUCH_START);
  15561. this.mLayout0.off(cc.Node.EventType.TOUCH_MOVE);
  15562. this.mLayout0.off(cc.Node.EventType.TOUCH_END);
  15563. };
  15564. e.prototype.setTargetNode = function(t) {
  15565. var e = this;
  15566. this.pTargetNode = t;
  15567. cc.tween(this).sequence(cc.delayTime(.01), cc.callFunc(function() {
  15568. var t = e.pTargetNode.convertToWorldSpaceAR(cc.v2(0, 0)), o = cc.winSize.width, i = cc.winSize.height;
  15569. t.x -= o / 2;
  15570. t.y -= i / 2;
  15571. e.guideMark.x = t.x;
  15572. e.guideMark.y = t.y;
  15573. e.mMask.node.x = t.x;
  15574. e.mMask.node.y = t.y;
  15575. e.mMask.node.width = e.pTargetNode.width;
  15576. e.mMask.node.height = e.pTargetNode.height;
  15577. e.mShadow.x = -t.x;
  15578. e.mShadow.y = -t.y;
  15579. })).start();
  15580. };
  15581. r([ s(cc.Node) ], e.prototype, "mLayout0", void 0);
  15582. r([ s(cc.Mask) ], e.prototype, "mMask", void 0);
  15583. r([ s(cc.Node) ], e.prototype, "mShadow", void 0);
  15584. r([ s(cc.Node) ], e.prototype, "guideMark", void 0);
  15585. return r([ a ], e);
  15586. }(cc.Component);
  15587. o.default = p;
  15588. cc._RF.pop();
  15589. }, {} ],
  15590. GuideTips1: [ function(t, e, o) {
  15591. "use strict";
  15592. cc._RF.push(e, "4dfe3kQzsBJgIS+w+VN4VWo", "GuideTips1");
  15593. var i, n = this && this.__extends || (i = function(t, e) {
  15594. return (i = Object.setPrototypeOf || {
  15595. __proto__: []
  15596. } instanceof Array && function(t, e) {
  15597. t.__proto__ = e;
  15598. } || function(t, e) {
  15599. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  15600. })(t, e);
  15601. }, function(t, e) {
  15602. i(t, e);
  15603. function o() {
  15604. this.constructor = t;
  15605. }
  15606. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  15607. }), r = this && this.__decorate || function(t, e, o, i) {
  15608. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  15609. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  15610. return r > 3 && c && Object.defineProperty(e, o, c), c;
  15611. };
  15612. Object.defineProperty(o, "__esModule", {
  15613. value: !0
  15614. });
  15615. var c = t("../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  15616. n(e, t);
  15617. function e() {
  15618. var e = null !== t && t.apply(this, arguments) || this;
  15619. e.mNode = null;
  15620. return e;
  15621. }
  15622. e.prototype.onLoad = function() {
  15623. cc.log(this);
  15624. t.prototype.onLoad.call(this);
  15625. };
  15626. e.prototype.onBegin = function() {
  15627. this.node.destroy();
  15628. };
  15629. r([ p(cc.Node) ], e.prototype, "mNode", void 0);
  15630. return r([ s ], e);
  15631. }(c.default);
  15632. o.default = l;
  15633. cc._RF.pop();
  15634. }, {
  15635. "../base/BaseEvent": "BaseEvent"
  15636. } ],
  15637. GuideTips: [ function(t, e, o) {
  15638. "use strict";
  15639. cc._RF.push(e, "51f5bJLoeZOg6VBMv4cxOie", "GuideTips");
  15640. var i, n = this && this.__extends || (i = function(t, e) {
  15641. return (i = Object.setPrototypeOf || {
  15642. __proto__: []
  15643. } instanceof Array && function(t, e) {
  15644. t.__proto__ = e;
  15645. } || function(t, e) {
  15646. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  15647. })(t, e);
  15648. }, function(t, e) {
  15649. i(t, e);
  15650. function o() {
  15651. this.constructor = t;
  15652. }
  15653. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  15654. }), r = this && this.__decorate || function(t, e, o, i) {
  15655. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  15656. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  15657. return r > 3 && c && Object.defineProperty(e, o, c), c;
  15658. };
  15659. Object.defineProperty(o, "__esModule", {
  15660. value: !0
  15661. });
  15662. var c = t("../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  15663. n(e, t);
  15664. function e() {
  15665. var e = null !== t && t.apply(this, arguments) || this;
  15666. e.mNode = null;
  15667. return e;
  15668. }
  15669. e.prototype.onLoad = function() {
  15670. t.prototype.onLoad.call(this);
  15671. 0 != this.ff.main.player.stage.stageIndex && this.node.destroy();
  15672. };
  15673. e.prototype.onBegin = function() {
  15674. this.node.destroy();
  15675. };
  15676. r([ p(cc.Node) ], e.prototype, "mNode", void 0);
  15677. return r([ s ], e);
  15678. }(c.default);
  15679. o.default = l;
  15680. cc._RF.pop();
  15681. }, {
  15682. "../base/BaseEvent": "BaseEvent"
  15683. } ],
  15684. HistoryArea: [ function(t, e, o) {
  15685. "use strict";
  15686. cc._RF.push(e, "3d563i2a3FBU7US5rqQukFJ", "HistoryArea");
  15687. var i, n = this && this.__extends || (i = function(t, e) {
  15688. return (i = Object.setPrototypeOf || {
  15689. __proto__: []
  15690. } instanceof Array && function(t, e) {
  15691. t.__proto__ = e;
  15692. } || function(t, e) {
  15693. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  15694. })(t, e);
  15695. }, function(t, e) {
  15696. i(t, e);
  15697. function o() {
  15698. this.constructor = t;
  15699. }
  15700. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  15701. }), r = this && this.__decorate || function(t, e, o, i) {
  15702. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  15703. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  15704. return r > 3 && c && Object.defineProperty(e, o, c), c;
  15705. };
  15706. Object.defineProperty(o, "__esModule", {
  15707. value: !0
  15708. });
  15709. var c = t("./item/MyZoneItem"), a = t("../main/ViewObject"), s = t("../main/ViewManage"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  15710. n(e, t);
  15711. function e() {
  15712. var e = null !== t && t.apply(this, arguments) || this;
  15713. e.mContent = null;
  15714. e.mZoneItem = null;
  15715. return e;
  15716. }
  15717. e.prototype.onLoad = function() {
  15718. for (var t = this.area.zones, e = 0; e < t.length; e++) (o = t[e]).rec && !this.inRoles(o) && this.addItem(o, null);
  15719. if (this.area.roles) for (e = 0; e < this.area.roles.length; e++) {
  15720. var o = this.area.roles[e];
  15721. this.addItem(null, o);
  15722. }
  15723. };
  15724. e.prototype.addItem = function(t, e) {
  15725. var o = this, i = cc.instantiate(this.mZoneItem), n = i.getComponent(c.default);
  15726. n.zone = t;
  15727. n.role = e;
  15728. i.parent = this.mContent;
  15729. n.setCallback(function(t) {
  15730. o.area.setOptZone(t.zone);
  15731. o.exitDistroy();
  15732. });
  15733. };
  15734. e.prototype.inRoles = function(t) {
  15735. if (null == this.area.roles) return !1;
  15736. for (var e = 0; e < this.area.roles.length; e++) if (this.area.roles[e].zoneId == t.id) return !0;
  15737. return !1;
  15738. };
  15739. e.prototype.openAllArea = function() {
  15740. var t = this;
  15741. this.main.startLoad();
  15742. this.main.viewManage.loadFunc(s.GameViewType.allArea, function(e) {
  15743. e.area = t.area;
  15744. e.show(t);
  15745. t.main.stopLoad();
  15746. });
  15747. };
  15748. r([ u(cc.Node) ], e.prototype, "mContent", void 0);
  15749. r([ u(cc.Prefab) ], e.prototype, "mZoneItem", void 0);
  15750. return r([ l ], e);
  15751. }(a.default);
  15752. o.default = f;
  15753. cc._RF.pop();
  15754. }, {
  15755. "../main/ViewManage": "ViewManage",
  15756. "../main/ViewObject": "ViewObject",
  15757. "./item/MyZoneItem": "MyZoneItem"
  15758. } ],
  15759. Home: [ function(t, e, o) {
  15760. "use strict";
  15761. cc._RF.push(e, "1d882/rn6pP7aeqIRSxKjDB", "Home");
  15762. var i, n = this && this.__extends || (i = function(t, e) {
  15763. return (i = Object.setPrototypeOf || {
  15764. __proto__: []
  15765. } instanceof Array && function(t, e) {
  15766. t.__proto__ = e;
  15767. } || function(t, e) {
  15768. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  15769. })(t, e);
  15770. }, function(t, e) {
  15771. i(t, e);
  15772. function o() {
  15773. this.constructor = t;
  15774. }
  15775. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  15776. }), r = this && this.__decorate || function(t, e, o, i) {
  15777. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  15778. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  15779. return r > 3 && c && Object.defineProperty(e, o, c), c;
  15780. };
  15781. Object.defineProperty(o, "__esModule", {
  15782. value: !0
  15783. });
  15784. var c = t("../../main/ViewObject"), a = t("../../util/CHttp"), s = t("../../main/ViewManage"), p = t("./equip/Equip"), l = t("../data/FFCalAttr"), u = t("../data/RedPoint"), f = t("./TopMenu"), h = t("../../util/CUtilTime"), d = cc._decorator, m = d.ccclass, y = d.property, v = function(t) {
  15785. n(e, t);
  15786. function e() {
  15787. var e = null !== t && t.apply(this, arguments) || this;
  15788. e.mZdl = null;
  15789. e.mPower = null;
  15790. e.mMoney = null;
  15791. e.mGold = null;
  15792. e.mIcon = null;
  15793. e.mFrame = null;
  15794. e.activityNode = null;
  15795. e.mEmailNode = null;
  15796. e.mRole1 = null;
  15797. e.mRole2 = null;
  15798. e.mRole3 = null;
  15799. e.mEquipNode = null;
  15800. e.revengeBtn = null;
  15801. e.revengeTime = 0;
  15802. e.topMenu = null;
  15803. e.revengeView = null;
  15804. e.tempTime = 0;
  15805. return e;
  15806. }
  15807. e.prototype.onLoad = function() {
  15808. this.hit();
  15809. this.schedule(this.hit, 15);
  15810. this.flushActivity();
  15811. this.topMenu = this.main.topNode.getComponent(f.default);
  15812. this.topMenu.main = this.main;
  15813. this.topMenu.home = this;
  15814. this.main.topNode.active = !0;
  15815. this.main.playMusicByPath(s.AudioMgr.homeMusic);
  15816. this.node.getChildByName("activity").getChildByName("1002").active = !this.main.player.isNew;
  15817. this.getPay();
  15818. };
  15819. e.prototype.hit = function() {
  15820. this.main.gameHttp.sendJson("role/v1/resumePower", {}, function() {});
  15821. };
  15822. e.prototype.onEnable = function() {
  15823. this.flush();
  15824. this.flushZdl();
  15825. this.flushRole();
  15826. this.flushEquipRedPoint();
  15827. 1 == cc.sys.localStorage.getItem("showRevenge" + this.main.player.role.id) ? this.activiteRevenge() : this.getRevengeData();
  15828. };
  15829. e.prototype.getPay = function() {
  15830. var t = this;
  15831. this.main.gameHttp.sendJson("pay/v1/checkPay1", {}, function(e, o) {
  15832. e == a.HttpStateType.SUCCESS && 0 == o.retCode && t.main.showReward(o);
  15833. });
  15834. };
  15835. e.prototype.flushZdl = function() {
  15836. this.main.player.flushZdl(this.main);
  15837. var t = this.main.player.role;
  15838. this.mZdl.string = "" + t.zdl;
  15839. };
  15840. e.prototype.flush = function() {
  15841. var t = this, e = this.main.player.role, o = this.main.sManage.getRoleIconById(e.icon);
  15842. o && cc.resources.load("icon/role_head/" + o.icon, cc.SpriteFrame, function(e, o) {
  15843. e ? cc.error(e) : t.mIcon.spriteFrame = o;
  15844. });
  15845. var i = this.main.sManage.getRoleIconById(e.frame);
  15846. i && cc.resources.load("icon/role_head/txk/" + i.icon, cc.SpriteFrame, function(e, o) {
  15847. e ? cc.error(e) : t.mFrame.spriteFrame = o;
  15848. });
  15849. };
  15850. e.prototype.flushRole = function() {
  15851. var t = this.main.player.getPet(1);
  15852. this.updateRole(t, this.mRole1);
  15853. var e = this.main.player.getPet(2);
  15854. this.updateRole(e, this.mRole2);
  15855. var o = this.main.player.getPet(3);
  15856. this.updateRole(o, this.mRole3);
  15857. };
  15858. e.prototype.flushActivity = function() {
  15859. var t = this;
  15860. this.main.gameHttp.sendJson("firstPay/v1/data", {}, function(e, o) {
  15861. e == a.HttpStateType.SUCCESS ? 0 == o.retCode ? 3 == o.data.firstPay.count && (t.activityNode.getChildByName("1001").active = !1) : t.main.showTips(o.message) : t.main.showTips("网络异常");
  15862. });
  15863. };
  15864. e.prototype.updateRole = function(t, e) {
  15865. if (null == t) e.node.active = !1; else {
  15866. e.node.active = !0;
  15867. var o = e.findBone("control");
  15868. if (o) {
  15869. o.data.rotation = 0;
  15870. o.rotation = 0;
  15871. }
  15872. var i = l.default.getAttr(this.main, t);
  15873. i.skin && e.setSkin(i.skin);
  15874. i.weapon && p.default.chaneWeapon(e, i.weapon);
  15875. }
  15876. };
  15877. e.prototype.httpEvent = function(t) {
  15878. var e = t.data;
  15879. null != e._role && this.topMenu.refresh();
  15880. this.flushZdl();
  15881. null != e._equip && this.flushEquipRedPoint(!0);
  15882. null != e._msgPush && e._msgPush.indexOf("email") >= 0 && u.default.addRed(this.main, this.topMenu.mEmailNode, !0);
  15883. };
  15884. e.prototype.flushEquipRedPoint = function(t) {
  15885. u.default.petsRedPoint(this.main) ? u.default.addRed(this.main, this.mEquipNode, t) : u.default.removeRed(this.mEquipNode);
  15886. };
  15887. e.prototype.onclickRoleIcon = function() {
  15888. this.main.playerEffectByPath(s.AudioMgr.click);
  15889. this.main.viewManage.loadFunc(s.GameViewType.tap_role, function(t) {
  15890. t.show();
  15891. });
  15892. };
  15893. e.prototype.setMxCallback = function(t) {
  15894. this.mxCallback = t;
  15895. };
  15896. e.prototype.onclickMap = function() {
  15897. var t = this;
  15898. this.main.playerEffectByPath(s.AudioMgr.click);
  15899. var e = !1;
  15900. if (this.mxCallback) {
  15901. this.mxCallback();
  15902. e = !0;
  15903. }
  15904. this.main.viewManage.loadFunc(s.GameViewType.stageView, function(o) {
  15905. var i = o;
  15906. i.load(function(n) {
  15907. if (0 == n) {
  15908. e && (i.inGuide = 1);
  15909. o.show(t);
  15910. } else t.main.showTips("载入地图失败");
  15911. });
  15912. });
  15913. };
  15914. e.prototype.onclickPack = function() {
  15915. var t = this;
  15916. this.main.playerEffectByPath(s.AudioMgr.click);
  15917. this.main.startLoad();
  15918. this.main.viewManage.loadFunc(s.GameViewType.pack, function(e) {
  15919. e.show(t);
  15920. });
  15921. };
  15922. e.prototype.onclickJitan = function() {
  15923. var t = this;
  15924. this.main.playerEffectByPath(s.AudioMgr.click);
  15925. this.main.viewManage.loadFunc(s.GameViewType.god_card, function(e) {
  15926. e.show(t);
  15927. });
  15928. };
  15929. e.prototype.onclickEquip = function() {
  15930. var t = this;
  15931. this.main.playerEffectByPath(s.AudioMgr.click);
  15932. this.main.startLoad();
  15933. u.default.removeRed(this.mEquipNode);
  15934. this.main.viewManage.loadFunc(s.GameViewType.equip, function(e) {
  15935. e.show(t);
  15936. });
  15937. };
  15938. e.prototype.onclickMohe = function() {
  15939. var t = this;
  15940. this.main.playerEffectByPath(s.AudioMgr.click);
  15941. this.main.viewManage.loadFunc(s.GameViewType.mohe, function(e) {
  15942. e.show(t);
  15943. });
  15944. };
  15945. e.prototype.openShop = function(t, e) {
  15946. this.main.playerEffectByPath(s.AudioMgr.click);
  15947. this.main.startLoad();
  15948. this.main.viewManage.loadFunc(s.GameViewType.tap_shop, function(t) {
  15949. var o = t;
  15950. o.init(Number(e));
  15951. o.show();
  15952. });
  15953. };
  15954. e.prototype.openFirstPay = function() {
  15955. this.main.playerEffectByPath(s.AudioMgr.click);
  15956. this.main.startLoad();
  15957. this.main.viewManage.loadFunc(s.GameViewType.firstPay, function(t) {
  15958. t.getFirstPayData("data");
  15959. });
  15960. };
  15961. e.prototype.openWish = function() {
  15962. this.main.playerEffectByPath(s.AudioMgr.click);
  15963. this.main.startLoad();
  15964. this.main.viewManage.loadFunc(s.GameViewType.wish, function(t) {
  15965. t.getWishData();
  15966. });
  15967. };
  15968. e.prototype.openRevenge = function() {
  15969. var t = this;
  15970. this.main.playerEffectByPath(s.AudioMgr.click);
  15971. this.main.startLoad();
  15972. this.main.viewManage.loadFunc(s.GameViewType.revenge, function(e) {
  15973. var o = e;
  15974. t.revengeView = o;
  15975. o.getRevengeData();
  15976. o.refreshTime(t.revengeTime);
  15977. o.setBuyClickFunc(function() {
  15978. t.showRevengeBtn(!1);
  15979. });
  15980. });
  15981. };
  15982. e.prototype.activiteRevenge = function() {
  15983. var t = this;
  15984. this.main.gameHttp.sendJson("revenge/v1/open", {
  15985. id: 1001
  15986. }, function(e, o) {
  15987. t.main.stopLoad();
  15988. if (e == a.HttpStateType.SUCCESS) if (0 == o.retCode) {
  15989. console.log("====复仇礼包激活成功===");
  15990. t.getRevengeData();
  15991. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  15992. });
  15993. };
  15994. e.prototype.getRevengeData = function() {
  15995. var t = this, e = h.default.getNowTime();
  15996. this.main.gameHttp.sendJson("revenge/v1/data", {}, function(o, i) {
  15997. var n = h.default.getNowTime() - e;
  15998. t.main.stopLoad();
  15999. if (o == a.HttpStateType.SUCCESS) if (0 == i.retCode) {
  16000. console.log("=home=reve=revengeData===", i);
  16001. var r = i.data.data[i.data.list[0].id];
  16002. if (r) {
  16003. if (2 == r.value) {
  16004. t.showRevengeBtn(!1);
  16005. return;
  16006. }
  16007. var c = r.time;
  16008. if (c > 0) {
  16009. t.showRevengeBtn(!0);
  16010. t.revengeTime = c - n;
  16011. t.revengeBtn.getChildByName("time").getComponent(cc.Label).string = "剩余 " + h.default.getTimeString2(c - n);
  16012. } else t.showRevengeBtn(!1);
  16013. }
  16014. if (1 == cc.sys.localStorage.getItem("showRevenge" + t.main.player.role.id)) {
  16015. cc.sys.localStorage.setItem("showRevenge" + t.main.player.role.id, 2);
  16016. t.main.viewManage.loadFunc(s.GameViewType.revenge, function(e) {
  16017. var o = e;
  16018. t.revengeView = o;
  16019. o.revengeData = i.data.list[0];
  16020. o.show();
  16021. o.initItem();
  16022. o.refreshTime(t.revengeTime);
  16023. o.setBuyClickFunc(function() {
  16024. t.showRevengeBtn(!1);
  16025. });
  16026. });
  16027. }
  16028. } else t.main.showTips(i.message); else t.main.showTips("网络异常");
  16029. });
  16030. };
  16031. e.prototype.showRevengeBtn = function(t) {
  16032. void 0 === t && (t = !1);
  16033. this.revengeBtn.active = t;
  16034. };
  16035. e.prototype.update = function(t) {
  16036. if (this.revengeTime <= 0) {
  16037. this.showRevengeBtn(!1);
  16038. this.revengeView && this.revengeView.exitDistroy();
  16039. } else {
  16040. this.tempTime += t;
  16041. if (this.tempTime >= 1) {
  16042. this.revengeTime -= 1;
  16043. this.revengeBtn.getChildByName("time").getComponent(cc.Label).string = "剩余 " + h.default.getTimeString2(Math.floor(this.revengeTime));
  16044. this.tempTime = 0;
  16045. this.revengeView && this.revengeView.refreshTime(this.revengeTime);
  16046. }
  16047. }
  16048. };
  16049. r([ y(cc.Label) ], e.prototype, "mZdl", void 0);
  16050. r([ y(cc.Label) ], e.prototype, "mPower", void 0);
  16051. r([ y(cc.Label) ], e.prototype, "mMoney", void 0);
  16052. r([ y(cc.Label) ], e.prototype, "mGold", void 0);
  16053. r([ y(cc.Sprite) ], e.prototype, "mIcon", void 0);
  16054. r([ y(cc.Sprite) ], e.prototype, "mFrame", void 0);
  16055. r([ y(cc.Node) ], e.prototype, "activityNode", void 0);
  16056. r([ y(cc.Node) ], e.prototype, "mEmailNode", void 0);
  16057. r([ y(sp.Skeleton) ], e.prototype, "mRole1", void 0);
  16058. r([ y(sp.Skeleton) ], e.prototype, "mRole2", void 0);
  16059. r([ y(sp.Skeleton) ], e.prototype, "mRole3", void 0);
  16060. r([ y(cc.Node) ], e.prototype, "mEquipNode", void 0);
  16061. r([ y(cc.Node) ], e.prototype, "revengeBtn", void 0);
  16062. return r([ m ], e);
  16063. }(c.default);
  16064. o.default = v;
  16065. cc._RF.pop();
  16066. }, {
  16067. "../../main/ViewManage": "ViewManage",
  16068. "../../main/ViewObject": "ViewObject",
  16069. "../../util/CHttp": "CHttp",
  16070. "../../util/CUtilTime": "CUtilTime",
  16071. "../data/FFCalAttr": "FFCalAttr",
  16072. "../data/RedPoint": "RedPoint",
  16073. "./TopMenu": "TopMenu",
  16074. "./equip/Equip": "Equip"
  16075. } ],
  16076. HotUpdate: [ function(t, e, o) {
  16077. "use strict";
  16078. cc._RF.push(e, "ca731a+AcJKPrahGd1vQwcG", "HotUpdate");
  16079. var i, n = this && this.__extends || (i = function(t, e) {
  16080. return (i = Object.setPrototypeOf || {
  16081. __proto__: []
  16082. } instanceof Array && function(t, e) {
  16083. t.__proto__ = e;
  16084. } || function(t, e) {
  16085. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  16086. })(t, e);
  16087. }, function(t, e) {
  16088. i(t, e);
  16089. function o() {
  16090. this.constructor = t;
  16091. }
  16092. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  16093. }), r = this && this.__decorate || function(t, e, o, i) {
  16094. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  16095. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  16096. return r > 3 && c && Object.defineProperty(e, o, c), c;
  16097. };
  16098. Object.defineProperty(o, "__esModule", {
  16099. value: !0
  16100. });
  16101. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  16102. n(e, t);
  16103. function e() {
  16104. var e = null !== t && t.apply(this, arguments) || this;
  16105. e.manifestUrl = null;
  16106. e.gxNode = null;
  16107. e.mMyNode = null;
  16108. e.mV1 = null;
  16109. e.mV2 = null;
  16110. e.mLoadBfb = null;
  16111. e.fileCount = null;
  16112. e.byteProgress = null;
  16113. e._updating = !1;
  16114. e._am = null;
  16115. e._canRetry = !1;
  16116. e.versionCompareHandle = null;
  16117. return e;
  16118. }
  16119. e.prototype.login = function() {
  16120. cc.sys.isNative, cc.director.loadScene("main");
  16121. };
  16122. e.prototype.exitGame = function() {
  16123. cc.game.end();
  16124. };
  16125. e.prototype.onLoad = function() {
  16126. var t = cc.ProgressBar.prototype, e = t._updateBarStatus;
  16127. t._updateBarStatus = function() {
  16128. 0 == this.progress && (this.progress = .001);
  16129. e.bind(this)();
  16130. };
  16131. this.mV1.node.active = !1;
  16132. this.mV2.node.active = !1;
  16133. cc.game.setFrameRate(35);
  16134. this.gxNode.active = !1;
  16135. if (cc.sys.isNative) {
  16136. this._storagePath = (jsb.fileUtils ? jsb.fileUtils.getWritablePath() : "/") + "mmtg-remote-asset";
  16137. cc.log("Storage path for remote asset : " + this._storagePath);
  16138. var o = this;
  16139. this.versionCompareHandle = function(t, e) {
  16140. console.log("JS Custom Version Compare: version A is " + t + ", version B is " + e);
  16141. o.mV1.node.active = !0;
  16142. o.mV2.node.active = !0;
  16143. o.mV1.string = "客户端版本:" + t;
  16144. o.mV2.string = "服务器版本:" + e;
  16145. for (var i = t.split("."), n = e.split("."), r = 0; r < i.length; ++r) {
  16146. var c = parseInt(i[r]), a = parseInt(n[r] || "0");
  16147. if (c !== a) return c - a;
  16148. }
  16149. return n.length > i.length ? -1 : 0;
  16150. };
  16151. this._am = new jsb.AssetsManager("", this._storagePath, this.versionCompareHandle);
  16152. this._am.setVerifyCallback(function(t, e) {
  16153. var o = e.compressed;
  16154. e.md5, e.path, e.size;
  16155. return !!o || !!jsb.fileUtils.isFileExist(t) && jsb.fileUtils.getFileSize(t) == e.size;
  16156. });
  16157. cc.sys.os === cc.sys.OS_ANDROID ? this._am.setMaxConcurrentTask(10) : this._am.setMaxConcurrentTask(15);
  16158. this.fileCount.string = "";
  16159. this.mLoadBfb.string = "";
  16160. this.byteProgress.progress = 0;
  16161. this.checkUpdate();
  16162. } else this.login();
  16163. };
  16164. e.prototype.checkUpdate = function() {
  16165. if (this._updating) this.pushLog("Checking or updating ..."); else {
  16166. if (this._am.getState() === jsb.AssetsManager.State.UNINITED) {
  16167. var t = this.manifestUrl.nativeUrl;
  16168. this._am.loadLocalManifest(t);
  16169. }
  16170. if (this._am.getLocalManifest() && this._am.getLocalManifest().isLoaded()) {
  16171. this._am.setEventCallback(this.checkCb.bind(this));
  16172. this._am.checkUpdate();
  16173. this._updating = !0;
  16174. } else this.pushLog("Failed to load local manifest ...");
  16175. }
  16176. };
  16177. e.prototype.hotUpdate = function() {
  16178. this.gxNode.active = !0;
  16179. this.fileCount.string = "loading...";
  16180. if (this._am && !this._updating) {
  16181. this._am.setEventCallback(this.updateCb.bind(this));
  16182. if (this._am.getState() === jsb.AssetsManager.State.UNINITED) {
  16183. var t = this.manifestUrl;
  16184. cc.loader.md5Pipe && (t = cc.loader.md5Pipe.transformURL(t));
  16185. this._am.loadLocalManifest(t);
  16186. }
  16187. this._am.update();
  16188. this._updating = !0;
  16189. }
  16190. };
  16191. e.prototype.checkCb = function(t) {
  16192. cc.log("Code: " + t.getEventCode());
  16193. switch (t.getEventCode()) {
  16194. case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
  16195. cc.log("No local manifest file found, hot update skipped.");
  16196. this.login();
  16197. break;
  16198. case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
  16199. case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
  16200. cc.log("Fail to download manifest file, hot update skipped.");
  16201. this.login();
  16202. break;
  16203. case jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
  16204. cc.log("Already up to date with the latest remote version.");
  16205. this.login();
  16206. break;
  16207. case jsb.EventAssetsManager.NEW_VERSION_FOUND:
  16208. cc.log("New version found, please try to update.");
  16209. this._am.setEventCallback(null);
  16210. this._updating = !1;
  16211. this.hotUpdate();
  16212. break;
  16213. default:
  16214. return;
  16215. }
  16216. };
  16217. e.prototype.updateCb = function(t) {
  16218. var e = !1, o = !1;
  16219. switch (t.getEventCode()) {
  16220. case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
  16221. cc.log("No local manifest file found, hot update skipped.");
  16222. o = !0;
  16223. break;
  16224. case jsb.EventAssetsManager.UPDATE_PROGRESSION:
  16225. var i = t.getPercentByFile();
  16226. i ? t.getDownloadedFiles() < t.getTotalFiles() - 1 ? this.fileCount.string = t.getDownloadedFiles() + " / " + t.getTotalFiles() : this.fileCount.string = "文件解压中..." : i = 0;
  16227. this.byteProgress.progress = i;
  16228. this.mMyNode.x = 915 * i;
  16229. break;
  16230. case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
  16231. case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
  16232. cc.log("Fail to download manifest file, hot update skipped.");
  16233. o = !0;
  16234. break;
  16235. case jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
  16236. cc.log("Already up to date with the latest remote version.");
  16237. o = !0;
  16238. break;
  16239. case jsb.EventAssetsManager.UPDATE_FINISHED:
  16240. this.pushLog("Update finished. " + t.getMessage());
  16241. e = !0;
  16242. break;
  16243. case jsb.EventAssetsManager.UPDATE_FAILED:
  16244. this.pushLog("Update failed. " + t.getMessage());
  16245. this._updating = !1;
  16246. this._canRetry = !0;
  16247. this.retry();
  16248. break;
  16249. case jsb.EventAssetsManager.ERROR_UPDATING:
  16250. this.pushLog("Asset update error: " + t.getAssetId() + ", " + t.getMessage());
  16251. break;
  16252. case jsb.EventAssetsManager.ERROR_DECOMPRESS:
  16253. cc.log(t.getMessage());
  16254. e = !0;
  16255. }
  16256. if (o) {
  16257. this._am.setEventCallback(null);
  16258. this._updating = !1;
  16259. this.login();
  16260. }
  16261. if (e) {
  16262. this._am.setEventCallback(null);
  16263. var n = jsb.fileUtils.getSearchPaths(), r = this._am.getLocalManifest().getSearchPaths();
  16264. cc.log(JSON.stringify(r));
  16265. Array.prototype.unshift.apply(n, r);
  16266. cc.sys.localStorage.setItem("HotUpdateSearchPaths", JSON.stringify(n));
  16267. jsb.fileUtils.setSearchPaths(n);
  16268. cc.audioEngine.stopAll();
  16269. setTimeout(function() {
  16270. cc.game.restart();
  16271. }, 1e3);
  16272. }
  16273. };
  16274. e.prototype.retry = function() {
  16275. if (!this._updating && this._canRetry) {
  16276. this._canRetry = !1;
  16277. this.pushLog("Retry failed Assets...");
  16278. this._am.downloadFailedAssets();
  16279. }
  16280. };
  16281. e.prototype.onDestroy = function() {
  16282. this._am && this._am.setEventCallback(null);
  16283. };
  16284. e.prototype.pushLog = function() {};
  16285. e.prototype.onclickCancel = function() {
  16286. this.checkUpdate();
  16287. };
  16288. r([ s(cc.Asset) ], e.prototype, "manifestUrl", void 0);
  16289. r([ s(cc.Node) ], e.prototype, "gxNode", void 0);
  16290. r([ s(cc.Node) ], e.prototype, "mMyNode", void 0);
  16291. r([ s(cc.Label) ], e.prototype, "mV1", void 0);
  16292. r([ s(cc.Label) ], e.prototype, "mV2", void 0);
  16293. r([ s(cc.Label) ], e.prototype, "mLoadBfb", void 0);
  16294. r([ s(cc.Label) ], e.prototype, "fileCount", void 0);
  16295. r([ s(cc.ProgressBar) ], e.prototype, "byteProgress", void 0);
  16296. return r([ a ], e);
  16297. }(cc.Component);
  16298. o.default = p;
  16299. cc._RF.pop();
  16300. }, {} ],
  16301. IconInfoView: [ function(t, e, o) {
  16302. "use strict";
  16303. cc._RF.push(e, "ce2b04wXG9JabdbmZTDvNdP", "IconInfoView");
  16304. var i, n = this && this.__extends || (i = function(t, e) {
  16305. return (i = Object.setPrototypeOf || {
  16306. __proto__: []
  16307. } instanceof Array && function(t, e) {
  16308. t.__proto__ = e;
  16309. } || function(t, e) {
  16310. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  16311. })(t, e);
  16312. }, function(t, e) {
  16313. i(t, e);
  16314. function o() {
  16315. this.constructor = t;
  16316. }
  16317. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  16318. }), r = this && this.__decorate || function(t, e, o, i) {
  16319. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  16320. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  16321. return r > 3 && c && Object.defineProperty(e, o, c), c;
  16322. };
  16323. Object.defineProperty(o, "__esModule", {
  16324. value: !0
  16325. });
  16326. var c = t("../../../i18n/i18n"), a = t("../../../util/CHttp"), s = t("../../data/FFCalAttr"), p = t("./RoleIconItem"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  16327. n(e, t);
  16328. function e() {
  16329. var e = null !== t && t.apply(this, arguments) || this;
  16330. e.mRoleIcon = null;
  16331. e.mZdl = null;
  16332. e.mAtk = null;
  16333. e.mDef = null;
  16334. e.mHp = null;
  16335. e.mSp = null;
  16336. e.mButtonIcon = null;
  16337. e.mButtonLabel = null;
  16338. e.mButtonIconFrame = [];
  16339. e.roleIconView = null;
  16340. e.roleFrameView = null;
  16341. e.fip = null;
  16342. e.openType = 0;
  16343. return e;
  16344. }
  16345. e.prototype.init = function(t, e) {
  16346. this.main = t;
  16347. this.fip = e;
  16348. var o = e.roleIcon;
  16349. this.mRoleIcon.roleIcon = o;
  16350. this.mAtk.string = "" + o.atk;
  16351. this.mDef.string = "" + o.def;
  16352. this.mHp.string = "" + o.hp;
  16353. this.mSp.string = "" + o.sp;
  16354. var i = s.default.getZdl(o);
  16355. this.mZdl.string = "" + i;
  16356. this.mRoleIcon.loadIcon(this.main);
  16357. this.flushButton();
  16358. };
  16359. e.prototype.initFrame = function(t, e) {
  16360. this.main = t;
  16361. this.fip = e;
  16362. var o = e.roleIcon;
  16363. this.mRoleIcon.roleIcon = o;
  16364. this.mAtk.string = "" + o.atk;
  16365. this.mDef.string = "" + o.def;
  16366. this.mHp.string = "" + o.hp;
  16367. this.mSp.string = "" + o.sp;
  16368. var i = s.default.getZdl(o);
  16369. this.mZdl.string = "" + i;
  16370. this.mRoleIcon.loadFrame(this.main);
  16371. this.flushButton();
  16372. };
  16373. e.prototype.flushButton = function() {
  16374. var t = this.getStatus();
  16375. if (0 == t) {
  16376. this.mButtonIcon.spriteFrame = this.mButtonIconFrame[2];
  16377. this.mButtonLabel.string = c.default.t("未获得");
  16378. } else if (1 == t) {
  16379. this.mButtonIcon.spriteFrame = this.mButtonIconFrame[0];
  16380. this.mButtonLabel.string = c.default.t("使用");
  16381. } else if (2 == t) {
  16382. this.mButtonIcon.spriteFrame = this.mButtonIconFrame[1];
  16383. this.mButtonLabel.string = c.default.t("激活");
  16384. }
  16385. };
  16386. e.prototype.getStatus = function() {
  16387. var t = this.fip.roleIcon, e = this.main.player.roleIcon;
  16388. return e.open.indexOf(t.id) >= 0 ? 1 : e.data.indexOf(t.id) >= 0 ? 2 : 0;
  16389. };
  16390. e.prototype.onclick = function() {
  16391. var t = this.getStatus();
  16392. 1 == t ? this.roleIconUser() : 2 == t && this.roleIconActive();
  16393. };
  16394. e.prototype.roleIconActive = function() {
  16395. var t = this, e = this.fip.roleIcon, o = {
  16396. id: e.id
  16397. };
  16398. this.main.gameHttp.sendJson("set/v1/activeIcon", o, function(o, i) {
  16399. t.main.stopLoad();
  16400. if (o == a.HttpStateType.SUCCESS) if (0 == i.retCode) {
  16401. t.main.player.roleIcon.open.push(e.id);
  16402. t.flushButton();
  16403. t.fip.flush(t.main);
  16404. t.roleIconView && t.roleIconView.flush(t.fip);
  16405. t.roleFrameView && t.roleFrameView.flush(t.fip);
  16406. t.main.showTips("激活成功");
  16407. } else t.main.showTips(i.message); else t.main.showTips("网络异常");
  16408. });
  16409. };
  16410. e.prototype.roleIconUser = function() {
  16411. var t = this, e = this.fip.roleIcon, o = {
  16412. type: this.openType,
  16413. id: e.id
  16414. };
  16415. this.main.gameHttp.sendJson("set/v1/useIcon", o, function(o, i) {
  16416. t.main.stopLoad();
  16417. if (o == a.HttpStateType.SUCCESS) if (0 == i.retCode) {
  16418. 1 == t.openType ? t.main.player.role.icon = e.id : t.main.player.role.frame = e.id;
  16419. t.flushButton();
  16420. t.fip.flush(t.main);
  16421. t.roleIconView && t.roleIconView.flush(t.fip);
  16422. t.roleFrameView && t.roleFrameView.flush(t.fip);
  16423. t.main.showTips("使用成功");
  16424. t.main.home.flush();
  16425. } else t.main.showTips(i.message); else t.main.showTips("网络异常");
  16426. });
  16427. };
  16428. r([ f(p.default) ], e.prototype, "mRoleIcon", void 0);
  16429. r([ f(cc.Label) ], e.prototype, "mZdl", void 0);
  16430. r([ f(cc.Label) ], e.prototype, "mAtk", void 0);
  16431. r([ f(cc.Label) ], e.prototype, "mDef", void 0);
  16432. r([ f(cc.Label) ], e.prototype, "mHp", void 0);
  16433. r([ f(cc.Label) ], e.prototype, "mSp", void 0);
  16434. r([ f(cc.Sprite) ], e.prototype, "mButtonIcon", void 0);
  16435. r([ f(cc.Label) ], e.prototype, "mButtonLabel", void 0);
  16436. r([ f([ cc.SpriteFrame ]) ], e.prototype, "mButtonIconFrame", void 0);
  16437. return r([ u ], e);
  16438. }(cc.Component);
  16439. o.default = h;
  16440. cc._RF.pop();
  16441. }, {
  16442. "../../../i18n/i18n": "i18n",
  16443. "../../../util/CHttp": "CHttp",
  16444. "../../data/FFCalAttr": "FFCalAttr",
  16445. "./RoleIconItem": "RoleIconItem"
  16446. } ],
  16447. JoystickTest: [ function(t, e, o) {
  16448. "use strict";
  16449. cc._RF.push(e, "a46c5id+19HWL+jnpHgrBHp", "JoystickTest");
  16450. var i, n = this && this.__extends || (i = function(t, e) {
  16451. return (i = Object.setPrototypeOf || {
  16452. __proto__: []
  16453. } instanceof Array && function(t, e) {
  16454. t.__proto__ = e;
  16455. } || function(t, e) {
  16456. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  16457. })(t, e);
  16458. }, function(t, e) {
  16459. i(t, e);
  16460. function o() {
  16461. this.constructor = t;
  16462. }
  16463. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  16464. }), r = this && this.__decorate || function(t, e, o, i) {
  16465. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  16466. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  16467. return r > 3 && c && Object.defineProperty(e, o, c), c;
  16468. };
  16469. Object.defineProperty(o, "__esModule", {
  16470. value: !0
  16471. });
  16472. var c = t("./Joystick_8d"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  16473. n(e, t);
  16474. function e() {
  16475. var e = null !== t && t.apply(this, arguments) || this;
  16476. e.joystick = null;
  16477. e.mMoveNode = null;
  16478. return e;
  16479. }
  16480. e.prototype.onLoad = function() {
  16481. var t = this;
  16482. this.joystick.setCallback(function(e, o) {
  16483. t.runing = e;
  16484. t.dir = o;
  16485. });
  16486. };
  16487. e.prototype.update = function() {
  16488. if (this.runing) {
  16489. this.mMoveNode.x += 5 * this.dir.x;
  16490. this.mMoveNode.y += 5 * this.dir.y;
  16491. }
  16492. };
  16493. r([ p(c.default) ], e.prototype, "joystick", void 0);
  16494. r([ p(cc.Node) ], e.prototype, "mMoveNode", void 0);
  16495. return r([ s ], e);
  16496. }(cc.Component);
  16497. o.default = l;
  16498. cc._RF.pop();
  16499. }, {
  16500. "./Joystick_8d": "Joystick_8d"
  16501. } ],
  16502. Joystick_8d: [ function(t, e, o) {
  16503. "use strict";
  16504. cc._RF.push(e, "e5edbNtToxGSrmf7gwyJcdY", "Joystick_8d");
  16505. var i, n = this && this.__extends || (i = function(t, e) {
  16506. return (i = Object.setPrototypeOf || {
  16507. __proto__: []
  16508. } instanceof Array && function(t, e) {
  16509. t.__proto__ = e;
  16510. } || function(t, e) {
  16511. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  16512. })(t, e);
  16513. }, function(t, e) {
  16514. i(t, e);
  16515. function o() {
  16516. this.constructor = t;
  16517. }
  16518. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  16519. }), r = this && this.__decorate || function(t, e, o, i) {
  16520. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  16521. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  16522. return r > 3 && c && Object.defineProperty(e, o, c), c;
  16523. };
  16524. Object.defineProperty(o, "__esModule", {
  16525. value: !0
  16526. });
  16527. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  16528. n(e, t);
  16529. function e() {
  16530. var e = null !== t && t.apply(this, arguments) || this;
  16531. e.mTouchView = null;
  16532. e.mCneter = null;
  16533. e.mUp = null;
  16534. e.mDown = null;
  16535. e.mLeft = null;
  16536. e.mRight = null;
  16537. e.mTouchOn = null;
  16538. e.mTouchOff = null;
  16539. e.tmpDir = {
  16540. x: 0,
  16541. y: 0
  16542. };
  16543. return e;
  16544. }
  16545. e.prototype.onLoad = function() {
  16546. this.mTouchView.active = !1;
  16547. this._initTouchEvent();
  16548. };
  16549. e.prototype.setCallback = function(t) {
  16550. this.callback = t;
  16551. };
  16552. e.prototype._initTouchEvent = function() {
  16553. this.node.on(cc.Node.EventType.TOUCH_START, this._touchStartEvent, this);
  16554. this.node.on(cc.Node.EventType.TOUCH_MOVE, this._touchMoveEvent, this);
  16555. this.node.on(cc.Node.EventType.TOUCH_END, this._touchEndEvent, this);
  16556. this.node.on(cc.Node.EventType.TOUCH_CANCEL, this._touchEndEvent, this);
  16557. cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, this.onKeyPressed, this);
  16558. cc.systemEvent.on(cc.SystemEvent.EventType.KEY_UP, this.onKeyReleased, this);
  16559. };
  16560. e.prototype._touchStartEvent = function(t) {
  16561. var e = this.node.convertToNodeSpaceAR(t.getLocation()), o = this.mCneter.getPosition(), i = this._getDistance(e, o);
  16562. if (i > 10 && i < 175) {
  16563. this.mTouchView.active = !0;
  16564. this.mTouchView.x = e.x;
  16565. this.mTouchView.y = e.y;
  16566. var n = this._getAngle(e, o), r = this.getDir(n);
  16567. this.updateIcon(r);
  16568. this.callback && this.callback(r);
  16569. }
  16570. };
  16571. e.prototype._touchMoveEvent = function(t) {
  16572. if (this.mTouchView.active) {
  16573. var e = this.node.convertToNodeSpaceAR(t.getLocation()), o = this.mCneter.getPosition();
  16574. this.mTouchView.x = e.x;
  16575. this.mTouchView.y = e.y;
  16576. var i = this._getAngle(e, o), n = this.getDir(i);
  16577. this.updateIcon(n);
  16578. this.callback && this.callback(n);
  16579. }
  16580. };
  16581. e.prototype._touchEndEvent = function() {
  16582. this.stop();
  16583. };
  16584. e.prototype.onKeyPressed = function(t) {
  16585. switch (t.keyCode) {
  16586. case cc.macro.KEY.w:
  16587. case cc.macro.KEY.up:
  16588. this.tmpDir.y = 1;
  16589. break;
  16590. case cc.macro.KEY.s:
  16591. case cc.macro.KEY.down:
  16592. this.tmpDir.y = -1;
  16593. break;
  16594. case cc.macro.KEY.a:
  16595. case cc.macro.KEY.left:
  16596. this.tmpDir.x = -1;
  16597. break;
  16598. case cc.macro.KEY.d:
  16599. case cc.macro.KEY.right:
  16600. this.tmpDir.x = 1;
  16601. }
  16602. this.updateIcon(this.tmpDir);
  16603. this.callback && this.callback(this.reviseValue());
  16604. };
  16605. e.prototype.onKeyReleased = function(t) {
  16606. switch (t.keyCode) {
  16607. case cc.macro.KEY.w:
  16608. case cc.macro.KEY.up:
  16609. this.tmpDir.y = 0;
  16610. break;
  16611. case cc.macro.KEY.s:
  16612. case cc.macro.KEY.down:
  16613. this.tmpDir.y = 0;
  16614. break;
  16615. case cc.macro.KEY.a:
  16616. case cc.macro.KEY.left:
  16617. this.tmpDir.x = 0;
  16618. break;
  16619. case cc.macro.KEY.d:
  16620. case cc.macro.KEY.right:
  16621. this.tmpDir.x = 0;
  16622. }
  16623. this.updateIcon(this.tmpDir);
  16624. this.callback && this.callback(this.reviseValue());
  16625. };
  16626. e.prototype.reviseValue = function() {
  16627. var t = {
  16628. x: this.tmpDir.x,
  16629. y: this.tmpDir.y
  16630. }, e = Math.abs(t.x), o = Math.abs(t.y);
  16631. e != o && (1 == e ? t.x = 1.4 * t.x : 1 == o && (t.y = 1.4 * t.y));
  16632. return t;
  16633. };
  16634. e.prototype.stop = function() {
  16635. this.mTouchView.active = !1;
  16636. this.updateIcon(null);
  16637. this.callback && this.callback({
  16638. x: 0,
  16639. y: 0
  16640. });
  16641. };
  16642. e.prototype._getAngle = function(t, e) {
  16643. return Math.atan2(t.y - e.y, t.x - e.x) * (180 / Math.PI);
  16644. };
  16645. e.prototype._getDistance = function(t, e) {
  16646. return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
  16647. };
  16648. e.prototype.getDir = function(t) {
  16649. return t >= -30 && t < 30 ? {
  16650. x: 1.4,
  16651. y: 0
  16652. } : t >= 30 && t < 60 ? {
  16653. x: 1,
  16654. y: 1
  16655. } : t >= 60 && t < 120 ? {
  16656. x: 0,
  16657. y: 1.4
  16658. } : t >= 120 && t < 150 ? {
  16659. x: -1,
  16660. y: 1
  16661. } : t >= 150 && t < 180 ? {
  16662. x: -1.4,
  16663. y: 0
  16664. } : t >= -180 && t < -150 ? {
  16665. x: -1.4,
  16666. y: 0
  16667. } : t >= -150 && t < -120 ? {
  16668. x: -1,
  16669. y: -1
  16670. } : t >= -120 && t < -60 ? {
  16671. x: 0,
  16672. y: -1.4
  16673. } : t >= -60 && t < -30 ? {
  16674. x: 1,
  16675. y: -1
  16676. } : void 0;
  16677. };
  16678. e.prototype.updateIcon = function(t) {
  16679. if (t) {
  16680. if (0 == t.x) {
  16681. this.mLeft.spriteFrame = this.mTouchOff;
  16682. this.mRight.spriteFrame = this.mTouchOff;
  16683. } else if (t.x > 0) {
  16684. this.mLeft.spriteFrame = this.mTouchOff;
  16685. this.mRight.spriteFrame = this.mTouchOn;
  16686. } else {
  16687. this.mLeft.spriteFrame = this.mTouchOn;
  16688. this.mRight.spriteFrame = this.mTouchOff;
  16689. }
  16690. if (0 == t.y) {
  16691. this.mUp.spriteFrame = this.mTouchOff;
  16692. this.mDown.spriteFrame = this.mTouchOff;
  16693. } else if (t.y > 0) {
  16694. this.mUp.spriteFrame = this.mTouchOn;
  16695. this.mDown.spriteFrame = this.mTouchOff;
  16696. } else {
  16697. this.mUp.spriteFrame = this.mTouchOff;
  16698. this.mDown.spriteFrame = this.mTouchOn;
  16699. }
  16700. } else {
  16701. this.mLeft.spriteFrame = this.mTouchOff;
  16702. this.mRight.spriteFrame = this.mTouchOff;
  16703. this.mUp.spriteFrame = this.mTouchOff;
  16704. this.mDown.spriteFrame = this.mTouchOff;
  16705. }
  16706. };
  16707. r([ s({
  16708. type: cc.Node,
  16709. displayName: "按下显示效果"
  16710. }) ], e.prototype, "mTouchView", void 0);
  16711. r([ s({
  16712. type: cc.Node,
  16713. displayName: "摇杆中心"
  16714. }) ], e.prototype, "mCneter", void 0);
  16715. r([ s({
  16716. type: cc.Sprite,
  16717. displayName: "上"
  16718. }) ], e.prototype, "mUp", void 0);
  16719. r([ s({
  16720. type: cc.Sprite,
  16721. displayName: "下"
  16722. }) ], e.prototype, "mDown", void 0);
  16723. r([ s({
  16724. type: cc.Sprite,
  16725. displayName: "左"
  16726. }) ], e.prototype, "mLeft", void 0);
  16727. r([ s({
  16728. type: cc.Sprite,
  16729. displayName: "右"
  16730. }) ], e.prototype, "mRight", void 0);
  16731. r([ s({
  16732. type: cc.SpriteFrame,
  16733. displayName: "点击高亮"
  16734. }) ], e.prototype, "mTouchOn", void 0);
  16735. r([ s({
  16736. type: cc.SpriteFrame,
  16737. displayName: "灰色"
  16738. }) ], e.prototype, "mTouchOff", void 0);
  16739. return r([ a ], e);
  16740. }(cc.Component);
  16741. o.default = p;
  16742. cc._RF.pop();
  16743. }, {} ],
  16744. Joystick: [ function(t, e, o) {
  16745. "use strict";
  16746. cc._RF.push(e, "b82ddIB7qRLwIvRxyG7he4y", "Joystick");
  16747. var i, n = this && this.__extends || (i = function(t, e) {
  16748. return (i = Object.setPrototypeOf || {
  16749. __proto__: []
  16750. } instanceof Array && function(t, e) {
  16751. t.__proto__ = e;
  16752. } || function(t, e) {
  16753. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  16754. })(t, e);
  16755. }, function(t, e) {
  16756. i(t, e);
  16757. function o() {
  16758. this.constructor = t;
  16759. }
  16760. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  16761. }), r = this && this.__decorate || function(t, e, o, i) {
  16762. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  16763. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  16764. return r > 3 && c && Object.defineProperty(e, o, c), c;
  16765. };
  16766. Object.defineProperty(o, "__esModule", {
  16767. value: !0
  16768. });
  16769. var c = t("./CMath"), a = cc._decorator, s = a.ccclass, p = a.property, l = cc.Enum({
  16770. DEFAULT: 0,
  16771. FOLLOW: 1
  16772. }), u = cc.Enum({
  16773. FOUR: 4,
  16774. EIGHT: 8,
  16775. ALL: 0
  16776. }), f = function(t) {
  16777. n(e, t);
  16778. function e() {
  16779. var e = null !== t && t.apply(this, arguments) || this;
  16780. e.mTouchType = l.DEFAULT;
  16781. e.mDirectionType = l.DEFAULT;
  16782. e.mDot = null;
  16783. e.mRing = null;
  16784. e.mDir = null;
  16785. e.isDisable = !1;
  16786. e._distance = 0;
  16787. e.tmpDir = {
  16788. x: 0,
  16789. y: 0
  16790. };
  16791. return e;
  16792. }
  16793. e.prototype.onLoad = function() {
  16794. this._radius = (this.mRing.width - this.mDot.width) / 2;
  16795. this.mDir.opacity = 0;
  16796. this.mDot.opacity = 100;
  16797. this._initTouchEvent();
  16798. };
  16799. e.prototype.stop = function() {
  16800. this._touchEndEvent();
  16801. };
  16802. e.prototype.setCallback = function(t) {
  16803. this.callback = t;
  16804. };
  16805. e.prototype._initTouchEvent = function() {
  16806. this.node.on(cc.Node.EventType.TOUCH_START, this._touchStartEvent, this);
  16807. this.node.on(cc.Node.EventType.TOUCH_MOVE, this._touchMoveEvent, this);
  16808. this.node.on(cc.Node.EventType.TOUCH_END, this._touchEndEvent, this);
  16809. this.node.on(cc.Node.EventType.TOUCH_CANCEL, this._touchEndEvent, this);
  16810. cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, this.onKeyPressed, this);
  16811. cc.systemEvent.on(cc.SystemEvent.EventType.KEY_UP, this.onKeyReleased, this);
  16812. };
  16813. e.prototype._touchStartEvent = function(t) {
  16814. if (!this.isDisable) {
  16815. var e = this.node.convertToNodeSpaceAR(t.getLocation());
  16816. this.mDir.opacity = 255;
  16817. this.mDot.opacity = 255;
  16818. if (this.mTouchType == l.FOLLOW) {
  16819. this.mRing.setPosition(e);
  16820. this.mDot.setPosition(e);
  16821. this.mDir.setPosition(e);
  16822. return !0;
  16823. }
  16824. return !1;
  16825. }
  16826. };
  16827. e.prototype._touchMoveEvent = function(t) {
  16828. if (!this.isDisable) {
  16829. var e = this.node.convertToNodeSpaceAR(t.getLocation()), o = this.mRing.getPosition(), i = this._getDistance(e, o);
  16830. this._distance = i;
  16831. if (this._radius > i) this.mDot.setPosition(e); else {
  16832. var n = c.default.getAngle(o, e), r = o.x + Math.cos(n) * this._radius, a = o.y + Math.sin(n) * this._radius;
  16833. this.mDot.setPosition(cc.v2(r, a));
  16834. }
  16835. this.updateAngle();
  16836. }
  16837. };
  16838. e.prototype.getDisTance = function() {
  16839. return this._distance > this._radius ? 1 : this._distance / this._radius;
  16840. };
  16841. e.prototype._touchEndEvent = function() {
  16842. this.mDot.setPosition(this.mRing.getPosition());
  16843. this._angle = 0;
  16844. this.callback && this.callback(!1, {
  16845. x: 0,
  16846. y: 0
  16847. }, 0);
  16848. this.mDir.opacity = 0;
  16849. this.mDot.opacity = 100;
  16850. };
  16851. e.prototype.onKeyPressed = function(t) {
  16852. switch (t.keyCode) {
  16853. case cc.macro.KEY.w:
  16854. case cc.macro.KEY.up:
  16855. this.tmpDir.y = 1;
  16856. break;
  16857. case cc.macro.KEY.s:
  16858. case cc.macro.KEY.down:
  16859. this.tmpDir.y = -1;
  16860. break;
  16861. case cc.macro.KEY.a:
  16862. case cc.macro.KEY.left:
  16863. this.tmpDir.x = -1;
  16864. break;
  16865. case cc.macro.KEY.d:
  16866. case cc.macro.KEY.right:
  16867. this.tmpDir.x = 1;
  16868. }
  16869. this.reviseValue();
  16870. };
  16871. e.prototype.onKeyReleased = function(t) {
  16872. switch (t.keyCode) {
  16873. case cc.macro.KEY.w:
  16874. case cc.macro.KEY.up:
  16875. this.tmpDir.y = 0;
  16876. break;
  16877. case cc.macro.KEY.s:
  16878. case cc.macro.KEY.down:
  16879. this.tmpDir.y = 0;
  16880. break;
  16881. case cc.macro.KEY.a:
  16882. case cc.macro.KEY.left:
  16883. this.tmpDir.x = 0;
  16884. break;
  16885. case cc.macro.KEY.d:
  16886. case cc.macro.KEY.right:
  16887. this.tmpDir.x = 0;
  16888. }
  16889. this.reviseValue();
  16890. };
  16891. e.prototype.reviseValue = function() {
  16892. if (this.callback) if (0 == this.tmpDir.x && 0 == this.tmpDir.y) this.callback(!1, {
  16893. x: 0,
  16894. y: 0
  16895. }, 0); else {
  16896. var t = Math.atan2(this.tmpDir.y, this.tmpDir.x);
  16897. this.callback(!0, {
  16898. x: this.tmpDir.x,
  16899. y: this.tmpDir.y
  16900. }, t);
  16901. }
  16902. };
  16903. e.prototype.updateAngle = function() {
  16904. var t = this.mRing.getPosition(), e = this.mDot.getPosition(), o = Math.atan2(e.y - t.y, e.x - t.x);
  16905. this.mDir.angle = 180 * o / Math.PI;
  16906. this._angle = o;
  16907. var i = this.getDir(this.mDir.angle);
  16908. this.callback && this.callback(!0, i, o);
  16909. return this._angle;
  16910. };
  16911. e.prototype._getDistance = function(t, e) {
  16912. return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
  16913. };
  16914. e.prototype.getDir = function(t) {
  16915. return t >= -30 && t < 30 ? {
  16916. x: 1.4,
  16917. y: 0
  16918. } : t >= 30 && t < 60 ? {
  16919. x: 1,
  16920. y: 1
  16921. } : t >= 60 && t < 120 ? {
  16922. x: 0,
  16923. y: 1.4
  16924. } : t >= 120 && t < 150 ? {
  16925. x: -1,
  16926. y: 1
  16927. } : t >= 150 && t < 180 ? {
  16928. x: -1.4,
  16929. y: 0
  16930. } : t >= -180 && t < -150 ? {
  16931. x: -1.4,
  16932. y: 0
  16933. } : t >= -150 && t < -120 ? {
  16934. x: -1,
  16935. y: -1
  16936. } : t >= -120 && t < -60 ? {
  16937. x: 0,
  16938. y: -1.4
  16939. } : t >= -60 && t < -30 ? {
  16940. x: 1,
  16941. y: -1
  16942. } : {
  16943. x: 0,
  16944. y: 0
  16945. };
  16946. };
  16947. r([ p({
  16948. type: l,
  16949. displayName: "触摸类型"
  16950. }) ], e.prototype, "mTouchType", void 0);
  16951. r([ p({
  16952. type: u,
  16953. displayName: "方向类型"
  16954. }) ], e.prototype, "mDirectionType", void 0);
  16955. r([ p(cc.Node) ], e.prototype, "mDot", void 0);
  16956. r([ p(cc.Node) ], e.prototype, "mRing", void 0);
  16957. r([ p(cc.Node) ], e.prototype, "mDir", void 0);
  16958. return r([ s ], e);
  16959. }(cc.Component);
  16960. o.default = f;
  16961. cc._RF.pop();
  16962. }, {
  16963. "./CMath": "CMath"
  16964. } ],
  16965. LBObject: [ function(t, e, o) {
  16966. "use strict";
  16967. cc._RF.push(e, "0051eqBNKZNt4BJZXNrMlAR", "LBObject");
  16968. var i, n = this && this.__extends || (i = function(t, e) {
  16969. return (i = Object.setPrototypeOf || {
  16970. __proto__: []
  16971. } instanceof Array && function(t, e) {
  16972. t.__proto__ = e;
  16973. } || function(t, e) {
  16974. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  16975. })(t, e);
  16976. }, function(t, e) {
  16977. i(t, e);
  16978. function o() {
  16979. this.constructor = t;
  16980. }
  16981. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  16982. }), r = this && this.__decorate || function(t, e, o, i) {
  16983. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  16984. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  16985. return r > 3 && c && Object.defineProperty(e, o, c), c;
  16986. };
  16987. Object.defineProperty(o, "__esModule", {
  16988. value: !0
  16989. });
  16990. var c = t("../object/FSprite"), a = t("./BObject"), s = cc._decorator, p = s.ccclass, l = (s.property,
  16991. function(t) {
  16992. n(e, t);
  16993. function e() {
  16994. return null !== t && t.apply(this, arguments) || this;
  16995. }
  16996. e.prototype.onBeginContact = function(t, e, o) {
  16997. if (e.node == this.node) if (0 != o.tag) ; else if ("map" == o.node.group) ; else if (this.sprite && this.sprite.isValid && this.sprite.hp > 0 && this.sprite.node.group != o.node.group && e.isValid && o.node.isValid) {
  16998. var i = o.node.getComponent(c.default);
  16999. i.hp > 0 && null != i && i.isActive && this.sprite.atkjs(i, this._skillData);
  17000. }
  17001. };
  17002. return r([ p ], e);
  17003. }(a.default));
  17004. o.default = l;
  17005. cc._RF.pop();
  17006. }, {
  17007. "../object/FSprite": "FSprite",
  17008. "./BObject": "BObject"
  17009. } ],
  17010. LeftBottom: [ function(t, e, o) {
  17011. "use strict";
  17012. cc._RF.push(e, "6d2df8dRUBNkZFgmhHkxhgI", "LeftBottom");
  17013. var i, n = this && this.__extends || (i = function(t, e) {
  17014. return (i = Object.setPrototypeOf || {
  17015. __proto__: []
  17016. } instanceof Array && function(t, e) {
  17017. t.__proto__ = e;
  17018. } || function(t, e) {
  17019. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  17020. })(t, e);
  17021. }, function(t, e) {
  17022. i(t, e);
  17023. function o() {
  17024. this.constructor = t;
  17025. }
  17026. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  17027. }), r = this && this.__decorate || function(t, e, o, i) {
  17028. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  17029. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  17030. return r > 3 && c && Object.defineProperty(e, o, c), c;
  17031. };
  17032. Object.defineProperty(o, "__esModule", {
  17033. value: !0
  17034. });
  17035. var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) {
  17036. n(e, t);
  17037. function e() {
  17038. return null !== t && t.apply(this, arguments) || this;
  17039. }
  17040. e.prototype.onLoad = function() {
  17041. this.node.x = -cc.winSize.width / 2;
  17042. this.node.y = -cc.winSize.height / 2;
  17043. };
  17044. return r([ a ], e);
  17045. }(cc.Component));
  17046. o.default = s;
  17047. cc._RF.pop();
  17048. }, {} ],
  17049. Loading: [ function(t, e, o) {
  17050. "use strict";
  17051. cc._RF.push(e, "5707dIKCrdND7TgP73NAZfV", "Loading");
  17052. var i, n = this && this.__extends || (i = function(t, e) {
  17053. return (i = Object.setPrototypeOf || {
  17054. __proto__: []
  17055. } instanceof Array && function(t, e) {
  17056. t.__proto__ = e;
  17057. } || function(t, e) {
  17058. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  17059. })(t, e);
  17060. }, function(t, e) {
  17061. i(t, e);
  17062. function o() {
  17063. this.constructor = t;
  17064. }
  17065. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  17066. }), r = this && this.__decorate || function(t, e, o, i) {
  17067. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  17068. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  17069. return r > 3 && c && Object.defineProperty(e, o, c), c;
  17070. };
  17071. Object.defineProperty(o, "__esModule", {
  17072. value: !0
  17073. });
  17074. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  17075. n(e, t);
  17076. function e() {
  17077. var e = null !== t && t.apply(this, arguments) || this;
  17078. e.rotateNode = null;
  17079. return e;
  17080. }
  17081. e.prototype.onLoad = function() {};
  17082. e.prototype.onEnable = function() {
  17083. cc.tween(this.rotateNode).repeatForever(cc.rotateBy(.3, 60)).start();
  17084. };
  17085. r([ s(cc.Node) ], e.prototype, "rotateNode", void 0);
  17086. return r([ a ], e);
  17087. }(cc.Component);
  17088. o.default = p;
  17089. cc._RF.pop();
  17090. }, {} ],
  17091. Login: [ function(t, e, o) {
  17092. "use strict";
  17093. cc._RF.push(e, "b29e3zlLTxFKamXRvfn8Xjn", "Login");
  17094. var i, n = this && this.__extends || (i = function(t, e) {
  17095. return (i = Object.setPrototypeOf || {
  17096. __proto__: []
  17097. } instanceof Array && function(t, e) {
  17098. t.__proto__ = e;
  17099. } || function(t, e) {
  17100. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  17101. })(t, e);
  17102. }, function(t, e) {
  17103. i(t, e);
  17104. function o() {
  17105. this.constructor = t;
  17106. }
  17107. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  17108. }), r = this && this.__decorate || function(t, e, o, i) {
  17109. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  17110. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  17111. return r > 3 && c && Object.defineProperty(e, o, c), c;
  17112. };
  17113. Object.defineProperty(o, "__esModule", {
  17114. value: !0
  17115. });
  17116. var c = t("../main/ViewManage"), a = t("../main/ViewObject"), s = t("../util/CHttp"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  17117. n(e, t);
  17118. function e() {
  17119. var e = null !== t && t.apply(this, arguments) || this;
  17120. e.mUserName = null;
  17121. e.mPassWord = null;
  17122. return e;
  17123. }
  17124. e.prototype.onclickLogin = function() {
  17125. var t = this, e = this.main.loginHttp, o = {
  17126. userName: this.mUserName.string,
  17127. passWord: this.mPassWord.string
  17128. };
  17129. this.main.startLoad();
  17130. e.sendForm("/login", o, function(e, o) {
  17131. t.main.stopLoad();
  17132. if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) {
  17133. t.main.userData = o.data;
  17134. t.openArea();
  17135. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  17136. });
  17137. };
  17138. e.prototype.openArea = function() {
  17139. var t = this;
  17140. this.main.viewManage.loadFunc(c.GameViewType.area, function(e) {
  17141. e.show(t);
  17142. });
  17143. };
  17144. e.prototype.onclickTest = function() {
  17145. this.main.userData = {
  17146. id: 2,
  17147. token: "edbeb6d9b01bfd41eff12efb7def330f",
  17148. zone: null
  17149. };
  17150. this.openArea();
  17151. };
  17152. r([ u(cc.EditBox) ], e.prototype, "mUserName", void 0);
  17153. r([ u(cc.EditBox) ], e.prototype, "mPassWord", void 0);
  17154. return r([ l ], e);
  17155. }(a.default);
  17156. o.default = f;
  17157. cc._RF.pop();
  17158. }, {
  17159. "../main/ViewManage": "ViewManage",
  17160. "../main/ViewObject": "ViewObject",
  17161. "../util/CHttp": "CHttp"
  17162. } ],
  17163. MBomb: [ function(t, e, o) {
  17164. "use strict";
  17165. cc._RF.push(e, "e4639ZSL91FErdB6tPFL8E5", "MBomb");
  17166. var i, n = this && this.__extends || (i = function(t, e) {
  17167. return (i = Object.setPrototypeOf || {
  17168. __proto__: []
  17169. } instanceof Array && function(t, e) {
  17170. t.__proto__ = e;
  17171. } || function(t, e) {
  17172. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  17173. })(t, e);
  17174. }, function(t, e) {
  17175. i(t, e);
  17176. function o() {
  17177. this.constructor = t;
  17178. }
  17179. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  17180. }), r = this && this.__decorate || function(t, e, o, i) {
  17181. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  17182. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  17183. return r > 3 && c && Object.defineProperty(e, o, c), c;
  17184. };
  17185. Object.defineProperty(o, "__esModule", {
  17186. value: !0
  17187. });
  17188. var c = t("../../../../../util/CMath"), a = t("../../../bullet/BBObject"), s = t("../../../bullet/BObject"), p = t("../../FSprite"), l = t("../SkillBase"), u = cc._decorator, f = u.ccclass, h = (u.property,
  17189. function(t) {
  17190. n(e, t);
  17191. function e() {
  17192. return null !== t && t.apply(this, arguments) || this;
  17193. }
  17194. e.prototype.onLoad = function() {
  17195. this.sprite = this.node.getComponent(p.default);
  17196. };
  17197. e.prototype.exe = function(t, e) {
  17198. var o = this;
  17199. this.time = new Date().getTime();
  17200. this.sprite.setDir({
  17201. x: 0,
  17202. y: 0
  17203. });
  17204. var i = cc.instantiate(this.mBullet).getComponent(s.default).mStartEffect, n = this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = this.sprite.mAtkSite.worldY, c = cc.v2(n, r), a = cc.instantiate(i);
  17205. a.angle = this.sprite.wAngle;
  17206. a.setPosition(c);
  17207. a.parent = this.sprite.node;
  17208. var l = a.getComponent(sp.Skeleton);
  17209. l.setCompleteListener(function() {
  17210. l.setCompleteListener(null);
  17211. a.destroy();
  17212. e && e();
  17213. });
  17214. l.setAnimation(0, "atk", !1);
  17215. this.sprite.playAction(p.SpriteActionType.atk, !1, function() {
  17216. o.sprite.isWalk ? o.sprite.playAction(p.SpriteActionType.run, !0) : o.sprite.playAction(p.SpriteActionType.stand, !0);
  17217. });
  17218. var u = void 0;
  17219. if (t) u = t.node.getPosition(); else {
  17220. var f = this.sprite.wAngle * Math.PI / 180, h = 300 * Math.sin(f) + this.node.y, d = 300 * Math.cos(f) + this.node.x;
  17221. u = cc.v2(d, h);
  17222. }
  17223. if (t) u = t.node.getPosition(); else {
  17224. f = this.sprite.wAngle * Math.PI / 180;
  17225. var m = 300 * Math.sin(f) + this.node.y;
  17226. m += this.sprite.mAtkSite.worldY;
  17227. var y = 300 * Math.cos(f) + this.node.x;
  17228. u = cc.v2(y, m);
  17229. }
  17230. this.fireBulletByTime(u);
  17231. };
  17232. e.prototype.fireBulletByTime = function(t) {
  17233. var e = cc.instantiate(this.mBullet);
  17234. e.group = "bullet";
  17235. var o = this.sprite, i = o.node.x + o.mAtkSite.worldX * this.sprite.spine.node.scaleX, n = o.node.y + o.mAtkSite.worldY, r = cc.v2(i, n);
  17236. e.setPosition(r);
  17237. var s = e.getComponent(a.default);
  17238. s.setSprite(this.sprite);
  17239. s.speed = this.speed;
  17240. e.parent = this.sprite.map.mSprites;
  17241. var p = e.getPosition(), l = c.default.getAngle(p, t);
  17242. s._skillData = this._skillData;
  17243. s.fireAngle(l);
  17244. };
  17245. return r([ f ], e);
  17246. }(l.default));
  17247. o.default = h;
  17248. cc._RF.pop();
  17249. }, {
  17250. "../../../../../util/CMath": "CMath",
  17251. "../../../bullet/BBObject": "BBObject",
  17252. "../../../bullet/BObject": "BObject",
  17253. "../../FSprite": "FSprite",
  17254. "../SkillBase": "SkillBase"
  17255. } ],
  17256. MFWind: [ function(t, e, o) {
  17257. "use strict";
  17258. cc._RF.push(e, "c5312AV9DxH0KJgjgB25Ffe", "MFWind");
  17259. var i, n = this && this.__extends || (i = function(t, e) {
  17260. return (i = Object.setPrototypeOf || {
  17261. __proto__: []
  17262. } instanceof Array && function(t, e) {
  17263. t.__proto__ = e;
  17264. } || function(t, e) {
  17265. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  17266. })(t, e);
  17267. }, function(t, e) {
  17268. i(t, e);
  17269. function o() {
  17270. this.constructor = t;
  17271. }
  17272. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  17273. }), r = this && this.__decorate || function(t, e, o, i) {
  17274. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  17275. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  17276. return r > 3 && c && Object.defineProperty(e, o, c), c;
  17277. };
  17278. Object.defineProperty(o, "__esModule", {
  17279. value: !0
  17280. });
  17281. var c = t("../../../../../util/CMath"), a = t("../../../bullet/BObject"), s = t("../../../bullet/LBObject"), p = t("../../FSprite"), l = t("../SkillBase"), u = cc._decorator, f = u.ccclass, h = (u.property,
  17282. function(t) {
  17283. n(e, t);
  17284. function e() {
  17285. return null !== t && t.apply(this, arguments) || this;
  17286. }
  17287. e.prototype.onLoad = function() {
  17288. this.sprite = this.node.getComponent(p.default);
  17289. };
  17290. e.prototype.exe = function(t, e) {
  17291. var o = this;
  17292. this.time = new Date().getTime();
  17293. this.sprite.setDir({
  17294. x: 0,
  17295. y: 0
  17296. });
  17297. var i = cc.instantiate(this.mBullet).getComponent(a.default).mStartEffect, n = this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = this.sprite.mAtkSite.worldY, c = cc.v2(n, r), s = cc.instantiate(i);
  17298. s.angle = this.sprite.wAngle;
  17299. s.setPosition(c);
  17300. s.parent = this.sprite.node;
  17301. var l = s.getComponent(sp.Skeleton);
  17302. l.setCompleteListener(function() {
  17303. l.setCompleteListener(null);
  17304. s.destroy();
  17305. e && e();
  17306. });
  17307. l.setAnimation(0, "atk", !1);
  17308. this.sprite.playAction(p.SpriteActionType.atk, !1, function() {
  17309. o.sprite.isWalk ? o.sprite.playAction(p.SpriteActionType.run, !0) : o.sprite.playAction(p.SpriteActionType.stand, !0);
  17310. });
  17311. var u = void 0;
  17312. if (t) u = t.node.getPosition(); else {
  17313. var f = this.sprite.wAngle * Math.PI / 180, h = 300 * Math.sin(f) + this.node.y, d = 300 * Math.cos(f) + this.node.x;
  17314. u = cc.v2(d, h);
  17315. }
  17316. if (t) u = t.node.getPosition(); else {
  17317. f = this.sprite.wAngle * Math.PI / 180;
  17318. var m = 300 * Math.sin(f) + this.node.y;
  17319. m += this.sprite.mAtkSite.worldY;
  17320. var y = 300 * Math.cos(f) + this.node.x;
  17321. u = cc.v2(y, m);
  17322. }
  17323. this.fireBulletByTime(u);
  17324. };
  17325. e.prototype.fireBulletByTime = function(t) {
  17326. var e = cc.instantiate(this.mBullet);
  17327. e.group = "bullet";
  17328. var o = this.sprite, i = o.node.x + o.mAtkSite.worldX * this.sprite.spine.node.scaleX, n = o.node.y + o.mAtkSite.worldY, r = cc.v2(i, n);
  17329. e.setPosition(r);
  17330. var a = e.getComponent(s.default);
  17331. a.setSprite(this.sprite);
  17332. a.speed = this.speed;
  17333. e.parent = this.sprite.map.mSprites;
  17334. var p = e.getPosition(), l = c.default.getAngle(p, t);
  17335. a._skillData = this._skillData;
  17336. a.fireAngle2(l);
  17337. };
  17338. return r([ f ], e);
  17339. }(l.default));
  17340. o.default = h;
  17341. cc._RF.pop();
  17342. }, {
  17343. "../../../../../util/CMath": "CMath",
  17344. "../../../bullet/BObject": "BObject",
  17345. "../../../bullet/LBObject": "LBObject",
  17346. "../../FSprite": "FSprite",
  17347. "../SkillBase": "SkillBase"
  17348. } ],
  17349. MMD5: [ function(t, e, o) {
  17350. "use strict";
  17351. cc._RF.push(e, "3edc4sRJ2tISImf6znDJM3c", "MMD5");
  17352. Object.defineProperty(o, "__esModule", {
  17353. value: !0
  17354. });
  17355. var i = function() {
  17356. function t() {
  17357. this.hexcase = 0;
  17358. this.b64pad = "";
  17359. }
  17360. t.prototype.hex_md5 = function(t) {
  17361. return this.rstr2hex(this.rstr_md5(this.str2rstr_utf8(t)));
  17362. };
  17363. t.prototype.b64_md5 = function(t) {
  17364. return this.rstr2b64(this.rstr_md5(this.str2rstr_utf8(t)));
  17365. };
  17366. t.prototype.any_md5 = function(t, e) {
  17367. return this.rstr2any(this.rstr_md5(this.str2rstr_utf8(t)), e);
  17368. };
  17369. t.prototype.hex_hmac_md5 = function(t, e) {
  17370. return this.rstr2hex(this.rstr_hmac_md5(this.str2rstr_utf8(t), this.str2rstr_utf8(e)));
  17371. };
  17372. t.prototype.b64_hmac_md5 = function(t, e) {
  17373. return this.rstr2b64(this.rstr_hmac_md5(this.str2rstr_utf8(t), this.str2rstr_utf8(e)));
  17374. };
  17375. t.prototype.any_hmac_md5 = function(t, e, o) {
  17376. return this.rstr2any(this.rstr_hmac_md5(this.str2rstr_utf8(t), this.str2rstr_utf8(e)), o);
  17377. };
  17378. t.prototype.md5_vm_test = function() {
  17379. return "900150983cd24fb0d6963f7d28e17f72" == this.hex_md5("abc").toLowerCase();
  17380. };
  17381. t.prototype.rstr_md5 = function(t) {
  17382. return this.binl2rstr(this.binl_md5(this.rstr2binl(t), 8 * t.length));
  17383. };
  17384. t.prototype.rstr_hmac_md5 = function(t, e) {
  17385. var o = this.rstr2binl(t);
  17386. o.length > 16 && (o = this.binl_md5(o, 8 * t.length));
  17387. for (var i = Array(16), n = Array(16), r = 0; r < 16; r++) {
  17388. i[r] = 909522486 ^ o[r];
  17389. n[r] = 1549556828 ^ o[r];
  17390. }
  17391. var c = this.binl_md5(i.concat(this.rstr2binl(e)), 512 + 8 * e.length);
  17392. return this.binl2rstr(this.binl_md5(n.concat(c), 640));
  17393. };
  17394. t.prototype.rstr2hex = function(t) {
  17395. try {
  17396. this.hexcase;
  17397. } catch (t) {
  17398. this.hexcase = 0;
  17399. }
  17400. for (var e, o = this.hexcase ? "0123456789ABCDEF" : "0123456789abcdef", i = "", n = 0; n < t.length; n++) {
  17401. e = t.charCodeAt(n);
  17402. i += o.charAt(e >>> 4 & 15) + o.charAt(15 & e);
  17403. }
  17404. return i;
  17405. };
  17406. t.prototype.rstr2b64 = function(t) {
  17407. try {
  17408. this.b64pad;
  17409. } catch (t) {
  17410. this.b64pad = "";
  17411. }
  17412. for (var e = "", o = t.length, i = 0; i < o; i += 3) for (var n = t.charCodeAt(i) << 16 | (i + 1 < o ? t.charCodeAt(i + 1) << 8 : 0) | (i + 2 < o ? t.charCodeAt(i + 2) : 0), r = 0; r < 4; r++) 8 * i + 6 * r > 8 * t.length ? e += this.b64pad : e += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n >>> 6 * (3 - r) & 63);
  17413. return e;
  17414. };
  17415. t.prototype.rstr2any = function(t, e) {
  17416. var o, i, n, r, c, a = e.length, s = Array(Math.ceil(t.length / 2));
  17417. for (o = 0; o < s.length; o++) s[o] = t.charCodeAt(2 * o) << 8 | t.charCodeAt(2 * o + 1);
  17418. var p = Math.ceil(8 * t.length / (Math.log(e.length) / Math.log(2))), l = Array(p);
  17419. for (i = 0; i < p; i++) {
  17420. c = Array();
  17421. r = 0;
  17422. for (o = 0; o < s.length; o++) {
  17423. r = (r << 16) + s[o];
  17424. r -= (n = Math.floor(r / a)) * a;
  17425. (c.length > 0 || n > 0) && (c[c.length] = n);
  17426. }
  17427. l[i] = r;
  17428. s = c;
  17429. }
  17430. var u = "";
  17431. for (o = l.length - 1; o >= 0; o--) u += e.charAt(l[o]);
  17432. return u;
  17433. };
  17434. t.prototype.str2rstr_utf8 = function(t) {
  17435. for (var e, o, i = "", n = -1; ++n < t.length; ) {
  17436. e = t.charCodeAt(n);
  17437. o = n + 1 < t.length ? t.charCodeAt(n + 1) : 0;
  17438. if (55296 <= e && e <= 56319 && 56320 <= o && o <= 57343) {
  17439. e = 65536 + ((1023 & e) << 10) + (1023 & o);
  17440. n++;
  17441. }
  17442. e <= 127 ? i += String.fromCharCode(e) : e <= 2047 ? i += String.fromCharCode(192 | e >>> 6 & 31, 128 | 63 & e) : e <= 65535 ? i += String.fromCharCode(224 | e >>> 12 & 15, 128 | e >>> 6 & 63, 128 | 63 & e) : e <= 2097151 && (i += String.fromCharCode(240 | e >>> 18 & 7, 128 | e >>> 12 & 63, 128 | e >>> 6 & 63, 128 | 63 & e));
  17443. }
  17444. return i;
  17445. };
  17446. t.prototype.str2rstr_utf16le = function(t) {
  17447. for (var e = "", o = 0; o < t.length; o++) e += String.fromCharCode(255 & t.charCodeAt(o), t.charCodeAt(o) >>> 8 & 255);
  17448. return e;
  17449. };
  17450. t.prototype.str2rstr_utf16be = function(t) {
  17451. for (var e = "", o = 0; o < t.length; o++) e += String.fromCharCode(t.charCodeAt(o) >>> 8 & 255, 255 & t.charCodeAt(o));
  17452. return e;
  17453. };
  17454. t.prototype.rstr2binl = function(t) {
  17455. for (var e = Array(t.length >> 2), o = 0; o < e.length; o++) e[o] = 0;
  17456. for (o = 0; o < 8 * t.length; o += 8) e[o >> 5] |= (255 & t.charCodeAt(o / 8)) << o % 32;
  17457. return e;
  17458. };
  17459. t.prototype.binl2rstr = function(t) {
  17460. for (var e = "", o = 0; o < 32 * t.length; o += 8) e += String.fromCharCode(t[o >> 5] >>> o % 32 & 255);
  17461. return e;
  17462. };
  17463. t.prototype.binl_md5 = function(t, e) {
  17464. t[e >> 5] |= 128 << e % 32;
  17465. t[14 + (e + 64 >>> 9 << 4)] = e;
  17466. for (var o = 1732584193, i = -271733879, n = -1732584194, r = 271733878, c = 0; c < t.length; c += 16) {
  17467. var a = o, s = i, p = n, l = r;
  17468. o = this.md5_ff(o, i, n, r, t[c + 0], 7, -680876936);
  17469. r = this.md5_ff(r, o, i, n, t[c + 1], 12, -389564586);
  17470. n = this.md5_ff(n, r, o, i, t[c + 2], 17, 606105819);
  17471. i = this.md5_ff(i, n, r, o, t[c + 3], 22, -1044525330);
  17472. o = this.md5_ff(o, i, n, r, t[c + 4], 7, -176418897);
  17473. r = this.md5_ff(r, o, i, n, t[c + 5], 12, 1200080426);
  17474. n = this.md5_ff(n, r, o, i, t[c + 6], 17, -1473231341);
  17475. i = this.md5_ff(i, n, r, o, t[c + 7], 22, -45705983);
  17476. o = this.md5_ff(o, i, n, r, t[c + 8], 7, 1770035416);
  17477. r = this.md5_ff(r, o, i, n, t[c + 9], 12, -1958414417);
  17478. n = this.md5_ff(n, r, o, i, t[c + 10], 17, -42063);
  17479. i = this.md5_ff(i, n, r, o, t[c + 11], 22, -1990404162);
  17480. o = this.md5_ff(o, i, n, r, t[c + 12], 7, 1804603682);
  17481. r = this.md5_ff(r, o, i, n, t[c + 13], 12, -40341101);
  17482. n = this.md5_ff(n, r, o, i, t[c + 14], 17, -1502002290);
  17483. i = this.md5_ff(i, n, r, o, t[c + 15], 22, 1236535329);
  17484. o = this.md5_gg(o, i, n, r, t[c + 1], 5, -165796510);
  17485. r = this.md5_gg(r, o, i, n, t[c + 6], 9, -1069501632);
  17486. n = this.md5_gg(n, r, o, i, t[c + 11], 14, 643717713);
  17487. i = this.md5_gg(i, n, r, o, t[c + 0], 20, -373897302);
  17488. o = this.md5_gg(o, i, n, r, t[c + 5], 5, -701558691);
  17489. r = this.md5_gg(r, o, i, n, t[c + 10], 9, 38016083);
  17490. n = this.md5_gg(n, r, o, i, t[c + 15], 14, -660478335);
  17491. i = this.md5_gg(i, n, r, o, t[c + 4], 20, -405537848);
  17492. o = this.md5_gg(o, i, n, r, t[c + 9], 5, 568446438);
  17493. r = this.md5_gg(r, o, i, n, t[c + 14], 9, -1019803690);
  17494. n = this.md5_gg(n, r, o, i, t[c + 3], 14, -187363961);
  17495. i = this.md5_gg(i, n, r, o, t[c + 8], 20, 1163531501);
  17496. o = this.md5_gg(o, i, n, r, t[c + 13], 5, -1444681467);
  17497. r = this.md5_gg(r, o, i, n, t[c + 2], 9, -51403784);
  17498. n = this.md5_gg(n, r, o, i, t[c + 7], 14, 1735328473);
  17499. i = this.md5_gg(i, n, r, o, t[c + 12], 20, -1926607734);
  17500. o = this.md5_hh(o, i, n, r, t[c + 5], 4, -378558);
  17501. r = this.md5_hh(r, o, i, n, t[c + 8], 11, -2022574463);
  17502. n = this.md5_hh(n, r, o, i, t[c + 11], 16, 1839030562);
  17503. i = this.md5_hh(i, n, r, o, t[c + 14], 23, -35309556);
  17504. o = this.md5_hh(o, i, n, r, t[c + 1], 4, -1530992060);
  17505. r = this.md5_hh(r, o, i, n, t[c + 4], 11, 1272893353);
  17506. n = this.md5_hh(n, r, o, i, t[c + 7], 16, -155497632);
  17507. i = this.md5_hh(i, n, r, o, t[c + 10], 23, -1094730640);
  17508. o = this.md5_hh(o, i, n, r, t[c + 13], 4, 681279174);
  17509. r = this.md5_hh(r, o, i, n, t[c + 0], 11, -358537222);
  17510. n = this.md5_hh(n, r, o, i, t[c + 3], 16, -722521979);
  17511. i = this.md5_hh(i, n, r, o, t[c + 6], 23, 76029189);
  17512. o = this.md5_hh(o, i, n, r, t[c + 9], 4, -640364487);
  17513. r = this.md5_hh(r, o, i, n, t[c + 12], 11, -421815835);
  17514. n = this.md5_hh(n, r, o, i, t[c + 15], 16, 530742520);
  17515. i = this.md5_hh(i, n, r, o, t[c + 2], 23, -995338651);
  17516. o = this.md5_ii(o, i, n, r, t[c + 0], 6, -198630844);
  17517. r = this.md5_ii(r, o, i, n, t[c + 7], 10, 1126891415);
  17518. n = this.md5_ii(n, r, o, i, t[c + 14], 15, -1416354905);
  17519. i = this.md5_ii(i, n, r, o, t[c + 5], 21, -57434055);
  17520. o = this.md5_ii(o, i, n, r, t[c + 12], 6, 1700485571);
  17521. r = this.md5_ii(r, o, i, n, t[c + 3], 10, -1894986606);
  17522. n = this.md5_ii(n, r, o, i, t[c + 10], 15, -1051523);
  17523. i = this.md5_ii(i, n, r, o, t[c + 1], 21, -2054922799);
  17524. o = this.md5_ii(o, i, n, r, t[c + 8], 6, 1873313359);
  17525. r = this.md5_ii(r, o, i, n, t[c + 15], 10, -30611744);
  17526. n = this.md5_ii(n, r, o, i, t[c + 6], 15, -1560198380);
  17527. i = this.md5_ii(i, n, r, o, t[c + 13], 21, 1309151649);
  17528. o = this.md5_ii(o, i, n, r, t[c + 4], 6, -145523070);
  17529. r = this.md5_ii(r, o, i, n, t[c + 11], 10, -1120210379);
  17530. n = this.md5_ii(n, r, o, i, t[c + 2], 15, 718787259);
  17531. i = this.md5_ii(i, n, r, o, t[c + 9], 21, -343485551);
  17532. o = this.safe_add(o, a);
  17533. i = this.safe_add(i, s);
  17534. n = this.safe_add(n, p);
  17535. r = this.safe_add(r, l);
  17536. }
  17537. return [ o, i, n, r ];
  17538. };
  17539. t.prototype.md5_cmn = function(t, e, o, i, n, r) {
  17540. return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(e, t), this.safe_add(i, r)), n), o);
  17541. };
  17542. t.prototype.md5_ff = function(t, e, o, i, n, r, c) {
  17543. return this.md5_cmn(e & o | ~e & i, t, e, n, r, c);
  17544. };
  17545. t.prototype.md5_gg = function(t, e, o, i, n, r, c) {
  17546. return this.md5_cmn(e & i | o & ~i, t, e, n, r, c);
  17547. };
  17548. t.prototype.md5_hh = function(t, e, o, i, n, r, c) {
  17549. return this.md5_cmn(e ^ o ^ i, t, e, n, r, c);
  17550. };
  17551. t.prototype.md5_ii = function(t, e, o, i, n, r, c) {
  17552. return this.md5_cmn(o ^ (e | ~i), t, e, n, r, c);
  17553. };
  17554. t.prototype.safe_add = function(t, e) {
  17555. var o = (65535 & t) + (65535 & e);
  17556. return (t >> 16) + (e >> 16) + (o >> 16) << 16 | 65535 & o;
  17557. };
  17558. t.prototype.bit_rol = function(t, e) {
  17559. return t << e | t >>> 32 - e;
  17560. };
  17561. return t;
  17562. }();
  17563. o.default = i;
  17564. cc._RF.pop();
  17565. }, {} ],
  17566. MMagic: [ function(t, e, o) {
  17567. "use strict";
  17568. cc._RF.push(e, "139d4DULhVEK4h9+frD9EIZ", "MMagic");
  17569. var i, n = this && this.__extends || (i = function(t, e) {
  17570. return (i = Object.setPrototypeOf || {
  17571. __proto__: []
  17572. } instanceof Array && function(t, e) {
  17573. t.__proto__ = e;
  17574. } || function(t, e) {
  17575. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  17576. })(t, e);
  17577. }, function(t, e) {
  17578. i(t, e);
  17579. function o() {
  17580. this.constructor = t;
  17581. }
  17582. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  17583. }), r = this && this.__decorate || function(t, e, o, i) {
  17584. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  17585. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  17586. return r > 3 && c && Object.defineProperty(e, o, c), c;
  17587. };
  17588. Object.defineProperty(o, "__esModule", {
  17589. value: !0
  17590. });
  17591. var c = t("../../../bullet/BObject"), a = t("../../FSprite"), s = t("../SkillBase"), p = cc._decorator, l = p.ccclass, u = (p.property,
  17592. function(t) {
  17593. n(e, t);
  17594. function e() {
  17595. return null !== t && t.apply(this, arguments) || this;
  17596. }
  17597. e.prototype.onLoad = function() {
  17598. this.sprite = this.node.getComponent(a.default);
  17599. };
  17600. e.prototype.exe = function(t, e) {
  17601. var o = this;
  17602. this.time = new Date().getTime();
  17603. this.sprite.setDir({
  17604. x: 0,
  17605. y: 0
  17606. });
  17607. var i = cc.instantiate(this.mBullet).getComponent(c.default), n = i.mStartEffect, r = this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, s = this.sprite.mAtkSite.worldY, p = cc.v2(r, s), l = cc.instantiate(n);
  17608. l.angle = this.sprite.wAngle;
  17609. l.setPosition(p);
  17610. l.parent = this.sprite.node;
  17611. var u = l.getComponent(sp.Skeleton);
  17612. u.setCompleteListener(function() {
  17613. u.setCompleteListener(null);
  17614. l.destroy();
  17615. e && e();
  17616. });
  17617. u.setAnimation(0, "atk", !1);
  17618. this.sprite.playAction(a.SpriteActionType.atk, !1, function() {
  17619. o.sprite.isWalk ? o.sprite.playAction(a.SpriteActionType.run, !0) : o.sprite.playAction(a.SpriteActionType.stand, !0);
  17620. });
  17621. var f = void 0;
  17622. if (t) f = t.node.getPosition(); else {
  17623. var h = this.sprite.wAngle * Math.PI / 180, d = 300 * Math.sin(h) + this.node.y, m = 300 * Math.cos(h) + this.node.x;
  17624. f = cc.v2(m, d);
  17625. }
  17626. var y = this.sprite.ff.mMap, v = cc.instantiate(i.mHitEffect);
  17627. v.setPosition(f);
  17628. v.parent = y.mSprites;
  17629. var g = v.children[0].getComponent(sp.Skeleton);
  17630. g.setCompleteListener(function() {
  17631. g.setCompleteListener(null);
  17632. v.destroy();
  17633. });
  17634. g.setAnimation(0, "animation", !1);
  17635. this.roundHit(v);
  17636. };
  17637. e.prototype.roundHit = function(t) {
  17638. for (var e = this.sprite.ff, o = this.sprite.getEnemyGroup(), i = e.mMap.getSprites(), n = 0; n < i.length; n++) {
  17639. var r = i[n], c = r.getComponent(a.default);
  17640. c && r.active && c.isActive && c.hp > 0 && c.node.group == o && cc.Vec2.distance(t.getPosition(), r.getPosition()) < 300 && c.hp > 0 && null != c && c.isActive && this.sprite.atkjs(c, this._skillData);
  17641. }
  17642. };
  17643. return r([ l ], e);
  17644. }(s.default));
  17645. o.default = u;
  17646. cc._RF.pop();
  17647. }, {
  17648. "../../../bullet/BObject": "BObject",
  17649. "../../FSprite": "FSprite",
  17650. "../SkillBase": "SkillBase"
  17651. } ],
  17652. MShotgun: [ function(t, e, o) {
  17653. "use strict";
  17654. cc._RF.push(e, "e85ecZc8blCc5BRkOJh9I0c", "MShotgun");
  17655. var i, n = this && this.__extends || (i = function(t, e) {
  17656. return (i = Object.setPrototypeOf || {
  17657. __proto__: []
  17658. } instanceof Array && function(t, e) {
  17659. t.__proto__ = e;
  17660. } || function(t, e) {
  17661. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  17662. })(t, e);
  17663. }, function(t, e) {
  17664. i(t, e);
  17665. function o() {
  17666. this.constructor = t;
  17667. }
  17668. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  17669. }), r = this && this.__decorate || function(t, e, o, i) {
  17670. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  17671. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  17672. return r > 3 && c && Object.defineProperty(e, o, c), c;
  17673. };
  17674. Object.defineProperty(o, "__esModule", {
  17675. value: !0
  17676. });
  17677. var c = t("../../../bullet/BObject"), a = t("../../FSprite"), s = t("../SkillShotgun"), p = cc._decorator, l = p.ccclass, u = (p.property,
  17678. function(t) {
  17679. n(e, t);
  17680. function e() {
  17681. return null !== t && t.apply(this, arguments) || this;
  17682. }
  17683. e.prototype.onLoad = function() {
  17684. this.sprite = this.node.getComponent(a.default);
  17685. };
  17686. e.prototype.exe = function(t, e) {
  17687. var o = this;
  17688. this.time = new Date().getTime();
  17689. this.sprite.setDir({
  17690. x: 0,
  17691. y: 0
  17692. });
  17693. var i = cc.instantiate(this.mBullet).getComponent(c.default).mStartEffect, n = this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = this.sprite.mAtkSite.worldY, s = cc.v2(n, r), p = cc.instantiate(i);
  17694. p.angle = this.sprite.wAngle;
  17695. p.setPosition(s);
  17696. p.parent = this.sprite.node;
  17697. var l = p.getComponent(sp.Skeleton);
  17698. l.setCompleteListener(function() {
  17699. l.setCompleteListener(null);
  17700. p.destroy();
  17701. e && e();
  17702. });
  17703. l.setAnimation(0, "atk", !1);
  17704. this.sprite.playAction(a.SpriteActionType.atk, !1, function() {
  17705. o.sprite.isWalk ? o.sprite.playAction(a.SpriteActionType.run, !0) : o.sprite.playAction(a.SpriteActionType.stand, !0);
  17706. });
  17707. var u = void 0;
  17708. if (t) (u = t.node.getPosition()).y += t.node.height / 2; else {
  17709. var f = this.sprite.wAngle * Math.PI / 180, h = 300 * Math.sin(f) + this.node.y, d = 300 * Math.cos(f) + this.node.x;
  17710. u = cc.v2(d, h + 40);
  17711. }
  17712. for (var m = 0; m < this.count; m++) this.fire(m, u);
  17713. };
  17714. return r([ l ], e);
  17715. }(s.default));
  17716. o.default = u;
  17717. cc._RF.pop();
  17718. }, {
  17719. "../../../bullet/BObject": "BObject",
  17720. "../../FSprite": "FSprite",
  17721. "../SkillShotgun": "SkillShotgun"
  17722. } ],
  17723. MSprite: [ function(t, e, o) {
  17724. "use strict";
  17725. cc._RF.push(e, "b0ae7hp5mpJn4iy7/l9QuB3", "MSprite");
  17726. var i, n = this && this.__extends || (i = function(t, e) {
  17727. return (i = Object.setPrototypeOf || {
  17728. __proto__: []
  17729. } instanceof Array && function(t, e) {
  17730. t.__proto__ = e;
  17731. } || function(t, e) {
  17732. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  17733. })(t, e);
  17734. }, function(t, e) {
  17735. i(t, e);
  17736. function o() {
  17737. this.constructor = t;
  17738. }
  17739. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  17740. }), r = this && this.__decorate || function(t, e, o, i) {
  17741. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  17742. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  17743. return r > 3 && c && Object.defineProperty(e, o, c), c;
  17744. };
  17745. Object.defineProperty(o, "__esModule", {
  17746. value: !0
  17747. });
  17748. var c = t("./FSprite"), a = t("./skill/mainSkill/MBomb"), s = t("./skill/mainSkill/MFWind"), p = t("./skill/mainSkill/MMagic"), l = t("./skill/mainSkill/MShotgun"), u = cc._decorator, f = u.ccclass, h = (u.property,
  17749. function(t) {
  17750. n(e, t);
  17751. function e() {
  17752. var e = null !== t && t.apply(this, arguments) || this;
  17753. e.mJoystick = null;
  17754. e.musicWalkId = -1;
  17755. e.muiscRunId = -1;
  17756. return e;
  17757. }
  17758. e.prototype.setAttrData = function(e) {
  17759. t.prototype.setAttrData.call(this, e);
  17760. var o = this.ff.main.sManage.getSkillById(e.weaponSkill);
  17761. if (o) {
  17762. if (1 == o.type) {
  17763. (i = this.node.addComponent(l.default)).count = o.value2;
  17764. i.bcount = o.value3;
  17765. this.loadSkill(o, i);
  17766. this.skill1 = i;
  17767. } else if (2 == o.type) {
  17768. var i = this.node.addComponent(a.default);
  17769. this.loadSkill(o, i);
  17770. this.skill1 = i;
  17771. } else if (3 == o.type) {
  17772. i = this.node.addComponent(p.default);
  17773. this.loadSkill(o, i);
  17774. this.skill1 = i;
  17775. } else if (4 == o.type) {
  17776. i = this.node.addComponent(s.default);
  17777. this.loadSkill(o, i);
  17778. this.skill1 = i;
  17779. }
  17780. this.skill1._skillData = o;
  17781. }
  17782. };
  17783. e.prototype.loadSkill = function(t, e) {
  17784. cc.resources.load("icon/skills/" + t.effect + "/bullet", cc.Prefab, function(t, o) {
  17785. t ? cc.error(t) : e.mBullet = o;
  17786. });
  17787. };
  17788. e.prototype.setJoystick = function(t) {
  17789. var e = this;
  17790. this.mJoystick = t;
  17791. this.mJoystick.setCallback(function(t, o, i) {
  17792. if (t) {
  17793. e.setWeaponAngle(i);
  17794. var n = o.y, r = o.x;
  17795. e.setDir({
  17796. x: r,
  17797. y: n
  17798. });
  17799. } else e.setDir({
  17800. x: 0,
  17801. y: 0
  17802. });
  17803. e.playMusic();
  17804. });
  17805. };
  17806. e.prototype.setRuning = function(e) {
  17807. t.prototype.setRuning.call(this, e);
  17808. this.playMusic();
  17809. };
  17810. e.prototype.playMusic = function() {
  17811. if (this.isWalk) {
  17812. var t = this.ff.main.player.setting;
  17813. if (t.music_ON_OFF_2) if (this.isRuning) {
  17814. -1 == this.muiscRunId && (this.muiscRunId = cc.audioEngine.play(this.ff.mRun, !0, t.music_Slider_2));
  17815. if (-1 != this.musicWalkId) {
  17816. cc.audioEngine.stop(this.musicWalkId);
  17817. this.musicWalkId = -1;
  17818. }
  17819. } else {
  17820. -1 == this.musicWalkId && (this.musicWalkId = cc.audioEngine.play(this.ff.mWalk, !0, t.music_Slider_2));
  17821. if (-1 != this.muiscRunId) {
  17822. cc.audioEngine.stop(this.muiscRunId);
  17823. this.muiscRunId = -1;
  17824. }
  17825. }
  17826. } else {
  17827. if (-1 != this.musicWalkId) {
  17828. cc.audioEngine.stop(this.musicWalkId);
  17829. this.musicWalkId = -1;
  17830. }
  17831. if (-1 != this.muiscRunId) {
  17832. cc.audioEngine.stop(this.muiscRunId);
  17833. this.muiscRunId = -1;
  17834. }
  17835. }
  17836. };
  17837. return r([ f ], e);
  17838. }(c.default));
  17839. o.default = h;
  17840. cc._RF.pop();
  17841. }, {
  17842. "./FSprite": "FSprite",
  17843. "./skill/mainSkill/MBomb": "MBomb",
  17844. "./skill/mainSkill/MFWind": "MFWind",
  17845. "./skill/mainSkill/MMagic": "MMagic",
  17846. "./skill/mainSkill/MShotgun": "MShotgun"
  17847. } ],
  17848. MagicBoxInfoView: [ function(t, e, o) {
  17849. "use strict";
  17850. cc._RF.push(e, "f97fccpkCVDAY6VeiEq5uZN", "MagicBoxInfoView");
  17851. var i, n = this && this.__extends || (i = function(t, e) {
  17852. return (i = Object.setPrototypeOf || {
  17853. __proto__: []
  17854. } instanceof Array && function(t, e) {
  17855. t.__proto__ = e;
  17856. } || function(t, e) {
  17857. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  17858. })(t, e);
  17859. }, function(t, e) {
  17860. i(t, e);
  17861. function o() {
  17862. this.constructor = t;
  17863. }
  17864. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  17865. }), r = this && this.__decorate || function(t, e, o, i) {
  17866. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  17867. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  17868. return r > 3 && c && Object.defineProperty(e, o, c), c;
  17869. };
  17870. Object.defineProperty(o, "__esModule", {
  17871. value: !0
  17872. });
  17873. var c = t("../../../i18n/i18n"), a = t("../../../main/ViewManage"), s = t("../../../main/ViewObject"), p = t("../../../util/CHttp"), l = t("../../common/GoodItem"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  17874. n(e, t);
  17875. function e() {
  17876. var e = null !== t && t.apply(this, arguments) || this;
  17877. e.mName = null;
  17878. e.mAbout = null;
  17879. e.mContent = null;
  17880. e.mGoodItem = null;
  17881. e.mIcon = null;
  17882. e.mCount = null;
  17883. return e;
  17884. }
  17885. e.prototype.init = function(t) {
  17886. var e = this;
  17887. this.boxItem = t;
  17888. var o = t._magicBox;
  17889. this.mName.string = c.default.t(o.name);
  17890. this.mAbout.string = c.default.t(o.about);
  17891. cc.resources.load("icon/magic_box/" + o.icon, cc.SpriteFrame, function(t, o) {
  17892. t ? cc.error(t) : e.mIcon.spriteFrame = o;
  17893. });
  17894. for (var i = this.main.sManage.getRewardViews(o.list), n = 0; n < i.length && n < 5; n++) {
  17895. var r = i[n], a = cc.instantiate(this.mGoodItem);
  17896. a.getComponent(l.default).initReward(this.main, r);
  17897. a.parent = this.mContent;
  17898. }
  17899. this.flush();
  17900. };
  17901. e.prototype.flush = function() {
  17902. var t = this.boxItem._magicBox, e = this.main.player.getGoodCount(t.goodId);
  17903. this.mCount.string = e + "/" + t.goodCount;
  17904. };
  17905. e.prototype.onclickInfo = function() {
  17906. var t = this;
  17907. this.main.viewManage.loadFunc(a.GameViewType.moheReward, function(e) {
  17908. e.init(t.boxItem);
  17909. e.show();
  17910. });
  17911. };
  17912. e.prototype.onclickOpen = function() {
  17913. var t = this, e = {
  17914. id: this.boxItem._magicBox.id
  17915. };
  17916. this.main.gameHttp.sendJson("magicBox/v1/open", e, function(e, o) {
  17917. t.main.stopLoad();
  17918. if (e == p.HttpStateType.SUCCESS) if (0 == o.retCode) {
  17919. t.boxItem.flush();
  17920. t.flush();
  17921. t.main.showReward(o);
  17922. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  17923. });
  17924. };
  17925. r([ h(cc.Label) ], e.prototype, "mName", void 0);
  17926. r([ h(cc.Label) ], e.prototype, "mAbout", void 0);
  17927. r([ h(cc.Node) ], e.prototype, "mContent", void 0);
  17928. r([ h(cc.Prefab) ], e.prototype, "mGoodItem", void 0);
  17929. r([ h(cc.Sprite) ], e.prototype, "mIcon", void 0);
  17930. r([ h(cc.Label) ], e.prototype, "mCount", void 0);
  17931. return r([ f ], e);
  17932. }(s.default);
  17933. o.default = d;
  17934. cc._RF.pop();
  17935. }, {
  17936. "../../../i18n/i18n": "i18n",
  17937. "../../../main/ViewManage": "ViewManage",
  17938. "../../../main/ViewObject": "ViewObject",
  17939. "../../../util/CHttp": "CHttp",
  17940. "../../common/GoodItem": "GoodItem"
  17941. } ],
  17942. MagicBoxItem: [ function(t, e, o) {
  17943. "use strict";
  17944. cc._RF.push(e, "c8228BgwCdNFa7LJbYCDtnH", "MagicBoxItem");
  17945. var i, n = this && this.__extends || (i = function(t, e) {
  17946. return (i = Object.setPrototypeOf || {
  17947. __proto__: []
  17948. } instanceof Array && function(t, e) {
  17949. t.__proto__ = e;
  17950. } || function(t, e) {
  17951. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  17952. })(t, e);
  17953. }, function(t, e) {
  17954. i(t, e);
  17955. function o() {
  17956. this.constructor = t;
  17957. }
  17958. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  17959. }), r = this && this.__decorate || function(t, e, o, i) {
  17960. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  17961. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  17962. return r > 3 && c && Object.defineProperty(e, o, c), c;
  17963. };
  17964. Object.defineProperty(o, "__esModule", {
  17965. value: !0
  17966. });
  17967. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  17968. n(e, t);
  17969. function e() {
  17970. var e = null !== t && t.apply(this, arguments) || this;
  17971. e.mIcon = null;
  17972. e.mCount = null;
  17973. return e;
  17974. }
  17975. e.prototype.init = function(t, e) {
  17976. var o = this;
  17977. this.main = t;
  17978. this._magicBox = e;
  17979. cc.resources.load("icon/magic_box/" + e.icon, cc.SpriteFrame, function(t, e) {
  17980. t ? cc.error(t) : o.mIcon.spriteFrame = e;
  17981. });
  17982. this.flush();
  17983. };
  17984. e.prototype.flush = function() {
  17985. var t = this.main.player.getGoodCount(this._magicBox.goodId);
  17986. this.mCount.string = t + "/" + this._magicBox.goodCount;
  17987. };
  17988. e.prototype.setCallback = function(t) {
  17989. this.callback = t;
  17990. };
  17991. e.prototype.onclick = function() {
  17992. this.callback && this.callback(this);
  17993. };
  17994. r([ s(cc.Sprite) ], e.prototype, "mIcon", void 0);
  17995. r([ s(cc.Label) ], e.prototype, "mCount", void 0);
  17996. return r([ a ], e);
  17997. }(cc.Component);
  17998. o.default = p;
  17999. cc._RF.pop();
  18000. }, {} ],
  18001. MagicBoxRewardView: [ function(t, e, o) {
  18002. "use strict";
  18003. cc._RF.push(e, "81bdcqeKTJH2rvtc1ZseIu9", "MagicBoxRewardView");
  18004. var i, n = this && this.__extends || (i = function(t, e) {
  18005. return (i = Object.setPrototypeOf || {
  18006. __proto__: []
  18007. } instanceof Array && function(t, e) {
  18008. t.__proto__ = e;
  18009. } || function(t, e) {
  18010. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  18011. })(t, e);
  18012. }, function(t, e) {
  18013. i(t, e);
  18014. function o() {
  18015. this.constructor = t;
  18016. }
  18017. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  18018. }), r = this && this.__decorate || function(t, e, o, i) {
  18019. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  18020. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  18021. return r > 3 && c && Object.defineProperty(e, o, c), c;
  18022. };
  18023. Object.defineProperty(o, "__esModule", {
  18024. value: !0
  18025. });
  18026. var c = t("../../../main/ViewObject"), a = t("../../common/GoodItem"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  18027. n(e, t);
  18028. function e() {
  18029. var e = null !== t && t.apply(this, arguments) || this;
  18030. e.mContent = null;
  18031. e.mRewardItem = null;
  18032. return e;
  18033. }
  18034. e.prototype.init = function(t) {
  18035. for (var e = t._magicBox, o = this.main.sManage.getRewardViews(e.list), i = 0; i < o.length; i++) {
  18036. var n = o[i], r = cc.instantiate(this.mRewardItem), c = r.getComponent(a.default);
  18037. c.initReward(this.main, n);
  18038. c.mContrast.node.active = !0;
  18039. c.mContrast.string = n.PR + "%";
  18040. r.parent = this.mContent;
  18041. }
  18042. };
  18043. r([ l(cc.Node) ], e.prototype, "mContent", void 0);
  18044. r([ l(cc.Prefab) ], e.prototype, "mRewardItem", void 0);
  18045. return r([ p ], e);
  18046. }(c.default);
  18047. o.default = u;
  18048. cc._RF.pop();
  18049. }, {
  18050. "../../../main/ViewObject": "ViewObject",
  18051. "../../common/GoodItem": "GoodItem"
  18052. } ],
  18053. MagicBoxView: [ function(t, e, o) {
  18054. "use strict";
  18055. cc._RF.push(e, "ab8b2ASbORPV5ZPtznUWtDK", "MagicBoxView");
  18056. var i, n = this && this.__extends || (i = function(t, e) {
  18057. return (i = Object.setPrototypeOf || {
  18058. __proto__: []
  18059. } instanceof Array && function(t, e) {
  18060. t.__proto__ = e;
  18061. } || function(t, e) {
  18062. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  18063. })(t, e);
  18064. }, function(t, e) {
  18065. i(t, e);
  18066. function o() {
  18067. this.constructor = t;
  18068. }
  18069. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  18070. }), r = this && this.__decorate || function(t, e, o, i) {
  18071. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  18072. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  18073. return r > 3 && c && Object.defineProperty(e, o, c), c;
  18074. };
  18075. Object.defineProperty(o, "__esModule", {
  18076. value: !0
  18077. });
  18078. var c = t("../../../main/ViewManage"), a = t("../../../main/ViewObject"), s = t("./MagicBoxItem"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  18079. n(e, t);
  18080. function e() {
  18081. var e = null !== t && t.apply(this, arguments) || this;
  18082. e.mLine1 = null;
  18083. e.mLine2 = null;
  18084. e.mBoxItem = null;
  18085. return e;
  18086. }
  18087. e.prototype.start = function() {
  18088. this.init(1);
  18089. };
  18090. e.prototype.init = function(t) {
  18091. var e = this, o = this.main.sManage.magicBoxs;
  18092. this.mLine1.destroyAllChildren();
  18093. this.mLine2.destroyAllChildren();
  18094. for (var i = 0, n = 0; n < o.length; n++) {
  18095. var r = o[n];
  18096. if (r.type == t) {
  18097. var c = cc.instantiate(this.mBoxItem), a = c.getComponent(s.default);
  18098. a.init(this.main, r);
  18099. c.parent = i < 2 ? this.mLine1 : this.mLine2;
  18100. a.setCallback(function(t) {
  18101. e.openMagicBox(t);
  18102. });
  18103. i++;
  18104. }
  18105. }
  18106. };
  18107. e.prototype.openMagicBox = function(t) {
  18108. this.main.viewManage.loadFunc(c.GameViewType.moheInfo, function(e) {
  18109. e.init(t);
  18110. e.show();
  18111. });
  18112. };
  18113. r([ u(cc.Node) ], e.prototype, "mLine1", void 0);
  18114. r([ u(cc.Node) ], e.prototype, "mLine2", void 0);
  18115. r([ u(cc.Prefab) ], e.prototype, "mBoxItem", void 0);
  18116. return r([ l ], e);
  18117. }(a.default);
  18118. o.default = f;
  18119. cc._RF.pop();
  18120. }, {
  18121. "../../../main/ViewManage": "ViewManage",
  18122. "../../../main/ViewObject": "ViewObject",
  18123. "./MagicBoxItem": "MagicBoxItem"
  18124. } ],
  18125. MailInfo: [ function(t, e, o) {
  18126. "use strict";
  18127. cc._RF.push(e, "95448yXDKdKCJs8OndrJaR+", "MailInfo");
  18128. var i, n = this && this.__extends || (i = function(t, e) {
  18129. return (i = Object.setPrototypeOf || {
  18130. __proto__: []
  18131. } instanceof Array && function(t, e) {
  18132. t.__proto__ = e;
  18133. } || function(t, e) {
  18134. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  18135. })(t, e);
  18136. }, function(t, e) {
  18137. i(t, e);
  18138. function o() {
  18139. this.constructor = t;
  18140. }
  18141. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  18142. }), r = this && this.__decorate || function(t, e, o, i) {
  18143. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  18144. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  18145. return r > 3 && c && Object.defineProperty(e, o, c), c;
  18146. };
  18147. Object.defineProperty(o, "__esModule", {
  18148. value: !0
  18149. });
  18150. var c = t("../../util/CHttp"), a = t("../common/GoodItem"), s = t("./Mail"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  18151. n(e, t);
  18152. function e() {
  18153. var e = null !== t && t.apply(this, arguments) || this;
  18154. e.mTitle = null;
  18155. e.mContent = null;
  18156. e.mReward = null;
  18157. e.mTime = null;
  18158. e.mGoodItem = null;
  18159. e.mBTReward = null;
  18160. e.mBTLable = null;
  18161. e.mMailYes = null;
  18162. e.mMailNo = null;
  18163. return e;
  18164. }
  18165. e.prototype.onLoad = function() {
  18166. this.mMailNo.active = !0;
  18167. this.mMailYes.active = !1;
  18168. };
  18169. e.prototype.start = function() {
  18170. this.mail = this.node.getComponent(s.default);
  18171. this.main = this.mail.main;
  18172. };
  18173. e.prototype.setMail = function(t) {
  18174. this.mMailNo.active = !1;
  18175. this.mMailYes.active = !0;
  18176. this.mailItem = t;
  18177. this.data = this.mailItem.data;
  18178. this.flush();
  18179. };
  18180. e.prototype.flush = function() {
  18181. this.mBTReward.interactable = !this.data.receive;
  18182. this.data.receive ? this.mBTLable.string = "已领取" : this.mBTLable.string = "领取";
  18183. };
  18184. e.prototype.getMailInfo = function() {
  18185. var t = this;
  18186. this.mTitle.string = this.data.title;
  18187. var e = {
  18188. mailId: this.data.id
  18189. };
  18190. this.main.gameHttp.sendJson("email/v1/info", e, function(e, o) {
  18191. t.main.stopLoad();
  18192. if (e == c.HttpStateType.SUCCESS) if (0 == o.retCode) {
  18193. t.data = o.data;
  18194. t.initData();
  18195. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  18196. });
  18197. };
  18198. e.prototype.initData = function() {
  18199. this.node.getComponent(s.default).mInfoNode.active = !0;
  18200. this.mContent.string = this.data.content;
  18201. this.mTime.string = this.data.date + " " + this.data.time;
  18202. this.mReward.destroyAllChildren();
  18203. if (this.data.appendix) for (var t = JSON.parse(this.data.appendix), e = 0; e < t.length; e++) {
  18204. var o = t[e], i = cc.instantiate(this.mGoodItem);
  18205. i.getComponent(a.default).init(this.main, o);
  18206. i.parent = this.mReward;
  18207. }
  18208. };
  18209. e.prototype.onclickGet = function() {
  18210. var t = this, e = {
  18211. mailId: this.data.id
  18212. };
  18213. this.main.gameHttp.sendJson("email/v1/receive", e, function(e, o) {
  18214. t.main.stopLoad();
  18215. if (e == c.HttpStateType.SUCCESS) if (0 == o.retCode) {
  18216. t.data.receive = !0;
  18217. t.flush();
  18218. t.main.showReward(o);
  18219. t.mailItem.tipsIcon.active = !1;
  18220. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  18221. });
  18222. };
  18223. r([ u(cc.Label) ], e.prototype, "mTitle", void 0);
  18224. r([ u(cc.Label) ], e.prototype, "mContent", void 0);
  18225. r([ u(cc.Node) ], e.prototype, "mReward", void 0);
  18226. r([ u(cc.Label) ], e.prototype, "mTime", void 0);
  18227. r([ u(cc.Prefab) ], e.prototype, "mGoodItem", void 0);
  18228. r([ u(cc.Button) ], e.prototype, "mBTReward", void 0);
  18229. r([ u(cc.Label) ], e.prototype, "mBTLable", void 0);
  18230. r([ u(cc.Node) ], e.prototype, "mMailYes", void 0);
  18231. r([ u(cc.Node) ], e.prototype, "mMailNo", void 0);
  18232. return r([ l ], e);
  18233. }(cc.Component);
  18234. o.default = f;
  18235. cc._RF.pop();
  18236. }, {
  18237. "../../util/CHttp": "CHttp",
  18238. "../common/GoodItem": "GoodItem",
  18239. "./Mail": "Mail"
  18240. } ],
  18241. MailItem: [ function(t, e, o) {
  18242. "use strict";
  18243. cc._RF.push(e, "a2f44yirC5Hbadm7hPdgIyl", "MailItem");
  18244. var i, n = this && this.__extends || (i = function(t, e) {
  18245. return (i = Object.setPrototypeOf || {
  18246. __proto__: []
  18247. } instanceof Array && function(t, e) {
  18248. t.__proto__ = e;
  18249. } || function(t, e) {
  18250. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  18251. })(t, e);
  18252. }, function(t, e) {
  18253. i(t, e);
  18254. function o() {
  18255. this.constructor = t;
  18256. }
  18257. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  18258. }), r = this && this.__decorate || function(t, e, o, i) {
  18259. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  18260. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  18261. return r > 3 && c && Object.defineProperty(e, o, c), c;
  18262. };
  18263. Object.defineProperty(o, "__esModule", {
  18264. value: !0
  18265. });
  18266. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  18267. n(e, t);
  18268. function e() {
  18269. var e = null !== t && t.apply(this, arguments) || this;
  18270. e.mTitle = null;
  18271. e.mTime = null;
  18272. e.tipsIcon = null;
  18273. e.index = 0;
  18274. return e;
  18275. }
  18276. e.prototype.init = function(t, e) {
  18277. this.data = t;
  18278. this.index = e;
  18279. this.mTitle.string = this.data.title;
  18280. this.tipsIcon.active = !t.receive;
  18281. var o = this.data.xTime / 86400;
  18282. this.mTime.string = o <= 0 ? "即将过期" : "剩余" + Math.floor(o) + "天";
  18283. };
  18284. e.prototype.setCallback = function(t) {
  18285. this.callback = t;
  18286. };
  18287. e.prototype.onclick = function() {
  18288. this.callback(this);
  18289. };
  18290. r([ s(cc.Label) ], e.prototype, "mTitle", void 0);
  18291. r([ s(cc.Label) ], e.prototype, "mTime", void 0);
  18292. r([ s(cc.Node) ], e.prototype, "tipsIcon", void 0);
  18293. return r([ a ], e);
  18294. }(cc.Component);
  18295. o.default = p;
  18296. cc._RF.pop();
  18297. }, {} ],
  18298. Mail: [ function(t, e, o) {
  18299. "use strict";
  18300. cc._RF.push(e, "d19b3kzCHBJSaT5WO/BdHbQ", "Mail");
  18301. var i, n = this && this.__extends || (i = function(t, e) {
  18302. return (i = Object.setPrototypeOf || {
  18303. __proto__: []
  18304. } instanceof Array && function(t, e) {
  18305. t.__proto__ = e;
  18306. } || function(t, e) {
  18307. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  18308. })(t, e);
  18309. }, function(t, e) {
  18310. i(t, e);
  18311. function o() {
  18312. this.constructor = t;
  18313. }
  18314. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  18315. }), r = this && this.__decorate || function(t, e, o, i) {
  18316. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  18317. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  18318. return r > 3 && c && Object.defineProperty(e, o, c), c;
  18319. };
  18320. Object.defineProperty(o, "__esModule", {
  18321. value: !0
  18322. });
  18323. var c = t("../../main/ViewObject"), a = t("../../util/CHttp"), s = t("../data/RedPoint"), p = t("./MailInfo"), l = t("./MailItem"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  18324. n(e, t);
  18325. function e() {
  18326. var e = null !== t && t.apply(this, arguments) || this;
  18327. e.mNull1 = null;
  18328. e.mNull2 = null;
  18329. e.mContent1 = null;
  18330. e.mContent2 = null;
  18331. e.mItem = null;
  18332. e.mInfoNode = null;
  18333. e.mMailInfo = null;
  18334. e.mToggle1 = null;
  18335. e.mToggle2 = null;
  18336. e.itemList = [];
  18337. e.clickIndex = 0;
  18338. return e;
  18339. }
  18340. o = e;
  18341. e.prototype.onLoad = function() {
  18342. this.itemList = [];
  18343. this.mNull1.active = !1;
  18344. this.mNull2.active = !1;
  18345. this.mInfoNode.active = !1;
  18346. this.getMail();
  18347. };
  18348. e.prototype.show = function(t) {
  18349. if (t) {
  18350. this.prev = t;
  18351. this.prev.__close();
  18352. }
  18353. this.main.viewManage.popView1(this.node);
  18354. this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this);
  18355. };
  18356. e.prototype.getMail = function() {
  18357. var t = this;
  18358. this.main.gameHttp.sendJson("email/v1/data", {}, function(e, o) {
  18359. t.main.stopLoad();
  18360. e == a.HttpStateType.SUCCESS ? 0 == o.retCode ? t.initList(o.data) : t.main.showTips(o.message) : t.main.showTips("网络异常");
  18361. });
  18362. };
  18363. e.prototype.initList = function(t) {
  18364. for (var e = this, o = 0; o < t.length; o++) {
  18365. var i = t[o], n = cc.instantiate(this.mItem), r = n.getComponent(l.default);
  18366. this.itemList.push(n);
  18367. r.init(i, o);
  18368. i.check || i.receive || s.default.addRed(this.main, n);
  18369. r.setCallback(function(t) {
  18370. s.default.removeRed(t.node);
  18371. e.openInfo(t);
  18372. e.refreshStatus(t);
  18373. });
  18374. 1 == i.type ? n.parent = this.mContent2 : n.parent = this.mContent1;
  18375. }
  18376. this.mContent1.children.length > 0 ? this.mNull1.active = !1 : this.mNull1.active = !0;
  18377. this.mContent2.children.length > 0 ? this.mNull2.active = !1 : this.mNull2.active = !0;
  18378. };
  18379. e.prototype.openInfo = function(t) {
  18380. if (this.mMailInfo.mailItem != t) {
  18381. this.mMailInfo.setMail(t);
  18382. this.mMailInfo.getMailInfo();
  18383. }
  18384. };
  18385. e.prototype.onclickOnekey = function() {
  18386. var t = this, e = [];
  18387. this.onkeyGetMail(0, e, function() {
  18388. t.main.showRewardList(e);
  18389. });
  18390. };
  18391. e.prototype.onkeyGetMail = function(t, e, i) {
  18392. var n = this, r = (this.mToggle1.isChecked ? this.mContent1 : this.mContent2).children;
  18393. if (t >= r.length) i(); else {
  18394. var c = r[t].getComponent(l.default);
  18395. if (c.data.receive) {
  18396. t++;
  18397. this.onkeyGetMail(t, e, i);
  18398. } else this.getMailInfo(c, function(r) {
  18399. if (r) for (var c = 0; c < r.length; c++) {
  18400. var a = r[c];
  18401. o.addReward(e, a);
  18402. }
  18403. t++;
  18404. n.onkeyGetMail(t, e, i);
  18405. });
  18406. }
  18407. };
  18408. e.addReward = function(t, e) {
  18409. if (1 == e.type || 2 == e.type) {
  18410. for (var o = 0; o < t.length; o++) {
  18411. var i = t[o];
  18412. if (i.type == e.type) {
  18413. i.count += e.count;
  18414. return;
  18415. }
  18416. }
  18417. t.push(e);
  18418. } else e.type, t.push(e);
  18419. };
  18420. e.prototype.getMailInfo = function(t, e) {
  18421. var o = this, i = {
  18422. mailId: t.data.id
  18423. };
  18424. this.main.gameHttp.sendJson("email/v1/receive", i, function(i, n) {
  18425. o.main.stopLoad();
  18426. if (i == a.HttpStateType.SUCCESS) if (0 == n.retCode) {
  18427. t.data.receive = !0;
  18428. t.tipsIcon.active = !1;
  18429. s.default.removeRed(t.node);
  18430. o.mMailInfo.mailItem == t && o.mMailInfo.flush();
  18431. e(o.main.sManage.getRewards(n));
  18432. } else {
  18433. o.main.showTips(n.message);
  18434. e(null);
  18435. } else {
  18436. o.main.showTips("网络异常");
  18437. e(null);
  18438. }
  18439. });
  18440. };
  18441. e.prototype.refreshStatus = function(t) {
  18442. var e = this;
  18443. if (this.clickIndex == t.index) t.node.color = cc.color(173, 173, 173, 255); else {
  18444. this.itemList.forEach(function(t) {
  18445. t.getComponent(l.default).index == e.clickIndex && (t.color = cc.color(255, 255, 255, 255));
  18446. });
  18447. t.node.color = cc.color(173, 173, 173, 255);
  18448. this.clickIndex = t.index;
  18449. }
  18450. };
  18451. var o;
  18452. r([ h(cc.Node) ], e.prototype, "mNull1", void 0);
  18453. r([ h(cc.Node) ], e.prototype, "mNull2", void 0);
  18454. r([ h(cc.Node) ], e.prototype, "mContent1", void 0);
  18455. r([ h(cc.Node) ], e.prototype, "mContent2", void 0);
  18456. r([ h(cc.Prefab) ], e.prototype, "mItem", void 0);
  18457. r([ h(cc.Node) ], e.prototype, "mInfoNode", void 0);
  18458. r([ h(p.default) ], e.prototype, "mMailInfo", void 0);
  18459. r([ h(cc.Toggle) ], e.prototype, "mToggle1", void 0);
  18460. r([ h(cc.Toggle) ], e.prototype, "mToggle2", void 0);
  18461. return o = r([ f ], e);
  18462. }(c.default);
  18463. o.default = d;
  18464. cc._RF.pop();
  18465. }, {
  18466. "../../main/ViewObject": "ViewObject",
  18467. "../../util/CHttp": "CHttp",
  18468. "../data/RedPoint": "RedPoint",
  18469. "./MailInfo": "MailInfo",
  18470. "./MailItem": "MailItem"
  18471. } ],
  18472. MainAtterItem: [ function(t, e, o) {
  18473. "use strict";
  18474. cc._RF.push(e, "f4490v8nBJD/JL6e3lWioPE", "MainAtterItem");
  18475. var i, n = this && this.__extends || (i = function(t, e) {
  18476. return (i = Object.setPrototypeOf || {
  18477. __proto__: []
  18478. } instanceof Array && function(t, e) {
  18479. t.__proto__ = e;
  18480. } || function(t, e) {
  18481. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  18482. })(t, e);
  18483. }, function(t, e) {
  18484. i(t, e);
  18485. function o() {
  18486. this.constructor = t;
  18487. }
  18488. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  18489. }), r = this && this.__decorate || function(t, e, o, i) {
  18490. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  18491. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  18492. return r > 3 && c && Object.defineProperty(e, o, c), c;
  18493. };
  18494. Object.defineProperty(o, "__esModule", {
  18495. value: !0
  18496. });
  18497. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  18498. n(e, t);
  18499. function e() {
  18500. var e = null !== t && t.apply(this, arguments) || this;
  18501. e.mValue = null;
  18502. e.mContrast = null;
  18503. e.mPCT = null;
  18504. e.mUpDown = null;
  18505. e.mUp = null;
  18506. e.mDown = null;
  18507. return e;
  18508. }
  18509. e.prototype.setValue = function(t) {
  18510. this.mContrast.active = !1;
  18511. this.mValue.string = "" + t;
  18512. this.mValue.node.color = cc.color(75, 43, 0);
  18513. };
  18514. e.prototype.setContrase = function(t, e) {
  18515. this.mContrast.active = !0;
  18516. this.mValue.string = "" + t;
  18517. var o = cc.color();
  18518. if (t >= e) {
  18519. o.r = 75;
  18520. o.g = 43;
  18521. o.b = 0;
  18522. this.mValue.node.color = o;
  18523. this.mUpDown.spriteFrame = this.mUp;
  18524. } else {
  18525. o.r = 255;
  18526. o.g = 24;
  18527. o.b = 24;
  18528. this.mValue.node.color = o;
  18529. this.mUpDown.spriteFrame = this.mDown;
  18530. }
  18531. this.mPCT.string = Math.floor(100 * (t - e) / t) + "%";
  18532. this.mPCT.node.color = o;
  18533. };
  18534. r([ s(cc.Label) ], e.prototype, "mValue", void 0);
  18535. r([ s(cc.Node) ], e.prototype, "mContrast", void 0);
  18536. r([ s(cc.Label) ], e.prototype, "mPCT", void 0);
  18537. r([ s(cc.Sprite) ], e.prototype, "mUpDown", void 0);
  18538. r([ s(cc.SpriteFrame) ], e.prototype, "mUp", void 0);
  18539. r([ s(cc.SpriteFrame) ], e.prototype, "mDown", void 0);
  18540. return r([ a ], e);
  18541. }(cc.Component);
  18542. o.default = p;
  18543. cc._RF.pop();
  18544. }, {} ],
  18545. Main: [ function(t, e, o) {
  18546. "use strict";
  18547. cc._RF.push(e, "b902fuPqp5GaJPLoBL3IWMm", "Main");
  18548. var i, n = this && this.__extends || (i = function(t, e) {
  18549. return (i = Object.setPrototypeOf || {
  18550. __proto__: []
  18551. } instanceof Array && function(t, e) {
  18552. t.__proto__ = e;
  18553. } || function(t, e) {
  18554. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  18555. })(t, e);
  18556. }, function(t, e) {
  18557. i(t, e);
  18558. function o() {
  18559. this.constructor = t;
  18560. }
  18561. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  18562. }), r = this && this.__decorate || function(t, e, o, i) {
  18563. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  18564. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  18565. return r > 3 && c && Object.defineProperty(e, o, c), c;
  18566. };
  18567. Object.defineProperty(o, "__esModule", {
  18568. value: !0
  18569. });
  18570. var c = t("../i18n/i18n"), a = t("./ViewManage"), s = t("../util/CHttp"), p = t("../util/Profile"), l = t("../util/Tips"), u = t("../plot/GuideMask"), f = t("../login/AdminLogin"), h = cc._decorator, d = h.ccclass, m = h.property, y = function(t) {
  18571. n(e, t);
  18572. function e() {
  18573. var e = null !== t && t.apply(this, arguments) || this;
  18574. e.mMapCamera = null;
  18575. e.mLoading = null;
  18576. e.mTips = null;
  18577. e.mGuideMask = null;
  18578. e.mI18n = null;
  18579. e.RED_POINT = null;
  18580. e.topNode = null;
  18581. e.profile = null;
  18582. e.bgmId = -1;
  18583. e.effectId = -1;
  18584. e.effectList = [];
  18585. return e;
  18586. }
  18587. e.prototype.onLoad = function() {
  18588. var t = this;
  18589. cc.game.setFrameRate(35);
  18590. this.viewManage = this.node.getComponent(a.default);
  18591. cc.view.resizeWithBrowserSize(!0);
  18592. this.resizeView();
  18593. cc.view.setResizeCallback(function() {
  18594. cc.log("view resize callback");
  18595. t.resizeView();
  18596. });
  18597. this.profile = this.node.getComponent(p.default);
  18598. this.loginHttp = new s.default(this.profile.url);
  18599. };
  18600. e.prototype.start = function() {
  18601. var t = this;
  18602. this.mI18n.__init(function() {
  18603. cc.log("语言测试 rabbit:", c.default.t("rabbit"));
  18604. t.toHotUpdate();
  18605. });
  18606. };
  18607. e.prototype.resizeView = function() {
  18608. var t = cc.winSize, e = t.width / t.height;
  18609. if (e > 1.78) {
  18610. cc.Canvas.instance.fitWidth = !1;
  18611. cc.Canvas.instance.fitHeight = !0;
  18612. } else {
  18613. cc.Canvas.instance.fitWidth = !0;
  18614. cc.Canvas.instance.fitHeight = !1;
  18615. }
  18616. cc.log("屏幕尺寸:", t.width, t.height);
  18617. cc.log("canvas尺寸:", cc.Canvas.instance.node.width, cc.Canvas.instance.node.height);
  18618. cc.log("屏幕比例:", e);
  18619. };
  18620. Object.defineProperty(e.prototype, "i18n", {
  18621. get: function() {
  18622. return c.default;
  18623. },
  18624. enumerable: !1,
  18625. configurable: !0
  18626. });
  18627. e.prototype.startLoad = function() {
  18628. this.mLoading.active = !0;
  18629. };
  18630. e.prototype.stopLoad = function() {
  18631. this.mLoading.active = !1;
  18632. };
  18633. e.prototype.showTips = function(t) {
  18634. var e = cc.instantiate(this.mTips);
  18635. e.getComponent(l.default).setLabel(c.default.t(t));
  18636. var o = cc.winSize;
  18637. e.y += o.height / 5;
  18638. e.parent = this.node;
  18639. };
  18640. e.prototype.showTips1 = function(t) {
  18641. var e = this.sManage.getRewards(t);
  18642. if (!(e.length <= 0)) {
  18643. for (var o = "<color=#FFFFFF>" + c.default.t("获得道具") + ":</c><color=#0fffff>", i = 0; i < e.length; i++) {
  18644. var n = e[i];
  18645. o += n.name + "x" + n.count + ";";
  18646. }
  18647. o += "</c>";
  18648. this.showTips(o);
  18649. }
  18650. };
  18651. e.prototype.showReward = function(t, e, o, i) {
  18652. var n = this.sManage.getRewards(t);
  18653. this.showRewardList(n, e, o, i);
  18654. };
  18655. e.prototype.showRewardList = function(t, e, o, i) {
  18656. var n = this;
  18657. t.length > 0 ? this.viewManage.loadFunc(a.GameViewType.reward, function(r) {
  18658. var s = r;
  18659. s.init(t);
  18660. o && (s.mTitle.string = c.default.t(o));
  18661. s.mAbout.string = i ? c.default.t(i) : "";
  18662. e && s.setCloseCallback(function() {
  18663. e();
  18664. });
  18665. r.show();
  18666. n.playerEffectByPath(a.AudioMgr.award);
  18667. }) : e && e();
  18668. };
  18669. e.prototype.toHotUpdate = function() {
  18670. if (f.default.userData) {
  18671. this.userData = f.default.userData;
  18672. this.viewManage.loadFunc(a.GameViewType.area, function(t) {
  18673. t.show();
  18674. });
  18675. } else cc.sys.isNative ? this.viewManage.loadFunc(a.GameViewType.fqLogin, function(t) {
  18676. t.show();
  18677. }) : this.viewManage.loadFunc(a.GameViewType.login, function(t) {
  18678. t.show();
  18679. });
  18680. };
  18681. e.prototype.playMusicByClip = function(t) {
  18682. var e = this.player.setting;
  18683. if (-1 != this.bgmId) {
  18684. cc.audioEngine.stopMusic();
  18685. this.bgmId = -1;
  18686. }
  18687. e.music_ON_OFF_1 ? cc.audioEngine.setMusicVolume(e.music_Slider_1) : cc.audioEngine.setMusicVolume(0);
  18688. this.bgmId = cc.audioEngine.playMusic(t, !0);
  18689. };
  18690. e.prototype.playMusicByPath = function(t) {
  18691. var e = this;
  18692. "" != t && cc.resources.load(t, cc.AudioClip, function(t, o) {
  18693. t ? console.log("===播放背景音乐 err===", t) : e.playMusicByClip(o);
  18694. });
  18695. };
  18696. e.prototype.playerEffectByClip = function(t) {
  18697. var e = this.player.setting;
  18698. if (e.music_ON_OFF_2) {
  18699. if (-1 != this.effectId) {
  18700. cc.audioEngine.stopEffect(this.effectId);
  18701. this.effectId = -1;
  18702. }
  18703. this.effectId = cc.audioEngine.playEffect(t, !1);
  18704. cc.audioEngine.setEffectsVolume(e.music_Slider_2);
  18705. }
  18706. };
  18707. e.prototype.playerEffectByPath = function(t) {
  18708. var e = this;
  18709. "" != t && this.player.setting.music_ON_OFF_2 && cc.resources.load(t, cc.AudioClip, function(t, o) {
  18710. t ? console.log("===播放背景音效 err===", t) : e.playerEffectByClip(o);
  18711. });
  18712. };
  18713. e.prototype.pauseMusic = function() {
  18714. this.player.setting.music_ON_OFF_1 || -1 != this.bgmId && cc.audioEngine.pauseMusic();
  18715. };
  18716. e.prototype.resumeMusic = function() {
  18717. var t = this.player.setting;
  18718. if (t.music_ON_OFF_1 && -1 != this.bgmId) {
  18719. cc.audioEngine.resumeMusic();
  18720. cc.audioEngine.setMusicVolume(t.music_Slider_1);
  18721. }
  18722. };
  18723. e.prototype.stopAll = function() {
  18724. this.effectList = [];
  18725. cc.audioEngine.stopAll();
  18726. };
  18727. r([ m(cc.Camera) ], e.prototype, "mMapCamera", void 0);
  18728. r([ m(cc.Node) ], e.prototype, "mLoading", void 0);
  18729. r([ m(cc.Prefab) ], e.prototype, "mTips", void 0);
  18730. r([ m(u.default) ], e.prototype, "mGuideMask", void 0);
  18731. r([ m(c.default) ], e.prototype, "mI18n", void 0);
  18732. r([ m(cc.SpriteFrame) ], e.prototype, "RED_POINT", void 0);
  18733. r([ m(cc.Node) ], e.prototype, "topNode", void 0);
  18734. return r([ d ], e);
  18735. }(cc.Component);
  18736. o.default = y;
  18737. cc._RF.pop();
  18738. }, {
  18739. "../i18n/i18n": "i18n",
  18740. "../login/AdminLogin": "AdminLogin",
  18741. "../plot/GuideMask": "GuideMask",
  18742. "../util/CHttp": "CHttp",
  18743. "../util/Profile": "Profile",
  18744. "../util/Tips": "Tips",
  18745. "./ViewManage": "ViewManage"
  18746. } ],
  18747. MiniMapItem: [ function(t, e, o) {
  18748. "use strict";
  18749. cc._RF.push(e, "7c8c3JfJ21FoqefCGH8C01y", "MiniMapItem");
  18750. var i, n = this && this.__extends || (i = function(t, e) {
  18751. return (i = Object.setPrototypeOf || {
  18752. __proto__: []
  18753. } instanceof Array && function(t, e) {
  18754. t.__proto__ = e;
  18755. } || function(t, e) {
  18756. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  18757. })(t, e);
  18758. }, function(t, e) {
  18759. i(t, e);
  18760. function o() {
  18761. this.constructor = t;
  18762. }
  18763. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  18764. }), r = this && this.__decorate || function(t, e, o, i) {
  18765. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  18766. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  18767. return r > 3 && c && Object.defineProperty(e, o, c), c;
  18768. };
  18769. Object.defineProperty(o, "__esModule", {
  18770. value: !0
  18771. });
  18772. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  18773. n(e, t);
  18774. function e() {
  18775. var e = null !== t && t.apply(this, arguments) || this;
  18776. e.mIcon = null;
  18777. e.mStarNode = null;
  18778. e.mStarx = [];
  18779. e.mId = null;
  18780. e.starCount = 0;
  18781. return e;
  18782. }
  18783. e.prototype.onLoad = function() {
  18784. this.mStarNode || (this.mStarNode = this.node.children[0].children[0]);
  18785. this.mId.string = "" + this._stageData.id;
  18786. this.starCount = this.getStarCount();
  18787. for (var t = this.mStarNode.children, e = 0; e < t.length; e++) {
  18788. var o = t[e].getComponent(cc.Sprite);
  18789. e < this.starCount ? o.spriteFrame = this.mStarx[1] : o.spriteFrame = this.mStarx[0];
  18790. }
  18791. };
  18792. e.prototype.setStar = function(t) {
  18793. this.mStarNode.children[t].getComponent(cc.Sprite).spriteFrame = this.mStarx[1];
  18794. };
  18795. e.prototype.setCallback = function(t) {
  18796. this.callback = t;
  18797. };
  18798. e.prototype.onclick = function() {
  18799. var t = this.stage.main;
  18800. t.player.stage.stageIndex >= this._stageData.id - 1 ? this.callback(this) : t.showTips("关卡还未开启");
  18801. };
  18802. e.prototype.getStarCount = function() {
  18803. var t = this.stage.main.player.stage.data[this._stageData.id];
  18804. return t ? t.starCount : 0;
  18805. };
  18806. e.prototype.getStarCount1 = function() {
  18807. var t = this.stage.main.player.stage, e = t.data[this._stageData.id], o = 0;
  18808. t.stageIndex > this._stageData.id - 1 && o++;
  18809. if (null != e) {
  18810. this.getCount(this._stageData.goodId1) >= this._stageData.goodCount1 && o++;
  18811. this.getCount(this._stageData.goodId2) >= this._stageData.goodCount2 && o++;
  18812. }
  18813. return o;
  18814. };
  18815. e.prototype.getCount = function(t) {
  18816. var e = this.stage.main.player.stage.data[this._stageData.id];
  18817. if (e && e.good) {
  18818. var o = e.good["" + t];
  18819. return null == o ? 0 : o;
  18820. }
  18821. return 0;
  18822. };
  18823. r([ s(cc.Sprite) ], e.prototype, "mIcon", void 0);
  18824. r([ s(cc.Node) ], e.prototype, "mStarNode", void 0);
  18825. r([ s([ cc.SpriteFrame ]) ], e.prototype, "mStarx", void 0);
  18826. r([ s(cc.Label) ], e.prototype, "mId", void 0);
  18827. return r([ a ], e);
  18828. }(cc.Component);
  18829. o.default = p;
  18830. cc._RF.pop();
  18831. }, {} ],
  18832. MiniMap: [ function(t, e, o) {
  18833. "use strict";
  18834. cc._RF.push(e, "18b05cMT/VEYZeJhJXahevO", "MiniMap");
  18835. var i, n = this && this.__extends || (i = function(t, e) {
  18836. return (i = Object.setPrototypeOf || {
  18837. __proto__: []
  18838. } instanceof Array && function(t, e) {
  18839. t.__proto__ = e;
  18840. } || function(t, e) {
  18841. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  18842. })(t, e);
  18843. }, function(t, e) {
  18844. i(t, e);
  18845. function o() {
  18846. this.constructor = t;
  18847. }
  18848. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  18849. }), r = this && this.__decorate || function(t, e, o, i) {
  18850. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  18851. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  18852. return r > 3 && c && Object.defineProperty(e, o, c), c;
  18853. };
  18854. Object.defineProperty(o, "__esModule", {
  18855. value: !0
  18856. });
  18857. var c = t("./MiniMapItem"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  18858. n(e, t);
  18859. function e() {
  18860. var e = null !== t && t.apply(this, arguments) || this;
  18861. e.touchLayer = null;
  18862. e.mapLayer = null;
  18863. e.mStageNode = null;
  18864. return e;
  18865. }
  18866. e.prototype.onLoad = function() {
  18867. for (var t = this, e = this.stage.main.player.stage, o = 0, i = this.mStageNode.children, n = 0; n < i.length; n++) {
  18868. var r = i[n], a = r.getComponent(c.default);
  18869. if (a) {
  18870. a.stage = this.stage;
  18871. a._stageData = this.sceneData.list[o++];
  18872. a.setCallback(function(e) {
  18873. t.onclickItem(e);
  18874. });
  18875. e.stageIndex >= a._stageData.id - 1 ? r.active = !0 : r.active = !1;
  18876. }
  18877. }
  18878. };
  18879. e.prototype.start = function() {
  18880. if (1 == this.stage.inGuide) {
  18881. this.stage.inGuide = 2;
  18882. this.openGuide();
  18883. }
  18884. };
  18885. e.prototype.flushOpen = function() {
  18886. for (var t = this.stage.main.player.stage, e = this.mStageNode.children, o = 0; o < e.length; o++) {
  18887. var i = e[o], n = i.getComponent(c.default);
  18888. n && (t.stageIndex >= n._stageData.id - 1 ? i.active = !0 : i.active = !1);
  18889. }
  18890. };
  18891. e.prototype.onEnable = function() {
  18892. var t = this;
  18893. this.flushOpen();
  18894. if (1 != this.stage.inGuide) {
  18895. var e = cc.winSize, o = 0;
  18896. this.touchLayer.on(cc.Node.EventType.TOUCH_START, function() {
  18897. o = 0;
  18898. t.touchLayer._touchListener.setSwallowTouches(!1);
  18899. });
  18900. this.touchLayer.on(cc.Node.EventType.TOUCH_MOVE, function(i) {
  18901. ++o > 5 && t.touchLayer._touchListener.setSwallowTouches(!0);
  18902. var n = i.getDelta();
  18903. t.mapLayer.x += n.x;
  18904. t.mapLayer.y += n.y;
  18905. t.mapLayer.x < e.width - t.mapLayer.width && (t.mapLayer.x = e.width - t.mapLayer.width);
  18906. t.mapLayer.x > 0 && (t.mapLayer.x = 0);
  18907. t.mapLayer.y < e.height - t.mapLayer.height && (t.mapLayer.y = e.height - t.mapLayer.height);
  18908. t.mapLayer.y > 0 && (t.mapLayer.y = 0);
  18909. });
  18910. this.touchLayer.on(cc.Node.EventType.TOUCH_CANCEL, function() {
  18911. t.touchLayer._touchListener.setSwallowTouches(!1);
  18912. });
  18913. }
  18914. };
  18915. e.prototype.onDisable = function() {
  18916. this.touchLayer.off(cc.Node.EventType.TOUCH_START);
  18917. this.touchLayer.off(cc.Node.EventType.TOUCH_MOVE);
  18918. this.touchLayer.off(cc.Node.EventType.TOUCH_END);
  18919. this.touchLayer.off(cc.Node.EventType.TOUCH_CANCEL);
  18920. };
  18921. e.prototype.onclickItem = function(t) {
  18922. if (this.callback) {
  18923. this.callback(t);
  18924. this.clickCallback && this.clickCallback();
  18925. }
  18926. };
  18927. e.prototype.setCallback = function(t) {
  18928. this.callback = t;
  18929. };
  18930. e.prototype.setClickCallback = function(t) {
  18931. this.clickCallback = t;
  18932. };
  18933. e.prototype.openGuide = function() {
  18934. var t = this.stage.main.mGuideMask;
  18935. t.setTargetNode(this.mStageNode.children[0]);
  18936. t.show();
  18937. this.setClickCallback(function() {
  18938. t.close();
  18939. });
  18940. };
  18941. r([ p(cc.Node) ], e.prototype, "touchLayer", void 0);
  18942. r([ p(cc.Node) ], e.prototype, "mapLayer", void 0);
  18943. r([ p(cc.Node) ], e.prototype, "mStageNode", void 0);
  18944. return r([ s ], e);
  18945. }(cc.Component);
  18946. o.default = l;
  18947. cc._RF.pop();
  18948. }, {
  18949. "./MiniMapItem": "MiniMapItem"
  18950. } ],
  18951. MyZoneItem: [ function(t, e, o) {
  18952. "use strict";
  18953. cc._RF.push(e, "0d6a2BEZr1AYZHAN6KRG9pw", "MyZoneItem");
  18954. var i, n = this && this.__extends || (i = function(t, e) {
  18955. return (i = Object.setPrototypeOf || {
  18956. __proto__: []
  18957. } instanceof Array && function(t, e) {
  18958. t.__proto__ = e;
  18959. } || function(t, e) {
  18960. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  18961. })(t, e);
  18962. }, function(t, e) {
  18963. i(t, e);
  18964. function o() {
  18965. this.constructor = t;
  18966. }
  18967. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  18968. }), r = this && this.__decorate || function(t, e, o, i) {
  18969. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  18970. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  18971. return r > 3 && c && Object.defineProperty(e, o, c), c;
  18972. };
  18973. Object.defineProperty(o, "__esModule", {
  18974. value: !0
  18975. });
  18976. var c = t("../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  18977. n(e, t);
  18978. function e() {
  18979. var e = null !== t && t.apply(this, arguments) || this;
  18980. e.mZoneName = null;
  18981. e.mRoleName = null;
  18982. e.mRoleNode = null;
  18983. e.mNullNode = null;
  18984. return e;
  18985. }
  18986. e.prototype.onLoad = function() {
  18987. if (null != this.role) {
  18988. this.zone = this.area.getZoneById(this.role.zoneId);
  18989. this.mRoleNode.active = !0;
  18990. this.mNullNode.active = !1;
  18991. this.mRoleName.string = this.role.name;
  18992. } else {
  18993. this.mRoleNode.active = !1;
  18994. this.mNullNode.active = !0;
  18995. }
  18996. this.mZoneName.string = c.default.t(this.zone.name);
  18997. };
  18998. e.prototype.setCallback = function(t) {
  18999. this.callback = t;
  19000. };
  19001. e.prototype.onclick = function() {
  19002. this.callback(this);
  19003. };
  19004. r([ p(cc.Label) ], e.prototype, "mZoneName", void 0);
  19005. r([ p(cc.Label) ], e.prototype, "mRoleName", void 0);
  19006. r([ p(cc.Node) ], e.prototype, "mRoleNode", void 0);
  19007. r([ p(cc.Node) ], e.prototype, "mNullNode", void 0);
  19008. return r([ s ], e);
  19009. }(cc.Component);
  19010. o.default = l;
  19011. cc._RF.pop();
  19012. }, {
  19013. "../../i18n/i18n": "i18n"
  19014. } ],
  19015. PSprite: [ function(t, e, o) {
  19016. "use strict";
  19017. cc._RF.push(e, "f9652/vbedFzonYFA019XjH", "PSprite");
  19018. var i, n = this && this.__extends || (i = function(t, e) {
  19019. return (i = Object.setPrototypeOf || {
  19020. __proto__: []
  19021. } instanceof Array && function(t, e) {
  19022. t.__proto__ = e;
  19023. } || function(t, e) {
  19024. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  19025. })(t, e);
  19026. }, function(t, e) {
  19027. i(t, e);
  19028. function o() {
  19029. this.constructor = t;
  19030. }
  19031. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  19032. }), r = this && this.__decorate || function(t, e, o, i) {
  19033. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  19034. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  19035. return r > 3 && c && Object.defineProperty(e, o, c), c;
  19036. };
  19037. Object.defineProperty(o, "__esModule", {
  19038. value: !0
  19039. });
  19040. var c = t("../../../util/CMath"), a = t("./FSprite"), s = cc._decorator, p = s.ccclass, l = (s.property,
  19041. function(t) {
  19042. n(e, t);
  19043. function e() {
  19044. var e = null !== t && t.apply(this, arguments) || this;
  19045. e.isFollow = !1;
  19046. e.PosList = [];
  19047. e.RecordGap = 3;
  19048. e.StopCount = 7;
  19049. e.isFloowStart = !1;
  19050. return e;
  19051. }
  19052. e.prototype.setLeader = function(t) {
  19053. this.inFront = t;
  19054. this.node.x = this.inFront.node.x;
  19055. this.node.y = this.inFront.node.y;
  19056. this.isFollow = !0;
  19057. };
  19058. e.prototype.startFollow = function() {
  19059. var t = this;
  19060. if (!this.isFloowStart && !this.isFollow) {
  19061. this.setShooting(!1);
  19062. this.isFloowStart = !0;
  19063. this.PosList = [];
  19064. var e = this.ff.mainSprite.node.getPosition(), o = cc.v2();
  19065. o.x = e.x;
  19066. o.y = e.y;
  19067. this.playAction(a.SpriteActionType.run, !0);
  19068. cc.tween(this.node).sequence(cc.moveTo(.5, o), cc.callFunc(function() {
  19069. t.playAction(a.SpriteActionType.stand, !0);
  19070. t.tmpActionType = null;
  19071. t.isFollow = !0;
  19072. t.isFloowStart = !1;
  19073. })).start();
  19074. }
  19075. };
  19076. e.prototype.stopFollow = function() {
  19077. this.isFollow = !1;
  19078. };
  19079. e.prototype.update = function(t) {
  19080. if (!this.gamePause && this.inFront) if (this.PosList.length > 0) if (this.isFollow) {
  19081. var e = this.inFront.node.getPosition(), o = this.PosList[this.PosList.length - 1];
  19082. cc.Vec2.distance(e, o) > this.RecordGap && this.PosList.push(e);
  19083. if (this.PosList.length > this.StopCount) {
  19084. var i = this.node.getPosition(), n = this.PosList[0];
  19085. this.updateSpineF(i, n) && (this.tmpActionType = null);
  19086. this.moveTo(n, t);
  19087. this.isWalk = !0;
  19088. this.playAction(a.SpriteActionType.run, !0);
  19089. } else {
  19090. this.isWalk = this.inFront.isWalk;
  19091. this.isWalk ? this.playAction(a.SpriteActionType.run, !0) : this.playAction(a.SpriteActionType.stand, !0);
  19092. }
  19093. for (;this.PosList.length > 0 && cc.Vec2.distance(this.node.getPosition(), this.PosList[0]) <= this.RecordGap; ) this.PosList.shift();
  19094. } else {
  19095. this.tmpActionType = null;
  19096. this.isFloowStart || this.updateMove(t);
  19097. } else this.isFloowStart || this.PosList.push(this.inFront.node.getPosition());
  19098. };
  19099. e.prototype.updateSpineF = function(t, e) {
  19100. var o = this.spine, i = Math.floor(t.x), n = Math.floor(e.x);
  19101. Math.abs(i - n) < 2 || (i - n > 0 ? this.setLR(-1) : this.setLR(1));
  19102. if (o == this.spine) return !1;
  19103. o && (o.node.active = !1);
  19104. this.spine.node.active = !0;
  19105. return !0;
  19106. };
  19107. e.prototype.setPosition = function(t) {
  19108. this.node.setPosition(t);
  19109. this.PosList = [];
  19110. };
  19111. e.prototype.removeSelf = function() {
  19112. var t = this;
  19113. this.playAction2(a.SpriteActionType.dead, !1, function() {
  19114. t.setGhost();
  19115. });
  19116. };
  19117. e.prototype.setGhost = function() {
  19118. var t = this;
  19119. cc.resources.load("prefab/monter/ghost", cc.Prefab, function(e, o) {
  19120. if (e) cc.error(e); else {
  19121. var i = cc.instantiate(o), n = i.getComponent(sp.Skeleton);
  19122. i.parent = t.node.getChildByName("juese01");
  19123. t.spine.node.active = !1;
  19124. t.spine = n;
  19125. for (var r = 0; r < t.mPanels.length; r++) t.mPanels[r].setClose();
  19126. }
  19127. });
  19128. };
  19129. e.prototype.tangentMove = function(t) {
  19130. var e = this, o = this.node.getPosition(), i = t.getPosition(), n = 180 * c.default.getAngle(o, i) / Math.PI;
  19131. c.default.getRandom(0, 1) > 0 ? n += 90 : n -= 90;
  19132. n > 180 && (n -= 180);
  19133. n < -180 && (n += 180);
  19134. var r = this.getDir(n);
  19135. cc.tween(this.node).sequence(cc.delayTime(.5), cc.callFunc(function() {
  19136. e.setDir(r);
  19137. })).start();
  19138. };
  19139. e.prototype.getDir = function(t) {
  19140. return t >= -30 && t < 30 ? {
  19141. x: 1.4,
  19142. y: 0
  19143. } : t >= 30 && t < 60 ? {
  19144. x: 1,
  19145. y: 1
  19146. } : t >= 60 && t < 120 ? {
  19147. x: 0,
  19148. y: 1.4
  19149. } : t >= 120 && t < 150 ? {
  19150. x: -1,
  19151. y: 1
  19152. } : t >= 150 && t < 180 ? {
  19153. x: -1.4,
  19154. y: 0
  19155. } : t >= -180 && t < -150 ? {
  19156. x: -1.4,
  19157. y: 0
  19158. } : t >= -150 && t < -120 ? {
  19159. x: -1,
  19160. y: -1
  19161. } : t >= -120 && t < -60 ? {
  19162. x: 0,
  19163. y: -1.4
  19164. } : t >= -60 && t < -30 ? {
  19165. x: 1,
  19166. y: -1
  19167. } : void 0;
  19168. };
  19169. return r([ p ], e);
  19170. }(a.default));
  19171. o.default = l;
  19172. cc._RF.pop();
  19173. }, {
  19174. "../../../util/CMath": "CMath",
  19175. "./FSprite": "FSprite"
  19176. } ],
  19177. Pack: [ function(t, e, o) {
  19178. "use strict";
  19179. cc._RF.push(e, "c368bmHPt9AaIdo+bsJ+oDf", "Pack");
  19180. var i, n = this && this.__extends || (i = function(t, e) {
  19181. return (i = Object.setPrototypeOf || {
  19182. __proto__: []
  19183. } instanceof Array && function(t, e) {
  19184. t.__proto__ = e;
  19185. } || function(t, e) {
  19186. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  19187. })(t, e);
  19188. }, function(t, e) {
  19189. i(t, e);
  19190. function o() {
  19191. this.constructor = t;
  19192. }
  19193. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  19194. }), r = this && this.__decorate || function(t, e, o, i) {
  19195. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  19196. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  19197. return r > 3 && c && Object.defineProperty(e, o, c), c;
  19198. };
  19199. Object.defineProperty(o, "__esModule", {
  19200. value: !0
  19201. });
  19202. var c = t("../../common/GoodItem"), a = t("../../../main/ViewObject"), s = t("../../../main/ViewManage"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  19203. n(e, t);
  19204. function e() {
  19205. var e = null !== t && t.apply(this, arguments) || this;
  19206. e.mContent = [];
  19207. e.mGoodItem = null;
  19208. e.curInset = 0;
  19209. return e;
  19210. }
  19211. e.prototype.httpEvent = function(t) {
  19212. var e = t.data;
  19213. null != e._equip && this.flushEquip();
  19214. null != e._pack && this.flushGood();
  19215. };
  19216. e.prototype.onLoad = function() {
  19217. this.mContent[1].active = !1;
  19218. this.flush();
  19219. };
  19220. e.prototype.flush = function() {
  19221. this.flushGood();
  19222. this.flushEquip();
  19223. };
  19224. e.prototype.flushGood = function() {
  19225. var t = this, e = this.main.player.pack, o = 0, i = this.mContent[0];
  19226. i.children.length && i.removeAllChildren();
  19227. for (var n in e) {
  19228. var r = e[n];
  19229. if (r > 0) {
  19230. var a = {
  19231. id: n,
  19232. count: r
  19233. };
  19234. this.addGoodItem(i);
  19235. var s = i.children[o].getComponent(c.default);
  19236. s.initGood(this.main, a);
  19237. 5 == s.good.type || 3 == s.good.type ? s.setCallback(function(e) {
  19238. t.openEatFood(e);
  19239. }) : s.setCallback(function(e) {
  19240. t.openGoodAbout(e);
  19241. });
  19242. o++;
  19243. }
  19244. }
  19245. };
  19246. e.prototype.flushEquip = function() {
  19247. var t = this, e = this.main.player.equip, o = 0, i = this.mContent[1];
  19248. i.children.length && i.removeAllChildren();
  19249. for (var n = 0; n < e.length; n++) {
  19250. var r = e[n];
  19251. this.addGoodItem(i);
  19252. var a = i.children[o].getComponent(c.default);
  19253. a.initEquip(this.main, r);
  19254. a.node.zIndex = this.main.player.equip.length - a.equip.id;
  19255. a.setCallback(function(e) {
  19256. t.openGoodAbout(e);
  19257. });
  19258. o++;
  19259. }
  19260. };
  19261. e.prototype.sortEquip = function() {
  19262. var t = this.main.player.equip;
  19263. t.sort(function(t, e) {
  19264. return e.id - t.id;
  19265. });
  19266. return t;
  19267. };
  19268. e.prototype.addGoodItem = function(t) {
  19269. cc.instantiate(this.mGoodItem).parent = t;
  19270. };
  19271. e.prototype.openGoodAbout = function(t) {
  19272. this.main.viewManage.loadFunc(s.GameViewType.goodAbout, function(e) {
  19273. e.init(t, !1);
  19274. e.show();
  19275. });
  19276. };
  19277. e.prototype.openEatFood = function(t) {
  19278. var e = this;
  19279. this.main.viewManage.loadFunc(s.GameViewType.goodEat, function(o) {
  19280. o.initGood(e, t);
  19281. o.show();
  19282. });
  19283. };
  19284. e.prototype.onClickInset = function(t, e) {
  19285. this.curInset = Number(e);
  19286. this.mContent.forEach(function(t, o) {
  19287. t.active = o == Number(e);
  19288. });
  19289. };
  19290. r([ u([ cc.Node ]) ], e.prototype, "mContent", void 0);
  19291. r([ u(cc.Prefab) ], e.prototype, "mGoodItem", void 0);
  19292. return r([ l ], e);
  19293. }(a.default);
  19294. o.default = f;
  19295. cc._RF.pop();
  19296. }, {
  19297. "../../../main/ViewManage": "ViewManage",
  19298. "../../../main/ViewObject": "ViewObject",
  19299. "../../common/GoodItem": "GoodItem"
  19300. } ],
  19301. PayShopItem: [ function(t, e, o) {
  19302. "use strict";
  19303. cc._RF.push(e, "b4177ABxoNJbL4GfMGi5+xl", "PayShopItem");
  19304. var i, n = this && this.__extends || (i = function(t, e) {
  19305. return (i = Object.setPrototypeOf || {
  19306. __proto__: []
  19307. } instanceof Array && function(t, e) {
  19308. t.__proto__ = e;
  19309. } || function(t, e) {
  19310. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  19311. })(t, e);
  19312. }, function(t, e) {
  19313. i(t, e);
  19314. function o() {
  19315. this.constructor = t;
  19316. }
  19317. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  19318. }), r = this && this.__decorate || function(t, e, o, i) {
  19319. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  19320. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  19321. return r > 3 && c && Object.defineProperty(e, o, c), c;
  19322. };
  19323. Object.defineProperty(o, "__esModule", {
  19324. value: !0
  19325. });
  19326. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  19327. n(e, t);
  19328. function e() {
  19329. var e = null !== t && t.apply(this, arguments) || this;
  19330. e.mGold = null;
  19331. e.mGaveGold = null;
  19332. e.mRMB = null;
  19333. e.icon = null;
  19334. e.text = null;
  19335. return e;
  19336. }
  19337. e.prototype.init = function(t, e) {
  19338. this._payData = t;
  19339. this.main = e;
  19340. this.mGold.string = "" + t.gold;
  19341. this.mGaveGold.string = "+" + t.firstGive;
  19342. this.mRMB.string = "$" + t.usd;
  19343. this.initIcon(t.id);
  19344. this.showFirstGave();
  19345. };
  19346. e.prototype.initIcon = function(t) {
  19347. var e = this;
  19348. cc.resources.load("icon/shop/gold/" + t, cc.SpriteFrame, function(t, o) {
  19349. t ? cc.error(t) : e.icon.spriteFrame = o;
  19350. });
  19351. };
  19352. e.prototype.isFirstPay = function() {
  19353. return this.main.player.firstPayGave.indexOf(this._payData.id) > -1;
  19354. };
  19355. e.prototype.showFirstGave = function() {
  19356. this.text.active = !this.isFirstPay();
  19357. this.mGaveGold.node.active = !this.isFirstPay();
  19358. };
  19359. e.prototype.setCallback = function(t) {
  19360. this.callback = t;
  19361. };
  19362. e.prototype.onclick = function() {
  19363. this.callback(this);
  19364. };
  19365. r([ s(cc.Label) ], e.prototype, "mGold", void 0);
  19366. r([ s(cc.Label) ], e.prototype, "mGaveGold", void 0);
  19367. r([ s(cc.Label) ], e.prototype, "mRMB", void 0);
  19368. r([ s(cc.Sprite) ], e.prototype, "icon", void 0);
  19369. r([ s(cc.Node) ], e.prototype, "text", void 0);
  19370. return r([ a ], e);
  19371. }(cc.Component);
  19372. o.default = p;
  19373. cc._RF.pop();
  19374. }, {} ],
  19375. PayShopView: [ function(t, e, o) {
  19376. "use strict";
  19377. cc._RF.push(e, "523cb6At2RAbo8/BNKfkHhl", "PayShopView");
  19378. var i, n = this && this.__extends || (i = function(t, e) {
  19379. return (i = Object.setPrototypeOf || {
  19380. __proto__: []
  19381. } instanceof Array && function(t, e) {
  19382. t.__proto__ = e;
  19383. } || function(t, e) {
  19384. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  19385. })(t, e);
  19386. }, function(t, e) {
  19387. i(t, e);
  19388. function o() {
  19389. this.constructor = t;
  19390. }
  19391. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  19392. }), r = this && this.__decorate || function(t, e, o, i) {
  19393. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  19394. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  19395. return r > 3 && c && Object.defineProperty(e, o, c), c;
  19396. };
  19397. Object.defineProperty(o, "__esModule", {
  19398. value: !0
  19399. });
  19400. var c = t("../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  19401. n(e, t);
  19402. function e() {
  19403. var e = null !== t && t.apply(this, arguments) || this;
  19404. e.mContent = null;
  19405. e.mPayItem = null;
  19406. return e;
  19407. }
  19408. e.prototype.init = function() {};
  19409. r([ p(cc.Node) ], e.prototype, "mContent", void 0);
  19410. r([ p(cc.Prefab) ], e.prototype, "mPayItem", void 0);
  19411. return r([ s ], e);
  19412. }(c.default);
  19413. o.default = l;
  19414. cc._RF.pop();
  19415. }, {
  19416. "../../main/ViewObject": "ViewObject"
  19417. } ],
  19418. PetIcon: [ function(t, e, o) {
  19419. "use strict";
  19420. cc._RF.push(e, "45bd26GnpJMdrVfpOsZxq+L", "PetIcon");
  19421. var i, n = this && this.__extends || (i = function(t, e) {
  19422. return (i = Object.setPrototypeOf || {
  19423. __proto__: []
  19424. } instanceof Array && function(t, e) {
  19425. t.__proto__ = e;
  19426. } || function(t, e) {
  19427. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  19428. })(t, e);
  19429. }, function(t, e) {
  19430. i(t, e);
  19431. function o() {
  19432. this.constructor = t;
  19433. }
  19434. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  19435. }), r = this && this.__decorate || function(t, e, o, i) {
  19436. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  19437. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  19438. return r > 3 && c && Object.defineProperty(e, o, c), c;
  19439. };
  19440. Object.defineProperty(o, "__esModule", {
  19441. value: !0
  19442. });
  19443. var c = t("../data/RedPoint"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  19444. n(e, t);
  19445. function e() {
  19446. var e = null !== t && t.apply(this, arguments) || this;
  19447. e.mIcon = null;
  19448. e.mCheck = null;
  19449. e.mLeaderIcon = null;
  19450. return e;
  19451. }
  19452. o = e;
  19453. e.prototype.onLoad = function() {
  19454. this.mCheck.active = !1;
  19455. this.mLeaderIcon.active = !1;
  19456. };
  19457. e.prototype.flushIcon = function(t) {
  19458. var e = this, o = t.skin;
  19459. "30000" == o && (o = "" + this.data.id);
  19460. cc.resources.load("icon/role_head/" + o, cc.SpriteFrame, function(t, o) {
  19461. t ? cc.error(t) : e.mIcon.spriteFrame = o;
  19462. });
  19463. };
  19464. e.prototype.setCallback = function(t) {
  19465. this.callback = t;
  19466. };
  19467. e.prototype.onclick = function() {
  19468. if (!this.mCheck.active) {
  19469. for (var t = this.node.parent.children, e = 0; e < t.length; e++) {
  19470. var i = t[e];
  19471. i == this.node ? this.mCheck.active = !0 : i.getComponent(o).mCheck.active = !1;
  19472. }
  19473. if (this.callback) {
  19474. c.default.removeRed(this.node);
  19475. this.callback(this);
  19476. }
  19477. }
  19478. };
  19479. var o;
  19480. r([ p(cc.Sprite) ], e.prototype, "mIcon", void 0);
  19481. r([ p(cc.Node) ], e.prototype, "mCheck", void 0);
  19482. r([ p(cc.Node) ], e.prototype, "mLeaderIcon", void 0);
  19483. return o = r([ s ], e);
  19484. }(cc.Component);
  19485. o.default = l;
  19486. cc._RF.pop();
  19487. }, {
  19488. "../data/RedPoint": "RedPoint"
  19489. } ],
  19490. PetInfo: [ function(t, e, o) {
  19491. "use strict";
  19492. cc._RF.push(e, "5b17awOvO1MRKJAynLRP8Bm", "PetInfo");
  19493. var i, n = this && this.__extends || (i = function(t, e) {
  19494. return (i = Object.setPrototypeOf || {
  19495. __proto__: []
  19496. } instanceof Array && function(t, e) {
  19497. t.__proto__ = e;
  19498. } || function(t, e) {
  19499. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  19500. })(t, e);
  19501. }, function(t, e) {
  19502. i(t, e);
  19503. function o() {
  19504. this.constructor = t;
  19505. }
  19506. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  19507. }), r = this && this.__decorate || function(t, e, o, i) {
  19508. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  19509. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  19510. return r > 3 && c && Object.defineProperty(e, o, c), c;
  19511. };
  19512. Object.defineProperty(o, "__esModule", {
  19513. value: !0
  19514. });
  19515. var c = t("../../../i18n/i18n"), a = t("../../../main/ViewObject"), s = t("../../common/EquipViewAttr"), p = t("../../data/FFCalAttr"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  19516. n(e, t);
  19517. function e() {
  19518. var e = null !== t && t.apply(this, arguments) || this;
  19519. e.mZdl = null;
  19520. e.mAtk = null;
  19521. e.mDef = null;
  19522. e.mHp = null;
  19523. e.mSp = null;
  19524. e.mFAttrNode = null;
  19525. e.mFAttrItem = null;
  19526. e.mSkillNode = null;
  19527. e.mSkillAbout = null;
  19528. e.mSkillIcon = null;
  19529. return e;
  19530. }
  19531. e.prototype.show = function(t) {
  19532. if (t) {
  19533. this.prev = t;
  19534. this.prev.__close();
  19535. }
  19536. this.main.viewManage.popView1(this.node);
  19537. this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this);
  19538. };
  19539. e.prototype.init = function(t) {
  19540. var e = this;
  19541. this.node.zIndex = 1;
  19542. var o = p.default.getAttr(this.main, t.data);
  19543. this.mZdl.string = "" + o.zdl;
  19544. this.mAtk.string = "" + o.atk;
  19545. this.mDef.string = "" + o.def;
  19546. this.mHp.string = "" + o.hp;
  19547. this.mSp.string = "" + o.sp;
  19548. if (o.attrs.length <= 0) this.mFAttrNode.active = !1; else {
  19549. this.mFAttrNode.children.forEach(function(t) {
  19550. "fsx_name" != t.name && t.destroy();
  19551. });
  19552. this.mFAttrNode.active = !0;
  19553. for (var i = 0; i < o.attrs.length; i++) {
  19554. var n = o.attrs[i], r = cc.instantiate(this.mFAttrItem);
  19555. r.getComponent(s.default).init(this.main, n);
  19556. r.parent = this.mFAttrNode;
  19557. }
  19558. }
  19559. if (o.weaponSkill > 0) {
  19560. this.mSkillNode.active = !0;
  19561. var a = this.main.sManage.getSkillById(o.weaponSkill);
  19562. this.mSkillAbout.string = c.default.t(a.about, {
  19563. VAL1: a.value1,
  19564. VAL2: a.value2,
  19565. VAL3: a.value3
  19566. });
  19567. cc.resources.load("icon/skill/" + a.icon, cc.SpriteFrame, function(t, o) {
  19568. t ? cc.error(t) : e.mSkillIcon.spriteFrame = o;
  19569. });
  19570. } else this.mSkillNode.active = !1;
  19571. };
  19572. r([ f(cc.Label) ], e.prototype, "mZdl", void 0);
  19573. r([ f(cc.Label) ], e.prototype, "mAtk", void 0);
  19574. r([ f(cc.Label) ], e.prototype, "mDef", void 0);
  19575. r([ f(cc.Label) ], e.prototype, "mHp", void 0);
  19576. r([ f(cc.Label) ], e.prototype, "mSp", void 0);
  19577. r([ f(cc.Node) ], e.prototype, "mFAttrNode", void 0);
  19578. r([ f(cc.Prefab) ], e.prototype, "mFAttrItem", void 0);
  19579. r([ f(cc.Node) ], e.prototype, "mSkillNode", void 0);
  19580. r([ f(cc.Label) ], e.prototype, "mSkillAbout", void 0);
  19581. r([ f(cc.Sprite) ], e.prototype, "mSkillIcon", void 0);
  19582. return r([ u ], e);
  19583. }(a.default);
  19584. o.default = h;
  19585. cc._RF.pop();
  19586. }, {
  19587. "../../../i18n/i18n": "i18n",
  19588. "../../../main/ViewObject": "ViewObject",
  19589. "../../common/EquipViewAttr": "EquipViewAttr",
  19590. "../../data/FFCalAttr": "FFCalAttr"
  19591. } ],
  19592. Player: [ function(t, e, o) {
  19593. "use strict";
  19594. cc._RF.push(e, "b832f2Zqs1CiL5SqCPnm+7e", "Player");
  19595. Object.defineProperty(o, "__esModule", {
  19596. value: !0
  19597. });
  19598. var i = t("../../../i18n/i18n"), n = t("../FFCalAttr"), r = function() {
  19599. function t(t) {
  19600. this.isNew = !0;
  19601. this.settingKey = "__setting";
  19602. this.readSetting();
  19603. if (t) {
  19604. this.role = t.role;
  19605. this.foodAttr = t.foodAttr;
  19606. this.role.name || (this.role.name = i.default.t("冒险者") + this.role.id);
  19607. this.roleIcon = t.roleIcon;
  19608. this.pet = t.pet;
  19609. this.godCard = t.godCard;
  19610. this.flushID();
  19611. this.equip = t.equip;
  19612. this.pack = t.pack;
  19613. this.firstPayGave = t.firstPayGave;
  19614. this.isNew = t.isNew;
  19615. this.flushIndex();
  19616. }
  19617. }
  19618. t.prototype.readSetting = function() {
  19619. var t = cc.sys.localStorage.getItem(this.settingKey);
  19620. this.setting = t ? JSON.parse(t) : {
  19621. music_ON_OFF_1: !0,
  19622. music_Slider_1: .5,
  19623. music_ON_OFF_2: !0,
  19624. music_Slider_2: .5
  19625. };
  19626. };
  19627. t.prototype.saveSetting = function() {
  19628. cc.sys.localStorage.setItem(this.settingKey, JSON.stringify(this.setting));
  19629. };
  19630. t.prototype.flushID = function() {
  19631. for (var t in this.pet) this.pet[t].id = parseInt(t);
  19632. };
  19633. t.prototype.getPet = function(t) {
  19634. return this.pet[t];
  19635. };
  19636. t.prototype.flushIndex = function() {
  19637. for (var t = 0; t < this.equip.length; t++) this.equip[t].__index = t;
  19638. };
  19639. t.prototype.getGoodCount = function(t) {
  19640. var e = this.pack["" + t];
  19641. return null == e ? 0 : e;
  19642. };
  19643. t.prototype.httpEvent = function(t) {
  19644. var e = t.data;
  19645. if (null != e._role) {
  19646. null != e._role.power && (this.role.power = e._role.power);
  19647. null != e._role._money && (this.role.money += e._role._money);
  19648. null != e._role._gold && (this.role.gold += e._role._gold);
  19649. null != e._role.gold && (this.role.gold = e._role.gold);
  19650. null != e._role.renameCount && (this.role.renameCount += e._role.renameCount);
  19651. e._firstPayGave && (this.firstPayGave = e._firstPayGave);
  19652. }
  19653. if (null != e._pack) for (var o = 0; o < e._pack.length; o++) {
  19654. var i = e._pack[o];
  19655. if (null != (a = this.pack["" + i.id])) {
  19656. a += i.count;
  19657. this.pack["" + i.id] = a;
  19658. } else this.pack["" + i.id] = i.count;
  19659. }
  19660. var n = !1;
  19661. if (null != e._equipRemove) {
  19662. var r = [];
  19663. for (o = 0; o < this.equip.length; o++) if (e._equipRemove.indexOf(o) < 0) {
  19664. i = this.equip[o];
  19665. r.push(i);
  19666. }
  19667. this.equip = r;
  19668. n = !0;
  19669. }
  19670. if (null != e._equip) {
  19671. for (o = 0; o < e._equip.length; o++) {
  19672. i = e._equip[o];
  19673. this.equip.push(i);
  19674. }
  19675. n = !0;
  19676. }
  19677. if (null != e._roleIcon) for (o = 0; o < e._roleIcon.length; o++) {
  19678. i = e._roleIcon[o];
  19679. this.roleIcon.data.push(i);
  19680. }
  19681. n && this.flushIndex();
  19682. if (null != e._pet) for (var c in e._pet) {
  19683. var a;
  19684. i = e._pet[c];
  19685. if (null == (a = this.pet[c])) {
  19686. this.pet[c] = i;
  19687. i.id = parseInt(c);
  19688. } else a.equips = i.equips;
  19689. }
  19690. if (null != e._godCard) for (o = 0; o < e._godCard.length; o++) {
  19691. i = e._godCard[o];
  19692. this.godCard[i.id] = i;
  19693. }
  19694. };
  19695. t.prototype.getFight = function(t) {
  19696. var e = [];
  19697. for (var o in this.pet) {
  19698. var i = this.pet[o];
  19699. e.push(n.default.getAttr(t, i));
  19700. }
  19701. return e;
  19702. };
  19703. t.prototype.flushZdl = function(t) {
  19704. var e = this.pet, o = 0;
  19705. for (var i in e) {
  19706. var r = e[i];
  19707. o += n.default.getAttr(t, r).zdl;
  19708. }
  19709. this.role.zdl = o;
  19710. return o;
  19711. };
  19712. return t;
  19713. }();
  19714. o.default = r;
  19715. cc._RF.pop();
  19716. }, {
  19717. "../../../i18n/i18n": "i18n",
  19718. "../FFCalAttr": "FFCalAttr"
  19719. } ],
  19720. Plot1: [ function(t, e, o) {
  19721. "use strict";
  19722. cc._RF.push(e, "35cdbfTDYNJbahX56atcCpT", "Plot1");
  19723. var i, n = this && this.__extends || (i = function(t, e) {
  19724. return (i = Object.setPrototypeOf || {
  19725. __proto__: []
  19726. } instanceof Array && function(t, e) {
  19727. t.__proto__ = e;
  19728. } || function(t, e) {
  19729. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  19730. })(t, e);
  19731. }, function(t, e) {
  19732. i(t, e);
  19733. function o() {
  19734. this.constructor = t;
  19735. }
  19736. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  19737. }), r = this && this.__decorate || function(t, e, o, i) {
  19738. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  19739. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  19740. return r > 3 && c && Object.defineProperty(e, o, c), c;
  19741. };
  19742. Object.defineProperty(o, "__esModule", {
  19743. value: !0
  19744. });
  19745. var c = t("../../../../util/CMath"), a = t("../../bullet/BObject"), s = t("../../object/FSprite"), p = t("../../object/PSprite"), l = t("../dialog/FMapDialog"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  19746. n(e, t);
  19747. function e() {
  19748. var e = null !== t && t.apply(this, arguments) || this;
  19749. e.myspine = null;
  19750. e.mBullet = null;
  19751. e.mMapDialog = null;
  19752. e.mEffect = null;
  19753. e.mMonster = [];
  19754. e.mDx = [];
  19755. e.mAppleIcon = null;
  19756. return e;
  19757. }
  19758. e.prototype.onLoad = function() {};
  19759. e.prototype.onBeginContact = function(t, e, o) {
  19760. if ("A" == o.node.group) {
  19761. var i = o.node.getComponent(s.default);
  19762. if (i.hp > 0) {
  19763. this.ff = i.ff;
  19764. this.node.removeComponent(cc.PhysicsBoxCollider);
  19765. this.run();
  19766. }
  19767. }
  19768. };
  19769. e.prototype.run = function() {
  19770. var t = this;
  19771. this.ff.pauseSprite(!0);
  19772. this.ff.mBlockInputEvents.active = !0;
  19773. var e = this.ff.mMap, o = cc.winSize, i = e.mCamera, n = this.node.x - o.width / 2, r = this.node.y - o.height / 2;
  19774. cc.tween(i.node).sequence(cc.moveTo(.7, cc.v2(n, r)), cc.callFunc(function() {
  19775. t.d1();
  19776. })).start();
  19777. };
  19778. e.prototype.d1 = function() {
  19779. var t = this, e = new l.default(this.ff, this.mMapDialog), o = cc.v2();
  19780. o.x = this.node.x + this.mDx[0].x;
  19781. o.y = this.node.y + this.mDx[0].y + this.mDx[0].height;
  19782. e.showDialog([ "解决她" ], o, null, function() {
  19783. t.playAni1();
  19784. });
  19785. };
  19786. e.prototype.mDead = function(t) {
  19787. var e = t.getComponent(sp.Skeleton);
  19788. e.setCompleteListener(function() {
  19789. t.destroy();
  19790. });
  19791. e.setEventListener(null);
  19792. e.setAnimation(0, s.SpriteActionType.dead, !1);
  19793. };
  19794. e.prototype.playAni1 = function() {
  19795. var t = this, e = cc.instantiate(this.mBullet), o = e.getComponent(a.default), i = o.mHitEffect;
  19796. o.destroy();
  19797. var n = this.myspine.node.getPosition();
  19798. n.y += this.myspine.node.height / 2;
  19799. var r = this.mDx[0].getPosition();
  19800. r.y += this.mDx[0].height / 2;
  19801. e.parent = this.node;
  19802. var s = 180 * c.default.getAngle(n, r) / Math.PI;
  19803. e.angle = s;
  19804. cc.tween(e).sequence(cc.moveTo(.5, r), cc.callFunc(function() {
  19805. e.destroy();
  19806. var o = cc.instantiate(i);
  19807. o.x = t.mDx[0].x;
  19808. o.y = t.mDx[0].y;
  19809. o.parent = t.node;
  19810. t.playAni2();
  19811. t.mDead(t.mDx[0]);
  19812. })).start();
  19813. };
  19814. e.prototype.playAni2 = function() {
  19815. var t = this, e = cc.instantiate(this.mBullet), o = e.getComponent(a.default), i = o.mHitEffect;
  19816. o.destroy();
  19817. var n = this.myspine.node.getPosition();
  19818. n.y += this.myspine.node.height / 2;
  19819. var r = this.mDx[1].getPosition();
  19820. r.y += this.mDx[1].height / 2;
  19821. e.parent = this.node;
  19822. var s = 180 * c.default.getAngle(n, r) / Math.PI;
  19823. e.angle = s;
  19824. cc.tween(e).sequence(cc.moveTo(.5, r), cc.callFunc(function() {
  19825. e.destroy();
  19826. var o = cc.instantiate(i);
  19827. o.x = t.mDx[1].x;
  19828. o.y = t.mDx[1].y;
  19829. o.parent = t.node;
  19830. t.mDead(t.mDx[1]);
  19831. t.d2();
  19832. })).start();
  19833. };
  19834. e.prototype.d2 = function() {
  19835. var t = this;
  19836. this.myspine.node.scaleX = 1;
  19837. var e = new l.default(this.ff, this.mMapDialog), o = cc.v2();
  19838. o.x = this.node.x + this.mDx[2].x;
  19839. o.y = this.node.y + this.mDx[2].y + this.mDx[2].height;
  19840. e.showDialog([ "妖...妖怪" ], o, null, function() {
  19841. t.d3();
  19842. });
  19843. };
  19844. e.prototype.d3 = function() {
  19845. var t = this, e = new l.default(this.ff, this.mMapDialog), o = cc.v2();
  19846. o.x = this.node.x + this.mDx[3].x;
  19847. o.y = this.node.y + this.mDx[3].y + this.mDx[3].height;
  19848. e.showDialog([ "快...快跑" ], o, null, function() {
  19849. t.playAni3();
  19850. });
  19851. };
  19852. e.prototype.playAni3 = function() {
  19853. var t = this, e = cc.instantiate(this.mBullet), o = e.getComponent(a.default), i = o.mHitEffect;
  19854. o.destroy();
  19855. var n = this.myspine.node.getPosition();
  19856. n.y += this.myspine.node.height / 2;
  19857. var r = this.mDx[2].getPosition();
  19858. r.y += this.mDx[2].height / 2;
  19859. e.parent = this.node;
  19860. var s = 180 * c.default.getAngle(n, r) / Math.PI;
  19861. e.angle = s;
  19862. cc.tween(e).sequence(cc.moveTo(.5, r), cc.callFunc(function() {
  19863. e.destroy();
  19864. var o = cc.instantiate(i);
  19865. o.x = t.mDx[2].x;
  19866. o.y = t.mDx[2].y;
  19867. o.parent = t.node;
  19868. t.playAni4();
  19869. t.mDead(t.mDx[2]);
  19870. })).start();
  19871. };
  19872. e.prototype.playAni4 = function() {
  19873. var t = this, e = cc.instantiate(this.mBullet), o = e.getComponent(a.default), i = o.mHitEffect;
  19874. o.destroy();
  19875. var n = this.myspine.node.getPosition();
  19876. n.y += this.myspine.node.height / 2;
  19877. var r = this.mDx[3].getPosition();
  19878. r.y += this.mDx[3].height / 2;
  19879. e.parent = this.node;
  19880. var s = 180 * c.default.getAngle(n, r) / Math.PI;
  19881. e.angle = s;
  19882. cc.tween(e).sequence(cc.moveTo(.5, r), cc.callFunc(function() {
  19883. e.destroy();
  19884. var o = cc.instantiate(i);
  19885. o.x = t.mDx[3].x;
  19886. o.y = t.mDx[3].y;
  19887. o.parent = t.node;
  19888. t.mDead(t.mDx[3]);
  19889. t.mainMove();
  19890. })).start();
  19891. };
  19892. e.prototype.mainMove = function() {
  19893. var t = this;
  19894. this.myspine.node.scaleX = -1;
  19895. var e = this.ff.mainSprite, o = this.node.getPosition();
  19896. o.x -= 180;
  19897. e.playAction2(s.SpriteActionType.run, !0);
  19898. cc.tween(e.node).sequence(cc.moveTo(1, o), cc.callFunc(function() {
  19899. e.playAction2(s.SpriteActionType.stand, !0);
  19900. t.d4();
  19901. })).start();
  19902. };
  19903. e.prototype.d4 = function() {
  19904. var t = this, e = new l.default(this.ff, this.mMapDialog), o = cc.v2();
  19905. o.x = this.node.x;
  19906. o.y = this.node.y + this.node.height;
  19907. e.showDialog([ "小巫女,你看到2个和我差不多大的人类吗?", "什么?你已经救了他们?", "太感谢你了,有没有什么我可以帮助你的?", "你要去传风带?", "#yun", "不要,我可不想跟你一起把小命丢了" ], o, this.myspine, function() {
  19908. t.mainLose();
  19909. });
  19910. };
  19911. e.prototype.mainLose = function() {
  19912. var t = this, e = new cc.Node();
  19913. e.group = "map";
  19914. e.addComponent(cc.Sprite).spriteFrame = this.mAppleIcon;
  19915. var o = this.ff.mainSprite;
  19916. e.x = o.node.x;
  19917. e.y = o.node.y + o.node.height / 2;
  19918. e.parent = this.ff.mMap.mSprites;
  19919. e.setScale(1.5);
  19920. var i = c.default.getRandom(-100, 100), n = cc.jumpBy(.5, cc.v2(i, 0), 100, 1);
  19921. cc.tween(e).sequence(n, cc.delayTime(.5), cc.callFunc(function() {
  19922. cc.tween(e).sequence(cc.moveTo(.5, t.node.getPosition()), cc.callFunc(function() {
  19923. t.d5();
  19924. e.destroy();
  19925. })).start();
  19926. cc.tween(e).repeatForever(cc.rotateBy(1, 360)).start();
  19927. })).start();
  19928. };
  19929. e.prototype.d5 = function() {
  19930. var t = this, e = new l.default(this.ff, this.mMapDialog), o = cc.v2();
  19931. o.x = this.node.x;
  19932. o.y = this.node.y + this.node.height;
  19933. e.showDialog([ "好吧,好吧,看在你救了我朋友的份上", "就陪你走一趟,耶稣菩萨保佑,我们一路平安", "出发" ], o, this.myspine, function() {
  19934. t.getPet();
  19935. });
  19936. };
  19937. e.prototype.getPet = function() {
  19938. var t = this, e = this.ff.mainSprite.node.getPosition();
  19939. e.x -= this.node.x;
  19940. e.y -= this.node.y;
  19941. this.myspine.setAnimation(0, s.SpriteActionType.run, !0);
  19942. cc.tween(this.myspine.node).sequence(cc.moveTo(1, e), cc.callFunc(function() {
  19943. t.myspine.node.removeFromParent();
  19944. for (var e = 0; e < t.mMonster.length; e++) {
  19945. var o = t.mMonster[e], i = cc.instantiate(o).getComponent(p.default);
  19946. t.ff.addRole(i);
  19947. }
  19948. t.node.destroy();
  19949. t.ff.pauseSprite(!1);
  19950. })).start();
  19951. };
  19952. r([ h(sp.Skeleton) ], e.prototype, "myspine", void 0);
  19953. r([ h(cc.Prefab) ], e.prototype, "mBullet", void 0);
  19954. r([ h(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  19955. r([ h(cc.Prefab) ], e.prototype, "mEffect", void 0);
  19956. r([ h({
  19957. type: [ cc.Prefab ],
  19958. displayName: "解救的对象"
  19959. }) ], e.prototype, "mMonster", void 0);
  19960. r([ h([ cc.Node ]) ], e.prototype, "mDx", void 0);
  19961. r([ h(cc.SpriteFrame) ], e.prototype, "mAppleIcon", void 0);
  19962. return r([ f ], e);
  19963. }(cc.Component);
  19964. o.default = d;
  19965. cc._RF.pop();
  19966. }, {
  19967. "../../../../util/CMath": "CMath",
  19968. "../../bullet/BObject": "BObject",
  19969. "../../object/FSprite": "FSprite",
  19970. "../../object/PSprite": "PSprite",
  19971. "../dialog/FMapDialog": "FMapDialog"
  19972. } ],
  19973. PlotHome: [ function(t, e, o) {
  19974. "use strict";
  19975. cc._RF.push(e, "f25a9szG5lLH4++Gw71fPiS", "PlotHome");
  19976. var i, n = this && this.__extends || (i = function(t, e) {
  19977. return (i = Object.setPrototypeOf || {
  19978. __proto__: []
  19979. } instanceof Array && function(t, e) {
  19980. t.__proto__ = e;
  19981. } || function(t, e) {
  19982. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  19983. })(t, e);
  19984. }, function(t, e) {
  19985. i(t, e);
  19986. function o() {
  19987. this.constructor = t;
  19988. }
  19989. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  19990. }), r = this && this.__decorate || function(t, e, o, i) {
  19991. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  19992. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  19993. return r > 3 && c && Object.defineProperty(e, o, c), c;
  19994. };
  19995. Object.defineProperty(o, "__esModule", {
  19996. value: !0
  19997. });
  19998. var c = t("../game/fight/evnet/map1/WOneByone"), a = t("../game/home/Home"), s = t("../login/FqLogin"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  19999. n(e, t);
  20000. function e() {
  20001. var e = null !== t && t.apply(this, arguments) || this;
  20002. e.mNode = [];
  20003. e.mMapDialog = null;
  20004. e.text = [];
  20005. e.mBlockInputEvents = null;
  20006. e.mBtMx = null;
  20007. e.mBtSpine = null;
  20008. return e;
  20009. }
  20010. e.prototype.onLoad = function() {
  20011. this.home = this.node.getComponent(a.default);
  20012. };
  20013. e.prototype.exDialog = function() {
  20014. this.dialog(0);
  20015. this.mBtSpine.node.parent.active = !1;
  20016. };
  20017. e.prototype.openMenu = function() {
  20018. var t = this;
  20019. this.mNode[1].children[0].active = !1;
  20020. cc.tween(this).sequence(cc.delayTime(.1), cc.callFunc(function() {
  20021. t.mBtSpine.setAnimation(0, "idle", !0);
  20022. })).start();
  20023. };
  20024. e.prototype.dialog = function(t) {
  20025. var e = this;
  20026. if (t >= this.text.length) {
  20027. this.setBlockInputCallback(null);
  20028. this.moveToMx(function() {
  20029. e.mBlockInputEvents.active = !1;
  20030. e.guideMX();
  20031. });
  20032. } else {
  20033. var o = this.text[t].split("|"), i = parseInt(o.shift()), n = this.mNode[i];
  20034. this.mBlockInputEvents.active = !0;
  20035. this.showDialog(o, n, null, function() {
  20036. t++;
  20037. e.dialog(t);
  20038. });
  20039. }
  20040. };
  20041. e.prototype.showDialog = function(t, e, o, i) {
  20042. var n = cc.instantiate(this.mMapDialog);
  20043. n.zIndex = 9999;
  20044. n.y += e.height;
  20045. n.parent = e;
  20046. var r = n.getComponent(c.default);
  20047. r.dialogs = t;
  20048. r.spine = o;
  20049. r.setCallback(function() {
  20050. n.destroy();
  20051. i();
  20052. });
  20053. this.setBlockInputCallback(function() {
  20054. r.jump();
  20055. });
  20056. r._start();
  20057. };
  20058. e.prototype.setBlockInputCallback = function(t) {
  20059. this.blockInputCallback = t;
  20060. };
  20061. e.prototype.onclickBlockInput = function() {
  20062. this.blockInputCallback && this.blockInputCallback();
  20063. };
  20064. e.prototype.moveToMx = function(t) {
  20065. var e = this, o = this.mNode[1].children[0].getComponent(sp.Skeleton);
  20066. o.setAnimation(0, "escape", !1);
  20067. o.setCompleteListener(function() {
  20068. o.setCompleteListener(null);
  20069. o.setAnimation(0, "fly", !0);
  20070. var i = e.mBtMx.convertToWorldSpaceAR(cc.v2(0, 0)), n = cc.winSize;
  20071. i.x -= n.width / 2;
  20072. i.y -= n.height / 2;
  20073. cc.tween(e.mNode[1]).sequence(cc.moveTo(1, i), cc.callFunc(function() {
  20074. e.openMenu1();
  20075. t();
  20076. })).start();
  20077. });
  20078. };
  20079. e.prototype.openMenu1 = function() {
  20080. var t = this;
  20081. this.mBtSpine.node.parent.active = !0;
  20082. this.mBtSpine.setCompleteListener(function() {
  20083. t.mBtSpine.setAnimation(0, "idle", !1);
  20084. });
  20085. this.mBtSpine.setAnimation(0, "open", !1);
  20086. };
  20087. e.prototype.guideMX = function() {
  20088. var t = this, e = this.home.main.mGuideMask;
  20089. e.setTargetNode(this.mBtMx);
  20090. e.show();
  20091. this.home.setMxCallback(function() {
  20092. e.close();
  20093. t.home.setMxCallback(null);
  20094. s.default.commitEvent("jinruguanqia", "", "");
  20095. });
  20096. };
  20097. r([ u({
  20098. displayName: "对话对象",
  20099. type: [ cc.Node ]
  20100. }) ], e.prototype, "mNode", void 0);
  20101. r([ u(cc.Prefab) ], e.prototype, "mMapDialog", void 0);
  20102. r([ u([ cc.String ]) ], e.prototype, "text", void 0);
  20103. r([ u(cc.Node) ], e.prototype, "mBlockInputEvents", void 0);
  20104. r([ u(cc.Node) ], e.prototype, "mBtMx", void 0);
  20105. r([ u(sp.Skeleton) ], e.prototype, "mBtSpine", void 0);
  20106. return r([ l ], e);
  20107. }(cc.Component);
  20108. o.default = f;
  20109. cc._RF.pop();
  20110. }, {
  20111. "../game/fight/evnet/map1/WOneByone": "WOneByone",
  20112. "../game/home/Home": "Home",
  20113. "../login/FqLogin": "FqLogin"
  20114. } ],
  20115. PlotView: [ function(t, e, o) {
  20116. "use strict";
  20117. cc._RF.push(e, "0f9e0p4hc1PS5mJAZtOMeWY", "PlotView");
  20118. var i, n = this && this.__extends || (i = function(t, e) {
  20119. return (i = Object.setPrototypeOf || {
  20120. __proto__: []
  20121. } instanceof Array && function(t, e) {
  20122. t.__proto__ = e;
  20123. } || function(t, e) {
  20124. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  20125. })(t, e);
  20126. }, function(t, e) {
  20127. i(t, e);
  20128. function o() {
  20129. this.constructor = t;
  20130. }
  20131. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  20132. }), r = this && this.__decorate || function(t, e, o, i) {
  20133. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  20134. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  20135. return r > 3 && c && Object.defineProperty(e, o, c), c;
  20136. };
  20137. Object.defineProperty(o, "__esModule", {
  20138. value: !0
  20139. });
  20140. var c = t("../login/FqLogin"), a = t("../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  20141. n(e, t);
  20142. function e() {
  20143. var e = null !== t && t.apply(this, arguments) || this;
  20144. e.plotList = [];
  20145. e.iIndex = 0;
  20146. return e;
  20147. }
  20148. e.prototype.onLoad = function() {
  20149. c.default.commitEvent("manhua" + this.iIndex, "", "");
  20150. };
  20151. e.prototype.onclick = function() {
  20152. this.iIndex++;
  20153. if (this.iIndex > this.plotList.length - 1) this.exitDistroy(); else {
  20154. this.plotList[this.iIndex].active = !0;
  20155. c.default.commitEvent("manhua" + this.iIndex, "", "");
  20156. }
  20157. };
  20158. r([ l(cc.Node) ], e.prototype, "plotList", void 0);
  20159. return r([ p ], e);
  20160. }(a.default);
  20161. o.default = u;
  20162. cc._RF.pop();
  20163. }, {
  20164. "../login/FqLogin": "FqLogin",
  20165. "../main/ViewObject": "ViewObject"
  20166. } ],
  20167. Profile: [ function(t, e, o) {
  20168. "use strict";
  20169. cc._RF.push(e, "7e1acWS4btEFLQ6Cpkhl5Ex", "Profile");
  20170. var i, n = this && this.__extends || (i = function(t, e) {
  20171. return (i = Object.setPrototypeOf || {
  20172. __proto__: []
  20173. } instanceof Array && function(t, e) {
  20174. t.__proto__ = e;
  20175. } || function(t, e) {
  20176. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  20177. })(t, e);
  20178. }, function(t, e) {
  20179. i(t, e);
  20180. function o() {
  20181. this.constructor = t;
  20182. }
  20183. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  20184. }), r = this && this.__decorate || function(t, e, o, i) {
  20185. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  20186. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  20187. return r > 3 && c && Object.defineProperty(e, o, c), c;
  20188. };
  20189. Object.defineProperty(o, "__esModule", {
  20190. value: !0
  20191. });
  20192. o.ChannelType = void 0;
  20193. var c = cc._decorator, a = c.ccclass, s = c.property;
  20194. o.ChannelType = cc.Enum({
  20195. DEV: 3,
  20196. TEST: 1,
  20197. FQ: 2
  20198. });
  20199. var p = function(t) {
  20200. n(e, t);
  20201. function e() {
  20202. var e = null !== t && t.apply(this, arguments) || this;
  20203. e.url = null;
  20204. e.url_dev = "http://127.0.0.1:9999";
  20205. e.url_test = "http://127.0.0.1:9999";
  20206. e.url_prod = "http://127.0.0.1:9999";
  20207. e.mChannel = o.ChannelType.TEST;
  20208. return e;
  20209. }
  20210. e.prototype.onLoad = function() {
  20211. this.mChannel == o.ChannelType.DEV ? this.url = this.url_dev : this.mChannel == o.ChannelType.TEST ? this.url = this.url_test : this.mChannel == o.ChannelType.FQ && (this.url = this.url_prod);
  20212. };
  20213. r([ s({
  20214. displayName: "开发环境地址"
  20215. }) ], e.prototype, "url_dev", void 0);
  20216. r([ s({
  20217. displayName: "测试环境地址"
  20218. }) ], e.prototype, "url_test", void 0);
  20219. r([ s({
  20220. displayName: "正式环境地址"
  20221. }) ], e.prototype, "url_prod", void 0);
  20222. r([ s({
  20223. type: o.ChannelType,
  20224. displayName: "渠道"
  20225. }) ], e.prototype, "mChannel", void 0);
  20226. return r([ a ], e);
  20227. }(cc.Component);
  20228. o.default = p;
  20229. cc._RF.pop();
  20230. }, {} ],
  20231. RadarChart: [ function(t, e, o) {
  20232. "use strict";
  20233. cc._RF.push(e, "e30ceCdqvtHdZ1Vnuy6zekR", "RadarChart");
  20234. var i, n = this && this.__extends || (i = function(t, e) {
  20235. return (i = Object.setPrototypeOf || {
  20236. __proto__: []
  20237. } instanceof Array && function(t, e) {
  20238. t.__proto__ = e;
  20239. } || function(t, e) {
  20240. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  20241. })(t, e);
  20242. }, function(t, e) {
  20243. i(t, e);
  20244. function o() {
  20245. this.constructor = t;
  20246. }
  20247. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  20248. }), r = this && this.__decorate || function(t, e, o, i) {
  20249. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  20250. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  20251. return r > 3 && c && Object.defineProperty(e, o, c), c;
  20252. };
  20253. Object.defineProperty(o, "__esModule", {
  20254. value: !0
  20255. });
  20256. var c = cc._decorator, a = c.ccclass, s = c.property, p = c.executeInEditMode, l = c.executionOrder, u = function(t) {
  20257. n(e, t);
  20258. function e() {
  20259. var e = null !== t && t.apply(this, arguments) || this;
  20260. e.target = null;
  20261. e._axisLength = 200;
  20262. e._axes = 6;
  20263. e._axisScales = 3;
  20264. e._drawAxes = !0;
  20265. e._gridLineWidth = 4;
  20266. e._innerGridLineWidth = 4;
  20267. e._gridLineColor = cc.Color.GRAY;
  20268. e._gridFillColor = cc.color(100, 100, 100, 100);
  20269. e._dataValuesStrings = [ "0.8,0.5,0.6,0.5,0.8,0.6", "0.5,0.9,0.5,0.8,0.5,0.9" ];
  20270. e._dataLineWidths = [ 5, 5 ];
  20271. e._dataLineColors = [ cc.Color.BLUE, cc.Color.RED ];
  20272. e._dataFillColors = [ cc.color(120, 120, 180, 100), cc.color(180, 120, 120, 100) ];
  20273. e._dataJoinColors = [];
  20274. e._drawDataJoin = !0;
  20275. e.graphics = null;
  20276. e.keepUpdating = !1;
  20277. e.angles = null;
  20278. e._curDatas = [];
  20279. e.toRes = null;
  20280. return e;
  20281. }
  20282. Object.defineProperty(e.prototype, "axisLength", {
  20283. get: function() {
  20284. return this._axisLength;
  20285. },
  20286. set: function(t) {
  20287. this._axisLength = t;
  20288. this.draw(this.curDatas);
  20289. },
  20290. enumerable: !1,
  20291. configurable: !0
  20292. });
  20293. Object.defineProperty(e.prototype, "axes", {
  20294. get: function() {
  20295. return this._axes;
  20296. },
  20297. set: function(t) {
  20298. this._axes = Math.floor(t >= 3 ? t : 3);
  20299. this.draw(this.curDatas);
  20300. },
  20301. enumerable: !1,
  20302. configurable: !0
  20303. });
  20304. Object.defineProperty(e.prototype, "axisScales", {
  20305. get: function() {
  20306. return this._axisScales;
  20307. },
  20308. set: function(t) {
  20309. this._axisScales = Math.floor(t >= 1 ? t : 1);
  20310. this.draw(this.curDatas);
  20311. },
  20312. enumerable: !1,
  20313. configurable: !0
  20314. });
  20315. Object.defineProperty(e.prototype, "drawAxes", {
  20316. get: function() {
  20317. return this._drawAxes;
  20318. },
  20319. set: function(t) {
  20320. this._drawAxes = t;
  20321. this.draw(this.curDatas);
  20322. },
  20323. enumerable: !1,
  20324. configurable: !0
  20325. });
  20326. Object.defineProperty(e.prototype, "gridLineWidth", {
  20327. get: function() {
  20328. return this._gridLineWidth;
  20329. },
  20330. set: function(t) {
  20331. this._gridLineWidth = t;
  20332. this.draw(this.curDatas);
  20333. },
  20334. enumerable: !1,
  20335. configurable: !0
  20336. });
  20337. Object.defineProperty(e.prototype, "innerGridLineWidth", {
  20338. get: function() {
  20339. return this._innerGridLineWidth;
  20340. },
  20341. set: function(t) {
  20342. this._innerGridLineWidth = t;
  20343. this.draw(this.curDatas);
  20344. },
  20345. enumerable: !1,
  20346. configurable: !0
  20347. });
  20348. Object.defineProperty(e.prototype, "gridLineColor", {
  20349. get: function() {
  20350. return this._gridLineColor;
  20351. },
  20352. set: function(t) {
  20353. this._gridLineColor = t;
  20354. this.draw(this.curDatas);
  20355. },
  20356. enumerable: !1,
  20357. configurable: !0
  20358. });
  20359. Object.defineProperty(e.prototype, "gridFillColor", {
  20360. get: function() {
  20361. return this._gridFillColor;
  20362. },
  20363. set: function(t) {
  20364. this._gridFillColor = t;
  20365. this.draw(this.curDatas);
  20366. },
  20367. enumerable: !1,
  20368. configurable: !0
  20369. });
  20370. Object.defineProperty(e.prototype, "dataValuesStrings", {
  20371. get: function() {
  20372. return this._dataValuesStrings;
  20373. },
  20374. set: function(t) {
  20375. this._dataValuesStrings = t;
  20376. this.drawWithProperties();
  20377. },
  20378. enumerable: !1,
  20379. configurable: !0
  20380. });
  20381. Object.defineProperty(e.prototype, "dataLineWidths", {
  20382. get: function() {
  20383. return this._dataLineWidths;
  20384. },
  20385. set: function(t) {
  20386. this._dataLineWidths = t;
  20387. this.drawWithProperties();
  20388. },
  20389. enumerable: !1,
  20390. configurable: !0
  20391. });
  20392. Object.defineProperty(e.prototype, "dataLineColors", {
  20393. get: function() {
  20394. return this._dataLineColors;
  20395. },
  20396. set: function(t) {
  20397. this._dataLineColors = t;
  20398. this.drawWithProperties();
  20399. },
  20400. enumerable: !1,
  20401. configurable: !0
  20402. });
  20403. Object.defineProperty(e.prototype, "dataFillColors", {
  20404. get: function() {
  20405. return this._dataFillColors;
  20406. },
  20407. set: function(t) {
  20408. this._dataFillColors = t;
  20409. this.drawWithProperties();
  20410. },
  20411. enumerable: !1,
  20412. configurable: !0
  20413. });
  20414. Object.defineProperty(e.prototype, "dataJoinColors", {
  20415. get: function() {
  20416. return this._dataJoinColors;
  20417. },
  20418. set: function(t) {
  20419. this._dataJoinColors = t;
  20420. this.drawWithProperties();
  20421. },
  20422. enumerable: !1,
  20423. configurable: !0
  20424. });
  20425. Object.defineProperty(e.prototype, "drawDataJoin", {
  20426. get: function() {
  20427. return this._drawDataJoin;
  20428. },
  20429. set: function(t) {
  20430. this._drawDataJoin = t;
  20431. this.draw(this.curDatas);
  20432. },
  20433. enumerable: !1,
  20434. configurable: !0
  20435. });
  20436. Object.defineProperty(e.prototype, "curDatas", {
  20437. get: function() {
  20438. return this._curDatas;
  20439. },
  20440. enumerable: !1,
  20441. configurable: !0
  20442. });
  20443. e.prototype.onLoad = function() {
  20444. this.init();
  20445. this.drawWithProperties();
  20446. };
  20447. e.prototype.update = function() {
  20448. this.keepUpdating && 0 !== this._curDatas.length && this.draw(this._curDatas);
  20449. };
  20450. e.prototype.init = function() {
  20451. this.target || (this.target = this.node);
  20452. this.graphics = this.target.getComponent(cc.Graphics) || this.target.addComponent(cc.Graphics);
  20453. this.graphics.lineJoin = cc.Graphics.LineJoin.ROUND;
  20454. this.graphics.lineCap = cc.Graphics.LineCap.ROUND;
  20455. };
  20456. e.prototype.drawWithProperties = function() {
  20457. for (var t = [], e = 0; e < this.dataValuesStrings.length; e++) t.push({
  20458. values: this.processValuesString(this.dataValuesStrings[e]),
  20459. lineWidth: this._dataLineWidths[e] || f.lineWidth,
  20460. lineColor: this._dataLineColors[e] || f.lineColor,
  20461. fillColor: this._dataFillColors[e] || f.fillColor,
  20462. joinColor: this._dataJoinColors[e] || f.joinColor
  20463. });
  20464. this.draw(t);
  20465. };
  20466. e.prototype.processValuesString = function(t) {
  20467. for (var e = t.split(","), o = [], i = 0; i < e.length; i++) {
  20468. var n = parseFloat(e[i]);
  20469. o.push(isNaN(n) ? 0 : n);
  20470. }
  20471. return o;
  20472. };
  20473. e.prototype.drawBase = function() {
  20474. this.graphics.lineWidth = this._gridLineWidth;
  20475. this.graphics.strokeColor = this._gridLineColor;
  20476. this.graphics.fillColor = this._gridFillColor;
  20477. this.angles = [];
  20478. for (var t = 360 / this.axes, e = 0; e < this.axes; e++) this.angles.push(t * e);
  20479. var o = [], i = this._axisLength / this._axisScales;
  20480. for (e = 0; e < this._axisScales; e++) {
  20481. for (var n = [], r = this._axisLength - i * e, c = 0; c < this.angles.length; c++) {
  20482. var a = Math.PI / 180 * this.angles[c];
  20483. n.push(cc.v2(r * Math.cos(a), r * Math.sin(a)));
  20484. }
  20485. o.push(n);
  20486. }
  20487. if (this._drawAxes) for (e = 0; e < o[0].length; e++) {
  20488. this.graphics.moveTo(0, 0);
  20489. this.graphics.lineTo(o[0][e].x, o[0][e].y);
  20490. }
  20491. this.graphics.moveTo(o[0][0].x, o[0][0].y);
  20492. for (e = 1; e < o[0].length; e++) this.graphics.lineTo(o[0][e].x, o[0][e].y);
  20493. this.graphics.close();
  20494. this.graphics.fill();
  20495. this.graphics.stroke();
  20496. if (o.length > 1) {
  20497. this.graphics.lineWidth = this._innerGridLineWidth;
  20498. for (e = 1; e < o.length; e++) {
  20499. this.graphics.moveTo(o[e][0].x, o[e][0].y);
  20500. for (c = 1; c < o[e].length; c++) this.graphics.lineTo(o[e][c].x, o[e][c].y);
  20501. this.graphics.close();
  20502. }
  20503. this.graphics.stroke();
  20504. }
  20505. };
  20506. e.prototype.draw = function(t) {
  20507. this.graphics.clear();
  20508. this.drawBase();
  20509. var e = Array.isArray(t) ? t : [ t ];
  20510. this._curDatas = e;
  20511. this.resizeCurDatasValues(0);
  20512. for (var o = 0; o < e.length; o++) {
  20513. this.graphics.strokeColor = e[o].lineColor || f.lineColor;
  20514. this.graphics.fillColor = e[o].fillColor || f.fillColor;
  20515. this.graphics.lineWidth = e[o].lineWidth || f.lineWidth;
  20516. for (var i = [], n = 0; n < this.axes; n++) {
  20517. var r = (e[o].values[n] > 1 ? 1 : e[o].values[n]) * this.axisLength, c = Math.PI / 180 * this.angles[n];
  20518. i.push(cc.v2(r * Math.cos(c), r * Math.sin(c)));
  20519. }
  20520. this.graphics.moveTo(i[0].x, i[0].y);
  20521. for (n = 1; n < i.length; n++) this.graphics.lineTo(i[n].x, i[n].y);
  20522. this.graphics.close();
  20523. this.graphics.fill();
  20524. this.graphics.stroke();
  20525. if (this._drawDataJoin) for (n = 0; n < i.length; n++) {
  20526. this.graphics.strokeColor = e[o].lineColor || f.lineColor;
  20527. this.graphics.circle(i[n].x, i[n].y, 2);
  20528. this.graphics.stroke();
  20529. this.graphics.strokeColor = e[o].joinColor || f.joinColor;
  20530. this.graphics.circle(i[n].x, i[n].y, .65);
  20531. this.graphics.stroke();
  20532. }
  20533. }
  20534. };
  20535. e.prototype.to = function(t, e) {
  20536. var o = this;
  20537. return new Promise(function(i) {
  20538. var n;
  20539. o.unscheduleAllCallbacks();
  20540. o.toRes && o.toRes();
  20541. o.toRes = i;
  20542. var r = Array.isArray(t) ? t : [ t ];
  20543. o.keepUpdating = !0;
  20544. for (var c = 0; c < r.length; c++) if (o._curDatas[c]) {
  20545. for (var a = 0; a < o._curDatas[c].values.length; a++) cc.tween(o._curDatas[c].values).to(e, (n = {},
  20546. n[a] = r[c].values[a] > 1 ? 1 : r[c].values[a], n)).start();
  20547. cc.tween(o._curDatas[c]).to(e, {
  20548. lineWidth: r[c].lineWidth || o._curDatas[c].lineWidth,
  20549. lineColor: r[c].lineColor || o._curDatas[c].lineColor,
  20550. fillColor: r[c].fillColor || o._curDatas[c].fillColor,
  20551. joinColor: r[c].joinColor || o._curDatas[c].joinColor
  20552. }).start();
  20553. }
  20554. o.scheduleOnce(function() {
  20555. o.keepUpdating = !1;
  20556. o.toRes();
  20557. o.toRes = null;
  20558. }, e);
  20559. });
  20560. };
  20561. e.prototype.resizeCurDatasValues = function(t) {
  20562. void 0 === t && (t = 0);
  20563. for (var e = 0; e < this._curDatas.length; e++) if (this._curDatas[e].values.length < this._axes) for (var o = this._axes - this._curDatas[e].values.length, i = 0; i < o; i++) this._curDatas[e].values.push(t);
  20564. };
  20565. r([ s({
  20566. type: cc.Node,
  20567. tooltip: !1
  20568. }) ], e.prototype, "target", void 0);
  20569. r([ s ], e.prototype, "_axisLength", void 0);
  20570. r([ s({
  20571. tooltip: !1
  20572. }) ], e.prototype, "axisLength", null);
  20573. r([ s ], e.prototype, "_axes", void 0);
  20574. r([ s({
  20575. tooltip: !1
  20576. }) ], e.prototype, "axes", null);
  20577. r([ s ], e.prototype, "_axisScales", void 0);
  20578. r([ s({
  20579. tooltip: !1
  20580. }) ], e.prototype, "axisScales", null);
  20581. r([ s ], e.prototype, "_drawAxes", void 0);
  20582. r([ s({
  20583. tooltip: !1
  20584. }) ], e.prototype, "drawAxes", null);
  20585. r([ s ], e.prototype, "_gridLineWidth", void 0);
  20586. r([ s({
  20587. tooltip: !1
  20588. }) ], e.prototype, "gridLineWidth", null);
  20589. r([ s ], e.prototype, "_innerGridLineWidth", void 0);
  20590. r([ s({
  20591. tooltip: !1
  20592. }) ], e.prototype, "innerGridLineWidth", null);
  20593. r([ s ], e.prototype, "_gridLineColor", void 0);
  20594. r([ s({
  20595. tooltip: !1
  20596. }) ], e.prototype, "gridLineColor", null);
  20597. r([ s ], e.prototype, "_gridFillColor", void 0);
  20598. r([ s({
  20599. tooltip: !1
  20600. }) ], e.prototype, "gridFillColor", null);
  20601. r([ s ], e.prototype, "_dataValuesStrings", void 0);
  20602. r([ s({
  20603. type: [ cc.String ],
  20604. tooltip: !1
  20605. }) ], e.prototype, "dataValuesStrings", null);
  20606. r([ s ], e.prototype, "_dataLineWidths", void 0);
  20607. r([ s({
  20608. type: [ cc.Integer ],
  20609. tooltip: !1
  20610. }) ], e.prototype, "dataLineWidths", null);
  20611. r([ s ], e.prototype, "_dataLineColors", void 0);
  20612. r([ s({
  20613. type: [ cc.Color ],
  20614. tooltip: !1
  20615. }) ], e.prototype, "dataLineColors", null);
  20616. r([ s ], e.prototype, "_dataFillColors", void 0);
  20617. r([ s({
  20618. type: [ cc.Color ],
  20619. tooltip: !1
  20620. }) ], e.prototype, "dataFillColors", null);
  20621. r([ s ], e.prototype, "_dataJoinColors", void 0);
  20622. r([ s({
  20623. type: [ cc.Color ],
  20624. tooltip: !1
  20625. }) ], e.prototype, "dataJoinColors", null);
  20626. r([ s ], e.prototype, "_drawDataJoin", void 0);
  20627. r([ s({
  20628. tooltip: !1
  20629. }) ], e.prototype, "drawDataJoin", null);
  20630. return r([ a, p, l(-10) ], e);
  20631. }(cc.Component);
  20632. o.default = u;
  20633. var f = {
  20634. lineWidth: 5,
  20635. lineColor: cc.Color.BLUE,
  20636. fillColor: cc.color(120, 120, 180, 100),
  20637. joinColor: cc.Color.WHITE
  20638. };
  20639. cc._RF.pop();
  20640. }, {} ],
  20641. RedNode: [ function(t, e, o) {
  20642. "use strict";
  20643. cc._RF.push(e, "ec8f9sbcpRBSbWqxXExUY6S", "RedNode");
  20644. var i, n = this && this.__extends || (i = function(t, e) {
  20645. return (i = Object.setPrototypeOf || {
  20646. __proto__: []
  20647. } instanceof Array && function(t, e) {
  20648. t.__proto__ = e;
  20649. } || function(t, e) {
  20650. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  20651. })(t, e);
  20652. }, function(t, e) {
  20653. i(t, e);
  20654. function o() {
  20655. this.constructor = t;
  20656. }
  20657. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  20658. });
  20659. Object.defineProperty(o, "__esModule", {
  20660. value: !0
  20661. });
  20662. var r = function(t) {
  20663. n(e, t);
  20664. function e() {
  20665. return null !== t && t.apply(this, arguments) || this;
  20666. }
  20667. return e;
  20668. }(cc.Component);
  20669. o.default = r;
  20670. cc._RF.pop();
  20671. }, {} ],
  20672. RedPoint: [ function(t, e, o) {
  20673. "use strict";
  20674. cc._RF.push(e, "e1485GnTuND5oopJeooQJrO", "RedPoint");
  20675. Object.defineProperty(o, "__esModule", {
  20676. value: !0
  20677. });
  20678. var i = t("../../util/CUtil"), n = t("./FFCalAttr"), r = t("./RedNode"), c = function() {
  20679. function t() {}
  20680. t.petsRedPoint = function(e) {
  20681. var o = e.player.pet;
  20682. for (var i in o) {
  20683. var n = o[i];
  20684. if (t.petRedPoint(e, n)) return !0;
  20685. }
  20686. return !1;
  20687. };
  20688. t.petRedPoint = function(e, o) {
  20689. for (var i = e.player.equip, n = 0; n < i.length; n++) {
  20690. var r = i[n];
  20691. if (t.equipRedPoint(e, r, o)) return !0;
  20692. }
  20693. return !1;
  20694. };
  20695. t.equipRedPoint = function(e, o, i) {
  20696. var r = e.sManage.getEquipById(o.id);
  20697. if (r.type > 5) return !1;
  20698. if (0 != r.occ && r.occ != i.id) return !1;
  20699. var c = t.getPetAttr(e, r.type, i);
  20700. if (null == c) return !0;
  20701. var a = e.sManage.getEquipById(c.id), s = n.default.getEquipAttr(e, o, r), p = n.default.getEquipAttr(e, c, a);
  20702. return s.zdl > p.zdl;
  20703. };
  20704. t.getPetAttr = function(t, e, o) {
  20705. for (var i = o.equips, n = 0; n < i.length; n++) {
  20706. var r = i[n];
  20707. if (e == t.sManage.getEquipById(r.id).type) return r;
  20708. }
  20709. return null;
  20710. };
  20711. t.addRed = function(t, e, o, n) {
  20712. var c = e.getChildByName("redpoint");
  20713. if (c) c.active || (o ? c.active = !0 : i.default.getNowTime() - c.getComponent(r.default).time > 600 && (c.active = !0)); else {
  20714. (c = new cc.Node("redpoint")).addComponent(cc.Sprite).spriteFrame = t.RED_POINT;
  20715. c.addComponent(r.default);
  20716. c.parent = e;
  20717. var a = t.RED_POINT.getRect();
  20718. if (n) {
  20719. c.x = -(e.width - a.width) / 2;
  20720. c.y = (e.height - a.height) / 2;
  20721. } else {
  20722. c.x = (e.width - a.width) / 2;
  20723. c.y = (e.height - a.height) / 2;
  20724. }
  20725. }
  20726. };
  20727. t.removeRed = function(t) {
  20728. var e = t.getChildByName("redpoint");
  20729. if (e) {
  20730. e.active = !1;
  20731. e.getComponent(r.default).time = i.default.getNowTime();
  20732. }
  20733. };
  20734. return t;
  20735. }();
  20736. o.default = c;
  20737. cc._RF.pop();
  20738. }, {
  20739. "../../util/CUtil": "CUtil",
  20740. "./FFCalAttr": "FFCalAttr",
  20741. "./RedNode": "RedNode"
  20742. } ],
  20743. RemoveModou: [ function(t, e, o) {
  20744. "use strict";
  20745. cc._RF.push(e, "a1cbbuIhm5H1KdZ0eiv89G2", "RemoveModou");
  20746. var i, n = this && this.__extends || (i = function(t, e) {
  20747. return (i = Object.setPrototypeOf || {
  20748. __proto__: []
  20749. } instanceof Array && function(t, e) {
  20750. t.__proto__ = e;
  20751. } || function(t, e) {
  20752. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  20753. })(t, e);
  20754. }, function(t, e) {
  20755. i(t, e);
  20756. function o() {
  20757. this.constructor = t;
  20758. }
  20759. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  20760. }), r = this && this.__decorate || function(t, e, o, i) {
  20761. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  20762. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  20763. return r > 3 && c && Object.defineProperty(e, o, c), c;
  20764. };
  20765. Object.defineProperty(o, "__esModule", {
  20766. value: !0
  20767. });
  20768. var c = t("./BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  20769. n(e, t);
  20770. function e() {
  20771. var e = null !== t && t.apply(this, arguments) || this;
  20772. e.mPetId = 1;
  20773. return e;
  20774. }
  20775. e.prototype.onLoad = function() {
  20776. t.prototype.onLoad.call(this);
  20777. this.ff.main.player.getPet(this.mPetId) && this.node.destroy();
  20778. };
  20779. r([ p({
  20780. displayName: "解救伙伴后移除道具"
  20781. }) ], e.prototype, "mPetId", void 0);
  20782. return r([ s ], e);
  20783. }(c.default);
  20784. o.default = l;
  20785. cc._RF.pop();
  20786. }, {
  20787. "./BaseEvent": "BaseEvent"
  20788. } ],
  20789. Revenge: [ function(t, e, o) {
  20790. "use strict";
  20791. cc._RF.push(e, "31222h37ZNCI6Q4Ks6lKx0L", "Revenge");
  20792. var i, n = this && this.__extends || (i = function(t, e) {
  20793. return (i = Object.setPrototypeOf || {
  20794. __proto__: []
  20795. } instanceof Array && function(t, e) {
  20796. t.__proto__ = e;
  20797. } || function(t, e) {
  20798. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  20799. })(t, e);
  20800. }, function(t, e) {
  20801. i(t, e);
  20802. function o() {
  20803. this.constructor = t;
  20804. }
  20805. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  20806. }), r = this && this.__decorate || function(t, e, o, i) {
  20807. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  20808. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  20809. return r > 3 && c && Object.defineProperty(e, o, c), c;
  20810. };
  20811. Object.defineProperty(o, "__esModule", {
  20812. value: !0
  20813. });
  20814. var c = t("../../../main/ViewObject"), a = t("../../../util/CHttp"), s = t("../../../util/CUtilTime"), p = t("../../common/GoodItem"), l = t("../TopMenu"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  20815. n(e, t);
  20816. function e() {
  20817. var e = null !== t && t.apply(this, arguments) || this;
  20818. e.title = null;
  20819. e.itemList = [];
  20820. e.goldIcon = null;
  20821. e.diamondIcon = null;
  20822. e.lbnum = null;
  20823. e.revengeTime = null;
  20824. e.revengeData = null;
  20825. e.clickIndex = 1;
  20826. e.curClickNode = null;
  20827. e.buyClickFunc = null;
  20828. return e;
  20829. }
  20830. e.prototype.setBuyClickFunc = function(t) {
  20831. this.buyClickFunc = t;
  20832. };
  20833. e.prototype.show = function(t) {
  20834. if (t) {
  20835. this.prev = t;
  20836. this.prev.__close();
  20837. }
  20838. this.main.viewManage.popView1(this.node);
  20839. this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this);
  20840. };
  20841. e.prototype.getRevengeData = function() {
  20842. var t = this;
  20843. this.main.gameHttp.sendJson("revenge/v1/data", {}, function(e, o) {
  20844. t.main.stopLoad();
  20845. if (e == a.HttpStateType.SUCCESS) if (0 == o.retCode) {
  20846. console.log("==reve=revengeData===", o);
  20847. t.revengeData = o.data.list[0];
  20848. t.initItem();
  20849. t.show();
  20850. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  20851. });
  20852. };
  20853. e.prototype.initItem = function() {
  20854. var t = this;
  20855. this.title.string = this.revengeData.name;
  20856. this.goldIcon.active = 2 == this.revengeData.needType;
  20857. this.diamondIcon.active = 1 == this.revengeData.needType;
  20858. this.lbnum.string = this.revengeData.needCount;
  20859. this.itemList.forEach(function(e, o) {
  20860. var i = e.getChildByName("item"), n = i.getChildByName("icon").getComponent(cc.Sprite), r = i.getChildByName("lbname").getComponent(cc.Label), c = e.getChildByName("clickIcon");
  20861. i.getChildByName("count").getComponent(cc.Label).string = t.revengeData["reveCount" + o];
  20862. if (0 == o) {
  20863. var a = 1 == t.revengeData.reveType0 ? "3002" : "3001";
  20864. t.initIcon(n, "good/" + a);
  20865. } else if (3 == t.revengeData["reveType" + o]) {
  20866. t.initIcon(n, "equip/" + t.revengeData["reveId" + o]);
  20867. var s = t.main.sManage.getEquipById(t.revengeData["reveId" + o]);
  20868. r.string = s.name;
  20869. } else t.initIcon(n, "good/" + t.revengeData["reveId" + o]);
  20870. if (1 == o) {
  20871. c.active = !0;
  20872. t.curClickNode = c;
  20873. }
  20874. 0 != o && e.getComponent(p.default).setCallback(function() {
  20875. t.curClickNode.active = !1;
  20876. c.active = !0;
  20877. t.curClickNode = c;
  20878. t.clickIndex = o;
  20879. });
  20880. });
  20881. };
  20882. e.prototype.refreshTime = function(t) {
  20883. this.revengeTime && (this.revengeTime.string = s.default.getTimeString2(t) + "后消失");
  20884. };
  20885. e.prototype.initIcon = function(t, e) {
  20886. cc.resources.load("icon/" + e, cc.SpriteFrame, function(e, o) {
  20887. e ? cc.error(e) : t.spriteFrame = o;
  20888. });
  20889. };
  20890. e.prototype.onClickBuy = function() {
  20891. var t = this, e = {
  20892. id: this.revengeData.id,
  20893. index: this.clickIndex - 1
  20894. };
  20895. this.main.gameHttp.sendJson("revenge/v1/buy", e, function(e, o) {
  20896. t.main.stopLoad();
  20897. if (e == a.HttpStateType.SUCCESS) if (0 == o.retCode) {
  20898. t.buyClickFunc && t.buyClickFunc();
  20899. t.exitDistroy();
  20900. t.main.showReward(o);
  20901. t.main.topNode.getComponent(l.default).refresh();
  20902. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  20903. });
  20904. };
  20905. r([ h(cc.Label) ], e.prototype, "title", void 0);
  20906. r([ h(cc.Node) ], e.prototype, "itemList", void 0);
  20907. r([ h(cc.Node) ], e.prototype, "goldIcon", void 0);
  20908. r([ h(cc.Node) ], e.prototype, "diamondIcon", void 0);
  20909. r([ h(cc.Label) ], e.prototype, "lbnum", void 0);
  20910. r([ h(cc.Label) ], e.prototype, "revengeTime", void 0);
  20911. return r([ f ], e);
  20912. }(c.default);
  20913. o.default = d;
  20914. cc._RF.pop();
  20915. }, {
  20916. "../../../main/ViewObject": "ViewObject",
  20917. "../../../util/CHttp": "CHttp",
  20918. "../../../util/CUtilTime": "CUtilTime",
  20919. "../../common/GoodItem": "GoodItem",
  20920. "../TopMenu": "TopMenu"
  20921. } ],
  20922. RewardView: [ function(t, e, o) {
  20923. "use strict";
  20924. cc._RF.push(e, "bc829Zc3iRKWYuOSY2Y2Tyl", "RewardView");
  20925. var i, n = this && this.__extends || (i = function(t, e) {
  20926. return (i = Object.setPrototypeOf || {
  20927. __proto__: []
  20928. } instanceof Array && function(t, e) {
  20929. t.__proto__ = e;
  20930. } || function(t, e) {
  20931. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  20932. })(t, e);
  20933. }, function(t, e) {
  20934. i(t, e);
  20935. function o() {
  20936. this.constructor = t;
  20937. }
  20938. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  20939. }), r = this && this.__decorate || function(t, e, o, i) {
  20940. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  20941. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  20942. return r > 3 && c && Object.defineProperty(e, o, c), c;
  20943. };
  20944. Object.defineProperty(o, "__esModule", {
  20945. value: !0
  20946. });
  20947. var c = t("../../main/ViewObject"), a = t("../home/card/item/CardItem"), s = t("./GoodItem"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  20948. n(e, t);
  20949. function e() {
  20950. var e = null !== t && t.apply(this, arguments) || this;
  20951. e.mGoodItem = null;
  20952. e.mContent = null;
  20953. e.mComm = null;
  20954. e.mGodCard = null;
  20955. e.mCardItem = null;
  20956. e.mTitle = null;
  20957. e.mAbout = null;
  20958. e.addList = [];
  20959. return e;
  20960. }
  20961. e.prototype.show = function(t) {
  20962. if (t) {
  20963. this.prev = t;
  20964. this.prev.__close();
  20965. }
  20966. this.main.viewManage.popView1(this.node);
  20967. this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this);
  20968. };
  20969. e.prototype.init = function(t) {
  20970. for (var e = 0, o = 0; o < t.length; o++) {
  20971. var i = t[o];
  20972. if (i.type <= 3) {
  20973. var n = cc.instantiate(this.mGoodItem);
  20974. n.parent = this.mContent;
  20975. var r = n.getComponent(s.default);
  20976. r.initReward(this.main, i);
  20977. if (i.name) {
  20978. r.mContrast.node.active = !0;
  20979. r.mContrast.string = i.name;
  20980. }
  20981. e++;
  20982. } else this.addList.push(i);
  20983. }
  20984. if (e <= 0) this.exitDistroy(); else {
  20985. this.mComm.active = !0;
  20986. this.mGodCard.active = !1;
  20987. }
  20988. };
  20989. e.prototype.exitDistroy = function() {
  20990. if (this.addList.length <= 0) t.prototype.exitDistroy.call(this); else {
  20991. this.mComm.active = !1;
  20992. this.mGodCard.active = !0;
  20993. var e = this.addList.shift();
  20994. this.mCardItem.init(this.main, e.data);
  20995. }
  20996. };
  20997. e.prototype.setCloseCallback = function(t) {
  20998. this.closeCallback = t;
  20999. };
  21000. r([ u(cc.Prefab) ], e.prototype, "mGoodItem", void 0);
  21001. r([ u(cc.Node) ], e.prototype, "mContent", void 0);
  21002. r([ u(cc.Node) ], e.prototype, "mComm", void 0);
  21003. r([ u(cc.Node) ], e.prototype, "mGodCard", void 0);
  21004. r([ u(a.default) ], e.prototype, "mCardItem", void 0);
  21005. r([ u(cc.Label) ], e.prototype, "mTitle", void 0);
  21006. r([ u(cc.Label) ], e.prototype, "mAbout", void 0);
  21007. return r([ l ], e);
  21008. }(c.default);
  21009. o.default = f;
  21010. cc._RF.pop();
  21011. }, {
  21012. "../../main/ViewObject": "ViewObject",
  21013. "../home/card/item/CardItem": "CardItem",
  21014. "./GoodItem": "GoodItem"
  21015. } ],
  21016. RoleFrameView: [ function(t, e, o) {
  21017. "use strict";
  21018. cc._RF.push(e, "07e0571gTdL7YDHBLwWgncG", "RoleFrameView");
  21019. var i, n = this && this.__extends || (i = function(t, e) {
  21020. return (i = Object.setPrototypeOf || {
  21021. __proto__: []
  21022. } instanceof Array && function(t, e) {
  21023. t.__proto__ = e;
  21024. } || function(t, e) {
  21025. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  21026. })(t, e);
  21027. }, function(t, e) {
  21028. i(t, e);
  21029. function o() {
  21030. this.constructor = t;
  21031. }
  21032. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  21033. }), r = this && this.__decorate || function(t, e, o, i) {
  21034. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  21035. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  21036. return r > 3 && c && Object.defineProperty(e, o, c), c;
  21037. };
  21038. Object.defineProperty(o, "__esModule", {
  21039. value: !0
  21040. });
  21041. var c = t("../../../main/ViewObject"), a = t("../../data/FFCalAttr"), s = t("./RoleIconItem"), p = t("./IconInfoView"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  21042. n(e, t);
  21043. function e() {
  21044. var e = null !== t && t.apply(this, arguments) || this;
  21045. e.mContent = null;
  21046. e.mFrameIcon = null;
  21047. e.mZdl = null;
  21048. e.iconInfoView = null;
  21049. e.tapRole = null;
  21050. return e;
  21051. }
  21052. e.prototype.onLoad = function() {
  21053. this.iconInfoView.main = this.main;
  21054. this.iconInfoView.roleFrameView = this;
  21055. this.iconInfoView.openType = 2;
  21056. this.init();
  21057. };
  21058. e.prototype.init = function() {
  21059. for (var t = this, e = this.main.sManage.getRoleIcon(), o = void 0, i = this.main.player.role.frame, n = 0; n < e.length; n++) {
  21060. var r = e[n];
  21061. if (2 == r.type) {
  21062. var c = cc.instantiate(this.mFrameIcon), a = c.getComponent(s.default);
  21063. a.roleIcon = r;
  21064. a.mIcon.node.active = !1;
  21065. a.loadFrame(this.main);
  21066. a.flushLock(this.main);
  21067. c.parent = this.mContent;
  21068. a.setCallback(function(e) {
  21069. t.openInfo(e);
  21070. });
  21071. i == r.id && (o = a);
  21072. }
  21073. }
  21074. o || (o = this.mContent.children[0].getComponent(s.default));
  21075. this.flush(o);
  21076. };
  21077. e.prototype.flush = function(t) {
  21078. this.iconInfoView.initFrame(this.main, t);
  21079. for (var e = {
  21080. atk: 0,
  21081. def: 0,
  21082. hp: 0,
  21083. sp: 0
  21084. }, o = this.main.player.roleIcon.open, i = 0; i < o.length; i++) {
  21085. var n = o[i];
  21086. if (n >= 200 && n < 300) {
  21087. var r = this.main.sManage.getRoleIconById(n);
  21088. e.atk += r.atk;
  21089. e.def += r.def;
  21090. e.hp += r.hp;
  21091. e.sp += r.sp;
  21092. }
  21093. }
  21094. var c = a.default.getZdl(e);
  21095. this.mZdl.string = "" + c;
  21096. var p = this.mContent.children;
  21097. for (i = 0; i < p.length; i++) {
  21098. var l = p[i].getComponent(s.default);
  21099. l.roleIcon.id != this.main.player.role.frame ? l.setCheck(!1) : l.setCheck(!0);
  21100. }
  21101. };
  21102. e.prototype.openInfo = function(t) {
  21103. this.flush(t);
  21104. t.mCheck.active = !0;
  21105. for (var e = t.node.parent.children, o = 0; o < e.length; o++) {
  21106. var i = e[o].getComponent(s.default);
  21107. i != t && (i.mCheck.active = !1);
  21108. }
  21109. };
  21110. r([ f(cc.Node) ], e.prototype, "mContent", void 0);
  21111. r([ f(cc.Prefab) ], e.prototype, "mFrameIcon", void 0);
  21112. r([ f(cc.Label) ], e.prototype, "mZdl", void 0);
  21113. r([ f(p.default) ], e.prototype, "iconInfoView", void 0);
  21114. return r([ u ], e);
  21115. }(c.default);
  21116. o.default = h;
  21117. cc._RF.pop();
  21118. }, {
  21119. "../../../main/ViewObject": "ViewObject",
  21120. "../../data/FFCalAttr": "FFCalAttr",
  21121. "./IconInfoView": "IconInfoView",
  21122. "./RoleIconItem": "RoleIconItem"
  21123. } ],
  21124. RoleIconItem: [ function(t, e, o) {
  21125. "use strict";
  21126. cc._RF.push(e, "a4ec7E5HQ5Hq58S+W6QmCKD", "RoleIconItem");
  21127. var i, n = this && this.__extends || (i = function(t, e) {
  21128. return (i = Object.setPrototypeOf || {
  21129. __proto__: []
  21130. } instanceof Array && function(t, e) {
  21131. t.__proto__ = e;
  21132. } || function(t, e) {
  21133. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  21134. })(t, e);
  21135. }, function(t, e) {
  21136. i(t, e);
  21137. function o() {
  21138. this.constructor = t;
  21139. }
  21140. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  21141. }), r = this && this.__decorate || function(t, e, o, i) {
  21142. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  21143. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  21144. return r > 3 && c && Object.defineProperty(e, o, c), c;
  21145. };
  21146. Object.defineProperty(o, "__esModule", {
  21147. value: !0
  21148. });
  21149. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  21150. n(e, t);
  21151. function e() {
  21152. var e = null !== t && t.apply(this, arguments) || this;
  21153. e.mIcon = null;
  21154. e.mFrame = null;
  21155. e.mCheck = null;
  21156. e.mLock = null;
  21157. return e;
  21158. }
  21159. e.prototype.setCallback = function(t) {
  21160. this.callback = t;
  21161. };
  21162. e.prototype.onclick = function() {
  21163. this.callback && this.callback(this);
  21164. };
  21165. e.prototype.loadIcon = function(t) {
  21166. var e = this;
  21167. this.mCheck.active = !1;
  21168. this.mLock.active = !1;
  21169. cc.resources.load("icon/role_head/" + this.roleIcon.icon, cc.SpriteFrame, function(t, o) {
  21170. t ? cc.error(t) : e.mIcon.spriteFrame = o;
  21171. });
  21172. if (t) {
  21173. var o = t.player.role, i = t.sManage.getRoleIconById(o.frame);
  21174. i && cc.resources.load("icon/role_head/txk/" + i.icon, cc.SpriteFrame, function(t, o) {
  21175. t ? cc.error(t) : e.mFrame.spriteFrame = o;
  21176. });
  21177. }
  21178. };
  21179. e.prototype.loadFrame = function(t) {
  21180. var e = this;
  21181. this.mCheck.active = !1;
  21182. this.mLock.active = !1;
  21183. cc.resources.load("icon/role_head/txk/" + this.roleIcon.icon, cc.SpriteFrame, function(t, o) {
  21184. t ? cc.error(t) : e.mFrame.spriteFrame = o;
  21185. });
  21186. if (this.mIcon) {
  21187. var o = t.player.role, i = t.sManage.getRoleIconById(o.icon);
  21188. i && cc.resources.load("icon/role_head/" + i.icon, cc.SpriteFrame, function(t, o) {
  21189. t ? cc.error(t) : e.mIcon.spriteFrame = o;
  21190. });
  21191. }
  21192. };
  21193. e.prototype.flushFrame = function(t) {
  21194. var e = this, o = t.player, i = t.sManage.getRoleIconById(o.role.frame);
  21195. i && cc.resources.load("icon/role_head/txk/" + i.icon, cc.SpriteFrame, function(t, o) {
  21196. t ? cc.error(t) : e.mFrame.spriteFrame = o;
  21197. });
  21198. };
  21199. e.prototype.flush = function(t) {
  21200. this.loadIcon(null);
  21201. this.flushLock(t);
  21202. };
  21203. e.prototype.flushLock = function(t) {
  21204. t.player.roleIcon.open.indexOf(this.roleIcon.id) < 0 ? this.mLock.active = !0 : this.mLock.active = !1;
  21205. };
  21206. e.prototype.setCheck = function(t) {
  21207. this.mCheck && (this.mCheck.active = t);
  21208. };
  21209. r([ s(cc.Sprite) ], e.prototype, "mIcon", void 0);
  21210. r([ s(cc.Sprite) ], e.prototype, "mFrame", void 0);
  21211. r([ s(cc.Node) ], e.prototype, "mCheck", void 0);
  21212. r([ s(cc.Node) ], e.prototype, "mLock", void 0);
  21213. return r([ a ], e);
  21214. }(cc.Component);
  21215. o.default = p;
  21216. cc._RF.pop();
  21217. }, {} ],
  21218. RoleIconView: [ function(t, e, o) {
  21219. "use strict";
  21220. cc._RF.push(e, "f437f+STJZN65mMF2dKQbIk", "RoleIconView");
  21221. var i, n = this && this.__extends || (i = function(t, e) {
  21222. return (i = Object.setPrototypeOf || {
  21223. __proto__: []
  21224. } instanceof Array && function(t, e) {
  21225. t.__proto__ = e;
  21226. } || function(t, e) {
  21227. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  21228. })(t, e);
  21229. }, function(t, e) {
  21230. i(t, e);
  21231. function o() {
  21232. this.constructor = t;
  21233. }
  21234. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  21235. }), r = this && this.__decorate || function(t, e, o, i) {
  21236. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  21237. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  21238. return r > 3 && c && Object.defineProperty(e, o, c), c;
  21239. };
  21240. Object.defineProperty(o, "__esModule", {
  21241. value: !0
  21242. });
  21243. var c = t("../../../main/ViewObject"), a = t("../../data/FFCalAttr"), s = t("./RoleIconItem"), p = t("./IconInfoView"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  21244. n(e, t);
  21245. function e() {
  21246. var e = null !== t && t.apply(this, arguments) || this;
  21247. e.mContent = null;
  21248. e.mFrameIcon = null;
  21249. e.mZdl = null;
  21250. e.iconInfoView = null;
  21251. e.tapRole = null;
  21252. return e;
  21253. }
  21254. e.prototype.onLoad = function() {
  21255. this.iconInfoView.main = this.main;
  21256. this.iconInfoView.roleIconView = this;
  21257. this.iconInfoView.openType = 1;
  21258. this.init();
  21259. };
  21260. e.prototype.init = function() {
  21261. for (var t = this, e = this.main.sManage.getRoleIcon(), o = void 0, i = this.main.player.role.icon, n = 0; n < e.length; n++) {
  21262. var r = e[n];
  21263. if (1 == r.type) {
  21264. var c = cc.instantiate(this.mFrameIcon), a = c.getComponent(s.default);
  21265. a.roleIcon = r;
  21266. a.flush(this.main);
  21267. c.parent = this.mContent;
  21268. a.setCallback(function(e) {
  21269. t.openInfo(e);
  21270. });
  21271. i == r.id && (o = a);
  21272. }
  21273. }
  21274. o || (o = this.mContent.children[0].getComponent(s.default));
  21275. this.flush(o);
  21276. };
  21277. e.prototype.flush = function(t) {
  21278. this.iconInfoView.init(this.main, t);
  21279. for (var e = {
  21280. atk: 0,
  21281. def: 0,
  21282. hp: 0,
  21283. sp: 0
  21284. }, o = this.main.player.roleIcon.open, i = 0; i < o.length; i++) {
  21285. var n = o[i];
  21286. if (n < 200) {
  21287. var r = this.main.sManage.getRoleIconById(n);
  21288. e.atk += r.atk;
  21289. e.def += r.def;
  21290. e.hp += r.hp;
  21291. e.sp += r.sp;
  21292. }
  21293. }
  21294. var c = a.default.getZdl(e);
  21295. this.mZdl.string = "" + c;
  21296. var p = this.mContent.children;
  21297. for (i = 0; i < p.length; i++) {
  21298. var l = p[i].getComponent(s.default);
  21299. l.roleIcon.id != this.main.player.role.icon ? l.setCheck(!1) : l.setCheck(!0);
  21300. }
  21301. };
  21302. e.prototype.openInfo = function(t) {
  21303. this.flush(t);
  21304. t.mCheck.active = !0;
  21305. for (var e = t.node.parent.children, o = 0; o < e.length; o++) {
  21306. var i = e[o].getComponent(s.default);
  21307. i != t && (i.mCheck.active = !1);
  21308. }
  21309. };
  21310. r([ f(cc.Node) ], e.prototype, "mContent", void 0);
  21311. r([ f(cc.Prefab) ], e.prototype, "mFrameIcon", void 0);
  21312. r([ f(cc.Label) ], e.prototype, "mZdl", void 0);
  21313. r([ f(p.default) ], e.prototype, "iconInfoView", void 0);
  21314. return r([ u ], e);
  21315. }(c.default);
  21316. o.default = h;
  21317. cc._RF.pop();
  21318. }, {
  21319. "../../../main/ViewObject": "ViewObject",
  21320. "../../data/FFCalAttr": "FFCalAttr",
  21321. "./IconInfoView": "IconInfoView",
  21322. "./RoleIconItem": "RoleIconItem"
  21323. } ],
  21324. RoleTitleItem: [ function(t, e, o) {
  21325. "use strict";
  21326. cc._RF.push(e, "d32d12YZQ9JLbX+/jiqomQT", "RoleTitleItem");
  21327. var i, n = this && this.__extends || (i = function(t, e) {
  21328. return (i = Object.setPrototypeOf || {
  21329. __proto__: []
  21330. } instanceof Array && function(t, e) {
  21331. t.__proto__ = e;
  21332. } || function(t, e) {
  21333. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  21334. })(t, e);
  21335. }, function(t, e) {
  21336. i(t, e);
  21337. function o() {
  21338. this.constructor = t;
  21339. }
  21340. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  21341. }), r = this && this.__decorate || function(t, e, o, i) {
  21342. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  21343. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  21344. return r > 3 && c && Object.defineProperty(e, o, c), c;
  21345. };
  21346. Object.defineProperty(o, "__esModule", {
  21347. value: !0
  21348. });
  21349. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  21350. n(e, t);
  21351. function e() {
  21352. var e = null !== t && t.apply(this, arguments) || this;
  21353. e.mIcon = null;
  21354. e.mName = null;
  21355. e.mLock = null;
  21356. return e;
  21357. }
  21358. e.prototype.setCallback = function(t) {
  21359. this.callback = t;
  21360. };
  21361. e.prototype.onclick = function() {
  21362. this.callback && this.callback(this);
  21363. };
  21364. e.prototype.init = function() {
  21365. var t = this;
  21366. this.mName.string = this.roleIcon.name;
  21367. cc.resources.load("icon/role_head/ch/" + this.roleIcon.icon, cc.SpriteFrame, function(e, o) {
  21368. e ? cc.error(e) : t.mIcon.spriteFrame = o;
  21369. });
  21370. };
  21371. e.prototype.flushLock = function(t) {
  21372. t.player.roleIcon.data.indexOf(this.roleIcon.id) < 0 ? this.mLock.active = !0 : this.mLock.active = !1;
  21373. };
  21374. r([ s(cc.Sprite) ], e.prototype, "mIcon", void 0);
  21375. r([ s(cc.Label) ], e.prototype, "mName", void 0);
  21376. r([ s(cc.Node) ], e.prototype, "mLock", void 0);
  21377. return r([ a ], e);
  21378. }(cc.Component);
  21379. o.default = p;
  21380. cc._RF.pop();
  21381. }, {} ],
  21382. RoleTitleView: [ function(t, e, o) {
  21383. "use strict";
  21384. cc._RF.push(e, "7e74587H9tIoaM8LqNS8Ev7", "RoleTitleView");
  21385. var i, n = this && this.__extends || (i = function(t, e) {
  21386. return (i = Object.setPrototypeOf || {
  21387. __proto__: []
  21388. } instanceof Array && function(t, e) {
  21389. t.__proto__ = e;
  21390. } || function(t, e) {
  21391. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  21392. })(t, e);
  21393. }, function(t, e) {
  21394. i(t, e);
  21395. function o() {
  21396. this.constructor = t;
  21397. }
  21398. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  21399. }), r = this && this.__decorate || function(t, e, o, i) {
  21400. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  21401. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  21402. return r > 3 && c && Object.defineProperty(e, o, c), c;
  21403. };
  21404. Object.defineProperty(o, "__esModule", {
  21405. value: !0
  21406. });
  21407. var c = t("../../../main/ViewObject"), a = t("../../data/FFCalAttr"), s = t("./RoleTitleItem"), p = t("./TitleInfoView"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  21408. n(e, t);
  21409. function e() {
  21410. var e = null !== t && t.apply(this, arguments) || this;
  21411. e.mContent = null;
  21412. e.mFrameIcon = null;
  21413. e.mContentHas = null;
  21414. e.mTitleInfoView = null;
  21415. e.mZdl = null;
  21416. return e;
  21417. }
  21418. e.prototype.init = function() {
  21419. for (var t = this, e = this.main.sManage.getRoleIcon(), o = 0; o < e.length; o++) {
  21420. var i = e[o];
  21421. if (3 == i.type) {
  21422. var n = cc.instantiate(this.mFrameIcon), r = n.getComponent(s.default);
  21423. r.roleIcon = i;
  21424. r.init();
  21425. r.flushLock(this.main);
  21426. n.parent = this.mContent;
  21427. r.setCallback(function(e) {
  21428. t.openInfo(e);
  21429. });
  21430. }
  21431. }
  21432. var c = this.mContent.children[0].getComponent(s.default);
  21433. this.flush(c);
  21434. };
  21435. e.prototype.flush = function(t) {
  21436. this.mTitleInfoView.init(this.main, t);
  21437. for (var e = {
  21438. atk: 0,
  21439. def: 0,
  21440. hp: 0,
  21441. sp: 0
  21442. }, o = this.main.player.roleIcon.open, i = 0; i < o.length; i++) {
  21443. var n = o[i];
  21444. if (n >= 400 && n < 400) {
  21445. var r = this.main.sManage.getRoleIconById(n);
  21446. e.atk += r.atk;
  21447. e.def += r.def;
  21448. e.hp += r.hp;
  21449. e.sp += r.sp;
  21450. }
  21451. }
  21452. var c = a.default.getZdl(e);
  21453. this.mZdl.string = "" + c;
  21454. };
  21455. e.prototype.openInfo = function(t) {
  21456. this.mTitleInfoView.init(this.main, t);
  21457. };
  21458. r([ f(cc.Node) ], e.prototype, "mContent", void 0);
  21459. r([ f(cc.Prefab) ], e.prototype, "mFrameIcon", void 0);
  21460. r([ f(cc.Node) ], e.prototype, "mContentHas", void 0);
  21461. r([ f(p.default) ], e.prototype, "mTitleInfoView", void 0);
  21462. r([ f(cc.Label) ], e.prototype, "mZdl", void 0);
  21463. return r([ u ], e);
  21464. }(c.default);
  21465. o.default = h;
  21466. cc._RF.pop();
  21467. }, {
  21468. "../../../main/ViewObject": "ViewObject",
  21469. "../../data/FFCalAttr": "FFCalAttr",
  21470. "./RoleTitleItem": "RoleTitleItem",
  21471. "./TitleInfoView": "TitleInfoView"
  21472. } ],
  21473. SManage: [ function(t, e, o) {
  21474. "use strict";
  21475. cc._RF.push(e, "12930sLojdMS4RJKMFibLMs", "SManage");
  21476. Object.defineProperty(o, "__esModule", {
  21477. value: !0
  21478. });
  21479. var i = t("../../../i18n/i18n"), n = function() {
  21480. function t(t) {
  21481. this.roleDataMap = new Map();
  21482. this.roleIcons = [];
  21483. this.goodMap = new Map();
  21484. this.equipMap = new Map();
  21485. this.equipQHMap = new Map();
  21486. this.attrMap = new Map();
  21487. this.skillMap = new Map();
  21488. this.monsterMap = new Map();
  21489. this.sceneLists = null;
  21490. this.stageLists = null;
  21491. this.godCards = null;
  21492. this.magicBoxs = null;
  21493. this.payDatas = null;
  21494. this.taskLists = null;
  21495. this.initRoleData(t.roleData);
  21496. this.roleIcons = t.roleIcon;
  21497. this.initGood(t.good);
  21498. this.initEquip(t.equip);
  21499. this.initEquipQH(t.equipQH);
  21500. this.initEquipAttr(t.eAttr);
  21501. this.initSkillData(t.skill);
  21502. this.initMonster(t.monster);
  21503. this.sceneLists = t.scene;
  21504. this.stageLists = t.stage;
  21505. this.initScene();
  21506. this.initGodCard(t.godCard);
  21507. this.initGodCardLevel(t.godCardLevel);
  21508. this.initGodReborn(t.godReborn);
  21509. this.magicBoxs = t.magicBox;
  21510. this.initMaigcBoxReward(t.magicBoxReward);
  21511. this.payDatas = t.payData;
  21512. this.taskLists = t.task;
  21513. }
  21514. t.prototype.initMaigcBoxReward = function(t) {
  21515. for (var e = 0; e < this.magicBoxs.length; e++) for (var o = this.magicBoxs[e], i = 0; i < t.length; i++) {
  21516. var n = t[i];
  21517. if (n.magicBoxId == o.rewardId) {
  21518. null == o.list && (o.list = []);
  21519. o.list.push(n);
  21520. }
  21521. }
  21522. };
  21523. t.prototype.initGodReborn = function(t) {
  21524. var e = this;
  21525. t.forEach(function(t) {
  21526. e.getGodCardById(t.godCardId).godReborn = t;
  21527. });
  21528. };
  21529. t.prototype.initGodCardLevel = function(t) {
  21530. for (var e = 0; e < t.length; e++) {
  21531. var o = t[e], i = this.getGodCardById(o.godCardId);
  21532. i.list || (i.list = []);
  21533. i.list.push(o);
  21534. }
  21535. };
  21536. t.prototype.initGodCard = function(t) {
  21537. this.godCards = t;
  21538. };
  21539. t.prototype.initSkillData = function(t) {
  21540. var e = this;
  21541. t.forEach(function(t) {
  21542. e.skillMap.set(t.id, t);
  21543. });
  21544. };
  21545. t.prototype.getRoleIconById = function(t) {
  21546. for (var e = 0; e < this.roleIcons.length; e++) {
  21547. var o = this.roleIcons[e];
  21548. if (o.id == t) return o;
  21549. }
  21550. };
  21551. t.prototype.initRoleData = function(t) {
  21552. var e = this;
  21553. t.forEach(function(t) {
  21554. e.roleDataMap.set(t.id, t);
  21555. });
  21556. };
  21557. t.prototype.initGood = function(t) {
  21558. var e = this;
  21559. t.forEach(function(t) {
  21560. e.goodMap.set(t.id, t);
  21561. });
  21562. };
  21563. t.prototype.initEquipAttr = function(t) {
  21564. var e = this;
  21565. t.forEach(function(t) {
  21566. e.attrMap.set(t.id, t);
  21567. });
  21568. };
  21569. t.prototype.initEquip = function(t) {
  21570. var e = this;
  21571. t.forEach(function(t) {
  21572. e.equipMap.set(t.id, t);
  21573. });
  21574. };
  21575. t.prototype.initEquipQH = function(t) {
  21576. var e = this;
  21577. t.forEach(function(t) {
  21578. var o = t.occ + "@" + t.type, i = e.equipQHMap.get(o);
  21579. if (i) i.push(t); else {
  21580. (i = []).push(t);
  21581. e.equipQHMap.set(o, i);
  21582. }
  21583. });
  21584. };
  21585. t.prototype.initMonster = function(t) {
  21586. var e = this;
  21587. t.forEach(function(t) {
  21588. e.monsterMap.set(t.id, t);
  21589. });
  21590. };
  21591. t.prototype.initScene = function() {
  21592. for (var t = 0; t < this.stageLists.length; t++) {
  21593. var e = this.stageLists[t], o = this.getSceneById(e.zid);
  21594. if (null == o.list) {
  21595. o.list = [];
  21596. o.startIndex = t;
  21597. }
  21598. o.list.push(e);
  21599. }
  21600. };
  21601. t.prototype.getGodCardById = function(t) {
  21602. for (var e = 0; e < this.godCards.length; e++) {
  21603. var o = this.godCards[e];
  21604. if (o.id == t) return o;
  21605. }
  21606. };
  21607. t.prototype.getSceneById = function(t) {
  21608. for (var e = 0; e < this.sceneLists.length; e++) {
  21609. var o = this.sceneLists[e];
  21610. if (o.id == t) return o;
  21611. }
  21612. };
  21613. t.prototype.getSceneByStage = function(t) {
  21614. return null == t ? this.sceneLists[this.sceneLists.length - 1] : this.getSceneById(t.zid);
  21615. };
  21616. t.prototype.getScene = function() {
  21617. return this.sceneLists;
  21618. };
  21619. t.prototype.getStage = function() {
  21620. return this.stageLists;
  21621. };
  21622. t.prototype.getStageByIndex = function(t) {
  21623. return t >= this.stageLists.length ? null : this.stageLists[t];
  21624. };
  21625. t.prototype.getMonsterData = function(t) {
  21626. var e = this.monsterMap.get(t);
  21627. return {
  21628. id: t,
  21629. type: e.type,
  21630. post: e.career,
  21631. path: "prefab/monster/" + e.act,
  21632. atk: e.atk,
  21633. def: e.def,
  21634. hp: e.hp,
  21635. sp: e.sp,
  21636. water: 0,
  21637. fire: 0,
  21638. wind: 0,
  21639. thunder: 0,
  21640. earth: 0,
  21641. sd: 500,
  21642. weaponSkill: 0,
  21643. suitId: 0,
  21644. suitCount: 0,
  21645. attrs: [],
  21646. zdl: 1,
  21647. skin: null,
  21648. weapon: null,
  21649. bullet: null
  21650. };
  21651. };
  21652. t.prototype.getGoodById = function(t) {
  21653. return this.goodMap.get(parseInt(t));
  21654. };
  21655. t.prototype.getGoodById1 = function(t) {
  21656. return this.goodMap.get(t);
  21657. };
  21658. t.prototype.getEquipById = function(t) {
  21659. return this.equipMap.get(t);
  21660. };
  21661. t.prototype.getEquipAttrById = function(t) {
  21662. return this.attrMap.get(t);
  21663. };
  21664. t.prototype.getSkillById = function(t) {
  21665. return this.skillMap.get(t);
  21666. };
  21667. t.prototype.getRoleById = function(t) {
  21668. return this.roleDataMap.get(t);
  21669. };
  21670. t.prototype.getRoleIcon = function() {
  21671. return this.roleIcons;
  21672. };
  21673. t.prototype.getEquipQHByType = function(t) {
  21674. return this.equipQHMap.get(t.occ + "@" + t.type);
  21675. };
  21676. t.prototype.getRewards = function(t) {
  21677. var e = [], o = t.data;
  21678. if (null != o._role) {
  21679. if (null != o._role._money && o._role._money > 0) {
  21680. var n = {
  21681. type: 0,
  21682. icon: "icon/good/3001",
  21683. count: o._role._money,
  21684. id: 0,
  21685. pz: 4,
  21686. star: 0,
  21687. name: i.default.t("金币")
  21688. };
  21689. e.push(n);
  21690. }
  21691. if (null != o._role._gold && o._role._gold > 0) {
  21692. n = {
  21693. type: 1,
  21694. icon: "icon/good/3002",
  21695. count: o._role._gold,
  21696. id: 0,
  21697. pz: 5,
  21698. star: 0,
  21699. name: i.default.t("钻石")
  21700. };
  21701. e.push(n);
  21702. }
  21703. if (null != o._role._power && o._role._power > 0) {
  21704. n = {
  21705. type: 1,
  21706. icon: "icon/good/3003",
  21707. count: o._role._power,
  21708. id: 0,
  21709. pz: 5,
  21710. star: 0,
  21711. name: i.default.t("体力")
  21712. };
  21713. e.push(n);
  21714. }
  21715. }
  21716. if (null != o._pack) for (var r = 0; r < o._pack.length; r++) if ((a = o._pack[r]).count > 0) {
  21717. var c = this.getGoodById1(a.id);
  21718. n = {
  21719. type: 2,
  21720. icon: "icon/good/" + c.icon,
  21721. count: a.count,
  21722. id: a.id,
  21723. pz: c.pz,
  21724. star: 0,
  21725. name: i.default.t(c.name)
  21726. };
  21727. e.push(n);
  21728. }
  21729. if (null != o._equip) for (r = 0; r < o._equip.length; r++) {
  21730. var a = o._equip[r], s = this.getEquipById(a.id);
  21731. n = {
  21732. type: 3,
  21733. icon: "icon/equip/" + s.icon,
  21734. count: 0,
  21735. id: a.id,
  21736. pz: s.pz,
  21737. PI: a.PI,
  21738. star: a.star,
  21739. _data: s,
  21740. name: i.default.t(s.name)
  21741. };
  21742. e.push(n);
  21743. }
  21744. if (null != o._godCard) for (r = 0; r < o._godCard.length; r++) {
  21745. n = {
  21746. type: 4,
  21747. data: a = o._godCard[r],
  21748. name: i.default.t("神卡")
  21749. };
  21750. e.push(n);
  21751. }
  21752. return e;
  21753. };
  21754. t.prototype.getRewardViews = function(t) {
  21755. for (var e = [], o = 0; o < t.length; o++) {
  21756. var i = t[o];
  21757. if (1 == i.type) {
  21758. var n = {
  21759. type: 0,
  21760. icon: "icon/good/3001",
  21761. count: i.value1,
  21762. id: 0,
  21763. pz: 3,
  21764. star: 0,
  21765. PR: i.PR
  21766. };
  21767. e.push(n);
  21768. } else if (2 == i.type) {
  21769. n = {
  21770. type: 1,
  21771. icon: "icon/good/3002",
  21772. count: i.value1,
  21773. id: 0,
  21774. pz: 5,
  21775. star: 0,
  21776. PR: i.PR
  21777. };
  21778. e.push(n);
  21779. } else if (3 == i.type) {
  21780. var r = this.getGoodById1(i.value1);
  21781. n = {
  21782. type: 2,
  21783. icon: "icon/good/" + r.icon,
  21784. count: i.value2,
  21785. id: i.id,
  21786. pz: r.pz,
  21787. star: 0,
  21788. PR: i.PR
  21789. };
  21790. e.push(n);
  21791. } else if (4 == i.type) {
  21792. var c = this.getEquipById(i.value1);
  21793. n = {
  21794. type: 3,
  21795. icon: "icon/equip/" + c.icon,
  21796. count: 0,
  21797. id: i.id,
  21798. pz: c.pz,
  21799. PI: i.value3,
  21800. star: 0,
  21801. _data: c,
  21802. PR: i.PR
  21803. };
  21804. e.push(n);
  21805. }
  21806. }
  21807. return e;
  21808. };
  21809. return t;
  21810. }();
  21811. o.default = n;
  21812. cc._RF.pop();
  21813. }, {
  21814. "../../../i18n/i18n": "i18n"
  21815. } ],
  21816. SetLeader: [ function(t, e, o) {
  21817. "use strict";
  21818. cc._RF.push(e, "565b24L5RdMBaA1d+vdefVE", "SetLeader");
  21819. var i, n = this && this.__extends || (i = function(t, e) {
  21820. return (i = Object.setPrototypeOf || {
  21821. __proto__: []
  21822. } instanceof Array && function(t, e) {
  21823. t.__proto__ = e;
  21824. } || function(t, e) {
  21825. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  21826. })(t, e);
  21827. }, function(t, e) {
  21828. i(t, e);
  21829. function o() {
  21830. this.constructor = t;
  21831. }
  21832. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  21833. }), r = this && this.__decorate || function(t, e, o, i) {
  21834. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  21835. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  21836. return r > 3 && c && Object.defineProperty(e, o, c), c;
  21837. };
  21838. Object.defineProperty(o, "__esModule", {
  21839. value: !0
  21840. });
  21841. var c = t("../../../util/CHttp"), a = t("../../common/PetIcon"), s = t("./Equip"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  21842. n(e, t);
  21843. function e() {
  21844. var e = null !== t && t.apply(this, arguments) || this;
  21845. e.mSetButton = null;
  21846. e.equip = null;
  21847. return e;
  21848. }
  21849. e.prototype.onLoad = function() {
  21850. this.equip = this.node.getComponent(s.default);
  21851. };
  21852. e.prototype.start = function() {
  21853. this.flushLeader();
  21854. };
  21855. e.prototype.flushLeader = function() {
  21856. for (var t = this.equip.main.player, e = this.equip.mPetList.children, o = 0; o < e.length; o++) {
  21857. var i = e[o].getComponent(a.default);
  21858. i.id == t.role.leader ? i.mLeaderIcon.active = !0 : i.mLeaderIcon.active = !1;
  21859. }
  21860. };
  21861. e.prototype.onclickSetLeader = function() {
  21862. var t = this, e = this.equip.main, o = {
  21863. leader: this.equip.curPi.id
  21864. };
  21865. e.gameHttp.sendJson("set/v1/leader", o, function(i, n) {
  21866. e.stopLoad();
  21867. if (i == c.HttpStateType.SUCCESS) if (0 == n.retCode) {
  21868. e.player.role.leader = o.leader;
  21869. t.flushLeader();
  21870. e.showTips("设置成功");
  21871. } else e.showTips(n.message); else e.showTips("网络异常");
  21872. });
  21873. };
  21874. r([ u(cc.Node) ], e.prototype, "mSetButton", void 0);
  21875. return r([ l ], e);
  21876. }(cc.Component);
  21877. o.default = f;
  21878. cc._RF.pop();
  21879. }, {
  21880. "../../../util/CHttp": "CHttp",
  21881. "../../common/PetIcon": "PetIcon",
  21882. "./Equip": "Equip"
  21883. } ],
  21884. ShopAmethystItem: [ function(t, e, o) {
  21885. "use strict";
  21886. cc._RF.push(e, "c0666l2UBhKGZJeX+qGDfmG", "ShopAmethystItem");
  21887. var i, n = this && this.__extends || (i = function(t, e) {
  21888. return (i = Object.setPrototypeOf || {
  21889. __proto__: []
  21890. } instanceof Array && function(t, e) {
  21891. t.__proto__ = e;
  21892. } || function(t, e) {
  21893. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  21894. })(t, e);
  21895. }, function(t, e) {
  21896. i(t, e);
  21897. function o() {
  21898. this.constructor = t;
  21899. }
  21900. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  21901. }), r = this && this.__decorate || function(t, e, o, i) {
  21902. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  21903. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  21904. return r > 3 && c && Object.defineProperty(e, o, c), c;
  21905. };
  21906. Object.defineProperty(o, "__esModule", {
  21907. value: !0
  21908. });
  21909. var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) {
  21910. n(e, t);
  21911. function e() {
  21912. return null !== t && t.apply(this, arguments) || this;
  21913. }
  21914. e.prototype.init = function(t) {
  21915. this._buyPowerData = t;
  21916. };
  21917. e.prototype.setCallback = function(t) {
  21918. this.callback = t;
  21919. };
  21920. e.prototype.onclick = function() {
  21921. this.callback(this);
  21922. };
  21923. return r([ a ], e);
  21924. }(cc.Component));
  21925. o.default = s;
  21926. cc._RF.pop();
  21927. }, {} ],
  21928. ShopCoinItem: [ function(t, e, o) {
  21929. "use strict";
  21930. cc._RF.push(e, "db0abuVfrtBNY+L2R7BcOOb", "ShopCoinItem");
  21931. var i, n = this && this.__extends || (i = function(t, e) {
  21932. return (i = Object.setPrototypeOf || {
  21933. __proto__: []
  21934. } instanceof Array && function(t, e) {
  21935. t.__proto__ = e;
  21936. } || function(t, e) {
  21937. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  21938. })(t, e);
  21939. }, function(t, e) {
  21940. i(t, e);
  21941. function o() {
  21942. this.constructor = t;
  21943. }
  21944. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  21945. }), r = this && this.__decorate || function(t, e, o, i) {
  21946. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  21947. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  21948. return r > 3 && c && Object.defineProperty(e, o, c), c;
  21949. };
  21950. Object.defineProperty(o, "__esModule", {
  21951. value: !0
  21952. });
  21953. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  21954. n(e, t);
  21955. function e() {
  21956. var e = null !== t && t.apply(this, arguments) || this;
  21957. e.addNum = null;
  21958. e.diamondNum = null;
  21959. e.diamond = null;
  21960. e.video = null;
  21961. e.maxCount = null;
  21962. e.icon = null;
  21963. e.lbtime = null;
  21964. e.shopId = 0;
  21965. e.videoId = 0;
  21966. e.videoMap = new Map();
  21967. return e;
  21968. }
  21969. e.prototype.init = function(t, e) {
  21970. this._buyCoinData = t;
  21971. this.shopId = t.id;
  21972. this.addNum.string = "+" + (t.money + t.gave);
  21973. this.video.active = 0 == t.gold;
  21974. this.diamond.active = t.gold > 0;
  21975. this.diamondNum.string = 0 == t.gold ? "免费" : t.gold + "";
  21976. if (t.maxCount < 0) this.maxCount.node.active = !1; else {
  21977. var o = e[this.shopId] ? e[this.shopId] : 0;
  21978. this.maxCount.string = "剩余次数" + (t.maxCount - o);
  21979. }
  21980. if (0 == t.gold) {
  21981. o = e[this.shopId] ? e[this.shopId] : 0;
  21982. this.videoMap[this.shopId] = t.maxCount - o;
  21983. this.videoId = this.shopId;
  21984. }
  21985. this.initIcon(t.id);
  21986. };
  21987. e.prototype.initIcon = function(t) {
  21988. var e = this;
  21989. cc.resources.load("icon/shop/money/" + t, cc.SpriteFrame, function(t, o) {
  21990. t ? cc.error(t) : e.icon.spriteFrame = o;
  21991. });
  21992. };
  21993. e.prototype.refresh = function(t) {
  21994. this.videoMap[t]--;
  21995. this.maxCount.string = "剩余次数" + this.videoMap[t];
  21996. };
  21997. e.prototype.setCallback = function(t) {
  21998. this.callback = t;
  21999. };
  22000. e.prototype.onclick = function() {
  22001. this.callback(this);
  22002. };
  22003. r([ s(cc.Label) ], e.prototype, "addNum", void 0);
  22004. r([ s(cc.Label) ], e.prototype, "diamondNum", void 0);
  22005. r([ s(cc.Node) ], e.prototype, "diamond", void 0);
  22006. r([ s(cc.Node) ], e.prototype, "video", void 0);
  22007. r([ s(cc.Label) ], e.prototype, "maxCount", void 0);
  22008. r([ s(cc.Sprite) ], e.prototype, "icon", void 0);
  22009. r([ s(cc.Node) ], e.prototype, "lbtime", void 0);
  22010. return r([ a ], e);
  22011. }(cc.Component);
  22012. o.default = p;
  22013. cc._RF.pop();
  22014. }, {} ],
  22015. ShopPandoraItem: [ function(t, e, o) {
  22016. "use strict";
  22017. cc._RF.push(e, "e5f50DyGyxBWLVW2v3DMVDk", "ShopPandoraItem");
  22018. var i, n = this && this.__extends || (i = function(t, e) {
  22019. return (i = Object.setPrototypeOf || {
  22020. __proto__: []
  22021. } instanceof Array && function(t, e) {
  22022. t.__proto__ = e;
  22023. } || function(t, e) {
  22024. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  22025. })(t, e);
  22026. }, function(t, e) {
  22027. i(t, e);
  22028. function o() {
  22029. this.constructor = t;
  22030. }
  22031. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  22032. }), r = this && this.__decorate || function(t, e, o, i) {
  22033. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  22034. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  22035. return r > 3 && c && Object.defineProperty(e, o, c), c;
  22036. };
  22037. Object.defineProperty(o, "__esModule", {
  22038. value: !0
  22039. });
  22040. var c = cc._decorator, a = c.ccclass, s = c.property, p = {
  22041. 1001: "<color=#FFFFFF>包含1件</c>普通、<color=#3DFF00>精良</color>、<color=#0fffff>稀有</color>的物品",
  22042. 1002: "<color=#FFFFFF>包含1件</c><color=#0fffff>稀有</color>、<color=#E62CFF>史诗</color>、<color=#FFE000>传说</color>的物品",
  22043. 1003: "<color=#FFFFFF>包含10件</c><color=#0fffff>稀有</color>、<color=#E62CFF>史诗</color>、<color=#FFE000>传说</color>的物品"
  22044. }, l = function(t) {
  22045. n(e, t);
  22046. function e() {
  22047. var e = null !== t && t.apply(this, arguments) || this;
  22048. e.lbdesc = null;
  22049. e.lbtime = null;
  22050. e.lbtext = null;
  22051. e.videoNum = null;
  22052. e.diamondNum = null;
  22053. e.diamondButtom = null;
  22054. e.videoButtom = null;
  22055. e.icon = null;
  22056. e.lbname = null;
  22057. e.shopId = 0;
  22058. e.videoMap = new Map();
  22059. e.drawMap = new Map();
  22060. e.pandoraDrawCount = 0;
  22061. e.needAmethyst = 0;
  22062. return e;
  22063. }
  22064. e.prototype.init = function(t, e) {
  22065. this._buyPandoraData = t;
  22066. this.shopId = t.id;
  22067. this.lbdesc.string = p[t.id];
  22068. this.lbname.string = t.name;
  22069. if (t.adCount > 0) {
  22070. var o = e.data[t.id] ? e.data[t.id] : 0;
  22071. if (t.adCount - o > 0) {
  22072. this.videoMap[String(t.id)] = "" + (t.adCount - o);
  22073. this.videoNum.string = "" + (t.adCount - o);
  22074. this.videoButtom.active = !0;
  22075. this.diamondButtom.active = !1;
  22076. } else {
  22077. this.videoButtom.active = !1;
  22078. this.diamondButtom.active = !0;
  22079. this.diamondNum.string = "" + t.goodId;
  22080. }
  22081. } else {
  22082. this.videoButtom.active = !1;
  22083. this.diamondButtom.active = !0;
  22084. this.diamondNum.string = "" + t.goodId;
  22085. }
  22086. this.lbtime.node.active = t.flushTime > 0;
  22087. this.initIcon(t.id);
  22088. this.initText(t.id, e);
  22089. };
  22090. e.prototype.initText = function(t, e) {
  22091. if (1001 == t) {
  22092. this.lbtext.node.active = !1;
  22093. this.pandoraDrawCount = 1;
  22094. } else if (1002 == t) {
  22095. this.pandoraDrawCount = 1;
  22096. var o = e.count ? e.count : 0;
  22097. this.drawMap[t] = 10 - o;
  22098. this.lbtext.string = "<color=#0fffff>" + (10 - o) + "次内</c><color=#ffffff>必得<color=#ffff00>传说<color=#ffffff>物品</color>";
  22099. } else if (1003 == t) {
  22100. this.pandoraDrawCount = 10;
  22101. this.lbtext.string = "<color=#ffffff>必得<color=#ffff00>传说<color=#ffffff>物品</color>";
  22102. }
  22103. this.needAmethyst = this._buyPandoraData.goodId;
  22104. };
  22105. e.prototype.initIcon = function(t) {
  22106. var e = this;
  22107. cc.resources.load("icon/magic_box/" + t, cc.SpriteFrame, function(t, o) {
  22108. t ? cc.error(t) : e.icon.spriteFrame = o;
  22109. });
  22110. };
  22111. e.prototype.refresh = function(t) {
  22112. if (this.videoMap[t]) {
  22113. this.videoMap[t]--;
  22114. if (0 == this.videoMap[t]) {
  22115. this.videoButtom.active = !1;
  22116. this.diamondButtom.active = !0;
  22117. this.diamondNum.string = "" + this._buyPandoraData.goodId;
  22118. } else this.videoNum.string = this.videoMap[t];
  22119. }
  22120. };
  22121. e.prototype.refreshDraw = function(t) {
  22122. if (this.drawMap[t]) {
  22123. this.drawMap[t]--;
  22124. 0 == this.drawMap[t] && (this.drawMap[t] = 10);
  22125. this.lbtext.string = "<color=#0fffff>" + this.drawMap[t] + "次内</c><color=#ffffff>必得<color=#ffff00>传说<color=#ffffff>物品</color>";
  22126. }
  22127. };
  22128. e.prototype.setCallback = function(t) {
  22129. this.callback = t;
  22130. };
  22131. e.prototype.onclick = function() {
  22132. this.callback(this);
  22133. };
  22134. r([ s(cc.RichText) ], e.prototype, "lbdesc", void 0);
  22135. r([ s(cc.Label) ], e.prototype, "lbtime", void 0);
  22136. r([ s(cc.RichText) ], e.prototype, "lbtext", void 0);
  22137. r([ s(cc.Label) ], e.prototype, "videoNum", void 0);
  22138. r([ s(cc.Label) ], e.prototype, "diamondNum", void 0);
  22139. r([ s(cc.Node) ], e.prototype, "diamondButtom", void 0);
  22140. r([ s(cc.Node) ], e.prototype, "videoButtom", void 0);
  22141. r([ s(cc.Sprite) ], e.prototype, "icon", void 0);
  22142. r([ s(cc.Label) ], e.prototype, "lbname", void 0);
  22143. return r([ a ], e);
  22144. }(cc.Component);
  22145. o.default = l;
  22146. cc._RF.pop();
  22147. }, {} ],
  22148. ShopPowerItem: [ function(t, e, o) {
  22149. "use strict";
  22150. cc._RF.push(e, "b1f046q8zZNlIbRE15h/RDz", "ShopPowerItem");
  22151. var i, n = this && this.__extends || (i = function(t, e) {
  22152. return (i = Object.setPrototypeOf || {
  22153. __proto__: []
  22154. } instanceof Array && function(t, e) {
  22155. t.__proto__ = e;
  22156. } || function(t, e) {
  22157. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  22158. })(t, e);
  22159. }, function(t, e) {
  22160. i(t, e);
  22161. function o() {
  22162. this.constructor = t;
  22163. }
  22164. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  22165. }), r = this && this.__decorate || function(t, e, o, i) {
  22166. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  22167. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  22168. return r > 3 && c && Object.defineProperty(e, o, c), c;
  22169. };
  22170. Object.defineProperty(o, "__esModule", {
  22171. value: !0
  22172. });
  22173. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  22174. n(e, t);
  22175. function e() {
  22176. var e = null !== t && t.apply(this, arguments) || this;
  22177. e.addNum = null;
  22178. e.diamondNum = null;
  22179. e.diamond = null;
  22180. e.video = null;
  22181. e.maxCount = null;
  22182. e.icon = null;
  22183. e.lbtime = null;
  22184. e.shopId = 0;
  22185. e.videoId = 0;
  22186. e.videoMap = new Map();
  22187. return e;
  22188. }
  22189. e.prototype.init = function(t, e) {
  22190. this._buyPowerData = t;
  22191. this.shopId = t.id;
  22192. this.addNum.string = "+" + t.power;
  22193. this.video.active = 0 == t.gold;
  22194. this.diamond.active = t.gold > 0;
  22195. this.diamondNum.string = 0 == t.gold ? "免费" : t.gold + "";
  22196. if (t.maxCount < 0) this.maxCount.node.active = !1; else {
  22197. var o = e[this.shopId] ? e[this.shopId] : 0;
  22198. this.maxCount.string = "剩余次数" + (t.maxCount - o);
  22199. }
  22200. if (0 == t.gold) {
  22201. o = e[this.shopId] ? e[this.shopId] : 0;
  22202. this.videoMap[this.shopId] = t.maxCount - o;
  22203. this.videoId = this.shopId;
  22204. }
  22205. this.initIcon(t.id);
  22206. };
  22207. e.prototype.initIcon = function(t) {
  22208. var e = this;
  22209. cc.resources.load("icon/shop/vigor/" + t, cc.SpriteFrame, function(t, o) {
  22210. t ? cc.error(t) : e.icon.spriteFrame = o;
  22211. });
  22212. };
  22213. e.prototype.refresh = function(t) {
  22214. this.videoMap[t]--;
  22215. this.maxCount.string = "剩余次数" + this.videoMap[t];
  22216. };
  22217. e.prototype.setCallback = function(t) {
  22218. this.callback = t;
  22219. };
  22220. e.prototype.onclick = function() {
  22221. this.callback(this);
  22222. };
  22223. r([ s(cc.Label) ], e.prototype, "addNum", void 0);
  22224. r([ s(cc.Label) ], e.prototype, "diamondNum", void 0);
  22225. r([ s(cc.Node) ], e.prototype, "diamond", void 0);
  22226. r([ s(cc.Node) ], e.prototype, "video", void 0);
  22227. r([ s(cc.Label) ], e.prototype, "maxCount", void 0);
  22228. r([ s(cc.Sprite) ], e.prototype, "icon", void 0);
  22229. r([ s(cc.Node) ], e.prototype, "lbtime", void 0);
  22230. return r([ a ], e);
  22231. }(cc.Component);
  22232. o.default = p;
  22233. cc._RF.pop();
  22234. }, {} ],
  22235. ShopView: [ function(t, e, o) {
  22236. "use strict";
  22237. cc._RF.push(e, "b9eb6IHQndFE7rarDYVSY6G", "ShopView");
  22238. var i, n = this && this.__extends || (i = function(t, e) {
  22239. return (i = Object.setPrototypeOf || {
  22240. __proto__: []
  22241. } instanceof Array && function(t, e) {
  22242. t.__proto__ = e;
  22243. } || function(t, e) {
  22244. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  22245. })(t, e);
  22246. }, function(t, e) {
  22247. i(t, e);
  22248. function o() {
  22249. this.constructor = t;
  22250. }
  22251. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  22252. }), r = this && this.__decorate || function(t, e, o, i) {
  22253. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  22254. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  22255. return r > 3 && c && Object.defineProperty(e, o, c), c;
  22256. };
  22257. Object.defineProperty(o, "__esModule", {
  22258. value: !0
  22259. });
  22260. var c, a = t("../../../main/ViewManage"), s = t("../../../main/ViewObject"), p = t("../../../pay/FqPay"), l = t("../../../util/CHttp"), u = t("../../pay/PayShopItem"), f = t("../TopMenu"), h = t("./ShopCoinItem"), d = t("./ShopPandoraItem"), m = t("./ShopPowerItem");
  22261. (function(t) {
  22262. t.marketMoney = "marketMoney";
  22263. t.marketPower = "marketPower";
  22264. t.pandora = "pandora";
  22265. })(c || (c = {}));
  22266. var y = cc._decorator, v = y.ccclass, g = y.property, _ = function(t) {
  22267. n(e, t);
  22268. function e() {
  22269. var e = null !== t && t.apply(this, arguments) || this;
  22270. e.insetContent = null;
  22271. e.content = null;
  22272. e.payItem = null;
  22273. e.powerItem = null;
  22274. e.coinItem = null;
  22275. e.pandoraItem = null;
  22276. e.amethystNode = null;
  22277. e.diamondNode = null;
  22278. e.powerTips = null;
  22279. e.curInsetNode = null;
  22280. e.curInsetNum = 104;
  22281. e.shopData = null;
  22282. e.pandoraData = null;
  22283. e.shopPandoraItem = null;
  22284. e.pandorId = 0;
  22285. e.pandoraDrawCount = 1;
  22286. e.needAmethyst = 0;
  22287. e._isClick = !1;
  22288. e.itemList = new Map();
  22289. return e;
  22290. }
  22291. e.prototype.httpEvent = function(t) {
  22292. null != t.data._pack && this.refreshAmethyst();
  22293. };
  22294. e.prototype.init = function(t) {
  22295. var e = this;
  22296. void 0 === t && (t = 104);
  22297. this.main.topNode.getComponent(f.default).forbidBtn(!1);
  22298. this.curInsetNum = t;
  22299. this.curInsetNode = this.insetContent.getChildByName(t + "");
  22300. this.powerTips.active = 102 == Number(t);
  22301. this.changeStatus(this.curInsetNode, !0);
  22302. this.changeLayout(this.curInsetNum);
  22303. this.refreshAmethyst();
  22304. this.refreshDiamond();
  22305. this.getPandoraData(function() {
  22306. 104 == t && e.pandoraView();
  22307. });
  22308. this.getShopData(function() {
  22309. 102 == t ? e.powerView() : 103 == t && e.coinView();
  22310. });
  22311. 101 == t && this.payView();
  22312. };
  22313. e.prototype.getShopData = function(t) {
  22314. var e = this;
  22315. this.main.gameHttp.sendJson("marketMoney/v1/data", {}, function(o, i) {
  22316. e.main.stopLoad();
  22317. if (o == l.HttpStateType.SUCCESS) if (0 == i.retCode) {
  22318. console.log("==reve=getShopData===", i);
  22319. e.shopData = i.data;
  22320. t && t();
  22321. } else e.main.showTips(i.message); else e.main.showTips("网络异常");
  22322. });
  22323. };
  22324. e.prototype.getPandoraData = function(t) {
  22325. var e = this;
  22326. this.main.gameHttp.sendJson("pandora/v1/data", {}, function(o, i) {
  22327. e.main.stopLoad();
  22328. if (o == l.HttpStateType.SUCCESS) if (0 == i.retCode) {
  22329. console.log("==reve=getPandoraData===", i);
  22330. e.pandoraData = i.data;
  22331. t && t();
  22332. } else e.main.showTips(i.message); else e.main.showTips("网络异常");
  22333. });
  22334. };
  22335. e.prototype.buy = function(t, e, o) {
  22336. var i = this, n = {
  22337. id: e
  22338. };
  22339. this.main.gameHttp.sendJson(t + "/v1/buy", n, function(e, n) {
  22340. i.main.stopLoad();
  22341. if (e == l.HttpStateType.SUCCESS) if (0 == n.retCode) {
  22342. console.log("==reve==buy==", n);
  22343. i.main.playerEffectByPath(a.AudioMgr.gift);
  22344. i.main.showReward(n);
  22345. o && o();
  22346. } else t == c.pandora && 600501 == n.retCode ? i.showExchangeAmethystView() : i.main.showTips(n.message); else i.main.showTips("网络异常");
  22347. i._isClick = !1;
  22348. });
  22349. };
  22350. e.prototype.playVideo = function(t, e) {
  22351. var o = "", i = "";
  22352. if (102 == this.curInsetNum) {
  22353. o = p.UM_EVENT_ID.ad_power_0;
  22354. i = p.UM_EVENT_ID.ad_power_1;
  22355. } else if (103 == this.curInsetNum) {
  22356. o = p.UM_EVENT_ID.ad_money_0;
  22357. i = p.UM_EVENT_ID.ad_money_1;
  22358. } else if (104 == this.curInsetNum) if (1001 == e) {
  22359. o = p.UM_EVENT_ID.ad_pdl_t_0;
  22360. i = p.UM_EVENT_ID.ad_pdl_t_1;
  22361. } else if (1002 == e) {
  22362. o = p.UM_EVENT_ID.ad_pdl_m_0;
  22363. i = p.UM_EVENT_ID.ad_pdl_m_1;
  22364. }
  22365. new p.default(this.main).adVideo(t, o, i);
  22366. };
  22367. e.prototype.showList = function(t, e) {
  22368. this.itemList[t] && this.itemList[t].length && this.itemList[t].forEach(function(t) {
  22369. t.active = !1;
  22370. });
  22371. this.itemList[e] && this.itemList[e].length && this.itemList[e].forEach(function(t) {
  22372. t.active = !0;
  22373. });
  22374. };
  22375. e.prototype.isCreatorItem = function(t) {
  22376. var e = !0;
  22377. this.itemList[t] && (e = !1);
  22378. return e;
  22379. };
  22380. e.prototype.payView = function() {
  22381. var t = this;
  22382. if (this.isCreatorItem(101)) for (var e = this.main.sManage.payDatas, o = 0; o < e.length; o++) {
  22383. var i = e[o];
  22384. if (1 == i.type) {
  22385. var n = cc.instantiate(this.payItem);
  22386. n.parent = this.content;
  22387. this.itemList[101] || (this.itemList[101] = []);
  22388. this.itemList[101].push(n);
  22389. var r = n.getComponent(u.default);
  22390. r.init(i, this.main);
  22391. r.setCallback(function(e) {
  22392. new p.default(t.main).pay(e._payData, function() {
  22393. t.refreshDiamond();
  22394. t.itemList[101].forEach(function(t) {
  22395. t.getComponent(u.default).showFirstGave();
  22396. });
  22397. });
  22398. });
  22399. }
  22400. }
  22401. };
  22402. e.prototype.powerView = function() {
  22403. var t = this;
  22404. this.isCreatorItem(102) && this.shopData.marketPowerData.forEach(function(e, o) {
  22405. var i = cc.instantiate(t.powerItem);
  22406. i.parent = t.content;
  22407. t.itemList[102] || (t.itemList[102] = []);
  22408. t.itemList[102].push(i);
  22409. var n = i.getComponent(m.default);
  22410. n.lbtime.active = 0 == o;
  22411. n.init(e, t.shopData.playerMarketPower);
  22412. n.setCallback(function(e) {
  22413. console.log("===buy power===");
  22414. if (e.shopId == e.videoId) e.videoMap[e.shopId] ? t.playVideo(function(o) {
  22415. 1 == o ? t.buy(c.marketPower, e.shopId, function() {
  22416. e.refresh(e.shopId);
  22417. }) : t.main.showTips("广告还未准备好");
  22418. }, e.shopId) : t.main.showTips("今日广告次数已用完"); else {
  22419. if (t._isClick) {
  22420. t.main.showTips("当前操作过于频繁!");
  22421. return;
  22422. }
  22423. t._isClick = !0;
  22424. t.buy(c.marketPower, e.shopId, function() {
  22425. t.refreshDiamond();
  22426. });
  22427. }
  22428. });
  22429. });
  22430. };
  22431. e.prototype.coinView = function() {
  22432. var t = this;
  22433. this.isCreatorItem(103) && this.shopData.marketMoneyData.forEach(function(e, o) {
  22434. var i = cc.instantiate(t.coinItem);
  22435. i.parent = t.content;
  22436. t.itemList[103] || (t.itemList[103] = []);
  22437. t.itemList[103].push(i);
  22438. var n = i.getComponent(h.default);
  22439. n.lbtime.active = 0 == o;
  22440. n.init(e, t.shopData.playerMarketMoney);
  22441. n.setCallback(function(e) {
  22442. console.log("====buy coin======", e.shopId);
  22443. if (e.shopId == e.videoId) e.videoMap[e.shopId] ? t.playVideo(function(o) {
  22444. 1 == o ? t.buy(c.marketMoney, e.shopId, function() {
  22445. e.refresh(e.shopId);
  22446. }) : t.main.showTips("广告还未准备好");
  22447. }, e.shopId) : t.main.showTips("今日广告次数已用完"); else {
  22448. if (t._isClick) {
  22449. t.main.showTips("当前操作过于频繁!");
  22450. return;
  22451. }
  22452. t._isClick = !0;
  22453. t.buy(c.marketMoney, e.shopId, function() {
  22454. t.refreshDiamond();
  22455. });
  22456. }
  22457. });
  22458. });
  22459. };
  22460. e.prototype.pandoraView = function() {
  22461. var t = this;
  22462. this.isCreatorItem(104) && this.pandoraData.pandoraData.forEach(function(e) {
  22463. var o = cc.instantiate(t.pandoraItem);
  22464. o.parent = t.content;
  22465. t.itemList[104] || (t.itemList[104] = []);
  22466. t.itemList[104].push(o);
  22467. var i = o.getComponent(d.default);
  22468. i.init(e, t.pandoraData.playerPandora);
  22469. i.setCallback(function(e) {
  22470. console.log("====buy pandora======");
  22471. t.pandoraDrawCount = e.pandoraDrawCount;
  22472. t.needAmethyst = e.needAmethyst;
  22473. t.pandorId = e.shopId;
  22474. t.shopPandoraItem = e;
  22475. if (e.videoMap[e.shopId]) t.playVideo(function(o) {
  22476. 1 == o ? t.buy(c.pandora, e.shopId, function() {
  22477. e.refreshDraw(e.shopId);
  22478. e.refresh(e.shopId);
  22479. }) : t.main.showTips("广告还未准备好");
  22480. }, e.shopId); else {
  22481. if (t._isClick) {
  22482. t.main.showTips("当前操作过于频繁!");
  22483. return;
  22484. }
  22485. t._isClick = !0;
  22486. t.buy(c.pandora, e.shopId, function() {
  22487. e.refreshDraw(e.shopId);
  22488. t.refreshAmethyst();
  22489. });
  22490. }
  22491. });
  22492. });
  22493. };
  22494. e.prototype.changeStatus = function(t, e) {
  22495. if (e) {
  22496. t.getChildByName("liang").active = !0;
  22497. t.getChildByName("an").active = !1;
  22498. } else {
  22499. t.getChildByName("liang").active = !1;
  22500. t.getChildByName("an").active = !0;
  22501. }
  22502. };
  22503. e.prototype.changeLayout = function(t) {
  22504. var e = this.content.getComponent(cc.Layout);
  22505. if (101 == t) {
  22506. e.paddingLeft = 10;
  22507. e.paddingTop = 0;
  22508. } else if (104 == t || 102 == t || 103 == t) {
  22509. e.paddingLeft = 30;
  22510. e.paddingTop = 80;
  22511. }
  22512. };
  22513. e.prototype.refreshAmethyst = function() {
  22514. var t = this.main.player.getGoodCount(1009);
  22515. this.amethystNode.getChildByName("lbamethyst").getComponent(cc.Label).string = " " + t;
  22516. };
  22517. e.prototype.refreshDiamond = function() {
  22518. var t = this.main.player.role.gold;
  22519. this.diamondNode.getChildByName("lbdiamond").getComponent(cc.Label).string = " " + t;
  22520. };
  22521. e.prototype.showExchangeAmethystView = function() {
  22522. var t = this;
  22523. this.main.viewManage.loadFunc(a.GameViewType.exchangeAmethyst, function(e) {
  22524. var o = e;
  22525. o.show();
  22526. o.init(t.pandoraDrawCount, t.needAmethyst, function() {
  22527. t.buy(c.pandora, t.pandorId, function() {
  22528. t.shopPandoraItem.refreshDraw(t.pandorId);
  22529. t.refreshAmethyst();
  22530. t.refreshDiamond();
  22531. });
  22532. });
  22533. });
  22534. };
  22535. e.prototype.onClickInset = function(t, e) {
  22536. if (this.curInsetNum != Number(e)) {
  22537. this.changeStatus(this.curInsetNode, !1);
  22538. this.changeStatus(t.target, !0);
  22539. this.changeLayout(Number(e));
  22540. this.curInsetNode = t.target;
  22541. var o = this.curInsetNum;
  22542. this.showList(o, Number(e));
  22543. this.curInsetNum = Number(e);
  22544. this.powerTips.active = 102 == Number(e);
  22545. 101 == Number(e) ? this.payView() : 102 == Number(e) ? this.powerView() : 103 == Number(e) ? this.coinView() : 104 == Number(e) && this.pandoraView();
  22546. }
  22547. };
  22548. e.prototype.onClose = function() {
  22549. this.main.topNode.getComponent(f.default).forbidBtn(!0);
  22550. this.exitDistroy();
  22551. };
  22552. r([ g(cc.Node) ], e.prototype, "insetContent", void 0);
  22553. r([ g(cc.Node) ], e.prototype, "content", void 0);
  22554. r([ g(cc.Prefab) ], e.prototype, "payItem", void 0);
  22555. r([ g(cc.Prefab) ], e.prototype, "powerItem", void 0);
  22556. r([ g(cc.Prefab) ], e.prototype, "coinItem", void 0);
  22557. r([ g(cc.Prefab) ], e.prototype, "pandoraItem", void 0);
  22558. r([ g(cc.Node) ], e.prototype, "amethystNode", void 0);
  22559. r([ g(cc.Node) ], e.prototype, "diamondNode", void 0);
  22560. r([ g(cc.Node) ], e.prototype, "powerTips", void 0);
  22561. return r([ v ], e);
  22562. }(s.default);
  22563. o.default = _;
  22564. cc._RF.pop();
  22565. }, {
  22566. "../../../main/ViewManage": "ViewManage",
  22567. "../../../main/ViewObject": "ViewObject",
  22568. "../../../pay/FqPay": "FqPay",
  22569. "../../../util/CHttp": "CHttp",
  22570. "../../pay/PayShopItem": "PayShopItem",
  22571. "../TopMenu": "TopMenu",
  22572. "./ShopCoinItem": "ShopCoinItem",
  22573. "./ShopPandoraItem": "ShopPandoraItem",
  22574. "./ShopPowerItem": "ShopPowerItem"
  22575. } ],
  22576. SkillBase: [ function(t, e, o) {
  22577. "use strict";
  22578. cc._RF.push(e, "09cc4g7w7hNJ6g3BPdse3Rh", "SkillBase");
  22579. var i, n = this && this.__extends || (i = function(t, e) {
  22580. return (i = Object.setPrototypeOf || {
  22581. __proto__: []
  22582. } instanceof Array && function(t, e) {
  22583. t.__proto__ = e;
  22584. } || function(t, e) {
  22585. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  22586. })(t, e);
  22587. }, function(t, e) {
  22588. i(t, e);
  22589. function o() {
  22590. this.constructor = t;
  22591. }
  22592. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  22593. }), r = this && this.__decorate || function(t, e, o, i) {
  22594. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  22595. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  22596. return r > 3 && c && Object.defineProperty(e, o, c), c;
  22597. };
  22598. Object.defineProperty(o, "__esModule", {
  22599. value: !0
  22600. });
  22601. var c = t("../AI/AIBase"), a = t("../FSprite"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  22602. n(e, t);
  22603. function e() {
  22604. var e = null !== t && t.apply(this, arguments) || this;
  22605. e.ID = 0;
  22606. e.CD = 3e3;
  22607. e.range = 1e3;
  22608. e.speed = 500;
  22609. e.continued = 2e3;
  22610. e.time = 0;
  22611. return e;
  22612. }
  22613. e.prototype.onLoad = function() {
  22614. this.sprite = this.node.getComponent(a.default);
  22615. this.AI = this.node.getComponent(c.default);
  22616. };
  22617. e.prototype.ready = function() {
  22618. var t = new Date().getTime();
  22619. if (0 == this.time) {
  22620. this.time = t;
  22621. return !1;
  22622. }
  22623. return t - this.time > this.CD;
  22624. };
  22625. e.prototype.exe = function() {};
  22626. r([ l({
  22627. displayName: "技能编号"
  22628. }) ], e.prototype, "ID", void 0);
  22629. r([ l({
  22630. displayName: "技能CD时间(毫秒)"
  22631. }) ], e.prototype, "CD", void 0);
  22632. r([ l({
  22633. displayName: "有效射程"
  22634. }) ], e.prototype, "range", void 0);
  22635. r([ l({
  22636. displayName: "移动速度"
  22637. }) ], e.prototype, "speed", void 0);
  22638. r([ l({
  22639. displayName: "技能持续的时间(毫秒)"
  22640. }) ], e.prototype, "continued", void 0);
  22641. return r([ p ], e);
  22642. }(cc.Component);
  22643. o.default = u;
  22644. cc._RF.pop();
  22645. }, {
  22646. "../AI/AIBase": "AIBase",
  22647. "../FSprite": "FSprite"
  22648. } ],
  22649. SkillCharge: [ function(t, e, o) {
  22650. "use strict";
  22651. cc._RF.push(e, "43006c//c1PH7KiQMi1bz87", "SkillCharge");
  22652. var i, n = this && this.__extends || (i = function(t, e) {
  22653. return (i = Object.setPrototypeOf || {
  22654. __proto__: []
  22655. } instanceof Array && function(t, e) {
  22656. t.__proto__ = e;
  22657. } || function(t, e) {
  22658. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  22659. })(t, e);
  22660. }, function(t, e) {
  22661. i(t, e);
  22662. function o() {
  22663. this.constructor = t;
  22664. }
  22665. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  22666. }), r = this && this.__decorate || function(t, e, o, i) {
  22667. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  22668. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  22669. return r > 3 && c && Object.defineProperty(e, o, c), c;
  22670. };
  22671. Object.defineProperty(o, "__esModule", {
  22672. value: !0
  22673. });
  22674. var c = t("../../../../util/CMath"), a = t("../FSprite"), s = t("../PSprite"), p = t("./ChargeCollision"), l = t("./SkillBase"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  22675. n(e, t);
  22676. function e() {
  22677. var e = null !== t && t.apply(this, arguments) || this;
  22678. e.mRedGo = null;
  22679. e.dtime = 2;
  22680. e.ctime = .7;
  22681. return e;
  22682. }
  22683. e.prototype.onLoad = function() {
  22684. t.prototype.onLoad.call(this);
  22685. this.mRedGo.active = !1;
  22686. };
  22687. e.prototype.exe = function(t, e) {
  22688. var o = this;
  22689. this.time = new Date().getTime();
  22690. this.sprite.setDir({
  22691. x: 0,
  22692. y: 0
  22693. });
  22694. this.mRedGo.active = !0;
  22695. var i = this.node.getPosition(), n = t.node.getPosition(), r = c.default.getAngle(i, n);
  22696. this.mRedGo.angle = 180 * r / Math.PI;
  22697. t instanceof s.default && t.tangentMove(this.sprite.node);
  22698. cc.tween(this.node).sequence(cc.delayTime(this.dtime), cc.callFunc(function() {
  22699. o.mRedGo.active = !1;
  22700. o.moveGO(r, e);
  22701. })).start();
  22702. };
  22703. e.prototype.moveGO = function(t, e) {
  22704. var o = this;
  22705. this.sprite.playAction(a.SpriteActionType.atk, !1, function() {
  22706. o.AI.walk(o.range);
  22707. });
  22708. var i = cc.v2(), n = this.mRedGo.width;
  22709. i.x = n * Math.cos(t);
  22710. i.y = n * Math.sin(t);
  22711. var r = this.node.getComponent(cc.PhysicsBoxCollider), c = new cc.Node();
  22712. c.x = this.node.x;
  22713. c.y = this.node.y;
  22714. c.group = "bullet";
  22715. var s = c.addComponent(cc.RigidBody);
  22716. s.type = cc.RigidBodyType.Dynamic;
  22717. s.enabledContactListener = !0;
  22718. var l = c.addComponent(cc.PhysicsBoxCollider);
  22719. l.sensor = !0;
  22720. l.size = r.size.clone();
  22721. l.offset = r.offset.clone();
  22722. c.addComponent(p.default).skillBase = this;
  22723. c.parent = this.sprite.ff.mMap.mSprites;
  22724. cc.tween(this.node).sequence(cc.moveBy(this.ctime, i), cc.callFunc(function() {})).start();
  22725. cc.tween(c).sequence(cc.moveBy(this.ctime, i), cc.callFunc(function() {
  22726. c.destroy();
  22727. e();
  22728. })).start();
  22729. };
  22730. r([ h({
  22731. type: cc.Node,
  22732. displayName: "预警显示"
  22733. }) ], e.prototype, "mRedGo", void 0);
  22734. r([ h({
  22735. displayName: "预警延时"
  22736. }) ], e.prototype, "dtime", void 0);
  22737. r([ h({
  22738. displayName: "冲刺消耗的时间"
  22739. }) ], e.prototype, "ctime", void 0);
  22740. return r([ f ], e);
  22741. }(l.default);
  22742. o.default = d;
  22743. cc._RF.pop();
  22744. }, {
  22745. "../../../../util/CMath": "CMath",
  22746. "../FSprite": "FSprite",
  22747. "../PSprite": "PSprite",
  22748. "./ChargeCollision": "ChargeCollision",
  22749. "./SkillBase": "SkillBase"
  22750. } ],
  22751. SkillFixed: [ function(t, e, o) {
  22752. "use strict";
  22753. cc._RF.push(e, "14f4cXX6/ZHFphrrohFfXC/", "SkillFixed");
  22754. var i, n = this && this.__extends || (i = function(t, e) {
  22755. return (i = Object.setPrototypeOf || {
  22756. __proto__: []
  22757. } instanceof Array && function(t, e) {
  22758. t.__proto__ = e;
  22759. } || function(t, e) {
  22760. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  22761. })(t, e);
  22762. }, function(t, e) {
  22763. i(t, e);
  22764. function o() {
  22765. this.constructor = t;
  22766. }
  22767. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  22768. }), r = this && this.__decorate || function(t, e, o, i) {
  22769. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  22770. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  22771. return r > 3 && c && Object.defineProperty(e, o, c), c;
  22772. };
  22773. Object.defineProperty(o, "__esModule", {
  22774. value: !0
  22775. });
  22776. var c = t("../../../../util/CMath"), a = t("../../bullet/BObject"), s = t("../FSprite"), p = t("./SkillBase"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  22777. n(e, t);
  22778. function e() {
  22779. var e = null !== t && t.apply(this, arguments) || this;
  22780. e.count = 1;
  22781. e.btime = 1;
  22782. e.mBullet = null;
  22783. return e;
  22784. }
  22785. e.prototype.exe = function(t, e) {
  22786. var o = this;
  22787. this.time = new Date().getTime();
  22788. this.sprite.setDir({
  22789. x: 0,
  22790. y: 0
  22791. });
  22792. var i = cc.instantiate(this.mBullet).getComponent(a.default).mStartEffect, n = this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = this.sprite.mAtkSite.worldY, c = cc.v2(n, r), p = cc.instantiate(i);
  22793. p.angle = this.sprite.wAngle;
  22794. p.setPosition(c);
  22795. p.parent = this.sprite.node;
  22796. var l = p.getComponent(sp.Skeleton);
  22797. l.setCompleteListener(function() {
  22798. l.setCompleteListener(null);
  22799. p.destroy();
  22800. e();
  22801. });
  22802. l.findAnimation("skill") ? l.setAnimation(0, "skill", !1) : l.setAnimation(0, "atk", !1);
  22803. this.sprite.playAction(s.SpriteActionType.atk, !1, function() {
  22804. o.AI.walk(o.range);
  22805. });
  22806. for (var u = t.node.getPosition(), f = 0; f < this.count; f++) this.fire(f, u);
  22807. };
  22808. e.prototype.fire = function(t, e) {
  22809. this.fireBullet(t, e);
  22810. };
  22811. e.prototype.fireBullet = function(t, e) {
  22812. for (var o = this, i = 0; i < this.count; i++) cc.tween(this).sequence(cc.delayTime(i * this.btime), cc.callFunc(function() {
  22813. o.fireBulletByTime(t, e);
  22814. })).start();
  22815. };
  22816. e.prototype.fireBulletByTime = function(t, e) {
  22817. var o = cc.instantiate(this.mBullet);
  22818. o.group = "bullet";
  22819. var i = this.sprite, n = i.node.x + i.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = i.node.y + i.mAtkSite.worldY, s = cc.v2(n, r);
  22820. o.setPosition(s);
  22821. var p = o.getComponent(a.default);
  22822. p.setSprite(this.sprite);
  22823. p.speed = this.speed;
  22824. o.parent = this.sprite.map.mSprites;
  22825. var l = o.getPosition(), u = c.default.getAngle(l, e);
  22826. p._skillData = this._skillData;
  22827. p.fireAngle(u);
  22828. };
  22829. r([ f({
  22830. displayName: "每次攻击子弹数量"
  22831. }) ], e.prototype, "count", void 0);
  22832. r([ f({
  22833. displayName: "每颗子弹间隔时间"
  22834. }) ], e.prototype, "btime", void 0);
  22835. r([ f({
  22836. type: cc.Prefab,
  22837. displayName: "子弹"
  22838. }) ], e.prototype, "mBullet", void 0);
  22839. return r([ u ], e);
  22840. }(p.default);
  22841. o.default = h;
  22842. cc._RF.pop();
  22843. }, {
  22844. "../../../../util/CMath": "CMath",
  22845. "../../bullet/BObject": "BObject",
  22846. "../FSprite": "FSprite",
  22847. "./SkillBase": "SkillBase"
  22848. } ],
  22849. SkillRotate: [ function(t, e, o) {
  22850. "use strict";
  22851. cc._RF.push(e, "74e235lIGJIUJJ+tvV2bgpd", "SkillRotate");
  22852. var i, n = this && this.__extends || (i = function(t, e) {
  22853. return (i = Object.setPrototypeOf || {
  22854. __proto__: []
  22855. } instanceof Array && function(t, e) {
  22856. t.__proto__ = e;
  22857. } || function(t, e) {
  22858. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  22859. })(t, e);
  22860. }, function(t, e) {
  22861. i(t, e);
  22862. function o() {
  22863. this.constructor = t;
  22864. }
  22865. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  22866. }), r = this && this.__decorate || function(t, e, o, i) {
  22867. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  22868. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  22869. return r > 3 && c && Object.defineProperty(e, o, c), c;
  22870. };
  22871. Object.defineProperty(o, "__esModule", {
  22872. value: !0
  22873. });
  22874. var c = t("../../../../util/CMath"), a = t("../../bullet/BObject"), s = t("../FSprite"), p = t("./SkillBase"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  22875. n(e, t);
  22876. function e() {
  22877. var e = null !== t && t.apply(this, arguments) || this;
  22878. e.count = 10;
  22879. e.btime = .1;
  22880. e.rotate = .2;
  22881. e.mBullet = null;
  22882. return e;
  22883. }
  22884. e.prototype.exe = function(t, e) {
  22885. var o = this;
  22886. this.time = new Date().getTime();
  22887. this.sprite.setDir({
  22888. x: 0,
  22889. y: 0
  22890. });
  22891. var i = cc.instantiate(this.mBullet).getComponent(a.default).mStartEffect, n = this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = this.sprite.mAtkSite.worldY, c = cc.v2(n, r), p = cc.instantiate(i);
  22892. p.angle = this.sprite.wAngle;
  22893. p.setPosition(c);
  22894. p.parent = this.sprite.node;
  22895. var l = p.getComponent(sp.Skeleton);
  22896. l.setCompleteListener(function() {
  22897. l.setCompleteListener(null);
  22898. p.destroy();
  22899. e();
  22900. });
  22901. l.findAnimation("skill") ? l.setAnimation(0, "skill", !1) : l.setAnimation(0, "atk", !1);
  22902. this.sprite.playAction(s.SpriteActionType.atk, !1, function() {
  22903. o.AI.walk(o.range);
  22904. });
  22905. for (var u = t.node.getPosition(), f = 0; f < this.count; f++) this.fire(f, u);
  22906. };
  22907. e.prototype.fire = function(t, e) {
  22908. var o = this;
  22909. cc.tween(this).sequence(cc.delayTime(t * this.btime), cc.callFunc(function() {
  22910. o.fireBullet(t, e);
  22911. })).start();
  22912. };
  22913. e.prototype.fireBullet = function(t, e) {
  22914. var o = cc.instantiate(this.mBullet);
  22915. o.group = "bullet";
  22916. var i = this.node.x + this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, n = this.node.y + this.sprite.mAtkSite.worldY, r = cc.v2(i, n);
  22917. o.setPosition(r);
  22918. var s = o.getComponent(a.default);
  22919. s.setSprite(this.sprite);
  22920. s.speed = this.speed;
  22921. o.parent = this.sprite.map.mSprites;
  22922. var p = o.getPosition(), l = c.default.getAngle(p, e);
  22923. l += (t - this.count / 2) * this.rotate;
  22924. s.fireAngle(l);
  22925. };
  22926. r([ f({
  22927. displayName: "每次发射子弹数量"
  22928. }) ], e.prototype, "count", void 0);
  22929. r([ f({
  22930. displayName: "每颗子弹间隔时间"
  22931. }) ], e.prototype, "btime", void 0);
  22932. r([ f({
  22933. displayName: "每颗子弹旋转弧度"
  22934. }) ], e.prototype, "rotate", void 0);
  22935. r([ f({
  22936. type: cc.Prefab,
  22937. displayName: "子弹"
  22938. }) ], e.prototype, "mBullet", void 0);
  22939. return r([ u ], e);
  22940. }(p.default);
  22941. o.default = h;
  22942. cc._RF.pop();
  22943. }, {
  22944. "../../../../util/CMath": "CMath",
  22945. "../../bullet/BObject": "BObject",
  22946. "../FSprite": "FSprite",
  22947. "./SkillBase": "SkillBase"
  22948. } ],
  22949. SkillShotgun: [ function(t, e, o) {
  22950. "use strict";
  22951. cc._RF.push(e, "ddb52BbjXJDaIxVSJx3OpjY", "SkillShotgun");
  22952. var i, n = this && this.__extends || (i = function(t, e) {
  22953. return (i = Object.setPrototypeOf || {
  22954. __proto__: []
  22955. } instanceof Array && function(t, e) {
  22956. t.__proto__ = e;
  22957. } || function(t, e) {
  22958. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  22959. })(t, e);
  22960. }, function(t, e) {
  22961. i(t, e);
  22962. function o() {
  22963. this.constructor = t;
  22964. }
  22965. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  22966. }), r = this && this.__decorate || function(t, e, o, i) {
  22967. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  22968. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  22969. return r > 3 && c && Object.defineProperty(e, o, c), c;
  22970. };
  22971. Object.defineProperty(o, "__esModule", {
  22972. value: !0
  22973. });
  22974. var c = t("../../../../util/CMath"), a = t("../../bullet/BObject"), s = t("../FSprite"), p = t("./SkillBase"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  22975. n(e, t);
  22976. function e() {
  22977. var e = null !== t && t.apply(this, arguments) || this;
  22978. e.count = 10;
  22979. e.rotate = .2;
  22980. e.bcount = 3;
  22981. e.btime = .2;
  22982. e.mBullet = null;
  22983. return e;
  22984. }
  22985. e.prototype.exe = function(t, e) {
  22986. var o = this;
  22987. this.time = new Date().getTime();
  22988. this.sprite.setDir({
  22989. x: 0,
  22990. y: 0
  22991. });
  22992. var i = cc.instantiate(this.mBullet).getComponent(a.default).mStartEffect, n = this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = this.sprite.mAtkSite.worldY, c = cc.v2(n, r), p = cc.instantiate(i);
  22993. p.angle = this.sprite.wAngle;
  22994. p.setPosition(c);
  22995. p.parent = this.sprite.node;
  22996. var l = p.getComponent(sp.Skeleton);
  22997. l.setCompleteListener(function() {
  22998. l.setCompleteListener(null);
  22999. p.destroy();
  23000. e();
  23001. });
  23002. l.findAnimation("skill") ? l.setAnimation(0, "skill", !1) : l.setAnimation(0, "atk", !1);
  23003. this.sprite.playAction(s.SpriteActionType.atk, !1, function() {
  23004. o.AI.walk(o.range);
  23005. });
  23006. for (var u = t.node.getPosition(), f = 0; f < this.count; f++) this.fire(f, u);
  23007. };
  23008. e.prototype.fire = function(t, e) {
  23009. this.fireBullet(t, e);
  23010. };
  23011. e.prototype.fireBullet = function(t, e) {
  23012. for (var o = this, i = 0; i < this.bcount; i++) cc.tween(this).sequence(cc.delayTime(i * this.btime), cc.callFunc(function() {
  23013. o.fireBulletByTime(t, e);
  23014. })).start();
  23015. };
  23016. e.prototype.fireBulletByTime = function(t, e) {
  23017. var o = cc.instantiate(this.mBullet);
  23018. o.group = "bullet";
  23019. var i = this.sprite, n = i.node.x + i.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = i.node.y + i.mAtkSite.worldY, s = cc.v2(n, r);
  23020. o.setPosition(s);
  23021. var p = o.getComponent(a.default);
  23022. p.setSprite(this.sprite);
  23023. p.speed = this.speed;
  23024. o.parent = this.sprite.map.mSprites;
  23025. var l = o.getPosition(), u = c.default.getAngle(l, e);
  23026. u += (t - Math.floor(this.count / 2)) * this.rotate;
  23027. p._skillData = this._skillData;
  23028. p.fireAngle(u);
  23029. };
  23030. r([ f({
  23031. displayName: "每次发射方向数"
  23032. }) ], e.prototype, "count", void 0);
  23033. r([ f({
  23034. displayName: "每方向旋转弧度"
  23035. }) ], e.prototype, "rotate", void 0);
  23036. r([ f({
  23037. displayName: "每个方向多少颗子弹"
  23038. }) ], e.prototype, "bcount", void 0);
  23039. r([ f({
  23040. displayName: "每个子弹间隔时间"
  23041. }) ], e.prototype, "btime", void 0);
  23042. r([ f({
  23043. type: cc.Prefab,
  23044. displayName: "子弹"
  23045. }) ], e.prototype, "mBullet", void 0);
  23046. return r([ u ], e);
  23047. }(p.default);
  23048. o.default = h;
  23049. cc._RF.pop();
  23050. }, {
  23051. "../../../../util/CMath": "CMath",
  23052. "../../bullet/BObject": "BObject",
  23053. "../FSprite": "FSprite",
  23054. "./SkillBase": "SkillBase"
  23055. } ],
  23056. StageFail: [ function(t, e, o) {
  23057. "use strict";
  23058. cc._RF.push(e, "084fdK0+95KnIXNwRaKsRgI", "StageFail");
  23059. var i, n = this && this.__extends || (i = function(t, e) {
  23060. return (i = Object.setPrototypeOf || {
  23061. __proto__: []
  23062. } instanceof Array && function(t, e) {
  23063. t.__proto__ = e;
  23064. } || function(t, e) {
  23065. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  23066. })(t, e);
  23067. }, function(t, e) {
  23068. i(t, e);
  23069. function o() {
  23070. this.constructor = t;
  23071. }
  23072. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  23073. }), r = this && this.__decorate || function(t, e, o, i) {
  23074. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  23075. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  23076. return r > 3 && c && Object.defineProperty(e, o, c), c;
  23077. };
  23078. Object.defineProperty(o, "__esModule", {
  23079. value: !0
  23080. });
  23081. var c = t("../../../../main/ViewManage"), a = t("../../../../main/ViewObject"), s = t("../../../data/FFCalAttr"), p = t("../../../fight/object/FSprite"), l = t("../../equip/Equip"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) {
  23082. n(e, t);
  23083. function e() {
  23084. var e = null !== t && t.apply(this, arguments) || this;
  23085. e.mSite = null;
  23086. return e;
  23087. }
  23088. e.prototype.onLoad = function() {
  23089. var t = this, e = this.main.sManage, o = this.main.player, i = e.getRoleById(o.role.leader), n = o.getPet(o.role.leader + "");
  23090. this.mSite.destroyAllChildren();
  23091. var r = s.default.getAttr(this.main, n);
  23092. cc.resources.load("prefab/role/" + i.act, cc.Prefab, function(e, o) {
  23093. if (e) cc.error(e); else {
  23094. var i = cc.instantiate(o);
  23095. i.parent = t.mSite;
  23096. var n = i.getChildByName("juese01"), c = n.getChildByName("spineRight").getComponent(sp.Skeleton), a = c.findBone("control");
  23097. if (a) {
  23098. a.data.rotation = 0;
  23099. a.rotation = 0;
  23100. }
  23101. n.children[0].active = !1;
  23102. c.setSkin(r.skin);
  23103. l.default.chaneWeapon(c, r.weapon);
  23104. c.setAnimation(0, p.SpriteActionType.dead, !1);
  23105. }
  23106. });
  23107. };
  23108. e.prototype.setCallback = function(t) {
  23109. this.callback = t;
  23110. };
  23111. e.prototype.onclickOK = function() {
  23112. this.main.topNode.active = !0;
  23113. cc.sys.localStorage.getItem("showRevenge" + this.main.player.role.id) || cc.sys.localStorage.setItem("showRevenge" + this.main.player.role.id, 1);
  23114. this.main.playMusicByPath(c.AudioMgr.homeMusic);
  23115. this.exitDistroy();
  23116. this.callback && this.callback();
  23117. };
  23118. r([ h(cc.Node) ], e.prototype, "mSite", void 0);
  23119. return r([ f ], e);
  23120. }(a.default);
  23121. o.default = d;
  23122. cc._RF.pop();
  23123. }, {
  23124. "../../../../main/ViewManage": "ViewManage",
  23125. "../../../../main/ViewObject": "ViewObject",
  23126. "../../../data/FFCalAttr": "FFCalAttr",
  23127. "../../../fight/object/FSprite": "FSprite",
  23128. "../../equip/Equip": "Equip"
  23129. } ],
  23130. StageInfoGood: [ function(t, e, o) {
  23131. "use strict";
  23132. cc._RF.push(e, "f8d85n4NHxK4LURc8jhIhhC", "StageInfoGood");
  23133. var i, n = this && this.__extends || (i = function(t, e) {
  23134. return (i = Object.setPrototypeOf || {
  23135. __proto__: []
  23136. } instanceof Array && function(t, e) {
  23137. t.__proto__ = e;
  23138. } || function(t, e) {
  23139. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  23140. })(t, e);
  23141. }, function(t, e) {
  23142. i(t, e);
  23143. function o() {
  23144. this.constructor = t;
  23145. }
  23146. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  23147. }), r = this && this.__decorate || function(t, e, o, i) {
  23148. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  23149. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  23150. return r > 3 && c && Object.defineProperty(e, o, c), c;
  23151. };
  23152. Object.defineProperty(o, "__esModule", {
  23153. value: !0
  23154. });
  23155. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  23156. n(e, t);
  23157. function e() {
  23158. var e = null !== t && t.apply(this, arguments) || this;
  23159. e.mIcon = null;
  23160. e.mGoodCount = null;
  23161. e.stageInfo = null;
  23162. return e;
  23163. }
  23164. e.prototype.onLoad = function() {
  23165. for (var t = this.stageInfo.getGoods(), e = 0; e < t.length; e++) t[e];
  23166. };
  23167. e.prototype.getCount = function(t) {
  23168. var e = this.stageInfo.main.player.stage["" + this.stageInfo.stageData.id];
  23169. if (null == e) return 0;
  23170. if (null == e.goods) return 0;
  23171. for (var o = 0; o < e.goods.length; o++) {
  23172. var i = e.goods[o];
  23173. if (i.id == t) return i.count;
  23174. }
  23175. return 0;
  23176. };
  23177. r([ s(cc.Sprite) ], e.prototype, "mIcon", void 0);
  23178. r([ s(cc.Label) ], e.prototype, "mGoodCount", void 0);
  23179. return r([ a ], e);
  23180. }(cc.Component);
  23181. o.default = p;
  23182. cc._RF.pop();
  23183. }, {} ],
  23184. StageInfoTask: [ function(t, e, o) {
  23185. "use strict";
  23186. cc._RF.push(e, "53022jpe9xNWJo5dEvYmlYD", "StageInfoTask");
  23187. var i, n = this && this.__extends || (i = function(t, e) {
  23188. return (i = Object.setPrototypeOf || {
  23189. __proto__: []
  23190. } instanceof Array && function(t, e) {
  23191. t.__proto__ = e;
  23192. } || function(t, e) {
  23193. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  23194. })(t, e);
  23195. }, function(t, e) {
  23196. i(t, e);
  23197. function o() {
  23198. this.constructor = t;
  23199. }
  23200. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  23201. }), r = this && this.__decorate || function(t, e, o, i) {
  23202. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  23203. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  23204. return r > 3 && c && Object.defineProperty(e, o, c), c;
  23205. };
  23206. Object.defineProperty(o, "__esModule", {
  23207. value: !0
  23208. });
  23209. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  23210. n(e, t);
  23211. function e() {
  23212. var e = null !== t && t.apply(this, arguments) || this;
  23213. e.label = null;
  23214. e.text = "hello";
  23215. return e;
  23216. }
  23217. e.prototype.start = function() {};
  23218. r([ s(cc.Label) ], e.prototype, "label", void 0);
  23219. r([ s ], e.prototype, "text", void 0);
  23220. return r([ a ], e);
  23221. }(cc.Component);
  23222. o.default = p;
  23223. cc._RF.pop();
  23224. }, {} ],
  23225. StageInfo: [ function(t, e, o) {
  23226. "use strict";
  23227. cc._RF.push(e, "5711eubOpdMtL9tiTEdqoOk", "StageInfo");
  23228. var i, n = this && this.__extends || (i = function(t, e) {
  23229. return (i = Object.setPrototypeOf || {
  23230. __proto__: []
  23231. } instanceof Array && function(t, e) {
  23232. t.__proto__ = e;
  23233. } || function(t, e) {
  23234. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  23235. })(t, e);
  23236. }, function(t, e) {
  23237. i(t, e);
  23238. function o() {
  23239. this.constructor = t;
  23240. }
  23241. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  23242. }), r = this && this.__decorate || function(t, e, o, i) {
  23243. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  23244. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  23245. return r > 3 && c && Object.defineProperty(e, o, c), c;
  23246. };
  23247. Object.defineProperty(o, "__esModule", {
  23248. value: !0
  23249. });
  23250. var c = t("../../../../i18n/i18n"), a = t("../../../../main/ViewManage"), s = t("../../../../main/ViewObject"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  23251. n(e, t);
  23252. function e() {
  23253. var e = null !== t && t.apply(this, arguments) || this;
  23254. e.mSceneName = null;
  23255. e.mStageName = null;
  23256. e.mStageAbout = null;
  23257. e.mStar = null;
  23258. e.mStarx = [];
  23259. e.mGoodIcon1 = null;
  23260. e.mGood1 = null;
  23261. e.mGoodIcon2 = null;
  23262. e.mGood2 = null;
  23263. e.mGoodIcon3 = null;
  23264. e.mGood3 = null;
  23265. e.mTask = null;
  23266. e.mStartNode = null;
  23267. e.mGuideLayout = null;
  23268. e.inGuide = 0;
  23269. e.tempIndex = 1;
  23270. return e;
  23271. }
  23272. e.prototype.show = function(t) {
  23273. if (t) {
  23274. this.prev = t;
  23275. this.prev.__close();
  23276. }
  23277. this.main.viewManage.popView1(this.node);
  23278. this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this);
  23279. };
  23280. e.prototype.onLoad = function() {
  23281. var t = this, e = this.main.sManage.getSceneById(this.stageData.zid);
  23282. this.mSceneName.string = c.default.t(e.name);
  23283. this.mStageName.string = c.default.t(this.stageData.name);
  23284. this.mStageAbout.string = c.default.t(this.stageData.about);
  23285. var o = this.main.sManage, i = o.getGoodById1(this.stageData.goodId1);
  23286. cc.resources.load("icon/good/" + i.icon, cc.SpriteFrame, function(e, o) {
  23287. e ? cc.error(e) : t.mGoodIcon1.spriteFrame = o;
  23288. });
  23289. var n = o.getGoodById1(this.stageData.goodId2);
  23290. cc.resources.load("icon/good/" + n.icon, cc.SpriteFrame, function(e, o) {
  23291. e ? cc.error(e) : t.mGoodIcon2.spriteFrame = o;
  23292. });
  23293. var r = o.getGoodById1(this.stageData.goodId3);
  23294. cc.resources.load("icon/good/" + r.icon, cc.SpriteFrame, function(e, o) {
  23295. e ? cc.error(e) : t.mGoodIcon3.spriteFrame = o;
  23296. });
  23297. this.flush();
  23298. for (var a = this.getStarCount(), s = this.mStar.children, p = 0; p < s.length; p++) {
  23299. s[p].getComponent(cc.Sprite).spriteFrame = p < a ? this.mStarx[1] : this.mStarx[0];
  23300. }
  23301. 2 == this.inGuide && this.openGuide1();
  23302. };
  23303. e.prototype.openGuide1 = function() {
  23304. this.mGuideLayout.active = !0;
  23305. for (var t = this.mGuideLayout.children, e = 2; e < t.length; e++) t[e].active = !1;
  23306. };
  23307. e.prototype.openGuide2 = function() {
  23308. var t = this.main.mGuideMask;
  23309. t.setTargetNode(this.mStartNode);
  23310. t.show();
  23311. this.setGuideCallback(function() {
  23312. t.close();
  23313. });
  23314. };
  23315. e.prototype.getStarCount = function() {
  23316. var t = this.main.player.stage, e = t.data[this.stageData.id], o = 0;
  23317. t.stageIndex > this.stageData.id - 1 && o++;
  23318. if (null != e) {
  23319. this.getCount(this.stageData.goodId1) >= this.stageData.goodCount1 && o++;
  23320. this.getCount(this.stageData.goodId2) >= this.stageData.goodCount2 && o++;
  23321. }
  23322. return o;
  23323. };
  23324. e.prototype.flush = function() {
  23325. var t = this.getCount(this.stageData.goodId1);
  23326. this.mGood1.string = t + "/" + this.stageData.goodCount1;
  23327. var e = this.getCount(this.stageData.goodId2);
  23328. this.mGood2.string = e + "/" + this.stageData.goodCount2;
  23329. var o = this.getCount(this.stageData.goodId3);
  23330. this.mGood3.string = o + "/" + this.stageData.goodCount3;
  23331. };
  23332. e.prototype.getCount = function(t) {
  23333. var e = this.main.player.stage.data[this.stageData.id];
  23334. if (e && e.good) {
  23335. var o = e.good["" + t];
  23336. return null == o ? 0 : o;
  23337. }
  23338. return 0;
  23339. };
  23340. e.prototype.setCallback = function(t) {
  23341. this.callback = t;
  23342. };
  23343. e.prototype.setGuideCallback = function(t) {
  23344. this.guideCallback = t;
  23345. };
  23346. e.prototype.onclick = function() {
  23347. this.exitDistroy();
  23348. this.callback && this.callback(this);
  23349. this.guideCallback && this.guideCallback();
  23350. };
  23351. e.prototype.onclickPet = function() {
  23352. var t = this;
  23353. this.main.viewManage.loadFunc(a.GameViewType.equip, function(e) {
  23354. e.show(t);
  23355. });
  23356. };
  23357. e.prototype.getGoods = function() {
  23358. return [ {
  23359. id: this.stageData.goodId1,
  23360. count: this.stageData.goodCount1
  23361. }, {
  23362. id: this.stageData.goodId2,
  23363. count: this.stageData.goodCount2
  23364. }, {
  23365. id: this.stageData.goodId3,
  23366. count: this.stageData.goodCount3
  23367. } ];
  23368. };
  23369. e.prototype.onclickNextGuide = function() {
  23370. this.tempIndex++;
  23371. var t = this.mGuideLayout.children;
  23372. if (this.tempIndex >= t.length) {
  23373. this.openGuide2();
  23374. this.mGuideLayout.active = !1;
  23375. } else {
  23376. t[this.tempIndex - 1].active = !1;
  23377. t[this.tempIndex].active = !0;
  23378. }
  23379. };
  23380. r([ u(cc.Label) ], e.prototype, "mSceneName", void 0);
  23381. r([ u(cc.Label) ], e.prototype, "mStageName", void 0);
  23382. r([ u(cc.Label) ], e.prototype, "mStageAbout", void 0);
  23383. r([ u(cc.Node) ], e.prototype, "mStar", void 0);
  23384. r([ u([ cc.SpriteFrame ]) ], e.prototype, "mStarx", void 0);
  23385. r([ u(cc.Sprite) ], e.prototype, "mGoodIcon1", void 0);
  23386. r([ u(cc.Label) ], e.prototype, "mGood1", void 0);
  23387. r([ u(cc.Sprite) ], e.prototype, "mGoodIcon2", void 0);
  23388. r([ u(cc.Label) ], e.prototype, "mGood2", void 0);
  23389. r([ u(cc.Sprite) ], e.prototype, "mGoodIcon3", void 0);
  23390. r([ u(cc.Label) ], e.prototype, "mGood3", void 0);
  23391. r([ u(cc.Node) ], e.prototype, "mTask", void 0);
  23392. r([ u(cc.Node) ], e.prototype, "mStartNode", void 0);
  23393. r([ u(cc.Node) ], e.prototype, "mGuideLayout", void 0);
  23394. return r([ l ], e);
  23395. }(s.default);
  23396. o.default = f;
  23397. cc._RF.pop();
  23398. }, {
  23399. "../../../../i18n/i18n": "i18n",
  23400. "../../../../main/ViewManage": "ViewManage",
  23401. "../../../../main/ViewObject": "ViewObject"
  23402. } ],
  23403. StageSuccess: [ function(t, e, o) {
  23404. "use strict";
  23405. cc._RF.push(e, "7d2f4qwG6pMOZIFCooILE+j", "StageSuccess");
  23406. var i, n = this && this.__extends || (i = function(t, e) {
  23407. return (i = Object.setPrototypeOf || {
  23408. __proto__: []
  23409. } instanceof Array && function(t, e) {
  23410. t.__proto__ = e;
  23411. } || function(t, e) {
  23412. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  23413. })(t, e);
  23414. }, function(t, e) {
  23415. i(t, e);
  23416. function o() {
  23417. this.constructor = t;
  23418. }
  23419. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  23420. }), r = this && this.__decorate || function(t, e, o, i) {
  23421. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  23422. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  23423. return r > 3 && c && Object.defineProperty(e, o, c), c;
  23424. };
  23425. Object.defineProperty(o, "__esModule", {
  23426. value: !0
  23427. });
  23428. var c = t("../../../../i18n/i18n"), a = t("../../../../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  23429. n(e, t);
  23430. function e() {
  23431. var e = null !== t && t.apply(this, arguments) || this;
  23432. e.mLevelName = null;
  23433. return e;
  23434. }
  23435. e.prototype.init = function(t) {
  23436. this.mLevelName.string = c.default.t(t.name);
  23437. };
  23438. e.prototype.setCallback = function(t) {
  23439. this.callback = t;
  23440. };
  23441. e.prototype.onclickOK = function() {
  23442. this.exitDistroy();
  23443. this.callback && this.callback();
  23444. };
  23445. r([ l(cc.Label) ], e.prototype, "mLevelName", void 0);
  23446. return r([ p ], e);
  23447. }(a.default);
  23448. o.default = u;
  23449. cc._RF.pop();
  23450. }, {
  23451. "../../../../i18n/i18n": "i18n",
  23452. "../../../../main/ViewObject": "ViewObject"
  23453. } ],
  23454. Stage: [ function(t, e, o) {
  23455. "use strict";
  23456. cc._RF.push(e, "c91a53dP19Lr5IR+0fpLEND", "Stage");
  23457. var i, n = this && this.__extends || (i = function(t, e) {
  23458. return (i = Object.setPrototypeOf || {
  23459. __proto__: []
  23460. } instanceof Array && function(t, e) {
  23461. t.__proto__ = e;
  23462. } || function(t, e) {
  23463. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  23464. })(t, e);
  23465. }, function(t, e) {
  23466. i(t, e);
  23467. function o() {
  23468. this.constructor = t;
  23469. }
  23470. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  23471. }), r = this && this.__decorate || function(t, e, o, i) {
  23472. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  23473. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  23474. return r > 3 && c && Object.defineProperty(e, o, c), c;
  23475. };
  23476. Object.defineProperty(o, "__esModule", {
  23477. value: !0
  23478. });
  23479. var c = t("./result/StageFail"), a = t("./scene/minimap/MiniMap"), s = t("../../../main/ViewObject"), p = t("../../../util/CHttp"), l = t("../../../main/ViewManage"), u = t("../../fight/FF"), f = t("../../fight/FLoad"), h = t("../../fight/object/FObject"), d = t("../../fight/object/FSpriteTmpGood"), m = t("../../../i18n/i18n"), y = t("../../../pay/FqPay"), v = cc._decorator, g = v.ccclass, _ = v.property, b = function(t) {
  23480. n(e, t);
  23481. function e() {
  23482. var e = null !== t && t.apply(this, arguments) || this;
  23483. e.mSuccess = null;
  23484. e.mFail = null;
  23485. e.mMiniNode = null;
  23486. e.mFlyStar = null;
  23487. e.mBlockInput = null;
  23488. e.tmpMMItem = null;
  23489. e.inGuide = 0;
  23490. e.miniMap = null;
  23491. return e;
  23492. }
  23493. e.prototype.load = function(t) {
  23494. var e = this;
  23495. this.loadStageData(function(o) {
  23496. if (0 == o) {
  23497. e.main.player.role;
  23498. var i = e.main.sManage, n = i.getStageByIndex(0), r = i.getSceneByStage(n);
  23499. e.loadMiniMap(r, function(e) {
  23500. t(e);
  23501. });
  23502. } else t(o);
  23503. });
  23504. };
  23505. e.prototype.loadStageData = function(t) {
  23506. var e = this;
  23507. null == this.main.player.stage ? this.main.gameHttp.sendJson("stage/v1/stageData", {}, function(o, i) {
  23508. if (o == p.HttpStateType.SUCCESS) if (0 == i.retCode) {
  23509. e.main.player.stage = i.data;
  23510. t(0);
  23511. } else {
  23512. e.main.showTips(i.message);
  23513. t(-2);
  23514. } else {
  23515. e.main.showTips("网络异常");
  23516. t(-1);
  23517. }
  23518. }) : t(0);
  23519. };
  23520. e.prototype.openWorldMap = function() {
  23521. var t = this;
  23522. this.main.viewManage.loadFunc(l.GameViewType.worldMap, function(e) {
  23523. e.stage = t;
  23524. e.show();
  23525. });
  23526. };
  23527. e.prototype.openWordTask = function() {
  23528. this.main.viewManage.loadFunc(l.GameViewType.wordTask, function(t) {
  23529. t.show();
  23530. });
  23531. };
  23532. e.prototype.opendungeon = function() {
  23533. this.main.viewManage.loadFunc(l.GameViewType.dungeon, function(t) {
  23534. t.show();
  23535. });
  23536. };
  23537. e.prototype.initMiniMap = function() {
  23538. var t = this;
  23539. this.miniMap.setCallback(function(e) {
  23540. t.onclick(e);
  23541. });
  23542. };
  23543. e.prototype.loadMiniMap = function(t, e) {
  23544. var o = this;
  23545. cc.resources.load("prefab/home/stage/scene/minimap/" + t.id, cc.Prefab, function(i, n) {
  23546. if (i) {
  23547. cc.error(i);
  23548. e(-4);
  23549. } else {
  23550. var r = cc.instantiate(n);
  23551. o.miniMap = r.getComponent(a.default);
  23552. o.miniMap.stage = o;
  23553. o.miniMap.sceneData = t;
  23554. r.parent = o.mMiniNode;
  23555. o.initMiniMap();
  23556. e(0);
  23557. }
  23558. o.main.stopLoad();
  23559. });
  23560. };
  23561. e.prototype.onclick = function(t) {
  23562. var e = this;
  23563. this.main.viewManage.loadFunc(l.GameViewType.stageInfo, function(o) {
  23564. var i = o;
  23565. i.stageData = t._stageData;
  23566. i.inGuide = e.inGuide;
  23567. e.inGuide = 0;
  23568. i.setCallback(function(o) {
  23569. e.tmpMMItem = t;
  23570. e.openFF(o.stageData);
  23571. });
  23572. o.show();
  23573. });
  23574. };
  23575. e.prototype.openFF = function(t) {
  23576. var e = this, o = {
  23577. id: t.id
  23578. };
  23579. this.main.gameHttp.sendJson("stage/v1/openStage", o, function(o, i) {
  23580. e.main.stopLoad();
  23581. if (o == p.HttpStateType.SUCCESS) if (0 == i.retCode) {
  23582. e.main.topNode.active = !1;
  23583. e.main.viewManage.loadFunc(l.GameViewType.fight, function(o) {
  23584. o.show(e);
  23585. var i = o;
  23586. i.mFFheader.init(i, t);
  23587. e.regEvent(i);
  23588. cc.tween(cc.delayTime(.1)).call(function() {
  23589. f.default.loadMap(i, t, function(t) {
  23590. i.loadMap(t);
  23591. var o = e.main.player.getFight(e.main);
  23592. f.default.loadRole(i, o, function(t) {
  23593. i.loadRole(t);
  23594. });
  23595. });
  23596. }).start();
  23597. });
  23598. } else e.main.showTips(i.message); else e.main.showTips("网络异常");
  23599. });
  23600. };
  23601. e.prototype.regEvent = function(t) {
  23602. var e = this;
  23603. t.regClearCallback(function(o) {
  23604. if (o.node.group == h.GroupType.A) {
  23605. if (o == t.mainSprite) {
  23606. t.pauseSprite(!0);
  23607. if (t.isBack) e.fail(t); else {
  23608. t.isBack = !0;
  23609. e.showFHDialog(t);
  23610. }
  23611. }
  23612. } else e.killMonster(o);
  23613. });
  23614. t.regExitCallback(function() {
  23615. t.pauseSprite(!0);
  23616. e.success(t);
  23617. });
  23618. };
  23619. e.prototype.showFHDialog = function(t) {
  23620. var e = this;
  23621. this.main.startLoad();
  23622. this.main.viewManage.loadFunc(l.GameViewType.fight_dialog_box, function(o) {
  23623. e.main.stopLoad();
  23624. var i = o;
  23625. i.mContent.string = m.default.t("需要原地复活吗?");
  23626. i.setOKCallback(function() {
  23627. i.exitDistroy();
  23628. e.deadNode = e.fail(t);
  23629. e.showADVideo(t);
  23630. });
  23631. i.setCancelCallback(function() {
  23632. i.exitDistroy();
  23633. e.fail(t);
  23634. });
  23635. o.show();
  23636. });
  23637. };
  23638. e.prototype.showADVideo = function(t) {
  23639. var e = this, o = new y.default(this.main), i = this;
  23640. o.adVideo(function(o) {
  23641. if (1 == o) {
  23642. e.deadNode.exitDistroy();
  23643. e.deadNode = null;
  23644. t.fuhuo();
  23645. t.pauseSprite(!1);
  23646. } else -1 == o ? i.main.showTips("广告还未加载好,请稍后在试") : i.main.showTips("广告播放未完成");
  23647. }, y.UM_EVENT_ID.ad_fuhuo_0, y.UM_EVENT_ID.ad_fuhuo_1);
  23648. };
  23649. e.prototype.killMonster = function(t) {
  23650. var e = this, o = {
  23651. monsterId: t.id
  23652. }, i = t.node.getPosition(), n = t.ff;
  23653. this.main.gameHttp.sendJson("stage/v1/stageMonster", o, function(t, o) {
  23654. e.main.stopLoad();
  23655. if (t == p.HttpStateType.SUCCESS) if (0 == o.retCode) {
  23656. var r = e.main.sManage.getRewards(o);
  23657. n.addGoods(r, i);
  23658. } else e.main.showTips(o.message); else e.main.showTips("网络异常");
  23659. });
  23660. var r = t.node.getComponent(d.default);
  23661. r && t.ff.addGoodToMap(r.goodId, r.node.getPosition());
  23662. };
  23663. e.prototype.success = function(t) {
  23664. var e = this;
  23665. t.ffResultType = u.FF_Result_Type.win;
  23666. var o = {
  23667. stageId: t.mFFheader.stageData.id
  23668. };
  23669. this.main.gameHttp.sendJson("stage/v1/beatStage", o, function(o, i) {
  23670. if (o == p.HttpStateType.SUCCESS) if (0 == i.retCode) {
  23671. null != i.data.stageIndex && (e.main.player.stage.stageIndex = i.data.stageIndex);
  23672. t.exitDistroy();
  23673. e.getStarReward();
  23674. } else {
  23675. t.exitDistroy();
  23676. e.main.showTips(i.message);
  23677. } else {
  23678. t.exitDistroy();
  23679. e.main.showTips("网络异常");
  23680. }
  23681. });
  23682. };
  23683. e.prototype.fail = function(t) {
  23684. if (t.ffResultType == u.FF_Result_Type.none) {
  23685. t.ffResultType = u.FF_Result_Type.fail;
  23686. var e = cc.instantiate(this.mFail).getComponent(c.default);
  23687. e.main = this.main;
  23688. e.show();
  23689. e.setCallback(function() {
  23690. t.exitDistroy();
  23691. });
  23692. return e;
  23693. }
  23694. };
  23695. e.prototype.getStarReward = function() {
  23696. var t = this.tmpMMItem;
  23697. if (t) {
  23698. var e = t.starCount, o = t.getStarCount1();
  23699. this.starFly(e, o);
  23700. }
  23701. };
  23702. e.prototype.starFly = function(t, e) {
  23703. var o = this;
  23704. this.mBlockInput.active = !0;
  23705. if (t >= e) {
  23706. this.mBlockInput.active = !1;
  23707. this.getReward();
  23708. } else {
  23709. var i = this.tmpMMItem, n = i.mStarNode.children[t].convertToWorldSpaceAR(cc.v2(0, 0)), r = cc.instantiate(this.mFlyStar);
  23710. r.parent = this.mMiniNode;
  23711. r.x = n.x - cc.winSize.width / 2;
  23712. r.y = n.y + cc.winSize.height / 2;
  23713. this.main.playerEffectByPath(l.AudioMgr.star);
  23714. cc.tween(r).sequence(cc.moveTo(.3, n).easing(cc.easeIn(.3)), cc.callFunc(function() {
  23715. i.setStar(t);
  23716. cc.tween(i.node).sequence(cc.scaleTo(.1, 1.3).easing(cc.easeOut(.1)), cc.scaleTo(.1, 1).easing(cc.easeIn(.1))).start();
  23717. }), cc.delayTime(.1), cc.callFunc(function() {
  23718. t++;
  23719. o.starFly(t, e);
  23720. }), cc.destroySelf()).start();
  23721. }
  23722. };
  23723. e.prototype.getReward = function() {
  23724. var t = this.tmpMMItem, e = t.starCount, o = t.getStarCount1();
  23725. e >= o || this.getReward1(e, o);
  23726. };
  23727. e.prototype.getReward1 = function(t, e) {
  23728. var o = this;
  23729. if (!(t >= e)) {
  23730. var i = this.tmpMMItem, n = {
  23731. stageId: i._stageData.id
  23732. };
  23733. this.main.startLoad();
  23734. this.main.gameHttp.sendJson("stage/v1/starReward", n, function(n, r) {
  23735. o.main.stopLoad();
  23736. if (n == p.HttpStateType.SUCCESS) if (0 == r.retCode) {
  23737. var c = o.main.player.stage;
  23738. c.data[i._stageData.id] = r.data._stage;
  23739. var a = c.data[i._stageData.id];
  23740. i.starCount = a.starCount;
  23741. o.main.showReward(r, function() {
  23742. t++;
  23743. o.getReward1(t, e);
  23744. }, "通关奖励", [ "获得一星奖励", "获得二星奖励", "获得三星奖励" ][t]);
  23745. } else o.main.showTips(r.message); else o.main.showTips("网络异常");
  23746. });
  23747. }
  23748. };
  23749. r([ _(cc.Prefab) ], e.prototype, "mSuccess", void 0);
  23750. r([ _(cc.Prefab) ], e.prototype, "mFail", void 0);
  23751. r([ _(cc.Node) ], e.prototype, "mMiniNode", void 0);
  23752. r([ _({
  23753. displayName: "飞行的星星",
  23754. type: cc.Prefab
  23755. }) ], e.prototype, "mFlyStar", void 0);
  23756. r([ _({
  23757. displayName: "事件拦截层",
  23758. type: cc.Node
  23759. }) ], e.prototype, "mBlockInput", void 0);
  23760. return r([ g ], e);
  23761. }(s.default);
  23762. o.default = b;
  23763. cc._RF.pop();
  23764. }, {
  23765. "../../../i18n/i18n": "i18n",
  23766. "../../../main/ViewManage": "ViewManage",
  23767. "../../../main/ViewObject": "ViewObject",
  23768. "../../../pay/FqPay": "FqPay",
  23769. "../../../util/CHttp": "CHttp",
  23770. "../../fight/FF": "FF",
  23771. "../../fight/FLoad": "FLoad",
  23772. "../../fight/object/FObject": "FObject",
  23773. "../../fight/object/FSpriteTmpGood": "FSpriteTmpGood",
  23774. "./result/StageFail": "StageFail",
  23775. "./scene/minimap/MiniMap": "MiniMap"
  23776. } ],
  23777. SysData: [ function(t, e, o) {
  23778. "use strict";
  23779. cc._RF.push(e, "e425ajU8s9GUZ109zIh6jIf", "SysData");
  23780. var i, n = this && this.__extends || (i = function(t, e) {
  23781. return (i = Object.setPrototypeOf || {
  23782. __proto__: []
  23783. } instanceof Array && function(t, e) {
  23784. t.__proto__ = e;
  23785. } || function(t, e) {
  23786. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  23787. })(t, e);
  23788. }, function(t, e) {
  23789. i(t, e);
  23790. function o() {
  23791. this.constructor = t;
  23792. }
  23793. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  23794. }), r = this && this.__decorate || function(t, e, o, i) {
  23795. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  23796. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  23797. return r > 3 && c && Object.defineProperty(e, o, c), c;
  23798. };
  23799. Object.defineProperty(o, "__esModule", {
  23800. value: !0
  23801. });
  23802. var c = t("../../main/Main"), a = t("./sdata/SManage"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  23803. n(e, t);
  23804. function e() {
  23805. var e = null !== t && t.apply(this, arguments) || this;
  23806. e.jsonAsset = null;
  23807. return e;
  23808. }
  23809. e.prototype.onLoad = function() {
  23810. var t = this.node.getComponent(c.default), e = this.jsonAsset.json;
  23811. t.sManage = new a.default(e);
  23812. };
  23813. r([ l(cc.JsonAsset) ], e.prototype, "jsonAsset", void 0);
  23814. return r([ p ], e);
  23815. }(cc.Component);
  23816. o.default = u;
  23817. cc._RF.pop();
  23818. }, {
  23819. "../../main/Main": "Main",
  23820. "./sdata/SManage": "SManage"
  23821. } ],
  23822. TapController: [ function(t, e, o) {
  23823. "use strict";
  23824. cc._RF.push(e, "0a2a2mDrl9MqIIy3trkukjg", "TapController");
  23825. var i, n = this && this.__extends || (i = function(t, e) {
  23826. return (i = Object.setPrototypeOf || {
  23827. __proto__: []
  23828. } instanceof Array && function(t, e) {
  23829. t.__proto__ = e;
  23830. } || function(t, e) {
  23831. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  23832. })(t, e);
  23833. }, function(t, e) {
  23834. i(t, e);
  23835. function o() {
  23836. this.constructor = t;
  23837. }
  23838. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  23839. }), r = this && this.__decorate || function(t, e, o, i) {
  23840. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  23841. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  23842. return r > 3 && c && Object.defineProperty(e, o, c), c;
  23843. };
  23844. Object.defineProperty(o, "__esModule", {
  23845. value: !0
  23846. });
  23847. var c = t("../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  23848. n(e, t);
  23849. function e() {
  23850. var e = null !== t && t.apply(this, arguments) || this;
  23851. e.label = null;
  23852. return e;
  23853. }
  23854. e.prototype.onLoad = function() {};
  23855. e.prototype.start = function() {};
  23856. r([ p(cc.Label) ], e.prototype, "label", void 0);
  23857. return r([ s ], e);
  23858. }(c.default);
  23859. o.default = l;
  23860. cc._RF.pop();
  23861. }, {
  23862. "../../main/ViewObject": "ViewObject"
  23863. } ],
  23864. TapRoleName: [ function(t, e, o) {
  23865. "use strict";
  23866. cc._RF.push(e, "7a889ycEGhD+ZuHEl7ZddR8", "TapRoleName");
  23867. var i, n = this && this.__extends || (i = function(t, e) {
  23868. return (i = Object.setPrototypeOf || {
  23869. __proto__: []
  23870. } instanceof Array && function(t, e) {
  23871. t.__proto__ = e;
  23872. } || function(t, e) {
  23873. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  23874. })(t, e);
  23875. }, function(t, e) {
  23876. i(t, e);
  23877. function o() {
  23878. this.constructor = t;
  23879. }
  23880. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  23881. }), r = this && this.__decorate || function(t, e, o, i) {
  23882. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  23883. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  23884. return r > 3 && c && Object.defineProperty(e, o, c), c;
  23885. };
  23886. Object.defineProperty(o, "__esModule", {
  23887. value: !0
  23888. });
  23889. var c = t("../../i18n/i18n"), a = t("../../main/ViewObject"), s = t("../../util/CHttp"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  23890. n(e, t);
  23891. function e() {
  23892. var e = null !== t && t.apply(this, arguments) || this;
  23893. e.mName = null;
  23894. e.mEditBox = null;
  23895. e.mCount = null;
  23896. e.mFreeNode = null;
  23897. e.mGoldNode = null;
  23898. e.mGoldCount = null;
  23899. e.tapRole = null;
  23900. return e;
  23901. }
  23902. e.prototype.show = function(t) {
  23903. if (t) {
  23904. this.prev = t;
  23905. this.prev.__close();
  23906. }
  23907. this.main.viewManage.popView1(this.node);
  23908. this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this);
  23909. };
  23910. e.prototype.start = function() {
  23911. var t = this.main.player.role;
  23912. this.mName.string = t.name;
  23913. this.mCount.string = c.default.t("第{value}次改名", {
  23914. value: t.renameCount + 1
  23915. });
  23916. if (t.renameCount <= 0) {
  23917. this.mFreeNode.active = !0;
  23918. this.mGoldNode.active = !1;
  23919. } else {
  23920. this.mFreeNode.active = !1;
  23921. this.mGoldNode.active = !0;
  23922. }
  23923. };
  23924. e.prototype.onclickRename = function() {
  23925. var t = this, e = {
  23926. name: this.mEditBox.string
  23927. };
  23928. this.main.gameHttp.sendJson("set/v1/name", e, function(e, o) {
  23929. t.main.stopLoad();
  23930. if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) {
  23931. t.main.player.role.name = t.mEditBox.string;
  23932. t.exitDistroy();
  23933. t.main.showTips("改名成功");
  23934. t.tapRole.flush();
  23935. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  23936. });
  23937. };
  23938. r([ u(cc.Label) ], e.prototype, "mName", void 0);
  23939. r([ u(cc.EditBox) ], e.prototype, "mEditBox", void 0);
  23940. r([ u(cc.Label) ], e.prototype, "mCount", void 0);
  23941. r([ u(cc.Node) ], e.prototype, "mFreeNode", void 0);
  23942. r([ u(cc.Node) ], e.prototype, "mGoldNode", void 0);
  23943. r([ u(cc.Label) ], e.prototype, "mGoldCount", void 0);
  23944. return r([ l ], e);
  23945. }(a.default);
  23946. o.default = f;
  23947. cc._RF.pop();
  23948. }, {
  23949. "../../i18n/i18n": "i18n",
  23950. "../../main/ViewObject": "ViewObject",
  23951. "../../util/CHttp": "CHttp"
  23952. } ],
  23953. TapRole: [ function(t, e, o) {
  23954. "use strict";
  23955. cc._RF.push(e, "5697ecw2HNOKKj/mNmVxNd/", "TapRole");
  23956. var i, n = this && this.__extends || (i = function(t, e) {
  23957. return (i = Object.setPrototypeOf || {
  23958. __proto__: []
  23959. } instanceof Array && function(t, e) {
  23960. t.__proto__ = e;
  23961. } || function(t, e) {
  23962. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  23963. })(t, e);
  23964. }, function(t, e) {
  23965. i(t, e);
  23966. function o() {
  23967. this.constructor = t;
  23968. }
  23969. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  23970. }), r = this && this.__decorate || function(t, e, o, i) {
  23971. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  23972. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  23973. return r > 3 && c && Object.defineProperty(e, o, c), c;
  23974. };
  23975. Object.defineProperty(o, "__esModule", {
  23976. value: !0
  23977. });
  23978. var c = t("../../main/ViewManage"), a = t("../../main/ViewObject"), s = t("../../util/CMath"), p = t("./roleicon/RoleTitleItem"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  23979. n(e, t);
  23980. function e() {
  23981. var e = null !== t && t.apply(this, arguments) || this;
  23982. e.mName = null;
  23983. e.mIcon = null;
  23984. e.mFrame = null;
  23985. e.mId = null;
  23986. e.mFrameIcon = null;
  23987. e.mContentHas = null;
  23988. e.mZdl = null;
  23989. return e;
  23990. }
  23991. e.prototype.onLoad = function() {
  23992. var t = this.main.player;
  23993. this.mName.string = t.role.name;
  23994. this.mId.string = t.role.id;
  23995. this.mZdl.string = "" + t.role.zdl;
  23996. };
  23997. e.prototype.show = function(t) {
  23998. if (t) {
  23999. this.prev = t;
  24000. this.prev.__close();
  24001. }
  24002. this.main.viewManage.popView1(this.node);
  24003. this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this);
  24004. };
  24005. e.prototype.onEnable = function() {
  24006. this.flush();
  24007. };
  24008. e.prototype.flush = function() {
  24009. var t = this, e = this.main.player;
  24010. this.mName.string = e.role.name;
  24011. var o = this.main.sManage.getRoleIconById(e.role.icon);
  24012. o && cc.resources.load("icon/role_head/" + o.icon, cc.SpriteFrame, function(e, o) {
  24013. e ? cc.error(e) : t.mIcon.spriteFrame = o;
  24014. });
  24015. var i = this.main.sManage.getRoleIconById(e.role.frame);
  24016. i && cc.resources.load("icon/role_head/txk/" + i.icon, cc.SpriteFrame, function(e, o) {
  24017. e ? cc.error(e) : t.mFrame.spriteFrame = o;
  24018. });
  24019. this.flushTitle();
  24020. };
  24021. e.prototype.flushTitle = function() {
  24022. for (var t = this.main.player.roleIcon.open, e = this.mContentHas.children, o = t.slice(), i = e.length - 1; i >= 0; i--) {
  24023. var n = (u = e[i]).getComponent(p.default);
  24024. t.indexOf(n.roleIcon.id) < 0 && u.destroy();
  24025. for (var r = 0; r < o.length; r++) if (o[r] == n.roleIcon.id) {
  24026. o.splice(r, 1);
  24027. break;
  24028. }
  24029. }
  24030. var c = this.mContentHas.width / 2 - 100, a = this.mContentHas.height / 2 - 30;
  24031. for (i = 0; i < o.length; i++) {
  24032. var l = o[i];
  24033. if (l >= 300) {
  24034. var u;
  24035. (u = cc.instantiate(this.mFrameIcon)).x = s.default.getRandom(-c, c);
  24036. u.y = s.default.getRandom(-a, a);
  24037. var f = u.getComponent(p.default), h = this.main.sManage.getRoleIconById(l);
  24038. f.roleIcon = h;
  24039. f.init();
  24040. f.mLock.active = !1;
  24041. u.parent = this.mContentHas;
  24042. }
  24043. }
  24044. };
  24045. e.prototype.onclickRename = function() {
  24046. var t = this;
  24047. this.main.viewManage.loadFunc(c.GameViewType.tap_role_name, function(e) {
  24048. e.tapRole = t;
  24049. e.show(t);
  24050. });
  24051. };
  24052. e.prototype.onclickIcon = function() {
  24053. var t = this;
  24054. this.main.viewManage.loadFunc(c.GameViewType.role_icon_view, function(e) {
  24055. e.tapRole = t;
  24056. e.show(t);
  24057. });
  24058. };
  24059. e.prototype.onclickFrame = function() {
  24060. var t = this;
  24061. this.main.viewManage.loadFunc(c.GameViewType.role_frame_view, function(e) {
  24062. e.tapRole = t;
  24063. e.show(t);
  24064. });
  24065. };
  24066. e.prototype.onclickTitle = function() {
  24067. var t = this;
  24068. this.main.viewManage.loadFunc(c.GameViewType.role_title_view, function(e) {
  24069. e.init();
  24070. e.show(t);
  24071. });
  24072. };
  24073. r([ f(cc.Label) ], e.prototype, "mName", void 0);
  24074. r([ f(cc.Sprite) ], e.prototype, "mIcon", void 0);
  24075. r([ f(cc.Sprite) ], e.prototype, "mFrame", void 0);
  24076. r([ f(cc.Label) ], e.prototype, "mId", void 0);
  24077. r([ f(cc.Prefab) ], e.prototype, "mFrameIcon", void 0);
  24078. r([ f(cc.Node) ], e.prototype, "mContentHas", void 0);
  24079. r([ f(cc.Label) ], e.prototype, "mZdl", void 0);
  24080. return r([ u ], e);
  24081. }(a.default);
  24082. o.default = h;
  24083. cc._RF.pop();
  24084. }, {
  24085. "../../main/ViewManage": "ViewManage",
  24086. "../../main/ViewObject": "ViewObject",
  24087. "../../util/CMath": "CMath",
  24088. "./roleicon/RoleTitleItem": "RoleTitleItem"
  24089. } ],
  24090. TapSetMusic: [ function(t, e, o) {
  24091. "use strict";
  24092. cc._RF.push(e, "91abe7vGPRPs6o0MRoAE3Yr", "TapSetMusic");
  24093. var i, n = this && this.__extends || (i = function(t, e) {
  24094. return (i = Object.setPrototypeOf || {
  24095. __proto__: []
  24096. } instanceof Array && function(t, e) {
  24097. t.__proto__ = e;
  24098. } || function(t, e) {
  24099. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  24100. })(t, e);
  24101. }, function(t, e) {
  24102. i(t, e);
  24103. function o() {
  24104. this.constructor = t;
  24105. }
  24106. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  24107. }), r = this && this.__decorate || function(t, e, o, i) {
  24108. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  24109. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  24110. return r > 3 && c && Object.defineProperty(e, o, c), c;
  24111. };
  24112. Object.defineProperty(o, "__esModule", {
  24113. value: !0
  24114. });
  24115. var c = t("../../main/ViewManage"), a = t("../../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  24116. n(e, t);
  24117. function e() {
  24118. var e = null !== t && t.apply(this, arguments) || this;
  24119. e.mMusicSprite1 = null;
  24120. e.mMusicSprite2 = null;
  24121. e.mON = null;
  24122. e.mOFF = null;
  24123. e.mMusicSlider1 = null;
  24124. e.mMusicSlider2 = null;
  24125. return e;
  24126. }
  24127. e.prototype.onLoad = function() {
  24128. this.mMusicSlider1.node.on("slide", this.s1Callback, this);
  24129. this.mMusicSlider2.node.on("slide", this.s2Callback, this);
  24130. this.flush();
  24131. };
  24132. e.prototype.show = function(t) {
  24133. if (t) {
  24134. this.prev = t;
  24135. this.prev.__close();
  24136. }
  24137. this.main.viewManage.popView1(this.node);
  24138. this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this);
  24139. };
  24140. e.prototype.flush = function() {
  24141. var t = this.main.player.setting;
  24142. t.music_ON_OFF_1 ? this.mMusicSprite1.spriteFrame = this.mON : this.mMusicSprite1.spriteFrame = this.mOFF;
  24143. t.music_ON_OFF_2 ? this.mMusicSprite2.spriteFrame = this.mON : this.mMusicSprite2.spriteFrame = this.mOFF;
  24144. this.mMusicSlider1.progress = t.music_Slider_1;
  24145. this.mMusicSlider2.progress = t.music_Slider_2;
  24146. };
  24147. e.prototype.onclick1 = function() {
  24148. var t = this.main.player.setting;
  24149. t.music_ON_OFF_1 = !t.music_ON_OFF_1;
  24150. this.flush();
  24151. t.music_ON_OFF_1 ? this.main.resumeMusic() : this.main.pauseMusic();
  24152. this.main.player.saveSetting();
  24153. };
  24154. e.prototype.conclick2 = function() {
  24155. var t = this.main.player.setting;
  24156. t.music_ON_OFF_2 = !t.music_ON_OFF_2;
  24157. this.flush();
  24158. this.main.player.saveSetting();
  24159. };
  24160. e.prototype.s1Callback = function(t) {
  24161. var e = this.main.player.setting;
  24162. e.music_Slider_1 = t.progress;
  24163. this.main.bgmId >= 0 && cc.audioEngine.setMusicVolume(e.music_Slider_1);
  24164. this.main.player.saveSetting();
  24165. };
  24166. e.prototype.s2Callback = function(t) {
  24167. this.main.player.setting.music_Slider_2 = t.progress;
  24168. this.main.player.saveSetting();
  24169. };
  24170. e.prototype.exitLogin = function() {
  24171. cc.director.loadScene("hotUpdate");
  24172. };
  24173. e.prototype.openNotice = function() {
  24174. var t = this;
  24175. this.main.viewManage.loadFunc(c.GameViewType.tap_set_Ann, function(e) {
  24176. e.show(t);
  24177. });
  24178. };
  24179. r([ l(cc.Sprite) ], e.prototype, "mMusicSprite1", void 0);
  24180. r([ l(cc.Sprite) ], e.prototype, "mMusicSprite2", void 0);
  24181. r([ l(cc.SpriteFrame) ], e.prototype, "mON", void 0);
  24182. r([ l(cc.SpriteFrame) ], e.prototype, "mOFF", void 0);
  24183. r([ l(cc.Slider) ], e.prototype, "mMusicSlider1", void 0);
  24184. r([ l(cc.Slider) ], e.prototype, "mMusicSlider2", void 0);
  24185. return r([ p ], e);
  24186. }(a.default);
  24187. o.default = u;
  24188. cc._RF.pop();
  24189. }, {
  24190. "../../main/ViewManage": "ViewManage",
  24191. "../../main/ViewObject": "ViewObject"
  24192. } ],
  24193. TapSet: [ function(t, e, o) {
  24194. "use strict";
  24195. cc._RF.push(e, "2363fWaDWJOrrUxOwsB9a9m", "TapSet");
  24196. var i, n = this && this.__extends || (i = function(t, e) {
  24197. return (i = Object.setPrototypeOf || {
  24198. __proto__: []
  24199. } instanceof Array && function(t, e) {
  24200. t.__proto__ = e;
  24201. } || function(t, e) {
  24202. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  24203. })(t, e);
  24204. }, function(t, e) {
  24205. i(t, e);
  24206. function o() {
  24207. this.constructor = t;
  24208. }
  24209. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  24210. }), r = this && this.__decorate || function(t, e, o, i) {
  24211. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  24212. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  24213. return r > 3 && c && Object.defineProperty(e, o, c), c;
  24214. };
  24215. Object.defineProperty(o, "__esModule", {
  24216. value: !0
  24217. });
  24218. var c = t("../../main/ViewManage"), a = t("../../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  24219. n(e, t);
  24220. function e() {
  24221. var e = null !== t && t.apply(this, arguments) || this;
  24222. e.label = null;
  24223. e.text = "hello";
  24224. return e;
  24225. }
  24226. e.prototype.onclickMusic = function() {
  24227. var t = this;
  24228. this.main.viewManage.loadFunc(c.GameViewType.tap_set_music, function(e) {
  24229. e.show(t);
  24230. });
  24231. };
  24232. e.prototype.opentap_set_control = function() {
  24233. this.main.viewManage.loadFunc(c.GameViewType.tap_set_control, function(t) {
  24234. t.show();
  24235. });
  24236. };
  24237. e.prototype.opentap_set_Ann = function() {
  24238. this.main.viewManage.loadFunc(c.GameViewType.tap_set_Ann, function(t) {
  24239. t.show();
  24240. });
  24241. };
  24242. r([ l(cc.Label) ], e.prototype, "label", void 0);
  24243. r([ l ], e.prototype, "text", void 0);
  24244. return r([ p ], e);
  24245. }(a.default);
  24246. o.default = u;
  24247. cc._RF.pop();
  24248. }, {
  24249. "../../main/ViewManage": "ViewManage",
  24250. "../../main/ViewObject": "ViewObject"
  24251. } ],
  24252. Tap_set_Ann: [ function(t, e, o) {
  24253. "use strict";
  24254. cc._RF.push(e, "0e14amDUH1Jy61EaoQP4OYX", "Tap_set_Ann");
  24255. var i, n = this && this.__extends || (i = function(t, e) {
  24256. return (i = Object.setPrototypeOf || {
  24257. __proto__: []
  24258. } instanceof Array && function(t, e) {
  24259. t.__proto__ = e;
  24260. } || function(t, e) {
  24261. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  24262. })(t, e);
  24263. }, function(t, e) {
  24264. i(t, e);
  24265. function o() {
  24266. this.constructor = t;
  24267. }
  24268. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  24269. }), r = this && this.__decorate || function(t, e, o, i) {
  24270. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  24271. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  24272. return r > 3 && c && Object.defineProperty(e, o, c), c;
  24273. };
  24274. Object.defineProperty(o, "__esModule", {
  24275. value: !0
  24276. });
  24277. var c = t("../main/ViewObject"), a = t("../util/CHttp"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  24278. n(e, t);
  24279. function e() {
  24280. var e = null !== t && t.apply(this, arguments) || this;
  24281. e.mTitle = null;
  24282. e.mContent = null;
  24283. return e;
  24284. }
  24285. e.prototype.onLoad = function() {
  24286. var t = this, e = this.main.loginHttp;
  24287. this.main.startLoad();
  24288. e.sendForm("/notice?channel=1", {}, function(e, o) {
  24289. t.main.stopLoad();
  24290. if (e == a.HttpStateType.SUCCESS) {
  24291. var i = JSON.parse(o.data);
  24292. t.mTitle.string = i.title;
  24293. t.mContent.string = i.content;
  24294. } else t.main.showTips("网络异常");
  24295. });
  24296. };
  24297. e.prototype.show = function(t) {
  24298. if (t) {
  24299. this.prev = t;
  24300. this.prev.__close();
  24301. }
  24302. this.main.viewManage.popView1(this.node);
  24303. this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this);
  24304. };
  24305. r([ l(cc.Label) ], e.prototype, "mTitle", void 0);
  24306. r([ l(cc.Label) ], e.prototype, "mContent", void 0);
  24307. return r([ p ], e);
  24308. }(c.default);
  24309. o.default = u;
  24310. cc._RF.pop();
  24311. }, {
  24312. "../main/ViewObject": "ViewObject",
  24313. "../util/CHttp": "CHttp"
  24314. } ],
  24315. Tap_set_control: [ function(t, e, o) {
  24316. "use strict";
  24317. cc._RF.push(e, "05784JCwllFtI+fngD+z24a", "Tap_set_control");
  24318. var i, n = this && this.__extends || (i = function(t, e) {
  24319. return (i = Object.setPrototypeOf || {
  24320. __proto__: []
  24321. } instanceof Array && function(t, e) {
  24322. t.__proto__ = e;
  24323. } || function(t, e) {
  24324. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  24325. })(t, e);
  24326. }, function(t, e) {
  24327. i(t, e);
  24328. function o() {
  24329. this.constructor = t;
  24330. }
  24331. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  24332. }), r = this && this.__decorate || function(t, e, o, i) {
  24333. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  24334. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  24335. return r > 3 && c && Object.defineProperty(e, o, c), c;
  24336. };
  24337. Object.defineProperty(o, "__esModule", {
  24338. value: !0
  24339. });
  24340. var c = t("../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = (a.property,
  24341. function(t) {
  24342. n(e, t);
  24343. function e() {
  24344. return null !== t && t.apply(this, arguments) || this;
  24345. }
  24346. e.prototype.onLoad = function() {};
  24347. e.prototype.onclick = function() {};
  24348. return r([ s ], e);
  24349. }(c.default));
  24350. o.default = p;
  24351. cc._RF.pop();
  24352. }, {
  24353. "../../main/ViewObject": "ViewObject"
  24354. } ],
  24355. Thorn: [ function(t, e, o) {
  24356. "use strict";
  24357. cc._RF.push(e, "10b0eBE2ZBAI4Rb7QLOjX9m", "Thorn");
  24358. var i, n = this && this.__extends || (i = function(t, e) {
  24359. return (i = Object.setPrototypeOf || {
  24360. __proto__: []
  24361. } instanceof Array && function(t, e) {
  24362. t.__proto__ = e;
  24363. } || function(t, e) {
  24364. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  24365. })(t, e);
  24366. }, function(t, e) {
  24367. i(t, e);
  24368. function o() {
  24369. this.constructor = t;
  24370. }
  24371. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  24372. }), r = this && this.__decorate || function(t, e, o, i) {
  24373. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  24374. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  24375. return r > 3 && c && Object.defineProperty(e, o, c), c;
  24376. };
  24377. Object.defineProperty(o, "__esModule", {
  24378. value: !0
  24379. });
  24380. var c = t("../../object/FSprite"), a = t("../base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  24381. n(e, t);
  24382. function e() {
  24383. var e = null !== t && t.apply(this, arguments) || this;
  24384. e.monsterId = 1001;
  24385. e.interval = 2;
  24386. e.spine = null;
  24387. e.isAtk = !1;
  24388. e.isPause = !1;
  24389. e.spriteList = [];
  24390. return e;
  24391. }
  24392. e.prototype.start = function() {
  24393. this.run();
  24394. };
  24395. e.prototype.update = function() {
  24396. var t = this;
  24397. if (this.ff.lockCamera) {
  24398. if (!this.ff.lockCamera != this.isPause) {
  24399. this.isPause = !1;
  24400. this.spine.paused = !1;
  24401. }
  24402. } else if (!this.ff.lockCamera != this.isPause) {
  24403. this.isPause = !0;
  24404. this.spine.paused = !0;
  24405. return;
  24406. }
  24407. this.isAtk && this.spriteList.forEach(function(e) {
  24408. t.rmHP(e);
  24409. });
  24410. };
  24411. e.prototype.rmHP = function(t) {
  24412. if (!(t.isAtk || t.sprite.hp <= 0)) {
  24413. t.isAtk = !0;
  24414. var e = this.ff.main.sManage.getMonsterData(this.monsterId);
  24415. t.sprite.bAtkjs(e);
  24416. }
  24417. };
  24418. e.prototype.run = function() {
  24419. var t = this;
  24420. this.spriteList.forEach(function(t) {
  24421. t.isAtk = !1;
  24422. });
  24423. cc.tween(this).sequence(cc.delayTime(this.interval), cc.callFunc(function() {
  24424. t.playAtk();
  24425. })).start();
  24426. };
  24427. e.prototype.playAtk = function() {
  24428. var t = this;
  24429. this.isAtk = !0;
  24430. this.spine.setAnimation(0, "atk", !1);
  24431. this.spine.setCompleteListener(function() {
  24432. t.isAtk = !1;
  24433. t.spine.setCompleteListener(null);
  24434. t.spine.setAnimation(0, "idle", !0);
  24435. t.run();
  24436. });
  24437. };
  24438. e.prototype.onBeginContact = function(t, e, o) {
  24439. if ("A" == o.node.group) {
  24440. var i = o.node.getComponent(c.default);
  24441. this.ff = i.ff;
  24442. this.pushSprite(i);
  24443. }
  24444. };
  24445. e.prototype.onEndContact = function(t, e, o) {
  24446. if ("A" == o.node.group) {
  24447. var i = o.node.getComponent(c.default);
  24448. this.removeSprite(i);
  24449. }
  24450. };
  24451. e.prototype.pushSprite = function(t) {
  24452. for (var e = 0; e < this.spriteList.length; e++) if (this.spriteList[e].sprite == t) return;
  24453. this.spriteList.push({
  24454. isAtk: !1,
  24455. sprite: t
  24456. });
  24457. };
  24458. e.prototype.removeSprite = function(t) {
  24459. for (var e = 0; e < this.spriteList.length; e++) if (this.spriteList[e].sprite == t) {
  24460. this.spriteList.splice(e, 1);
  24461. break;
  24462. }
  24463. };
  24464. r([ l({
  24465. displayName: "数值(怪物id)"
  24466. }) ], e.prototype, "monsterId", void 0);
  24467. r([ l({
  24468. displayName: "地刺出现间隔时间"
  24469. }) ], e.prototype, "interval", void 0);
  24470. r([ l({
  24471. type: sp.Skeleton,
  24472. displayName: "地刺动画"
  24473. }) ], e.prototype, "spine", void 0);
  24474. return r([ p ], e);
  24475. }(a.default);
  24476. o.default = u;
  24477. cc._RF.pop();
  24478. }, {
  24479. "../../object/FSprite": "FSprite",
  24480. "../base/BaseEvent": "BaseEvent"
  24481. } ],
  24482. Tips: [ function(t, e, o) {
  24483. "use strict";
  24484. cc._RF.push(e, "059a6cd229FtK+Oaz5NkzwU", "Tips");
  24485. var i, n = this && this.__extends || (i = function(t, e) {
  24486. return (i = Object.setPrototypeOf || {
  24487. __proto__: []
  24488. } instanceof Array && function(t, e) {
  24489. t.__proto__ = e;
  24490. } || function(t, e) {
  24491. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  24492. })(t, e);
  24493. }, function(t, e) {
  24494. i(t, e);
  24495. function o() {
  24496. this.constructor = t;
  24497. }
  24498. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  24499. }), r = this && this.__decorate || function(t, e, o, i) {
  24500. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  24501. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  24502. return r > 3 && c && Object.defineProperty(e, o, c), c;
  24503. };
  24504. Object.defineProperty(o, "__esModule", {
  24505. value: !0
  24506. });
  24507. var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) {
  24508. n(e, t);
  24509. function e() {
  24510. var e = null !== t && t.apply(this, arguments) || this;
  24511. e.label = null;
  24512. return e;
  24513. }
  24514. e.prototype.start = function() {
  24515. var t = this;
  24516. cc.tween(this.node).sequence(cc.delayTime(.3), cc.spawn(cc.moveBy(2, cc.v2(0, 60)).easing(cc.easeSineOut()), cc.fadeOut(2)), cc.callFunc(function() {
  24517. t.node.destroy();
  24518. })).start();
  24519. };
  24520. e.prototype.setLabel = function(t) {
  24521. this.label.string = t;
  24522. };
  24523. r([ s(cc.RichText) ], e.prototype, "label", void 0);
  24524. return r([ a ], e);
  24525. }(cc.Component);
  24526. o.default = p;
  24527. cc._RF.pop();
  24528. }, {} ],
  24529. TitleInfoView: [ function(t, e, o) {
  24530. "use strict";
  24531. cc._RF.push(e, "9162bzo9uBN5oHdtcr2LKVb", "TitleInfoView");
  24532. var i, n = this && this.__extends || (i = function(t, e) {
  24533. return (i = Object.setPrototypeOf || {
  24534. __proto__: []
  24535. } instanceof Array && function(t, e) {
  24536. t.__proto__ = e;
  24537. } || function(t, e) {
  24538. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  24539. })(t, e);
  24540. }, function(t, e) {
  24541. i(t, e);
  24542. function o() {
  24543. this.constructor = t;
  24544. }
  24545. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  24546. }), r = this && this.__decorate || function(t, e, o, i) {
  24547. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  24548. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  24549. return r > 3 && c && Object.defineProperty(e, o, c), c;
  24550. };
  24551. Object.defineProperty(o, "__esModule", {
  24552. value: !0
  24553. });
  24554. var c = t("../../../i18n/i18n"), a = t("../../../util/CHttp"), s = t("../../data/FFCalAttr"), p = t("./RoleTitleItem"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) {
  24555. n(e, t);
  24556. function e() {
  24557. var e = null !== t && t.apply(this, arguments) || this;
  24558. e.mRoleIcon = null;
  24559. e.mZdl = null;
  24560. e.mAtk = null;
  24561. e.mDef = null;
  24562. e.mHp = null;
  24563. e.mSp = null;
  24564. e.mButtonIcon = null;
  24565. e.mButtonLabel = null;
  24566. e.mButtonIconFrame = [];
  24567. e.roleTitleView = null;
  24568. e.fip = null;
  24569. return e;
  24570. }
  24571. e.prototype.init = function(t, e) {
  24572. this.main = t;
  24573. this.fip = e;
  24574. var o = e.roleIcon;
  24575. this.mRoleIcon.roleIcon = o;
  24576. this.mRoleIcon.init();
  24577. this.mAtk.string = "" + o.atk;
  24578. this.mDef.string = "" + o.def;
  24579. this.mHp.string = "" + o.hp;
  24580. this.mSp.string = "" + o.sp;
  24581. var i = s.default.getZdl(o);
  24582. this.mZdl.string = "" + i;
  24583. this.flushButton();
  24584. };
  24585. e.prototype.initFrame = function(t, e) {
  24586. this.main = t;
  24587. this.fip = e;
  24588. var o = e.roleIcon;
  24589. this.mRoleIcon.roleIcon = o;
  24590. this.mAtk.string = "" + o.atk;
  24591. this.mDef.string = "" + o.def;
  24592. this.mHp.string = "" + o.hp;
  24593. this.mSp.string = "" + o.sp;
  24594. var i = s.default.getZdl(o);
  24595. this.mZdl.string = "" + i;
  24596. this.flushButton();
  24597. };
  24598. e.prototype.flushButton = function() {
  24599. var t = this.getStatus();
  24600. if (0 == t) {
  24601. this.mButtonIcon.spriteFrame = this.mButtonIconFrame[2];
  24602. this.mButtonLabel.string = c.default.t("未获得");
  24603. } else if (1 == t) {
  24604. this.mButtonIcon.spriteFrame = this.mButtonIconFrame[0];
  24605. this.mButtonLabel.string = c.default.t("卸下");
  24606. } else if (2 == t) {
  24607. this.mButtonIcon.spriteFrame = this.mButtonIconFrame[1];
  24608. this.mButtonLabel.string = c.default.t("使用");
  24609. }
  24610. };
  24611. e.prototype.getStatus = function() {
  24612. var t = this.fip.roleIcon, e = this.main.player.roleIcon;
  24613. return e.open.indexOf(t.id) >= 0 ? 1 : e.data.indexOf(t.id) >= 0 ? 2 : 0;
  24614. };
  24615. e.prototype.onclick = function() {
  24616. var t = this.getStatus();
  24617. 1 == t ? this.roleIconRemove() : 2 == t && this.roleIconActive();
  24618. };
  24619. e.prototype.roleIconActive = function() {
  24620. var t = this, e = this.fip.roleIcon, o = {
  24621. id: e.id
  24622. };
  24623. this.main.gameHttp.sendJson("set/v1/activeIcon", o, function(o, i) {
  24624. t.main.stopLoad();
  24625. if (o == a.HttpStateType.SUCCESS) if (0 == i.retCode) {
  24626. t.main.player.roleIcon.open.push(e.id);
  24627. t.main.showTips("使用成功");
  24628. t.flushButton();
  24629. } else t.main.showTips(i.message); else t.main.showTips("网络异常");
  24630. });
  24631. };
  24632. e.prototype.roleIconRemove = function() {
  24633. var t = this, e = this.fip.roleIcon, o = {
  24634. id: e.id
  24635. };
  24636. this.main.gameHttp.sendJson("set/v1/removeTitle", o, function(o, i) {
  24637. t.main.stopLoad();
  24638. if (o == a.HttpStateType.SUCCESS) if (0 == i.retCode) {
  24639. for (var n = t.main.player.roleIcon.open, r = 0; r < n.length; r++) if (n[r] == e.id) {
  24640. n.splice(r, 1);
  24641. break;
  24642. }
  24643. t.flushButton();
  24644. t.main.showTips("卸下成功");
  24645. } else t.main.showTips(i.message); else t.main.showTips("网络异常");
  24646. });
  24647. };
  24648. r([ f(p.default) ], e.prototype, "mRoleIcon", void 0);
  24649. r([ f(cc.Label) ], e.prototype, "mZdl", void 0);
  24650. r([ f(cc.Label) ], e.prototype, "mAtk", void 0);
  24651. r([ f(cc.Label) ], e.prototype, "mDef", void 0);
  24652. r([ f(cc.Label) ], e.prototype, "mHp", void 0);
  24653. r([ f(cc.Label) ], e.prototype, "mSp", void 0);
  24654. r([ f(cc.Sprite) ], e.prototype, "mButtonIcon", void 0);
  24655. r([ f(cc.Label) ], e.prototype, "mButtonLabel", void 0);
  24656. r([ f([ cc.SpriteFrame ]) ], e.prototype, "mButtonIconFrame", void 0);
  24657. return r([ u ], e);
  24658. }(cc.Component);
  24659. o.default = h;
  24660. cc._RF.pop();
  24661. }, {
  24662. "../../../i18n/i18n": "i18n",
  24663. "../../../util/CHttp": "CHttp",
  24664. "../../data/FFCalAttr": "FFCalAttr",
  24665. "./RoleTitleItem": "RoleTitleItem"
  24666. } ],
  24667. TopMenu: [ function(t, e, o) {
  24668. "use strict";
  24669. cc._RF.push(e, "c5197+gv+9FbK4+NofHOGnw", "TopMenu");
  24670. var i, n = this && this.__extends || (i = function(t, e) {
  24671. return (i = Object.setPrototypeOf || {
  24672. __proto__: []
  24673. } instanceof Array && function(t, e) {
  24674. t.__proto__ = e;
  24675. } || function(t, e) {
  24676. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  24677. })(t, e);
  24678. }, function(t, e) {
  24679. i(t, e);
  24680. function o() {
  24681. this.constructor = t;
  24682. }
  24683. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  24684. }), r = this && this.__decorate || function(t, e, o, i) {
  24685. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  24686. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  24687. return r > 3 && c && Object.defineProperty(e, o, c), c;
  24688. };
  24689. Object.defineProperty(o, "__esModule", {
  24690. value: !0
  24691. });
  24692. var c = t("../../main/ViewManage"), a = t("../../main/ViewObject"), s = t("../data/RedPoint"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  24693. n(e, t);
  24694. function e() {
  24695. var e = null !== t && t.apply(this, arguments) || this;
  24696. e.lbPower = null;
  24697. e.lbCoin = null;
  24698. e.lbDiamond = null;
  24699. e.mEmailNode = null;
  24700. e.home = null;
  24701. return e;
  24702. }
  24703. e.prototype.onEnable = function() {
  24704. this.refresh();
  24705. };
  24706. e.prototype.refresh = function() {
  24707. var t = this.main.player.role;
  24708. this.lbCoin.string = "" + t.money;
  24709. this.lbDiamond.string = "" + t.gold;
  24710. this.lbPower.string = t.power + "/30";
  24711. };
  24712. e.prototype.forbidBtn = function(t) {
  24713. this.lbCoin.node.parent.getComponent(cc.Button).interactable = t;
  24714. this.lbDiamond.node.parent.getComponent(cc.Button).interactable = t;
  24715. this.lbPower.node.parent.getComponent(cc.Button).interactable = t;
  24716. };
  24717. e.prototype.onclickSet = function() {
  24718. this.main.playerEffectByPath(c.AudioMgr.click);
  24719. this.main.viewManage.loadFunc(c.GameViewType.tap_set, function(t) {
  24720. t.show();
  24721. });
  24722. };
  24723. e.prototype.openShop = function(t, e) {
  24724. this.main.playerEffectByPath(c.AudioMgr.click);
  24725. this.main.startLoad();
  24726. this.main.viewManage.loadFunc(c.GameViewType.tap_shop, function(t) {
  24727. var o = t;
  24728. o.init(Number(e));
  24729. o.show();
  24730. });
  24731. };
  24732. e.prototype.onclickMail = function() {
  24733. this.main.playerEffectByPath(c.AudioMgr.click);
  24734. this.main.startLoad();
  24735. s.default.removeRed(this.mEmailNode);
  24736. this.main.viewManage.loadFunc(c.GameViewType.email, function(t) {
  24737. t.show();
  24738. });
  24739. };
  24740. r([ u(cc.Label) ], e.prototype, "lbPower", void 0);
  24741. r([ u(cc.Label) ], e.prototype, "lbCoin", void 0);
  24742. r([ u(cc.Label) ], e.prototype, "lbDiamond", void 0);
  24743. r([ u(cc.Node) ], e.prototype, "mEmailNode", void 0);
  24744. return r([ l ], e);
  24745. }(a.default);
  24746. o.default = f;
  24747. cc._RF.pop();
  24748. }, {
  24749. "../../main/ViewManage": "ViewManage",
  24750. "../../main/ViewObject": "ViewObject",
  24751. "../data/RedPoint": "RedPoint"
  24752. } ],
  24753. ViewManage: [ function(t, e, o) {
  24754. "use strict";
  24755. cc._RF.push(e, "55cd4aLA19Kl5ViM+3IP4E/", "ViewManage");
  24756. var i, n = this && this.__extends || (i = function(t, e) {
  24757. return (i = Object.setPrototypeOf || {
  24758. __proto__: []
  24759. } instanceof Array && function(t, e) {
  24760. t.__proto__ = e;
  24761. } || function(t, e) {
  24762. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  24763. })(t, e);
  24764. }, function(t, e) {
  24765. i(t, e);
  24766. function o() {
  24767. this.constructor = t;
  24768. }
  24769. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  24770. }), r = this && this.__decorate || function(t, e, o, i) {
  24771. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  24772. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  24773. return r > 3 && c && Object.defineProperty(e, o, c), c;
  24774. };
  24775. Object.defineProperty(o, "__esModule", {
  24776. value: !0
  24777. });
  24778. o.AudioMgr = o.GameViewType = void 0;
  24779. var c = t("./Main"), a = t("./ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property;
  24780. o.GameViewType = cc.Enum({
  24781. login: "prefab/login/login",
  24782. fqLogin: "prefab/login/fqLogin",
  24783. historyArea: "prefab/area/myzone",
  24784. allArea: "prefab/area/allzone",
  24785. area: "prefab/area/area",
  24786. home: "prefab/home/home",
  24787. reward: "prefab/common/award",
  24788. plot_view: "prefab/plot/plot_view",
  24789. tap_role: "prefab/setting/tap_role",
  24790. tap_role_name: "prefab/setting/tap_role_name",
  24791. tap_shop: "prefab/home/shop/shop",
  24792. tap_set: "prefab/setting/tap_set",
  24793. tap_set_music: "prefab/setting/tap_set_music",
  24794. tap_set_control: "prefab/setting/tap_set_control",
  24795. tap_set_Ann: "prefab/setting/tap_set_Ann",
  24796. role_icon_view: "prefab/setting/tap_role_head",
  24797. role_frame_view: "prefab/setting/tap_role_headk",
  24798. role_title_view: "prefab/setting/tap_role_headtiezhi",
  24799. role_icon_info_view: "prefab/setting/frame_icon/icon_info",
  24800. role_title_info_view: "prefab/setting/frame_icon/title_info",
  24801. stageView: "prefab/home/stage/stage",
  24802. stageInfo: "prefab/home/stage/info/stageInfo",
  24803. worldMap: "prefab/home/stage/scene/wordMap",
  24804. wordTask: "prefab/home/stage/scene/wordTask",
  24805. wordTaskItem: "prefab/home/stage/scene/wordTaskItem",
  24806. wordTaskItem_1: "prefab/home/stage/scene/wordTaskItem_1",
  24807. dungeon: "prefab/home/dungeon/dungeon",
  24808. fight: "prefab/fight/fight",
  24809. fight_hd_zb: "prefab/common/hd_zb",
  24810. fight_map_event_tips: "prefab/map/element/map_event_tips",
  24811. fight_map_sjp_tips: "prefab/map/element/shuijingping",
  24812. fight_dialog_box: "prefab/fight/ff_dialog",
  24813. fight_auto_equip: "prefab/fight/ff_auto_equip",
  24814. fight_zsj_tips: "prefab/fight/ff_tips",
  24815. pack: "prefab/home/pack/beibao",
  24816. god_card: "prefab/home/godcard/god_card_view",
  24817. god_card_info: "prefab/home/godcard/card_about_view",
  24818. god_card_star: "prefab/home/godcard/card_star_view",
  24819. god_card_star_success: "prefab/home/godcard/card_star_success_view",
  24820. equip: "prefab/home/equip/role_zb",
  24821. mohe: "prefab/home/mohe/mohe",
  24822. moheInfo: "prefab/home/mohe/magic_info_view",
  24823. moheReward: "prefab/home/mohe/magic_reward_view",
  24824. email: "prefab/home/mail/mail",
  24825. emailInfo: "prefab/home/mail/mail_info",
  24826. goodAbout: "prefab/home/pack/good_Info",
  24827. goodEat: "prefab/home/pack/food_view",
  24828. changeEquip: "prefab/home/equip/zb_gh",
  24829. IntensifyEquip: "prefab/home/equip/equi_pintensify",
  24830. petInfo: "prefab/home/equip/pet_info",
  24831. exchangeAmethyst: "prefab/home/shop/lottery_sj",
  24832. firstPay: "prefab/activity/1001_sc",
  24833. wish: "prefab/activity/1002_mrlb",
  24834. revenge: "prefab/activity/1003_fclb"
  24835. });
  24836. o.AudioMgr = cc.Enum({
  24837. homeMusic: "music/bgm/home",
  24838. openDoor: "music/01_woodendoor",
  24839. getCoin: "music/01_money",
  24840. box: "music/01_treasure",
  24841. amethyst: "music/01_crystal",
  24842. star: "music/01_star",
  24843. wooden: "music/01_wooden",
  24844. qh: "music/01_intensify",
  24845. qh2: "music/01_pack",
  24846. click: "music/BT_common",
  24847. equip: "music/01_clad",
  24848. gift: "music/01_purchase",
  24849. blood: "music/01_blood",
  24850. award: "music/01_award"
  24851. });
  24852. var u = function(t) {
  24853. n(e, t);
  24854. function e() {
  24855. var e = null !== t && t.apply(this, arguments) || this;
  24856. e.mLayer = null;
  24857. e.mLayer1 = null;
  24858. e.runclick = !1;
  24859. return e;
  24860. }
  24861. e.prototype.onLoad = function() {
  24862. this.main = this.node.getComponent(c.default);
  24863. };
  24864. e.prototype.popView = function(t) {
  24865. t.parent = this.mLayer;
  24866. this.runclick = !1;
  24867. };
  24868. e.prototype.popView1 = function(t) {
  24869. t.parent = this.mLayer1;
  24870. this.runclick = !1;
  24871. };
  24872. e.prototype.loadFunc = function(t, e) {
  24873. var o = this;
  24874. if (!this.runclick) {
  24875. this.runclick = !0;
  24876. this.main.startLoad();
  24877. cc.resources.load(t, cc.Prefab, function(t, i) {
  24878. if (t) cc.error(t); else {
  24879. var n = cc.instantiate(i).getComponent(a.default);
  24880. n.main = o.main;
  24881. e(n);
  24882. }
  24883. o.main.stopLoad();
  24884. });
  24885. }
  24886. };
  24887. r([ l(cc.Node) ], e.prototype, "mLayer", void 0);
  24888. r([ l(cc.Node) ], e.prototype, "mLayer1", void 0);
  24889. return r([ p ], e);
  24890. }(cc.Component);
  24891. o.default = u;
  24892. cc._RF.pop();
  24893. }, {
  24894. "./Main": "Main",
  24895. "./ViewObject": "ViewObject"
  24896. } ],
  24897. ViewObject: [ function(t, e, o) {
  24898. "use strict";
  24899. cc._RF.push(e, "d6332M7falPcp94704O0o5M", "ViewObject");
  24900. var i, n = this && this.__extends || (i = function(t, e) {
  24901. return (i = Object.setPrototypeOf || {
  24902. __proto__: []
  24903. } instanceof Array && function(t, e) {
  24904. t.__proto__ = e;
  24905. } || function(t, e) {
  24906. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  24907. })(t, e);
  24908. }, function(t, e) {
  24909. i(t, e);
  24910. function o() {
  24911. this.constructor = t;
  24912. }
  24913. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  24914. }), r = this && this.__decorate || function(t, e, o, i) {
  24915. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  24916. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  24917. return r > 3 && c && Object.defineProperty(e, o, c), c;
  24918. };
  24919. Object.defineProperty(o, "__esModule", {
  24920. value: !0
  24921. });
  24922. var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) {
  24923. n(e, t);
  24924. function e() {
  24925. return null !== t && t.apply(this, arguments) || this;
  24926. }
  24927. e.prototype.setCloseCallback = function(t) {
  24928. this.closeCallback = t;
  24929. };
  24930. e.prototype.show = function(t) {
  24931. if (t) {
  24932. this.prev = t;
  24933. this.prev.__close();
  24934. }
  24935. this.main.viewManage.popView(this.node);
  24936. this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this);
  24937. };
  24938. e.prototype.__close = function() {
  24939. this.node.removeFromParent();
  24940. this.closeCallback && this.closeCallback();
  24941. };
  24942. e.prototype.exitDistroy = function() {
  24943. this.main && this.main.gameHttp && this.main.gameHttp.popEvent(this);
  24944. this.node.destroy();
  24945. this.prev && this.prev.show();
  24946. this.closeCallback && this.closeCallback();
  24947. };
  24948. e.prototype.__distroyAll = function() {
  24949. this.main && this.main.gameHttp && this.main.gameHttp.popEvent(this);
  24950. this.prev && this.prev.isValid && this.prev.__distroyAll();
  24951. this.node.isValid && this.node.destroy();
  24952. this.closeCallback && this.closeCallback();
  24953. };
  24954. e.prototype.httpEvent = function() {};
  24955. return r([ a ], e);
  24956. }(cc.Component));
  24957. o.default = s;
  24958. cc._RF.pop();
  24959. }, {} ],
  24960. ViewTop: [ function(t, e, o) {
  24961. "use strict";
  24962. cc._RF.push(e, "658e8Q4DghHSZjUYnjIlUkB", "ViewTop");
  24963. var i, n = this && this.__extends || (i = function(t, e) {
  24964. return (i = Object.setPrototypeOf || {
  24965. __proto__: []
  24966. } instanceof Array && function(t, e) {
  24967. t.__proto__ = e;
  24968. } || function(t, e) {
  24969. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  24970. })(t, e);
  24971. }, function(t, e) {
  24972. i(t, e);
  24973. function o() {
  24974. this.constructor = t;
  24975. }
  24976. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  24977. }), r = this && this.__decorate || function(t, e, o, i) {
  24978. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  24979. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  24980. return r > 3 && c && Object.defineProperty(e, o, c), c;
  24981. };
  24982. Object.defineProperty(o, "__esModule", {
  24983. value: !0
  24984. });
  24985. var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) {
  24986. n(e, t);
  24987. function e() {
  24988. return null !== t && t.apply(this, arguments) || this;
  24989. }
  24990. e.prototype.show = function() {
  24991. var t = cc.Canvas.instance;
  24992. this.node.parent = t.node;
  24993. };
  24994. e.prototype.onclick = function() {
  24995. cc.director.loadScene("hotUpdate");
  24996. };
  24997. return r([ a ], e);
  24998. }(cc.Component));
  24999. o.default = s;
  25000. cc._RF.pop();
  25001. }, {} ],
  25002. WOneByone: [ function(t, e, o) {
  25003. "use strict";
  25004. cc._RF.push(e, "16b40yQYttOW6ZhDFdggHqr", "WOneByone");
  25005. var i, n = this && this.__extends || (i = function(t, e) {
  25006. return (i = Object.setPrototypeOf || {
  25007. __proto__: []
  25008. } instanceof Array && function(t, e) {
  25009. t.__proto__ = e;
  25010. } || function(t, e) {
  25011. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  25012. })(t, e);
  25013. }, function(t, e) {
  25014. i(t, e);
  25015. function o() {
  25016. this.constructor = t;
  25017. }
  25018. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  25019. }), r = this && this.__decorate || function(t, e, o, i) {
  25020. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  25021. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  25022. return r > 3 && c && Object.defineProperty(e, o, c), c;
  25023. };
  25024. Object.defineProperty(o, "__esModule", {
  25025. value: !0
  25026. });
  25027. var c = t("../../../../i18n/i18n"), a = t("../../object/FSprite"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  25028. n(e, t);
  25029. function e() {
  25030. var e = null !== t && t.apply(this, arguments) || this;
  25031. e.label = null;
  25032. e.text = "";
  25033. e.indexA = 0;
  25034. e.indexB = 0;
  25035. e.isOver = !0;
  25036. e.interval = 100;
  25037. e.jumpThis = !1;
  25038. e.ctime = 0;
  25039. e.dialogs = null;
  25040. e.spine = null;
  25041. return e;
  25042. }
  25043. e.prototype.setCallback = function(t) {
  25044. this.callback = t;
  25045. };
  25046. e.prototype._start = function() {
  25047. this.jumpThis = !1;
  25048. this.indexA = 0;
  25049. this.nextAction();
  25050. };
  25051. e.prototype.update = function() {
  25052. if (!this.isOver) if (this.jumpThis) this.showWorld(); else {
  25053. var t = new Date().getTime();
  25054. if (t - this.ctime > this.interval) {
  25055. this.ctime = t;
  25056. this.showWorld();
  25057. }
  25058. }
  25059. };
  25060. e.prototype.reset = function() {
  25061. this.indexA = 0;
  25062. this.indexB = 0;
  25063. this.label.string = "";
  25064. this.isOver = !1;
  25065. this.jumpThis = !1;
  25066. };
  25067. e.prototype.jump = function() {
  25068. if (this.isOver) {
  25069. this.indexA++;
  25070. if (this.indexA >= this.dialogs.length) {
  25071. this.callback();
  25072. return;
  25073. }
  25074. this.nextAction();
  25075. } else this.jumpThis = !0;
  25076. };
  25077. e.prototype.showWorld = function() {
  25078. if (this.indexB >= this.text.length) this.isOver = !0; else {
  25079. this.indexB++;
  25080. var t = this.text.substring(0, this.indexB);
  25081. this.label.string = t;
  25082. }
  25083. };
  25084. e.prototype.nextAction = function() {
  25085. var t = this;
  25086. this.indexB = 0;
  25087. this.text = c.default.t(this.dialogs[this.indexA]);
  25088. this.jumpThis = !1;
  25089. if (0 == this.text.indexOf("#")) if (this.spine) {
  25090. this.node.children[0].active = !1;
  25091. this.spine.setCompleteListener(function() {
  25092. t.spine.setCompleteListener(null);
  25093. t.node.children[0].active = !0;
  25094. t.spine.setAnimation(0, a.SpriteActionType.stand, !0);
  25095. t.jump();
  25096. });
  25097. var e = this.text.replace("#", "");
  25098. this.spine.setAnimation(0, e, !1);
  25099. } else this.jump(); else this.isOver = !1;
  25100. };
  25101. r([ l(cc.Label) ], e.prototype, "label", void 0);
  25102. return r([ p ], e);
  25103. }(cc.Component);
  25104. o.default = u;
  25105. cc._RF.pop();
  25106. }, {
  25107. "../../../../i18n/i18n": "i18n",
  25108. "../../object/FSprite": "FSprite"
  25109. } ],
  25110. Wish: [ function(t, e, o) {
  25111. "use strict";
  25112. cc._RF.push(e, "a0af4HI0ZRBzpsMI0HQyIej", "Wish");
  25113. var i, n = this && this.__extends || (i = function(t, e) {
  25114. return (i = Object.setPrototypeOf || {
  25115. __proto__: []
  25116. } instanceof Array && function(t, e) {
  25117. t.__proto__ = e;
  25118. } || function(t, e) {
  25119. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  25120. })(t, e);
  25121. }, function(t, e) {
  25122. i(t, e);
  25123. function o() {
  25124. this.constructor = t;
  25125. }
  25126. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  25127. }), r = this && this.__decorate || function(t, e, o, i) {
  25128. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  25129. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  25130. return r > 3 && c && Object.defineProperty(e, o, c), c;
  25131. };
  25132. Object.defineProperty(o, "__esModule", {
  25133. value: !0
  25134. });
  25135. var c = t("../../../main/ViewObject"), a = t("../../../pay/FqPay"), s = t("../../../util/CHttp"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) {
  25136. n(e, t);
  25137. function e() {
  25138. var e = null !== t && t.apply(this, arguments) || this;
  25139. e.itemList = [];
  25140. e.goodItem = null;
  25141. e.wishData = null;
  25142. e.curHdPayData = null;
  25143. e.target = null;
  25144. return e;
  25145. }
  25146. e.prototype.show = function(t) {
  25147. if (t) {
  25148. this.prev = t;
  25149. this.prev.__close();
  25150. }
  25151. this.main.viewManage.popView1(this.node);
  25152. this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this);
  25153. };
  25154. e.prototype.getWishData = function() {
  25155. var t = this;
  25156. this.main.gameHttp.sendJson("hdpay/v1/hdData", {}, function(e, o) {
  25157. t.main.stopLoad();
  25158. if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) {
  25159. console.log("==reve=getWishData===", o);
  25160. t.wishData = o.data;
  25161. t.initItem();
  25162. t.show();
  25163. } else t.main.showTips(o.message); else t.main.showTips("网络异常");
  25164. });
  25165. };
  25166. e.prototype.playVideo = function(t) {
  25167. var e = a.UM_EVENT_ID.ad_wish_0, o = a.UM_EVENT_ID.ad_wish_1;
  25168. new a.default(this.main).adVideo(t, e, o);
  25169. };
  25170. e.prototype.videoFree = function(t) {
  25171. var e = this, o = {
  25172. hdId: t
  25173. };
  25174. this.main.gameHttp.sendJson("hdpay/v1/freeHd", o, function(t, o) {
  25175. e.main.stopLoad();
  25176. if (t == s.HttpStateType.SUCCESS) if (0 == o.retCode) {
  25177. e.refresh();
  25178. e.main.showReward(o);
  25179. } else e.main.showTips(o.message); else e.main.showTips("网络异常");
  25180. });
  25181. };
  25182. e.prototype.initItem = function() {
  25183. var t = this;
  25184. this.wishData.hdPayData.forEach(function(e, o) {
  25185. var i = t.itemList[o], n = i.getChildByName("goodList"), r = i.getChildByName("lbtimes"), c = i.getChildByName("btnPay"), a = i.getChildByName("btnGeted"), s = c.getChildByName("lbpay"), p = t.wishData.playerPay[e.id] ? t.wishData.playerPay[e.id] : 0;
  25186. if (s) {
  25187. var l = t.getPayDataById(t.wishData.hdPayData[o].payId);
  25188. s.getComponent(cc.Label).string = "$ " + l.usd;
  25189. }
  25190. r.getComponent(cc.Label).string = "限购:" + p + "/" + e.maxCount;
  25191. if (p == e.maxCount) {
  25192. a.active = !0;
  25193. c.active = !1;
  25194. }
  25195. JSON.parse(e.reward).forEach(function(e) {
  25196. t.addGood(n, e);
  25197. });
  25198. });
  25199. };
  25200. e.prototype.addGood = function(t, e) {
  25201. var o = cc.instantiate(this.goodItem);
  25202. t.addChild(o);
  25203. this.initGoodItem(o, e);
  25204. };
  25205. e.prototype.initGoodItem = function(t, e) {
  25206. var o = t.getChildByName("infoNode"), i = o.getChildByName("icon").getComponent(cc.Sprite), n = t.getChildByName("frame").getComponent(cc.Sprite);
  25207. this.initIcon(i, e.icon);
  25208. this.initFrameIcon(n, e.frame);
  25209. o.getChildByName("countNode").getChildByName("count").getComponent(cc.Label).string = e.count + "";
  25210. };
  25211. e.prototype.initIcon = function(t, e) {
  25212. cc.resources.load("icon/" + e, cc.SpriteFrame, function(e, o) {
  25213. e ? cc.error(e) : t.spriteFrame = o;
  25214. });
  25215. };
  25216. e.prototype.initFrameIcon = function(t, e) {
  25217. cc.resources.load("icon/frame/" + e, cc.SpriteFrame, function(e, o) {
  25218. e ? cc.error(e) : t.spriteFrame = o;
  25219. });
  25220. };
  25221. e.prototype.onClick = function(t, e) {
  25222. var o = this;
  25223. this.target = t.target;
  25224. this.curHdPayData = this.wishData.hdPayData[e];
  25225. "0" == e ? this.playVideo(function(t) {
  25226. 1 == t ? o.videoFree(o.curHdPayData.id) : o.main.showTips("广告还未准备好");
  25227. }) : "1" == e ? this.pay(this.curHdPayData.payId) : "2" == e && this.pay(this.curHdPayData.payId);
  25228. };
  25229. e.prototype.pay = function(t) {
  25230. var e = this, o = new a.default(this.main), i = this.getPayDataById(t);
  25231. null != i ? o.pay(i, function() {
  25232. e.refresh();
  25233. }) : console.log("===payData=null===", t);
  25234. };
  25235. e.prototype.getPayDataById = function(t) {
  25236. var e = null;
  25237. this.main.sManage.payDatas.forEach(function(o) {
  25238. o.id == Number(t) && (e = o);
  25239. });
  25240. return e;
  25241. };
  25242. e.prototype.refresh = function() {
  25243. var t = this.target.parent, e = t.getChildByName("lbtimes"), o = t.getChildByName("btnPay"), i = t.getChildByName("btnGeted"), n = this.wishData.playerPay[this.curHdPayData.id] ? this.wishData.playerPay[this.curHdPayData.id] : 0;
  25244. n++;
  25245. e.getComponent(cc.Label).string = "限购:" + n + "/" + this.curHdPayData.maxCount;
  25246. if (n == this.curHdPayData.maxCount) {
  25247. o.active = !1;
  25248. i.active = !0;
  25249. }
  25250. };
  25251. r([ u([ cc.Node ]) ], e.prototype, "itemList", void 0);
  25252. r([ u(cc.Prefab) ], e.prototype, "goodItem", void 0);
  25253. return r([ l ], e);
  25254. }(c.default);
  25255. o.default = f;
  25256. cc._RF.pop();
  25257. }, {
  25258. "../../../main/ViewObject": "ViewObject",
  25259. "../../../pay/FqPay": "FqPay",
  25260. "../../../util/CHttp": "CHttp"
  25261. } ],
  25262. WordTask: [ function(t, e, o) {
  25263. "use strict";
  25264. cc._RF.push(e, "6705f81ijhLEaSNwPOl0kSV", "WordTask");
  25265. var i, n = this && this.__extends || (i = function(t, e) {
  25266. return (i = Object.setPrototypeOf || {
  25267. __proto__: []
  25268. } instanceof Array && function(t, e) {
  25269. t.__proto__ = e;
  25270. } || function(t, e) {
  25271. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  25272. })(t, e);
  25273. }, function(t, e) {
  25274. i(t, e);
  25275. function o() {
  25276. this.constructor = t;
  25277. }
  25278. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  25279. }), r = this && this.__decorate || function(t, e, o, i) {
  25280. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  25281. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  25282. return r > 3 && c && Object.defineProperty(e, o, c), c;
  25283. };
  25284. Object.defineProperty(o, "__esModule", {
  25285. value: !0
  25286. });
  25287. var c = t("../../../../main/ViewManage"), a = t("../../../../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = (s.property,
  25288. function(t) {
  25289. n(e, t);
  25290. function e() {
  25291. return null !== t && t.apply(this, arguments) || this;
  25292. }
  25293. e.prototype.onLoad = function() {};
  25294. e.prototype.onclick = function() {};
  25295. e.prototype.openwordTaskItem = function() {
  25296. this.main.viewManage.loadFunc(c.GameViewType.wordTaskItem, function(t) {
  25297. t.show();
  25298. });
  25299. };
  25300. return r([ p ], e);
  25301. }(a.default));
  25302. o.default = l;
  25303. cc._RF.pop();
  25304. }, {
  25305. "../../../../main/ViewManage": "ViewManage",
  25306. "../../../../main/ViewObject": "ViewObject"
  25307. } ],
  25308. WorldMapItem: [ function(t, e, o) {
  25309. "use strict";
  25310. cc._RF.push(e, "018a1DPjfND9awKZ22JhbDP", "WorldMapItem");
  25311. var i, n = this && this.__extends || (i = function(t, e) {
  25312. return (i = Object.setPrototypeOf || {
  25313. __proto__: []
  25314. } instanceof Array && function(t, e) {
  25315. t.__proto__ = e;
  25316. } || function(t, e) {
  25317. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  25318. })(t, e);
  25319. }, function(t, e) {
  25320. i(t, e);
  25321. function o() {
  25322. this.constructor = t;
  25323. }
  25324. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  25325. }), r = this && this.__decorate || function(t, e, o, i) {
  25326. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  25327. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  25328. return r > 3 && c && Object.defineProperty(e, o, c), c;
  25329. };
  25330. Object.defineProperty(o, "__esModule", {
  25331. value: !0
  25332. });
  25333. var c = t("../../../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  25334. n(e, t);
  25335. function e() {
  25336. var e = null !== t && t.apply(this, arguments) || this;
  25337. e.mName = null;
  25338. e.mIcon = null;
  25339. return e;
  25340. }
  25341. e.prototype.onLoad = function() {};
  25342. e.prototype.setScene = function(t) {
  25343. this.sceneData = t;
  25344. this.mName.string = c.default.t(t.name);
  25345. };
  25346. e.prototype.setCallback = function(t) {
  25347. this.callback = t;
  25348. };
  25349. e.prototype.onclick = function() {
  25350. this.callback(this);
  25351. };
  25352. r([ p(cc.Label) ], e.prototype, "mName", void 0);
  25353. r([ p(cc.Sprite) ], e.prototype, "mIcon", void 0);
  25354. return r([ s ], e);
  25355. }(cc.Component);
  25356. o.default = l;
  25357. cc._RF.pop();
  25358. }, {
  25359. "../../../../i18n/i18n": "i18n"
  25360. } ],
  25361. WorldMap: [ function(t, e, o) {
  25362. "use strict";
  25363. cc._RF.push(e, "bc69dUd5t5Na77f5pVjmUcX", "WorldMap");
  25364. var i, n = this && this.__extends || (i = function(t, e) {
  25365. return (i = Object.setPrototypeOf || {
  25366. __proto__: []
  25367. } instanceof Array && function(t, e) {
  25368. t.__proto__ = e;
  25369. } || function(t, e) {
  25370. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  25371. })(t, e);
  25372. }, function(t, e) {
  25373. i(t, e);
  25374. function o() {
  25375. this.constructor = t;
  25376. }
  25377. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  25378. }), r = this && this.__decorate || function(t, e, o, i) {
  25379. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  25380. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  25381. return r > 3 && c && Object.defineProperty(e, o, c), c;
  25382. };
  25383. Object.defineProperty(o, "__esModule", {
  25384. value: !0
  25385. });
  25386. var c = t("./WorldMapItem"), a = t("../../../../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) {
  25387. n(e, t);
  25388. function e() {
  25389. var e = null !== t && t.apply(this, arguments) || this;
  25390. e.mItem = null;
  25391. e.mContent = null;
  25392. return e;
  25393. }
  25394. e.prototype.onLoad = function() {
  25395. for (var t = this, e = this.main.sManage.getScene(), o = 0; o < e.length; o++) {
  25396. var i = e[o], n = cc.instantiate(this.mItem);
  25397. n.parent = this.mContent;
  25398. var r = n.getComponent(c.default);
  25399. r.setScene(i);
  25400. r.setCallback(function(e) {
  25401. t.onclickScene(e);
  25402. });
  25403. }
  25404. };
  25405. e.prototype.onclickScene = function(t) {
  25406. this.exitDistroy();
  25407. this.stage.loadMiniMap(t.sceneData, function() {});
  25408. };
  25409. r([ l(cc.Prefab) ], e.prototype, "mItem", void 0);
  25410. r([ l(cc.Node) ], e.prototype, "mContent", void 0);
  25411. return r([ p ], e);
  25412. }(a.default);
  25413. o.default = u;
  25414. cc._RF.pop();
  25415. }, {
  25416. "../../../../main/ViewObject": "ViewObject",
  25417. "./WorldMapItem": "WorldMapItem"
  25418. } ],
  25419. ZoneItem: [ function(t, e, o) {
  25420. "use strict";
  25421. cc._RF.push(e, "78375iFKb5Pf6cqy0FZtoYS", "ZoneItem");
  25422. var i, n = this && this.__extends || (i = function(t, e) {
  25423. return (i = Object.setPrototypeOf || {
  25424. __proto__: []
  25425. } instanceof Array && function(t, e) {
  25426. t.__proto__ = e;
  25427. } || function(t, e) {
  25428. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  25429. })(t, e);
  25430. }, function(t, e) {
  25431. i(t, e);
  25432. function o() {
  25433. this.constructor = t;
  25434. }
  25435. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  25436. }), r = this && this.__decorate || function(t, e, o, i) {
  25437. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  25438. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  25439. return r > 3 && c && Object.defineProperty(e, o, c), c;
  25440. };
  25441. Object.defineProperty(o, "__esModule", {
  25442. value: !0
  25443. });
  25444. var c = t("../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  25445. n(e, t);
  25446. function e() {
  25447. var e = null !== t && t.apply(this, arguments) || this;
  25448. e.mZoneName = null;
  25449. return e;
  25450. }
  25451. e.prototype.onLoad = function() {
  25452. this.mZoneName.string = c.default.t(this.zone.name);
  25453. };
  25454. e.prototype.setCallback = function(t) {
  25455. this.callback = t;
  25456. };
  25457. e.prototype.onclick = function() {
  25458. this.callback(this);
  25459. };
  25460. r([ p(cc.Label) ], e.prototype, "mZoneName", void 0);
  25461. return r([ s ], e);
  25462. }(cc.Component);
  25463. o.default = l;
  25464. cc._RF.pop();
  25465. }, {
  25466. "../../i18n/i18n": "i18n"
  25467. } ],
  25468. i18nLabel: [ function(t, e, o) {
  25469. "use strict";
  25470. cc._RF.push(e, "2e755RiYT1IMI77POfk+Rec", "i18nLabel");
  25471. var i, n = this && this.__extends || (i = function(t, e) {
  25472. return (i = Object.setPrototypeOf || {
  25473. __proto__: []
  25474. } instanceof Array && function(t, e) {
  25475. t.__proto__ = e;
  25476. } || function(t, e) {
  25477. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  25478. })(t, e);
  25479. }, function(t, e) {
  25480. i(t, e);
  25481. function o() {
  25482. this.constructor = t;
  25483. }
  25484. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  25485. }), r = this && this.__decorate || function(t, e, o, i) {
  25486. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  25487. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  25488. return r > 3 && c && Object.defineProperty(e, o, c), c;
  25489. };
  25490. Object.defineProperty(o, "__esModule", {
  25491. value: !0
  25492. });
  25493. var c = t("./i18n"), a = cc._decorator, s = a.ccclass, p = (a.property, function(t) {
  25494. n(e, t);
  25495. function e() {
  25496. return null !== t && t.apply(this, arguments) || this;
  25497. }
  25498. e.prototype.onLoad = function() {
  25499. var t = this.node.getComponent(cc.Label);
  25500. t && (t.string = c.default.t(t.string));
  25501. };
  25502. return r([ s ], e);
  25503. }(cc.Component));
  25504. o.default = p;
  25505. cc._RF.pop();
  25506. }, {
  25507. "./i18n": "i18n"
  25508. } ],
  25509. i18nSprite: [ function(t, e, o) {
  25510. "use strict";
  25511. cc._RF.push(e, "3a38em9KIlGiKLzxRIs8abt", "i18nSprite");
  25512. var i, n = this && this.__extends || (i = function(t, e) {
  25513. return (i = Object.setPrototypeOf || {
  25514. __proto__: []
  25515. } instanceof Array && function(t, e) {
  25516. t.__proto__ = e;
  25517. } || function(t, e) {
  25518. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  25519. })(t, e);
  25520. }, function(t, e) {
  25521. i(t, e);
  25522. function o() {
  25523. this.constructor = t;
  25524. }
  25525. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  25526. }), r = this && this.__decorate || function(t, e, o, i) {
  25527. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  25528. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  25529. return r > 3 && c && Object.defineProperty(e, o, c), c;
  25530. };
  25531. Object.defineProperty(o, "__esModule", {
  25532. value: !0
  25533. });
  25534. var c = t("./i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) {
  25535. n(e, t);
  25536. function e() {
  25537. var e = null !== t && t.apply(this, arguments) || this;
  25538. e.spriteName = "";
  25539. return e;
  25540. }
  25541. e.prototype.onLoad = function() {
  25542. var t = this.node.getComponent(cc.Sprite);
  25543. t && cc.resources.load("lang/" + t.spriteFrame.name + "_" + c.default.lang(), cc.SpriteFrame, function(e, o) {
  25544. e ? cc.error(e) : t.spriteFrame = o;
  25545. });
  25546. };
  25547. r([ p({
  25548. displayName: "默认图片路径"
  25549. }) ], e.prototype, "spriteName", void 0);
  25550. return r([ s ], e);
  25551. }(cc.Component);
  25552. o.default = l;
  25553. cc._RF.pop();
  25554. }, {
  25555. "./i18n": "i18n"
  25556. } ],
  25557. i18n: [ function(t, e, o) {
  25558. "use strict";
  25559. cc._RF.push(e, "3d264uzMp9AmpRfP/6dLcPR", "i18n");
  25560. var i, n = this && this.__extends || (i = function(t, e) {
  25561. return (i = Object.setPrototypeOf || {
  25562. __proto__: []
  25563. } instanceof Array && function(t, e) {
  25564. t.__proto__ = e;
  25565. } || function(t, e) {
  25566. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  25567. })(t, e);
  25568. }, function(t, e) {
  25569. i(t, e);
  25570. function o() {
  25571. this.constructor = t;
  25572. }
  25573. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  25574. }), r = this && this.__decorate || function(t, e, o, i) {
  25575. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  25576. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  25577. return r > 3 && c && Object.defineProperty(e, o, c), c;
  25578. };
  25579. Object.defineProperty(o, "__esModule", {
  25580. value: !0
  25581. });
  25582. var c, a = cc.sys.languageCode, s = a.substring(0, 2);
  25583. c = "zh" == s ? "zh" == a || "zh-cn" == a || "zh-CN" == a ? "zh-CN" : "zh-HK" : s;
  25584. cc.Enum({
  25585. zh_CN: "zh-CN",
  25586. zh_HK: "zh-HK",
  25587. en: "en",
  25588. jo: "jo",
  25589. ko: "ko"
  25590. });
  25591. var p = cc._decorator, l = p.ccclass, u = (p.property, function(t) {
  25592. n(e, t);
  25593. function e() {
  25594. return null !== t && t.apply(this, arguments) || this;
  25595. }
  25596. o = e;
  25597. e.prototype.onLoad = function() {
  25598. cc.log("当前语言:" + c);
  25599. };
  25600. e.prototype.__init = function(t) {
  25601. cc.resources.load("i18n/" + c, cc.JsonAsset, function(e, i) {
  25602. if (e) cc.error(e); else {
  25603. o.data = i.json;
  25604. t();
  25605. }
  25606. });
  25607. };
  25608. e.t = function(t, e) {
  25609. if (t.length > 50) return t;
  25610. var i = o.data[t];
  25611. i || (i = t);
  25612. if (e) {
  25613. var n = Object.keys(e);
  25614. for (var r in n) {
  25615. var c = n[r], a = e[c];
  25616. i = i.replace("{" + c + "}", a);
  25617. }
  25618. }
  25619. return i;
  25620. };
  25621. e.lang = function() {
  25622. return c;
  25623. };
  25624. e.load = function(t, e) {
  25625. cc.resources.load(t + "_" + c, cc.SpriteFrame, function(t, o) {
  25626. t ? cc.error(t) : e(o);
  25627. });
  25628. };
  25629. var o;
  25630. return o = r([ l ], e);
  25631. }(cc.Component));
  25632. o.default = u;
  25633. cc._RF.pop();
  25634. }, {} ],
  25635. wordTaskItem_1: [ function(t, e, o) {
  25636. "use strict";
  25637. cc._RF.push(e, "5f2fdHoH+BMTZwLhEogxhWo", "wordTaskItem_1");
  25638. var i, n = this && this.__extends || (i = function(t, e) {
  25639. return (i = Object.setPrototypeOf || {
  25640. __proto__: []
  25641. } instanceof Array && function(t, e) {
  25642. t.__proto__ = e;
  25643. } || function(t, e) {
  25644. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  25645. })(t, e);
  25646. }, function(t, e) {
  25647. i(t, e);
  25648. function o() {
  25649. this.constructor = t;
  25650. }
  25651. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  25652. }), r = this && this.__decorate || function(t, e, o, i) {
  25653. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  25654. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  25655. return r > 3 && c && Object.defineProperty(e, o, c), c;
  25656. };
  25657. Object.defineProperty(o, "__esModule", {
  25658. value: !0
  25659. });
  25660. var c = t("../../../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = (a.property,
  25661. function(t) {
  25662. n(e, t);
  25663. function e() {
  25664. return null !== t && t.apply(this, arguments) || this;
  25665. }
  25666. e.prototype.onLoad = function() {};
  25667. e.prototype.onclick = function() {};
  25668. return r([ s ], e);
  25669. }(c.default));
  25670. o.default = p;
  25671. cc._RF.pop();
  25672. }, {
  25673. "../../../../main/ViewObject": "ViewObject"
  25674. } ],
  25675. wordTaskItem: [ function(t, e, o) {
  25676. "use strict";
  25677. cc._RF.push(e, "90d3fY2/M9H/qP6hzXnyvx7", "wordTaskItem");
  25678. var i, n = this && this.__extends || (i = function(t, e) {
  25679. return (i = Object.setPrototypeOf || {
  25680. __proto__: []
  25681. } instanceof Array && function(t, e) {
  25682. t.__proto__ = e;
  25683. } || function(t, e) {
  25684. for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  25685. })(t, e);
  25686. }, function(t, e) {
  25687. i(t, e);
  25688. function o() {
  25689. this.constructor = t;
  25690. }
  25691. t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
  25692. }), r = this && this.__decorate || function(t, e, o, i) {
  25693. var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  25694. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c);
  25695. return r > 3 && c && Object.defineProperty(e, o, c), c;
  25696. };
  25697. Object.defineProperty(o, "__esModule", {
  25698. value: !0
  25699. });
  25700. var c = t("../../../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = (a.property,
  25701. function(t) {
  25702. n(e, t);
  25703. function e() {
  25704. return null !== t && t.apply(this, arguments) || this;
  25705. }
  25706. e.prototype.onLoad = function() {};
  25707. e.prototype.onclick = function() {};
  25708. return r([ s ], e);
  25709. }(c.default));
  25710. o.default = p;
  25711. cc._RF.pop();
  25712. }, {
  25713. "../../../../main/ViewObject": "ViewObject"
  25714. } ]
  25715. }, {}, [ "Adapter", "FullScene", "LeftBottom", "AllArea", "Area", "HistoryArea", "Tap_set_Ann", "MyZoneItem", "ZoneItem", "EquipAbout", "EquipViewAttr", "GoodAbout", "GoodItem", "PetIcon", "RewardView", "FFCalAttr", "RedNode", "RedPoint", "SysData", "SManage", "Player", "EventButton", "FControl", "FCountDown", "FF", "FFHeader", "FFRes", "FLoad", "FObjectFly", "FTmpTaskGood", "FTmpTaskPanel", "DialogButton", "DialogCage", "DialogSay", "FBox", "FExitBox", "FFAutoEquip", "FFDialogBox", "FFZsjTips", "BBObject", "BEffect", "BObject", "GEffect", "LBObject", "FCloseDoor", "FDialogMonster", "FDialogNone", "FDialogNoneNPC", "FDialogNoneXJ", "FDialogPet", "FDialogTest", "FExit", "FFenceTrigger", "FGass", "FGold", "FGrassShard", "FHD_ZB", "FHitMound", "FMqs", "FOpenTrigger", "FPickGood", "FStoreTS", "FTmpGood", "FTreasureBox", "FAltar1_3", "FAltarStar", "FFruit1_3", "FGetSkill", "FPick1_3", "FSjpPanel", "FFire1_4", "FAltar1_5", "FAltar", "FAltarFire", "FAltarGear", "FAltarLight", "BaseEvent", "RemoveModou", "FBigBomb", "FBomb", "FHitBox", "FHitBoxOpenDoor", "FCage", "FCageShooter", "FDialogAttr", "FDialogBox", "FMapDialog", "Guide1", "GuideBase", "GuideTips", "GuideTips1", "FCageSign", "FDialogTest_Zeus", "FDialogTest_athena", "FEndSign", "FStory_rescue", "WOneByone", "FBothwayOpen", "FOpenDoorButton", "FOpenDoorChat", "FOpenDoorCheck", "FOpenDoorFW", "FOpenDoorVine", "FOpenDoorVineEx", "FTransportDoor", "FopenDoorOrder", "FExtra", "FPatrol", "FPatrolWarn", "FDialogPack26", "FFruit26", "Plot1", "FSpring", "FStoenRoll", "FStoneDrop", "Thorn", "FDoorTips", "FTipsEvent", "FPlantTrre", "FIconBlink", "FLiteMap", "FMap", "AIBase", "AIPet", "FObject", "FPanel", "FPanelIcon", "FSprite", "FSpriteTmpGood", "MSprite", "PSprite", "ChargeCollision", "SkillBase", "SkillCharge", "SkillFixed", "SkillRotate", "SkillShotgun", "MBomb", "MFWind", "MMagic", "MShotgun", "EnemyTrigger", "Home", "TopMenu", "FirstPay", "Revenge", "Wish", "CardInfoView", "CardStarSuccessView", "CardStarView", "GodCardView", "CardAttrItem", "CardItem", "CardUplevelItem", "Dungeon", "ChangeEquip", "Equip", "EquipInfo", "EquipItem", "EquipPack", "EquipQH", "EquipQHAttrItem", "EquipQHMax", "EquipStar", "MainAtterItem", "PetInfo", "SetLeader", "MagicBoxInfoView", "MagicBoxItem", "MagicBoxRewardView", "MagicBoxView", "FoodView", "Pack", "ExchangeAmethystView", "ShopAmethystItem", "ShopCoinItem", "ShopPandoraItem", "ShopPowerItem", "ShopView", "Stage", "StageInfo", "StageInfoGood", "StageInfoTask", "StageFail", "StageSuccess", "WordTask", "WorldMap", "WorldMapItem", "MiniMap", "MiniMapItem", "wordTaskItem", "wordTaskItem_1", "Mail", "MailInfo", "MailItem", "PayShopItem", "PayShopView", "TapController", "TapRole", "TapRoleName", "TapSet", "TapSetMusic", "Tap_set_control", "IconInfoView", "RoleFrameView", "RoleIconItem", "RoleIconView", "RoleTitleItem", "RoleTitleView", "TitleInfoView", "i18n", "i18nLabel", "i18nSprite", "AdminLogin", "FqLogin", "Login", "Main", "ViewManage", "ViewObject", "ViewTop", "FlowLightEffect", "FqPay", "GuideMask", "PlotHome", "PlotView", "HotUpdate", "CHttp", "CHttpEvent", "CMath", "CUtil", "CUtilTime", "Joystick", "Loading", "MMD5", "Profile", "RadarChart", "Tips", "JoystickTest", "Joystick_8d" ]);