Git游戏

您现在的位置是:首页 > 攻略大全 > 黑科技

黑科技

宝可梦点击修改

2023-01-22 黑科技14875
欢迎加入黑科技QQ群:934074044 交流,请勿在其它群炫耀修改成果,谢谢合作!
本文作者为 @路人甲。
//加成相关//不激活道具时生效//点击伤害倍率App.game.oakItems.itemList[OakItemType.Poison_Barb].inactiveBonus=10//闪光加成App.game.oakItems.itemList[OakItemType.Shiny_Charm].inactiveBonus=2//捕获成功率加...


//加成相关

//不激活道具时生效

//点击伤害倍率

App.game.oakItems.itemList[OakItemType.Poison_Barb].inactiveBonus=10

//闪光加成

App.game.oakItems.itemList[OakItemType.Shiny_Charm].inactiveBonus=2

//捕获成功率加成

App.game.oakItems.itemList[OakItemType.Magic_Ball].inactiveBonus=2

//金币加成

App.game.oakItems.itemList[OakItemType.Dungeon_Tokens].inactiveBonus=10

//经验加成

App.game.oakItems.itemList[OakItemType.Exp_Share].inactiveBonus=10000




//激活道具后生效

//点击伤害倍率

App.game.oakItems.itemList[OakItemType.Rocky_Helmet].bonusList.forEach((v,i)=>{

App.game.oakItems.itemList[OakItemType.Rocky_Helmet].bonusList[i]=v*10;

})

//捕获成功率加成

App.game.oakItems.itemList[OakItemType.Magic_Ball].bonusList.forEach((v,i)=>{

App.game.oakItems.itemList[OakItemType.Magic_Ball].bonusList[i]=v*3;

})

//闪光加成

App.game.oakItems.itemList[OakItemType.Shiny_Charm].bonusList.forEach((v,i)=>{

App.game.oakItems.itemList[OakItemType.Shiny_Charm].bonusList[i]=v*3;

})

//金币加成

App.game.oakItems.itemList[OakItemType.Amulet_Coin].bonusList.forEach((v,i)=>{

App.game.oakItems.itemList[OakItemType.Amulet_Coin].bonusList[i]=v*10;

})

//水壶加成

App.game.oakItems.itemList[OakItemType.Sprayduck].bonusList.forEach((v,i)=>{

App.game.oakItems.itemList[OakItemType.Sprayduck].bonusList[i]=v*100;

})

//变异加成

App.game.oakItems.itemList[OakItemType.Squirtbottle].bonusList.forEach((v,i)=>{

App.game.oakItems.itemList[OakItemType.Squirtbottle].bonusList[i]=v*100;

})

//快速自动战斗

autoFight = setInterval(()=>{

if(App.game.gameState === GameConstants.GameState.dungeon){

if (DungeonRunner.fighting() && !DungeonBattle.catching()) {

        DungeonBattle.clickAttack();

  } else if (DungeonRunner.map.currentTile().type() === GameConstants.DungeonTile.chest) {

        DungeonRunner.openChest();

  }

}

if(App.game.gameState === GameConstants.GameState.fighting){

Battle.clickAttack()

}

if(App.game.gameState === GameConstants.GameState.gym){

GymBattle.clickAttack()

}

},10)

//挖矿快速炸图

Mine.bomb=function()

{

        Underground.energy += Underground.BOMB_ENERGY;

        for (let i = 0; i < App.game.underground.getSizeY(); i++) {

                for (let j = 0; j < Underground.sizeX; j++) {

                        this.breakTile(i, j, 100);

                }

        }

}




//全道具位可激活

App.game.oakItems.unlockRequirements=[1,1,1,1,1,1,1,1,1,1]



//战斗相关


//关闭自动战斗

//clearInterval(autoFight)


//战斗道具随便用

ItemHandler.useItem = function(name){

        const amountSelected = Number(this.multipliers[this.multIndex()].replace(/\D/g, '')) || Infinity;

        this.amountToUse = amountSelected;

        player.itemList[name](player.itemList[name]() + this.amountToUse);

        return ItemList[name].use();

}


//挖矿相关

//挖矿道具不减

player.loseItem = player.gainItem



//孵蛋相关

//快速孵蛋

App.game.breeding.getSteps=(e)=>1;

//自动孵蛋

autoEgg = setInterval(()=>{

for(let i=0;i<App.game.breeding.eggList.length;i++){

let egg=App.game.breeding.eggList[i]();

if(egg.progress()>=100){

App.game.breeding.hatchPokemonEgg(i)

i--;

}

}

//可以把下面的补蛋代码移到这里全自动孵蛋


},200)


//随机蛋补全(执行一次 补满蛋)

for (let i = 0; i < App.game.breeding.eggList.length; i++) {

        let egg=App.game.breeding.eggList[i]();

        if (egg.isNone()) {

                App.game.breeding.gainRandomEgg();

        }

}


//碎片相关

//满碎片

App.game.shards.shardUpgrades.forEach((v,i)=>{

App.game.shards.shardUpgrades[i](10)

})


文章评论

共有0条评论来说两句吧...