Zarel/Pokemon-Showdown 反動ダメージ調査のための依存関係調査
Zarel/Pokemon-Showdownでの反動ダメージ(recoil)の計算方法を追うために、各世代ファイルの依存関係を調べた。
stadium <: gen1
gen1 <: gen2
gen2 <: gen3
gen3 <: gen5
gen4 <: gen5
gen5 <: gen6
averagemons <: gen6
gennext <: gen6
hiddentype <: gen6
theorymon <: gen6
tiershift <: gen6
unreleased <: gen6
- 処理: Math.round
- 実装: BattleScripts.tryMoveHit
- https://github.com/Zarel/Pokemon-Showdown/blob/a8776fdb452280adf3b32af6420b0456f9c9f35c/data/scripts.js#L349
- 処理: Math.floor
- 実装: BattleScripts.damage
- https://github.com/Zarel/Pokemon-Showdown/blob/2cf19647433648b41c71438bb72bac843930c116/mods/gen1/scripts.js#L666
- 技: みがわり
- 処理: Math.round
- 実装: substitute.effect.onTryPrimaryHit
- https://github.com/Zarel/Pokemon-Showdown/blob/26e5e5a3487f721b96329dc18277904ea0a8fbe9/data/moves.js#L13492
- 技: みがわり
- 処理: Math.round
- 実装: substitute.effect.onTryPrimaryHit
- https://github.com/Zarel/Pokemon-Showdown/blob/2cf19647433648b41c71438bb72bac843930c116/mods/gen5/moves.js#L874
- 技: みがわり
- 処理: Math.round
- 実装: substitute.effect.onTryPrimaryHit
- https://github.com/Zarel/Pokemon-Showdown/blob/79bea93431f2a87e51517ddeee7b33763c9619ed/mods/gen2/moves.js#L529
- 技: みがわり
- 処理: Math.round
- 実装: substitute.effect.onTryHit
- https://github.com/Zarel/Pokemon-Showdown/blob/1850c643a122e8c8348181ae5860be40a7374e0e/mods/gen1/moves.js#L797
- 技: みがわり
- 処理: Math.round
- 実装: substitute.effect.onTryHit
- https://github.com/Zarel/Pokemon-Showdown/blob/e624b9d5c7f332702d18cb9f5e68bc60dc2ddfad/mods/stadium/moves.js#L192