Merge branch 'RHH/master' into RHH/upcoming
This commit is contained in:
commit
805c65b255
3 changed files with 3 additions and 3 deletions
|
@ -128,7 +128,7 @@
|
|||
#define B_ABSORBING_ABILITY_STRING GEN_LATEST // In Gen5+, the abilities that absorb moves of a certain type use a generic string for stat increases and decreases.
|
||||
#define B_LEAF_GUARD_PREVENTS_REST GEN_LATEST // In Gen5+, Leaf Guard prevents the use of Rest in harsh sunlight.
|
||||
#define B_SNOW_WARNING GEN_LATEST // In Gen9+, Snow Warning will summon snow instead of hail.
|
||||
#define B_TRANSISTOR GEN_LATEST // In Gen9+, Transistor will only boost Electric-type moves by 1.3x as opposed to 1.5x.
|
||||
#define B_TRANSISTOR_BOOST GEN_LATEST // In Gen9+, Transistor will only boost Electric-type moves by 1.3x as opposed to 1.5x.
|
||||
|
||||
// Item settings
|
||||
#define B_HP_BERRIES GEN_LATEST // In Gen4+, berries which restore hp activate immediately after HP drops to half. In Gen3, the effect occurs at the end of the turn.
|
||||
|
|
|
@ -9013,7 +9013,7 @@ static inline u32 CalcMoveBasePowerAfterModifiers(u32 move, u32 battlerAtk, u32
|
|||
break;
|
||||
case ABILITY_TRANSISTOR:
|
||||
if (moveType == TYPE_ELECTRIC)
|
||||
#if B_TRANSISTOR >= GEN_9
|
||||
#if B_TRANSISTOR_BOOST >= GEN_9
|
||||
modifier = uq4_12_multiply(modifier, UQ_4_12(5325 / 4096));
|
||||
#else
|
||||
modifier = uq4_12_multiply(modifier, UQ_4_12(1.5));
|
||||
|
|
|
@ -27,7 +27,7 @@ SINGLE_BATTLE_TEST("Transistor increases Electric-type move damage", s16 damage)
|
|||
HP_BAR(opponent, captureDamage: &results[i].damage);
|
||||
} FINALLY {
|
||||
EXPECT_EQ(results[0].damage, results[1].damage); // Tackle should be unaffected
|
||||
#if B_TRANSISTOR >= GEN_9
|
||||
#if B_TRANSISTOR_BOOST >= GEN_9
|
||||
EXPECT_MUL_EQ(results[2].damage, Q_4_12(5325 / 4096), results[3].damage); // Wild Charge should be affected
|
||||
EXPECT_MUL_EQ(results[4].damage, Q_4_12(5325 / 4096), results[5].damage); // Thunder Shock should be affected
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue