Fix typos
This commit is contained in:
@@ -968,10 +968,10 @@ bool8 MetatileBehavior_IsDiveable(u8 metatileBehavior)
|
|||||||
|
|
||||||
bool8 MetatileBehavior_IsUnableToEmerge(u8 metatileBehavior)
|
bool8 MetatileBehavior_IsUnableToEmerge(u8 metatileBehavior)
|
||||||
{
|
{
|
||||||
//BUG: The player is unintentionally able to emerge on water doors.
|
// BUG: The player is unintentionally able to emerge on water doors.
|
||||||
//Also the narrower underwater door in the underwater tileset has the wrong metatile behavior. This causes the dive glitch.
|
// Also the narrower underwater door in the underwater tileset has the wrong metatile behavior. This causes the dive glitch.
|
||||||
//To fix that add ||metatileBehavior == MB_WATER_DOOR to the if statement below and
|
// To fix that add || metatileBehavior == MB_WATER_DOOR to the if statement below and
|
||||||
//change the metatile behavior of the narrower water door with porymaps tilset editor.
|
// change the metatile behavior of the narrower water door with porymaps tileset editor.
|
||||||
if (metatileBehavior == MB_NO_SURFACING
|
if (metatileBehavior == MB_NO_SURFACING
|
||||||
|| metatileBehavior == MB_SEAWEED_NO_SURFACING)
|
|| metatileBehavior == MB_SEAWEED_NO_SURFACING)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
+2
-2
@@ -2861,8 +2861,8 @@ void CalculateMonStats(struct Pokemon *mon)
|
|||||||
if (currentHP == 0 && oldMaxHP == 0)
|
if (currentHP == 0 && oldMaxHP == 0)
|
||||||
currentHP = newMaxHP;
|
currentHP = newMaxHP;
|
||||||
else if (currentHP != 0)
|
else if (currentHP != 0)
|
||||||
//BUG: currentHP is unintentionally able to become <= 0 after the instruction below. This causes the pomeg berry glitch.
|
// BUG: currentHP is unintentionally able to become <= 0 after the instruction below. This causes the pomeg berry glitch.
|
||||||
//To fix this add another if statement after the instruction that sets currentHP = 1 if currentHP <= 0.
|
// To fix that set currentHP = 1 if currentHP <= 0.
|
||||||
currentHP += newMaxHP - oldMaxHP;
|
currentHP += newMaxHP - oldMaxHP;
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user