mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
POISONMUSHROOMS
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -69,7 +69,7 @@ ItemHandlers::CanUseInBattle.add(:POTION,proc { |item,pokemon,battler,move,first
|
|||||||
ItemHandlers::CanUseInBattle.copy(:POTION,
|
ItemHandlers::CanUseInBattle.copy(:POTION,
|
||||||
:SUPERPOTION,:HYPERPOTION,:MAXPOTION,:BERRYJUICE,:SWEETHEART,:FRESHWATER,
|
:SUPERPOTION,:HYPERPOTION,:MAXPOTION,:BERRYJUICE,:SWEETHEART,:FRESHWATER,
|
||||||
:SODAPOP,:LEMONADE,:MOOMOOMILK,:ORANBERRY,:SITRUSBERRY,:ENERGYPOWDER,
|
:SODAPOP,:LEMONADE,:MOOMOOMILK,:ORANBERRY,:SITRUSBERRY,:ENERGYPOWDER,
|
||||||
:ENERGYROOT)
|
:ENERGYROOT, :POISONMUSHROOM)
|
||||||
ItemHandlers::CanUseInBattle.copy(:POTION,:RAGECANDYBAR) if !Settings::RAGE_CANDY_BAR_CURES_STATUS_PROBLEMS
|
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|
|
ItemHandlers::CanUseInBattle.add(:AWAKENING,proc { |item,pokemon,battler,move,firstAction,battle,scene,showMessages|
|
||||||
|
|||||||
@@ -734,7 +734,7 @@ module Compiler
|
|||||||
end
|
end
|
||||||
|
|
||||||
def main
|
def main
|
||||||
return
|
#return
|
||||||
return if !$DEBUG
|
return if !$DEBUG
|
||||||
begin
|
begin
|
||||||
dataFiles = [
|
dataFiles = [
|
||||||
|
|||||||
@@ -927,6 +927,41 @@ ItemHandlers::UseOnPokemon.add(:SLOWPOKETAIL, proc { |item, pokemon, scene|
|
|||||||
# next true
|
# next true
|
||||||
# end
|
# 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)
|
#TRACKER (for roaming legendaries)
|
||||||
ItemHandlers::UseInField.add(:REVEALGLASS, proc { |item|
|
ItemHandlers::UseInField.add(:REVEALGLASS, proc { |item|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Data/items.dat
BIN
Data/items.dat
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user