Abilities that hasten egg hatching now have a flag in abilities.txt for this effect

This commit is contained in:
Maruno17
2021-12-29 22:13:18 +00:00
parent f3c4893dbb
commit a6c092a574
5 changed files with 12 additions and 2 deletions

View File

@@ -221,8 +221,8 @@ Events.onStepTaken += proc { |_sender, _e|
$player.party.each do |egg|
next if egg.steps_to_hatch <= 0
egg.steps_to_hatch -= 1
$player.pokemon_party.each do |i|
next if ![:FLAMEBODY, :MAGMAARMOR, :STEAMENGINE].include?(i.ability_id)
$player.pokemon_party.each do |pkmn|
next if !pkmn.ability&.has_flag?("FasterEggHatching")
egg.steps_to_hatch -= 1
break
end

View File

@@ -158,6 +158,7 @@ Description = The Pokémon is protected from flinching.
#-------------------------------
[MAGMAARMOR]
Name = Magma Armor
Flags = FasterEggHatching
Description = Prevents the Pokémon from becoming frozen.
#-------------------------------
[WATERVEIL]
@@ -194,6 +195,7 @@ Description = The Pokémon awakens quickly from sleep.
#-------------------------------
[FLAMEBODY]
Name = Flame Body
Flags = FasterEggHatching
Description = Contact with the Pokémon may burn the attacker.
#-------------------------------
[RUNAWAY]

View File

@@ -158,6 +158,7 @@ Description = The Pokémon is protected from flinching.
#-------------------------------
[MAGMAARMOR]
Name = Magma Armor
Flags = FasterEggHatching
Description = Prevents the Pokémon from becoming frozen.
#-------------------------------
[WATERVEIL]
@@ -194,6 +195,7 @@ Description = The Pokémon awakens quickly from sleep.
#-------------------------------
[FLAMEBODY]
Name = Flame Body
Flags = FasterEggHatching
Description = Contact with the Pokémon may burn the attacker.
#-------------------------------
[RUNAWAY]

View File

@@ -158,6 +158,7 @@ Description = The Pokémon is protected from flinching.
#-------------------------------
[MAGMAARMOR]
Name = Magma Armor
Flags = FasterEggHatching
Description = Prevents the Pokémon from becoming frozen.
#-------------------------------
[WATERVEIL]
@@ -194,6 +195,7 @@ Description = The Pokémon awakens quickly from sleep.
#-------------------------------
[FLAMEBODY]
Name = Flame Body
Flags = FasterEggHatching
Description = Contact with the Pokémon may burn the attacker.
#-------------------------------
[RUNAWAY]
@@ -970,6 +972,7 @@ Description = This Pokémon's moves cannot be redirected.
#-------------------------------
[STEAMENGINE]
Name = Steam Engine
Flags = FasterEggHatching
Description = Boosts Speed drastically if hit by a Fire or Water move.
#-------------------------------
[PUNKROCK]

View File

@@ -158,6 +158,7 @@ Description = The Pokémon is protected from flinching.
#-------------------------------
[MAGMAARMOR]
Name = Magma Armor
Flags = FasterEggHatching
Description = Prevents the Pokémon from becoming frozen.
#-------------------------------
[WATERVEIL]
@@ -194,6 +195,7 @@ Description = The Pokémon awakens quickly from sleep.
#-------------------------------
[FLAMEBODY]
Name = Flame Body
Flags = FasterEggHatching
Description = Contact with the Pokémon may burn the attacker.
#-------------------------------
[RUNAWAY]
@@ -970,6 +972,7 @@ Description = This Pokémon's moves cannot be redirected.
#-------------------------------
[STEAMENGINE]
Name = Steam Engine
Flags = FasterEggHatching
Description = Boosts Speed drastically if hit by a Fire or Water move.
#-------------------------------
[PUNKROCK]