mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-26 16:26:01 +00:00
Abilities that hasten egg hatching now have a flag in abilities.txt for this effect
This commit is contained in:
@@ -221,8 +221,8 @@ Events.onStepTaken += proc { |_sender, _e|
|
|||||||
$player.party.each do |egg|
|
$player.party.each do |egg|
|
||||||
next if egg.steps_to_hatch <= 0
|
next if egg.steps_to_hatch <= 0
|
||||||
egg.steps_to_hatch -= 1
|
egg.steps_to_hatch -= 1
|
||||||
$player.pokemon_party.each do |i|
|
$player.pokemon_party.each do |pkmn|
|
||||||
next if ![:FLAMEBODY, :MAGMAARMOR, :STEAMENGINE].include?(i.ability_id)
|
next if !pkmn.ability&.has_flag?("FasterEggHatching")
|
||||||
egg.steps_to_hatch -= 1
|
egg.steps_to_hatch -= 1
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ Description = The Pokémon is protected from flinching.
|
|||||||
#-------------------------------
|
#-------------------------------
|
||||||
[MAGMAARMOR]
|
[MAGMAARMOR]
|
||||||
Name = Magma Armor
|
Name = Magma Armor
|
||||||
|
Flags = FasterEggHatching
|
||||||
Description = Prevents the Pokémon from becoming frozen.
|
Description = Prevents the Pokémon from becoming frozen.
|
||||||
#-------------------------------
|
#-------------------------------
|
||||||
[WATERVEIL]
|
[WATERVEIL]
|
||||||
@@ -194,6 +195,7 @@ Description = The Pokémon awakens quickly from sleep.
|
|||||||
#-------------------------------
|
#-------------------------------
|
||||||
[FLAMEBODY]
|
[FLAMEBODY]
|
||||||
Name = Flame Body
|
Name = Flame Body
|
||||||
|
Flags = FasterEggHatching
|
||||||
Description = Contact with the Pokémon may burn the attacker.
|
Description = Contact with the Pokémon may burn the attacker.
|
||||||
#-------------------------------
|
#-------------------------------
|
||||||
[RUNAWAY]
|
[RUNAWAY]
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ Description = The Pokémon is protected from flinching.
|
|||||||
#-------------------------------
|
#-------------------------------
|
||||||
[MAGMAARMOR]
|
[MAGMAARMOR]
|
||||||
Name = Magma Armor
|
Name = Magma Armor
|
||||||
|
Flags = FasterEggHatching
|
||||||
Description = Prevents the Pokémon from becoming frozen.
|
Description = Prevents the Pokémon from becoming frozen.
|
||||||
#-------------------------------
|
#-------------------------------
|
||||||
[WATERVEIL]
|
[WATERVEIL]
|
||||||
@@ -194,6 +195,7 @@ Description = The Pokémon awakens quickly from sleep.
|
|||||||
#-------------------------------
|
#-------------------------------
|
||||||
[FLAMEBODY]
|
[FLAMEBODY]
|
||||||
Name = Flame Body
|
Name = Flame Body
|
||||||
|
Flags = FasterEggHatching
|
||||||
Description = Contact with the Pokémon may burn the attacker.
|
Description = Contact with the Pokémon may burn the attacker.
|
||||||
#-------------------------------
|
#-------------------------------
|
||||||
[RUNAWAY]
|
[RUNAWAY]
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ Description = The Pokémon is protected from flinching.
|
|||||||
#-------------------------------
|
#-------------------------------
|
||||||
[MAGMAARMOR]
|
[MAGMAARMOR]
|
||||||
Name = Magma Armor
|
Name = Magma Armor
|
||||||
|
Flags = FasterEggHatching
|
||||||
Description = Prevents the Pokémon from becoming frozen.
|
Description = Prevents the Pokémon from becoming frozen.
|
||||||
#-------------------------------
|
#-------------------------------
|
||||||
[WATERVEIL]
|
[WATERVEIL]
|
||||||
@@ -194,6 +195,7 @@ Description = The Pokémon awakens quickly from sleep.
|
|||||||
#-------------------------------
|
#-------------------------------
|
||||||
[FLAMEBODY]
|
[FLAMEBODY]
|
||||||
Name = Flame Body
|
Name = Flame Body
|
||||||
|
Flags = FasterEggHatching
|
||||||
Description = Contact with the Pokémon may burn the attacker.
|
Description = Contact with the Pokémon may burn the attacker.
|
||||||
#-------------------------------
|
#-------------------------------
|
||||||
[RUNAWAY]
|
[RUNAWAY]
|
||||||
@@ -970,6 +972,7 @@ Description = This Pokémon's moves cannot be redirected.
|
|||||||
#-------------------------------
|
#-------------------------------
|
||||||
[STEAMENGINE]
|
[STEAMENGINE]
|
||||||
Name = Steam Engine
|
Name = Steam Engine
|
||||||
|
Flags = FasterEggHatching
|
||||||
Description = Boosts Speed drastically if hit by a Fire or Water move.
|
Description = Boosts Speed drastically if hit by a Fire or Water move.
|
||||||
#-------------------------------
|
#-------------------------------
|
||||||
[PUNKROCK]
|
[PUNKROCK]
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ Description = The Pokémon is protected from flinching.
|
|||||||
#-------------------------------
|
#-------------------------------
|
||||||
[MAGMAARMOR]
|
[MAGMAARMOR]
|
||||||
Name = Magma Armor
|
Name = Magma Armor
|
||||||
|
Flags = FasterEggHatching
|
||||||
Description = Prevents the Pokémon from becoming frozen.
|
Description = Prevents the Pokémon from becoming frozen.
|
||||||
#-------------------------------
|
#-------------------------------
|
||||||
[WATERVEIL]
|
[WATERVEIL]
|
||||||
@@ -194,6 +195,7 @@ Description = The Pokémon awakens quickly from sleep.
|
|||||||
#-------------------------------
|
#-------------------------------
|
||||||
[FLAMEBODY]
|
[FLAMEBODY]
|
||||||
Name = Flame Body
|
Name = Flame Body
|
||||||
|
Flags = FasterEggHatching
|
||||||
Description = Contact with the Pokémon may burn the attacker.
|
Description = Contact with the Pokémon may burn the attacker.
|
||||||
#-------------------------------
|
#-------------------------------
|
||||||
[RUNAWAY]
|
[RUNAWAY]
|
||||||
@@ -970,6 +972,7 @@ Description = This Pokémon's moves cannot be redirected.
|
|||||||
#-------------------------------
|
#-------------------------------
|
||||||
[STEAMENGINE]
|
[STEAMENGINE]
|
||||||
Name = Steam Engine
|
Name = Steam Engine
|
||||||
|
Flags = FasterEggHatching
|
||||||
Description = Boosts Speed drastically if hit by a Fire or Water move.
|
Description = Boosts Speed drastically if hit by a Fire or Water move.
|
||||||
#-------------------------------
|
#-------------------------------
|
||||||
[PUNKROCK]
|
[PUNKROCK]
|
||||||
|
|||||||
Reference in New Issue
Block a user