mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
POISONMUSHROOMS
This commit is contained in:
@@ -69,7 +69,7 @@ ItemHandlers::CanUseInBattle.add(:POTION,proc { |item,pokemon,battler,move,first
|
||||
ItemHandlers::CanUseInBattle.copy(:POTION,
|
||||
:SUPERPOTION,:HYPERPOTION,:MAXPOTION,:BERRYJUICE,:SWEETHEART,:FRESHWATER,
|
||||
:SODAPOP,:LEMONADE,:MOOMOOMILK,:ORANBERRY,:SITRUSBERRY,:ENERGYPOWDER,
|
||||
:ENERGYROOT)
|
||||
:ENERGYROOT, :POISONMUSHROOM)
|
||||
ItemHandlers::CanUseInBattle.copy(:POTION,:RAGECANDYBAR) if !Settings::RAGE_CANDY_BAR_CURES_STATUS_PROBLEMS
|
||||
|
||||
ItemHandlers::CanUseInBattle.add(:AWAKENING,proc { |item,pokemon,battler,move,firstAction,battle,scene,showMessages|
|
||||
|
||||
@@ -734,7 +734,7 @@ module Compiler
|
||||
end
|
||||
|
||||
def main
|
||||
return
|
||||
#return
|
||||
return if !$DEBUG
|
||||
begin
|
||||
dataFiles = [
|
||||
|
||||
@@ -927,6 +927,41 @@ ItemHandlers::UseOnPokemon.add(:SLOWPOKETAIL, proc { |item, pokemon, scene|
|
||||
# next true
|
||||
# end
|
||||
# })
|
||||
ItemHandlers::UseOnPokemon.add(:POISONMUSHROOM,proc { |item,pkmn,scene|
|
||||
if pkmn.status != :POISON
|
||||
pkmn.status= :POISON
|
||||
scene.pbRefresh
|
||||
scene.pbDisplay(_INTL("{1} was poisoned from eating the mushroom.",pkmn.name))
|
||||
end
|
||||
next pbHPItem(pkmn,10,scene)
|
||||
})
|
||||
ItemHandlers::BattleUseOnPokemon.add(:POISONMUSHROOM,proc { |item,pokemon,battler,choices,scene|
|
||||
if battler.status != :POISON
|
||||
battler.status= :POISON
|
||||
scene.pbRefresh
|
||||
scene.pbDisplay(_INTL("{1} was poisoned from eating the mushroom.",pokemon.name))
|
||||
end
|
||||
pbBattleHPItem(pokemon,battler,10,scene)
|
||||
})
|
||||
|
||||
ItemHandlers::UseOnPokemon.add(:TINYMUSHROOM,proc { |item,pkmn,scene|
|
||||
next pbHPItem(pkmn,10,scene)
|
||||
})
|
||||
ItemHandlers::BattleUseOnPokemon.add(:TINYMUSHROOM,proc { |item,pokemon,battler,choices,scene|
|
||||
next pbBattleHPItem(pokemon,battler,50,scene)
|
||||
})
|
||||
ItemHandlers::UseOnPokemon.add(:BIGMUSHROOM,proc { |item,pkmn,scene|
|
||||
next pbHPItem(pkmn,10,scene)
|
||||
})
|
||||
ItemHandlers::BattleUseOnPokemon.add(:BIGMUSHROOM,proc { |item,pokemon,battler,choices,scene|
|
||||
next pbBattleHPItem(pokemon,battler,50,scene)
|
||||
})
|
||||
ItemHandlers::UseOnPokemon.add(:BALMMUSHROOM,proc { |item,pkmn,scene|
|
||||
next pbHPItem(pkmn,999,scene)
|
||||
})
|
||||
ItemHandlers::BattleUseOnPokemon.add(:BALMMUSHROOM,proc { |item,pokemon,battler,choices,scene|
|
||||
next pbBattleHPItem(pokemon,battler,999,scene)
|
||||
})
|
||||
|
||||
#TRACKER (for roaming legendaries)
|
||||
ItemHandlers::UseInField.add(:REVEALGLASS, proc { |item|
|
||||
|
||||
Reference in New Issue
Block a user