【宝可梦肉鸽】修改代码(v1.11)版本
每天都睡不饱ovo
编辑于 2025年11月01日 23:11

代码断点查找: case b.ACTION 调到9个(共11个)

后续更新列如v1.12 v1.13照样能用,别问了,用不了up会更新!!!

扭蛋券修改;

s.gameData.voucherCounts[0] = 10000//1抽

s.gameData.voucherCounts[1] = 9999//5抽

s.gameData.voucherCounts[2] = 9999//10抽

s.gameData.voucherCounts[3] = 9999//25抽

【以下代码在战斗中使用】

快速孵蛋;背包蛋全改传说(孵完一次需重新使用)

s.gameData.eggs.forEach(item => {

item.hatchWaves = 1;//孵化剩余波次

});

s.gameData.eggs.forEach(item => {

item._tier = 3;//稀有度 普通:0稀有:1史诗:2传说:3

item._species = 0;//(数字:0默认随机)改编号指定宝可梦

item.hatchWaves = 1;//孵化剩余波次

});

游戏对局修改;

s.money = 100000000000//金钱

s.pokeballCounts[4] = 99//大师球99

【以下道具至少持有一个才能改】

for(const h in s.modifiers) {

if (s.modifiers [h].type.id === 'CANDY_JAR'){

s.modifiers [h].stackCount = 99;

}

}// 修改糖果罐

护符类修改;

for(const h in s.modifiers) {

if (s.modifiers [h].type.id === 'SHINY_CHARM'){

s.modifiers [h].stackCount = 4;

}}// 修改4闪耀护符

for(const h in s.modifiers) {

if (s.modifiers [h].type.id === 'ABILITY_CHARM'){

s.modifiers [h].stackCount = 4;

}}// 修改4特性护符

for(const h in s.modifiers) {

if (s.modifiers [h].type.id === 'CATCHING_CHARM'){

s.modifiers [h].stackCount = 3;

}}// 修改3捕获护符

个别图鉴修改;

const dex = [

382,383,384//图鉴编号 默认丰缘三神兽

];

for (let h = 0; h < dex.length; h++) {

const index = dex[h];

s.gameData.starterData[index] = {

abilityAttr: 2,//特性

candyCount: 100,//糖果数量

classicWinCount: 0,//经典模式胜利场次

eggMoves: 15,//遗传技能

friendship: 100,//亲密度

passiveAttr: 3,//被动

valueReduction: 2//减费

};

s.gameData.dexData[index] = {

caughtAttr: 247n,//捕获属性 (用于确认闪光)

ivs: [31, 31, 31, 31, 31, 31],//个体值

seenAttr: 479n,//遭遇属性

caughtCount: 1,//捕获次数

hatchedCount: 5,//孵化次数

seenCount: 1,//遭遇次数

natureAttr: 67108862//性格

};

}

全图鉴黄闪修改;(不报错)

for (let h = 1; h<= 1025; h++) {

  s.gameData.starterData[h] = {

    abilityAttr: 7,//特性

    candyCount: 100,//糖果数量

    classicWinCount: 0,//经典模式胜利场次

    eggMoves: 15,//遗传技能

    friendship: 90,//亲密度

    passiveAttr: 3,//被动

    valueReduction: 2//减费

  };

  s.gameData.dexData[h] = {

    caughtAttr: 159n,//捕获属性 (闪光)

    ivs: [31, 31, 31, 31, 31, 31],//个体值

    seenAttr: 479n,//遭遇属性

    caughtCount: 0,//捕获次数

    hatchedCount: 1,//孵化次数

    seenCount: 3,//遭遇次数

    natureAttr: 67108862//性格

  };

}

const dex = [

  2019, 2020, 2026, 2027, 2028, 2037, 2038, 2050, 2051, 2052, 2053,

  2074, 2075, 2076, 2088, 2089, 2103, 2105, 2670, 4052, 4077,

  4078, 4079, 4080, 4083, 4110, 4122, 4144, 4145, 4146, 4199,

  4222, 4263, 4264, 4554, 4555, 4562, 4618, 6058, 6059, 6100,

  6101, 6157, 6211, 6215, 6503, 6549, 6570, 6571, 6628, 6705,

  6706, 6713, 6724, 8128, 8194, 8901

];

for (let h= 0; h < dex.length; h++) {

  const index = dex[h];

  s.gameData.starterData[index] = {

    abilityAttr: 7,//特性

    candyCount: 100,//糖果数量

    classicWinCount: 0,//经典模式胜利场次

    eggMoves: 15,//遗传技能

    friendship: 90,//亲密度

    passiveAttr: 3,//被动

    valueReduction: 2//减费

  };

  s.gameData.dexData[index] = {

    caughtAttr: 159n,//捕获属性 (闪光)

    ivs: [31, 31, 31, 31, 31, 31],//个体值

    seenAttr: 479n,//遭遇属性

    caughtCount: 0,//捕获次数

    hatchedCount: 1,//孵化次数

    seenCount: 3,//遭遇次数

    natureAttr: 67108862//性格

  };

}

全图鉴后性别补正(公/无性别):

const dex = [

890,382,383,384,493,888,1007,1008,150,249,250,483,484,487,644,646,716,717,718,798,800,802,803,889,887,898,381,385,386,486,490,491,789,786,721,720,719,648,641,642,645,795,801,806,984,987,1002,1004,1005,1009,1020,1021,1022,1023,145,146,243,244,245,377,379,482,492,494,638,639,640,647,649,785,787,793,794,796,797,799,805,807,808,894,895,896,988,989,990,991,992,993,994,1006,1010,1014,1015,1025,4144,4145,4146,144,151,251,378,480,481,772,788,880,882,893,985,986,995,1001,1016,489,881,883,999,1012,120,337,338,436,622,599,854,6100,132,100,343,703,201,1003,374,479,615,774,781,870,924,32,859//图鉴编号

];

for (let h = 0; h < dex.length; h++) {

const index = dex[h];

s.gameData.starterData[index] = {

abilityAttr: 7,//特性

candyCount: 100,//糖果数量

classicWinCount: 0,//经典模式胜利场次

eggMoves: 15,//遗传技能

friendship: 100,//亲密度

passiveAttr: 3,//被动

valueReduction: 2//减费

};

s.gameData.dexData[index] = {

caughtAttr: 151n,//捕获属性 (用于确认闪光)

ivs: [31, 31, 31, 31, 31, 31],//个体值

seenAttr: 479n,//遭遇属性

caughtCount: 0,//捕获次数

hatchedCount: 3,//孵化次数

seenCount: 1,//遭遇次数

natureAttr: 67108862//性格

};

}

全图鉴后性别补正(仅有母)

const dex = [

380,905,488,856,241,868,548,238,29,440,2670,669//图鉴编号

];

for (let h = 0; h < dex.length; h++) {

const index = dex[h];

s.gameData.starterData[index] = {

abilityAttr: 7,//特性

candyCount: 100,//糖果数量

classicWinCount: 0,//经典模式胜利场次

eggMoves: 15,//遗传技能

friendship: 100,//亲密度

passiveAttr: 3,//被动

valueReduction: 2//减费

};

s.gameData.dexData[index] = {

caughtAttr: 155n,//捕获属性 (用于确认闪光)

ivs: [31, 31, 31, 31, 31, 31],//个体值

seenAttr: 479n,//遭遇属性

caughtCount: 0,//捕获次数

hatchedCount: 3,//孵化次数

seenCount: 1,//遭遇次数

natureAttr: 67108862//性格

};

}

全图鉴后特性补正(公/无性别)

const dex = [

890,382,383,384,493,888,1007,1008,1024,646,644,643,716,717,718,798,800,802,803,889,897,491,490,386,385,381,898,648,719,720,721,789,1005,1004,1002,987,984,806,801,795,1009,1017,1020,1021,1022,1023,638,494,492,482,639,640,647,649,793,794,796,797,799,805,807,808,891,894,895,896,988,989,990,991,992,993,994,1003,1006,4146,4145,4144,1025,1010,151,251,480,481,772,1001,995,986,985,893,8901,92,489,479,615,679,633,774,776,778,781,999,200,338,337,562,570,676,692,736,741,775,877,875,874,948,963,4562,6570,343,433,455,746,4618,201,351,420//图鉴编号

];

for (let h = 0; h < dex.length; h++) {

const index = dex[h];

s.gameData.starterData[index] = {

abilityAttr: 1,//特性

candyCount: 50,//糖果数量

classicWinCount: 0,//经典模式胜利场次

eggMoves: 15,//遗传技能

friendship: 100,//亲密度

passiveAttr: 3,//被动

valueReduction: 2//减费

};

s.gameData.dexData[index] = {

caughtAttr: 151n,//捕获属性 (用于确认闪光)

ivs: [31, 31, 31, 31, 31, 31],//个体值

seenAttr: 479n,//遭遇属性

caughtCount: 0,//捕获次数

hatchedCount: 3,//孵化次数

seenCount: 1,//遭遇次数

natureAttr: 67108862//性格

};

}

全图鉴后特性补正(母)

const dex = [

380,488//图鉴编号

];

for (let h = 0; h < dex.length; h++) {

const index = dex[h];

s.gameData.starterData[index] = {

abilityAttr: 1,//特性

candyCount: 100,//糖果数量

classicWinCount: 0,//经典模式胜利场次

eggMoves: 15,//遗传技能

friendship: 100,//亲密度

passiveAttr: 3,//被动

valueReduction: 2//减费

};

s.gameData.dexData[index] = {

caughtAttr: 155n,//捕获属性 (用于确认闪光)

ivs: [31, 31, 31, 31, 31, 31],//个体值

seenAttr: 479n,//遭遇属性

caughtCount: 0,//捕获次数

hatchedCount: 3,//孵化次数

seenCount: 1,//遭遇次数

natureAttr: 67108862//性格

};

}

无尽专用红闪宝可梦修改;

const dex = [

235,263,708,290,656//图鉴编号

];

for (let h = 0; h < dex.length; h++) {

const index = dex[h];

s.gameData.starterData[index] = {

abilityAttr: 7,//特性

candyCount: 300,//糖果数量

classicWinCount: 0,//经典模式胜利场次

eggMoves: 15,//遗传技能

friendship: 100,//亲密度

passiveAttr: 3,//被动

valueReduction: 2//减费

};

s.gameData.dexData[index] = {

caughtAttr: 255n,//捕获属性 (用于确认闪光)

ivs: [31, 31, 31, 31, 31, 31],//个体值

seenAttr: 479n,//遭遇属性

caughtCount: 0,//捕获次数

hatchedCount: 3,//孵化次数

seenCount: 1,//遭遇次数

natureAttr: 67108862//性格

};

}

闪光颜色以及性别(用于确认闪光)

不闪:1n

解锁黄闪:151n 仅公/无性别,155n 仅母,159n 性别全

解锁蓝黄闪:183n 仅公/无性别,187n 仅母,191n 性别全

解锁红蓝黄:247n公/无性别,251n仅母,255n性别全