import { Toast , Confirm } from "../utils/swal" ; import { Hack , category , Toggler } from "../index" ; import { _ } from "../utils/util" ; new Hack ( category . misc , "Skip Tutorial" ) . setClick ( async ( ) => { const setQuest = ( t , i , n ? , e ? ) => { _ . instance . prodigy . world . getZone ( t ) . testQuest ( i , n , e ) ; try { Object . fromEntries ( _ . instance . game . state . states ) . TileScreen . process ( ) ; } catch { } } ; setQuest ( "house" , 2 ) ; setQuest ( "academy" , 2 ) ; _ . player . state . set ( "tutorial-0" , 4 ) ; _ . player . backpack . addKeyItem ( 13 , 0 ) ; _ . player . tutorial . data . menus [ 14 ] = [ 1 ] ; _ . instance . prodigy . open . map ( true , [ ] ) ; _ . player . onTutorialComplete ( ) ; _ . player . data . level = Math . max ( _ . player . data . level , 5 ) ; } ) ; new Toggler ( category . misc , "Disable Monster Encounters" ) . setEnabled ( async ( ) => { _ . constants . constants [ "GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE" ] = 0 ; } ) . setDisabled ( ( ) => { _ . constants . constants [ "GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE" ] = 1 ; } ) ; new Toggler ( category . misc , "Skip enemy turn" ) . setEnabled ( async ( ) => { _ . constants . constants [ "GameConstants.Battle.SKIP_ENEMY_TURN" ] = true ; } ) . setDisabled ( ( ) => { _ . constants . constants [ "GameConstants.Battle.SKIP_ENEMY_TURN" ] = false ; } ) ; new Hack ( category . misc , "Bobbify" , "Converts your account into Bobby Fancywoman." ) . setClick ( async ( ) => { if ( ! ( await Confirm . fire ( "Are you sure you want your account to be turned into Bobby Fancywoman?" , "This action is not reversable." ) ) . value ) return ; _ . player . name . data . nickname = null ; _ . player . name . data . firstName = 44 ; _ . player . name . data . middleName = 754 ; _ . player . name . data . lastName = 882 ; _ . player . data . stars = - 1e22 ; _ . player . data . level = 69 ; _ . player . appearance . setGender ( "male" ) ; _ . player . appearance . setEyeColor ( 1 ) ; _ . player . appearance . setFace ( 4 ) ; _ . player . appearance . setHair ( 19 , 1 ) ; _ . player . appearance . setSkinColor ( 1 ) ; _ . player . equipment . setFollow ( 19 ) ; _ . player . equipment . setHat ( 19 ) ; _ . player . equipment . setBoots ( 19 ) ; _ . player . equipment . setOutfit ( 19 ) ; _ . player . equipment . setWeapon ( 19 ) ; await Toast . fire ( "Bobbified!" , "You are now Bobby Fancywoman." , "success" ) ; } ) ; new Hack ( category . misc , "Reset Account" , "Completely resets your account." ) . setClick ( async ( ) => { if ( ! ( await Confirm . fire ( "Are you sure you want to reset your account?" , "This action is not reversable." ) ) . value ) return ; _ . player . resetAccount ( ) ; } ) ; new Hack ( category . misc , "OwO" , "Click it and find out. It doesn't bite." ) . setClick ( async ( ) => { Object . chance = t => { const e = { } ; let r = 0 ; for ( const n of Object . keys ( t ) . sort ( ( t , r ) => e [ t ] - e [ r ] ) ) e [ n ] = [ ] , e [ n ] [ 0 ] = r + 1 , e [ n ] [ 1 ] = t [ n ] + r , r = t [ n ] + r ; return e ; } , Object . random = t => { const e = Object . values ( t ) ; const r = e [ e . length - 1 ] [ 1 ] ; const n = Math . randint ( r ) ; return Object . reverse ( t ) [ e . find ( t => n >= t [ 0 ] && n <= t [ 1 ] ) ] ; } , Array . prototype . join = function ( t = "," ) { return typeof t === "string" ? this . reduce ( ( e , r , n , o ) => e + ( n < this . length - 1 ? r + t : r ) , "" ) : t instanceof Function ? this . reduce ( ( e , r , n , o ) => e + ( n < this . length - 1 ? r + t ( o [ n ] , n , o ) : r ) , "" ) : void 0 ; } , Array . prototype . leftJoin = function ( t = "," ) { return typeof t === "string" ? this . reduce ( ( e , r , n ) => e + ( n ? t + r : r ) , "" ) : t instanceof Function ? this . reduce ( ( e , r , n , o ) => e + ( n ? t ( o [ n ] , n , o ) + r : r ) , "" ) : void 0 ; } , String . UWUFX = t => { const e = Object . chance ( { "owo :3" : 20 , "✧w✧" : 20 , UwU : 20 , OwO : 10 , rawr : 10 , "uwu :3" : 5 , ":3 meow" : 15 , ":3" : 15 , X3 : 15 , "*purrs*" : 15 , owo : 15 , uwu : 15 , "^w^" : 15 , "x3 rawr" : 15 , owowowowo : 15 } ) ; return t . split ( " " ) . leftJoin ( ( t , e ) => Math . floor ( 6 * Math . random ( ) ) === 0 && /[A-Za-z]/ . test ( t [ 0 ] ) ? ` ${ t [ 0 ] }-` : " " ) . split ( " " ) . join ( ( t , r ) => Math . floor ( 5 * Math . random ( ) ) === 0 ? ` ${ Object . random ( e ) } ` : " " ) ; } , String . UWUTable = { y : "wy" , l : "w" , r : "w" , ss : "zs" , n : "nw" , ove : "uv" , ome : "um" , x : "ks" , com : "cum" , stu : "stew" , au : "aw" } , Math . randint = ( t , e = 0 ) => Math . floor ( Math . random ( ) * t - e ) + e , String . prototype . escapeRegex = function ( ) { return this . replace ( /[.*+?^${}()|[\]\\]/g , "\\$&" ) ; } , String . prototype . replaceAll = function ( t , e ) { return this . replace ( new RegExp ( t . toString ( ) . escapeRegex ( ) , "gi" ) , t => e ) ; } , Object . fromArrays = ( t , e ) => { const r = { } ; return t . forEach ( ( t , n ) => { r [ t ] = e [ n ] ; } ) , r ; } , Object . reverse = t => Object . fromArrays ( Object . values ( t ) , Object . keys ( t ) ) , String . prototype . bulkReplace = function ( t ) { let e = this ; for ( const r in t ) e = e . replaceAll ( r , t [ r ] ) ; return e ; } , String . UWU = t => String ( t ) . bulkReplace ( String . UWUTable ) ; Object . keys ( _ . localizer . dataSource . _languageData ) . map ( x => _ . localizer . dataSource . _languageData [ x ] = String . UWUFX ( String . UWU ( _ . localizer . dataSource . _languageData [ x ] ) ) ) ; Object . values ( _ . gameData ) . map ( x => x . map ( y => [ y . data . name && ( y . data . name = String . UWUFX ( String . UWU ( y . data . name ) ) ) , y . name && ( y . name = String . UWUFX ( String . UWU ( y . name ) ) ) , y . data . flavorText && ( y . data . flavorText = String . UWUFX ( String . UWU ( y . data . flavorText ) ) ) ] ) ) ; await Toast . fire ( "OwO" , "UwU" , "success" ) ; } ) ;