mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-03-12 11:21:59 +00:00
Removed all excess whitespace and standardized line endings.
This commit is contained in:
@@ -907,7 +907,7 @@ end
|
||||
#===============================================================================
|
||||
def pbChooseItem(var=0,*args)
|
||||
ret = 0
|
||||
pbFadeOutIn {
|
||||
pbFadeOutIn {
|
||||
scene = PokemonBag_Scene.new
|
||||
screen = PokemonBagScreen.new(scene,$PokemonBag)
|
||||
ret = screen.pbChooseItemScreen
|
||||
@@ -963,4 +963,4 @@ def pbChooseItemFromList(message,variable,*args)
|
||||
end
|
||||
$game_variables[variable] = itemid[ret]
|
||||
return itemid[ret]
|
||||
end
|
||||
end
|
||||
|
||||
@@ -157,7 +157,7 @@ ItemHandlers::UseInField.add(:WHITEFLUTE,proc { |item|
|
||||
next 1
|
||||
})
|
||||
|
||||
ItemHandlers::UseInField.add(:HONEY,proc { |item|
|
||||
ItemHandlers::UseInField.add(:HONEY,proc { |item|
|
||||
pbUseItemMessage(item)
|
||||
pbSweetScent
|
||||
next 3
|
||||
@@ -228,7 +228,7 @@ ItemHandlers::UseInField.add(:BICYCLE,proc { |item|
|
||||
if $PokemonGlobal.bicycle
|
||||
pbDismountBike
|
||||
else
|
||||
pbMountBike
|
||||
pbMountBike
|
||||
end
|
||||
next 1
|
||||
end
|
||||
@@ -296,7 +296,7 @@ ItemHandlers::UseInField.add(:ITEMFINDER,proc { |item|
|
||||
else # Item is nearby, face towards it
|
||||
direction = $game_player.direction
|
||||
if offsetX.abs>offsetY.abs
|
||||
direction = (offsetX<0) ? 4 : 6
|
||||
direction = (offsetX<0) ? 4 : 6
|
||||
else
|
||||
direction = (offsetY<0) ? 8 : 2
|
||||
end
|
||||
@@ -1107,4 +1107,4 @@ ItemHandlers::UseOnPokemon.add(:ABILITYCAPSULE,proc { |item,pkmn,scene|
|
||||
next true
|
||||
end
|
||||
next false
|
||||
})
|
||||
})
|
||||
|
||||
@@ -674,4 +674,4 @@ ItemHandlers::BattleUseOnBattler.add(:DIREHIT3,proc { |item,battler,scene|
|
||||
battler.effects[PBEffects::FocusEnergy] = 3
|
||||
scene.pbDisplay(_INTL("{1} is getting pumped!",battler.pbThis))
|
||||
battler.pokemon.changeHappiness("battleitem")
|
||||
})
|
||||
})
|
||||
|
||||
@@ -299,4 +299,4 @@ def pbPhoneCall(call,phonenum)
|
||||
pbMessage(messages[i])
|
||||
end
|
||||
pbMessage(_INTL("Click!\\wt[10]\n......\\wt[5] ......\\1"))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -153,7 +153,7 @@ end
|
||||
################################################################################
|
||||
EncounterModifier.register(proc { |encounter|
|
||||
next encounter if EncounterTypes::EnctypeCompileDens[$PokemonTemp.encounterType]!=1
|
||||
if !$PokemonEncounters.isRegularGrass? ||
|
||||
if !$PokemonEncounters.isRegularGrass? ||
|
||||
!$PokemonEncounters.isEncounterPossibleHere? ||
|
||||
$PokemonGlobal.partner
|
||||
pbPokeRadarCancel
|
||||
@@ -249,4 +249,4 @@ ItemHandlers::UseInField.add(:POKERADAR,proc { |item|
|
||||
|
||||
ItemHandlers::UseFromBag.add(:POKERADAR,proc { |item|
|
||||
next (pbCanUsePokeRadar?) ? 2 : 0
|
||||
})
|
||||
})
|
||||
|
||||
@@ -114,4 +114,4 @@ def pbWriteMail(item,pkmn,pkmnid,scene)
|
||||
return false if scene.pbConfirm(_INTL("Stop giving the Pokémon Mail?"))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -155,4 +155,4 @@ class HeldItemIconSprite < SpriteWrapper
|
||||
self.bitmap = @animbitmap.bitmap
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -398,4 +398,4 @@ end
|
||||
|
||||
def pbStoreAllOrNone(*args)
|
||||
return $PokemonBag.pbStoreAllOrNone(*args)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user