mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 22:54:59 +00:00
Added class GameData::EncounterType
This commit is contained in:
@@ -242,9 +242,9 @@ ItemHandlers::UseInField.add(:OLDROD,proc { |item|
|
||||
pbMessage(_INTL("Can't use that here."))
|
||||
next 0
|
||||
end
|
||||
encounter = $PokemonEncounters.has_encounter_type?(EncounterTypes::OldRod)
|
||||
encounter = $PokemonEncounters.has_encounter_type?(:OldRod)
|
||||
if pbFishing(encounter,1)
|
||||
pbEncounter(EncounterTypes::OldRod)
|
||||
pbEncounter(:OldRod)
|
||||
end
|
||||
next 1
|
||||
})
|
||||
@@ -256,9 +256,9 @@ ItemHandlers::UseInField.add(:GOODROD,proc { |item|
|
||||
pbMessage(_INTL("Can't use that here."))
|
||||
next 0
|
||||
end
|
||||
encounter = $PokemonEncounters.has_encounter_type?(EncounterTypes::GoodRod)
|
||||
encounter = $PokemonEncounters.has_encounter_type?(:GoodRod)
|
||||
if pbFishing(encounter,2)
|
||||
pbEncounter(EncounterTypes::GoodRod)
|
||||
pbEncounter(:GoodRod)
|
||||
end
|
||||
next 1
|
||||
})
|
||||
@@ -270,9 +270,9 @@ ItemHandlers::UseInField.add(:SUPERROD,proc { |item|
|
||||
pbMessage(_INTL("Can't use that here."))
|
||||
next 0
|
||||
end
|
||||
encounter = $PokemonEncounters.has_encounter_type?(EncounterTypes::SuperRod)
|
||||
encounter = $PokemonEncounters.has_encounter_type?(:SuperRod)
|
||||
if pbFishing(encounter,3)
|
||||
pbEncounter(EncounterTypes::SuperRod)
|
||||
pbEncounter(:SuperRod)
|
||||
end
|
||||
next 1
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user