Skip to content

Commit

Permalink
Apply more accurate modifiers in damage calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
Marty-D committed Oct 19, 2015
1 parent ef27b38 commit 48e4bc4
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 57 deletions.
10 changes: 5 additions & 5 deletions data/abilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ exports.BattleAbilities = {
onBasePower: function (basePower, attacker, defender, move) {
if (!this.willMove(defender)) {
this.debug('Analytic boost');
return this.chainModify([0x14CD, 0x1000]); // The Analytic modifier is slightly higher than the normal 1.3 (0x14CC)
return this.chainModify([0x14CD, 0x1000]);
}
},
id: "analytic",
Expand Down Expand Up @@ -1262,7 +1262,7 @@ exports.BattleAbilities = {
onBasePower: function (basePower, attacker, defender, move) {
if (move.flags['punch']) {
this.debug('Iron Fist boost');
return this.chainModify(1.2);
return this.chainModify([0x1333, 0x1000]);
}
},
id: "ironfist",
Expand Down Expand Up @@ -2073,7 +2073,7 @@ exports.BattleAbilities = {
onBasePower: function (basePower, attacker, defender, move) {
if (move.recoil || move.hasCustomRecoil) {
this.debug('Reckless boost');
return this.chainModify(1.2);
return this.chainModify([0x1333, 0x1000]);
}
},
id: "reckless",
Expand Down Expand Up @@ -2173,7 +2173,7 @@ exports.BattleAbilities = {
if (this.isWeather('sandstorm')) {
if (move.type === 'Rock' || move.type === 'Ground' || move.type === 'Steel') {
this.debug('Sand Force boost');
return this.chainModify([0x14CD, 0x1000]); // The Sand Force modifier is slightly higher than the normal 1.3 (0x14CC)
return this.chainModify([0x14CD, 0x1000]);
}
}
},
Expand Down Expand Up @@ -2332,7 +2332,7 @@ exports.BattleAbilities = {
duration: 1,
onBasePowerPriority: 8,
onBasePower: function (basePower, pokemon, target, move) {
return this.chainModify([0x14CD, 0x1000]); // The Sheer Force modifier is slightly higher than the normal 1.3 (0x14CC)
return this.chainModify([0x14CD, 0x1000]);
}
},
id: "sheerforce",
Expand Down
Loading

0 comments on commit 48e4bc4

Please sign in to comment.