Skip to content

Commit

Permalink
Add Rufflet & Braviary
Browse files Browse the repository at this point in the history
  • Loading branch information
nitoyon authored Jan 20, 2025
2 parents e227c1b + fa4adca commit 6eb1cef
Show file tree
Hide file tree
Showing 12 changed files with 135 additions and 6 deletions.
1 change: 1 addition & 0 deletions scripts/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const skills = {
"おてつだいブースト(ほのお)": "Helper Boost",
"おてつだいブースト(みず)": "Helper Boost",
"ばけのかわ(きのみバースト)": "Berry Burst (Disguise)",
"きのみバースト": "Berry Burst",
"へんしん(スキルコピー)": "Skill Copy (Transform)",
"ものまね(スキルコピー)": "Skill Copy (Mimic)",
};
Expand Down
4 changes: 4 additions & 0 deletions src/data/news.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"ResearchCalc": [],
"IvCalc": [
{
"date": "2025-01-20T11:50:00Z",
"id": "add rufflet"
},
{
"date": "2025-01-16T14:00:00Z",
"id": "v2.4.0"
Expand Down
66 changes: 66 additions & 0 deletions src/data/pokemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -4552,6 +4552,72 @@
"c3": 2
}
},
{
"id": 627,
"name": "Rufflet",
"sleepType": "slumbering",
"type": "flying",
"speciality": "Skills",
"skill": "Berry Burst",
"fp": 5,
"frequency": 3800,
"ingRatio": 12.5,
"skillRatio": 3.1,
"ancestor": 627,
"evolutionCount": 0,
"evolutionLeft": 1,
"isFullyEvolved": false,
"carryLimit": 10,
"ing1": {
"name": "sausage",
"c1": 1,
"c2": 2,
"c3": 4
},
"ing2": {
"name": "corn",
"c2": 2,
"c3": 3
},
"ing3": {
"name": "coffee",
"c3": 2
},
"ratioNotFixed": true
},
{
"id": 628,
"name": "Braviary",
"sleepType": "slumbering",
"type": "flying",
"speciality": "Skills",
"skill": "Berry Burst",
"fp": 12,
"frequency": 2400,
"ingRatio": 12.1,
"skillRatio": 3.2,
"ancestor": 627,
"evolutionCount": 1,
"evolutionLeft": 0,
"isFullyEvolved": true,
"carryLimit": 18,
"ing1": {
"name": "sausage",
"c1": 1,
"c2": 2,
"c3": 4
},
"ing2": {
"name": "corn",
"c2": 2,
"c3": 3
},
"ing3": {
"name": "coffee",
"c3": 2
},
"ratioNotFixed": true
},
{
"id": 700,
"name": "Sylveon",
Expand Down
9 changes: 8 additions & 1 deletion src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"notice detail1": "Let's check the future RP and Strength of the Pokémon.",
"notice detail2": "",
"news": {
"add rufflet": {
"headline": "Rufflet and Braviary are added!!!",
"detail": "The ingredient% and skill% are based on RP Collection values."
},
"v2.4.0": {
"headline": "Updated the data for Pokémon with balance adjustments in v2.4.0.",
"detail": "The ingredient% and skill% are based on RP Collection values."
Expand Down Expand Up @@ -324,7 +328,8 @@
"Cooking Power-Up S": "Displays the pot room you get. The effect of skills is not counted towards the total strength amount.",
"Tasty Chance S": "Displays the Extra Tasty rate increase. The effect of skills is not counted towards the total strength amount.",
"Helper Boost": "Displays the number of usual help per Pokémon (when there are 3 Pokémon of the same type). The impact on the strength amount is estimated at 300 per usual help (without area bonuses).",
"Berry Burst (Disguise)": "It is assumed that a great success will not occur. Other Pokémon are estimated to gain 100 strength per berry (without area bonuses)."
"Berry Burst (Disguise)": "It is assumed that a great success will not occur. Other Pokémon are estimated to gain 100 strength per berry (without area bonuses).",
"Berry Burst": "Other Pokémon are estimated to gain 100 strength per berry (without area bonuses)."
},

"rate subskill and nature": "Rate subskills and nature",
Expand Down Expand Up @@ -626,6 +631,8 @@
"Leafeon": "Leafeon",
"Glaceon": "Glaceon",
"Gallade": "Gallade",
"Rufflet": "Rufflet",
"Braviary": "Braviary",
"Sylveon": "Sylveon",
"Dedenne": "Dedenne",
"Grubbin": "Grubbin",
Expand Down
9 changes: 8 additions & 1 deletion src/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"notice detail1": "将来の SP やエナジーを確認して、育成の計画に役立ててください!",
"notice detail2": "",
"news": {
"add rufflet": {
"headline": "ワシボン、ウォーグルのデータを追加しました。",
"detail": "食材確率・スキル確率については、RP Collection の情報を参照しています。"
},
"v2.4.0": {
"headline": "v2.4.0 でのバランス調整のあったポケモンのデータを更新しました。",
"detail": "食材確率・スキル確率については、RP Collection の情報を参照しています。"
Expand Down Expand Up @@ -315,7 +319,8 @@
"Cooking Power-Up S": "鍋の容量の増加量を表示しています。スキルの効果は、合計エナジー量には換算していません。",
"Tasty Chance S": "大成功の確率増加 % を表示しています。スキルの効果は、合計エナジー量には換算していません。",
"Helper Boost": "1体あたりの [おてつだい回数] (同タイプのポケモン 3 体のとき) を表示してます。エナジー量への影響は、1おてつだいあたり 300 (フィールドボーナスなしのとき) として見積もっています。",
"Berry Burst (Disguise)": "大成功は起きないものと仮定しています。他のポケモンは 1 きのみあたり 100 エナジー (フィールドボーナスなしのとき) として見積もっています。"
"Berry Burst (Disguise)": "大成功は起きないものと仮定しています。他のポケモンは 1 きのみあたり 100 エナジー (フィールドボーナスなしのとき) として見積もっています。",
"Berry Burst": "他のポケモンは 1 きのみあたり 100 エナジー (フィールドボーナスなしのとき) として見積もっています。"
},

"rate subskill and nature": "サブスキル・性格の評価値",
Expand Down Expand Up @@ -617,6 +622,8 @@
"Leafeon": "リーフィア",
"Glaceon": "グレイシア",
"Gallade": "エルレイド",
"Rufflet": "ワシボン",
"Braviary": "ウォーグル",
"Sylveon": "ニンフィア",
"Dedenne": "デデンネ",
"Grubbin": "アゴジムシ",
Expand Down
9 changes: 8 additions & 1 deletion src/i18n/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"notice detail1": "미래의 SP와 벌어들이는 에너지를 확인하고, 육성 계획에 활용하세요!",
"notice detail2": "",
"news": {
"add rufflet": {
"headline": "수리둥보와 워글의 데이터를 추가했습니다.",
"detail": "재료%와 기술%은 RP Collection 값에 기반합니다."
},
"v2.4.0": {
"headline": "v2.4.0에서 밸런스 조정이 있던 포켓몬의 데이터를 업데이트했습니다.",
"detail": "재료%와 기술%은 RP Collection 값에 기반합니다."
Expand Down Expand Up @@ -310,7 +314,8 @@
"Cooking Power-Up S": "냄비 용량 증가량을 표시합니다. 스킬의 효과는 총 강도량에 포함되지 않습니다.",
"Tasty Chance S": "큰 성공 확률 증가 %를 표시합니다. 스킬의 효과는 총 강도량에 포함되지 않습니다.",
"Helper Boost": "포켓몬 1마리당 도움 횟수 (같은 유형의 포켓몬이 3마리일 때)를 표시합니다. 강도량에 미치는 영향은 도움 1회당 300 (필드 보너스 없음)으로 추정됩니다.",
"Berry Burst (Disguise)": "큰 성공이 발생하지 않을 것으로 가정합니다. 다른 포켓몬은 1개의 열매당 100의 힘을 얻는 것으로 추정됩니다 (지역 보너스 없이)."
"Berry Burst (Disguise)": "큰 성공이 발생하지 않을 것으로 가정합니다. 다른 포켓몬은 1개의 열매당 100의 힘을 얻는 것으로 추정됩니다 (지역 보너스 없이).",
"Berry Burst": "다른 포켓몬은 1개의 열매당 100의 힘을 얻는 것으로 추정됩니다 (지역 보너스 없이)."
},

"rate subskill and nature": "서브 스킬 & 성격의 평가값",
Expand Down Expand Up @@ -611,6 +616,8 @@
"Leafeon": "리피아",
"Glaceon": "글레이시아",
"Gallade": "엘레이드",
"Rufflet": "수리둥보",
"Braviary": "워글",
"Sylveon": "님피아",
"Dedenne": "데덴네",
"Grubbin": "턱지충이",
Expand Down
9 changes: 8 additions & 1 deletion src/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"notice detail1": "可以确认将来的SP和能量,有助于制定养成的计划!",
"notice detail2": "",
"news": {
"add rufflet": {
"headline": "更新了毛头小鹰,勇士雄鹰的数据。",
"detail": "食材几率、技能几率参照了 RP Collection 的数据。"
},
"v2.4.0": {
"headline": "已更新 v2.4.0 中进行平衡调整的宝可梦数据。",
"detail": "食材几率、技能几率参照了 RP Collection 的数据。"
Expand Down Expand Up @@ -315,7 +319,8 @@
"Cooking Power-Up S": "显示为锅容量的增加量。技能的效果没有换算成合计能量值。",
"Tasty Chance S": "显示为漂亮成功的几率増加百分比。技能的效果没有换算成合计能量值。",
"Helper Boost": "显示为1只宝可梦的帮手次数 (有 3 只同类型宝可梦的情况) 。总能量按照1次帮助 300 (不含营地奖励) 进行预估。",
"Berry Burst (Disguise)": "假设不会发生漂亮成功。其他的宝可梦获取的每个树果按照 100 能量 (不含营地奖励) 进行预估。"
"Berry Burst (Disguise)": "假设不会发生漂亮成功。其他的宝可梦获取的每个树果按照 100 能量 (不含营地奖励) 进行预估。",
"Berry Burst": "其他的宝可梦获取的每个树果按照 100 能量 (不含营地奖励) 进行预估。"
},

"rate subskill and nature": "副技能・性格的评估值",
Expand Down Expand Up @@ -617,6 +622,8 @@
"Leafeon": "叶伊布",
"Glaceon": "冰伊布",
"Gallade": "艾路雷朵",
"Rufflet": "毛头小鹰",
"Braviary": "勇士雄鹰",
"Sylveon": "仙子伊布",
"Dedenne": "咚咚鼠",
"Grubbin": "强颚鸡母虫",
Expand Down
9 changes: 8 additions & 1 deletion src/i18n/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"notice detail1": "用來確認将来的 SP 和能量、有助於制定養成計劃!",
"notice detail2": "",
"news": {
"add rufflet": {
"headline": "更新了毛頭小鷹,勇士雄鷹的数据。",
"detail": "食材几率、技能几率参照了 RP Collection 的数据。"
},
"v2.4.0": {
"headline": "已更新 v2.4.0 中進行平衡調整的寶可夢數據。",
"detail": "食材几率、技能几率参照了 RP Collection 的数据。"
Expand Down Expand Up @@ -315,7 +319,8 @@
"Cooking Power-Up S": "顯示鍋容量的增加量。技能的效果沒有換算成合計能量值。",
"Tasty Chance S": "顯示漂亮成功的機率增加百分比。技能的效果沒有換算成合計能量值。",
"Helper Boost": "顯示1只寶可夢的幫助次數(當有 3 只相同類型的寶可夢時)。能量總量以每次幫助 300(不含營地獎勵)進行計算。",
"Berry Burst (Disguise)": "假設不會發生漂亮成功。其他寶可夢獲取的每個樹果以 100 能量(不含營地獎勵)進行計算。"
"Berry Burst (Disguise)": "假設不會發生漂亮成功。其他寶可夢獲取的每個樹果以 100 能量(不含營地獎勵)進行計算。",
"Berry Burst": "其他寶可夢獲取的每個樹果以 100 能量(不含營地獎勵)進行計算。"
},

"rate subskill and nature": "副技能/性格的評價值",
Expand Down Expand Up @@ -617,6 +622,8 @@
"Leafeon": "葉伊布",
"Glaceon": "冰伊布",
"Gallade": "艾路雷朵",
"Rufflet": "毛頭小鷹",
"Braviary": "勇士雄鷹",
"Sylveon": "仙子伊布",
"Dedenne": "咚咚鼠",
"Grubbin": "強顎雞母蟲",
Expand Down
19 changes: 19 additions & 0 deletions src/ui/IvCalc/PokemonIconData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,25 @@ const pokemonRectData: {[id: string]: RectElement[]} = {
{x: 0, y: 0, w: 1, h: 0.3, color: '#0dba6d'},
{x: 0.45, y: 0.4, w: 0.1, h: 0.15, r: 0.1, color: '#dd717c'},
],
// Rufflet
'627': [
{x: 0, y: 0, w: 1, h: 1, color: '#a09fcd'},
{x: 0, y: -0.2, w: 1, h: 1, r: 0.2, color: '#feffe1'},
{x: 0.25, y: 0.35, w: 0.5, h: 0.35, r: 0.2, color: '#a09fcd'},
{x: 0.35, y: 0.6, w: 0.3, h: 0.2, r: 0.2, color: '#f8ee97'},
{x: 0, y: 0.9, w: 1, h: 0.2, color: '#f8ee97'}
],
// Braviary
'628': [
{x: 0, y: 0, w: 1, h: 1, color: '#716d8f'},
{x: 0, y: 0, w: 0.2, h: 1, color: '#af3745'},
{x: 0.8, y: 0, w: 0.2, h: 1, color: '#af3745'},
{x: 0, y: 0.9, w: 1, h: 0.1, color: '#e4d463'},
{x: 0, y: -0.2, w: 1, h: 0.6, r: 0.2, color: '#fffffd'},
{x: 0.3, y: 0.3, w: 0.4, h: 0.2, r: 0.1, color: '#f1e067'},
{x: 0.3, y: 0.1, w: 0.4, h: 0.2, r: 0.1, color: '#aa3745'},
{x: 0.3, y: 0.25, w: 0.4, h: 0.1, color: '#66a0ea'}
],
// Sylveon
'700': [
{x: 0, y: 0, w: 1, h: 1, color: '#ffffff'},
Expand Down
2 changes: 1 addition & 1 deletion src/ui/IvCalc/StrengthBerryIngSkillView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ function getMainSkillTitle(pokemonIv: PokemonIv, result: StrengthResult,
const mainSkill = pokemonIv.pokemon.skill;
let mainSkillValue: string;
if (mainSkill.startsWith("Charge Strength") ||
mainSkill === "Berry Burst (Disguise)"
mainSkill.startsWith("Berry Burst")
) {
mainSkillValue = formatWithComma(Math.round(result.skillValue));
}
Expand Down
3 changes: 3 additions & 0 deletions src/util/MainSkill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ export function getSkillValue(skill: MainSkillName, skillLevel: number) {
if (skill === "Berry Burst (Disguise)") {
return [8, 10, 15, 17, 19, 21][skillLevel - 1];
}
if (skill === "Berry Burst") {
return [11, 14, 21, 24, 27, 30][skillLevel - 1];
}
if (skill === "Metronome") {
// TODO
return [0, 0, 0, 0, 0, 0][skillLevel - 1];
Expand Down
1 change: 1 addition & 0 deletions src/util/PokemonStrength.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ class PokemonStrength {
return [mainSkillValue, mainSkillValue * strengthPerHelp * 5];

case "Berry Burst (Disguise)":
case "Berry Burst":
const extra = skillLevel <= 2 ? skillLevel : skillLevel - 1;
const strengthBurst = (1 + param.fieldBonus / 100) * (
mainSkillValue * berryStrength * (this.isFavoriteBerry(param) ? 2 : 1) +
Expand Down

0 comments on commit 6eb1cef

Please sign in to comment.