Class: Battle::Logic::BattleEndHandler
- Inherits:
-
ChangeHandlerBase
- Object
- ChangeHandlerBase
- Battle::Logic::BattleEndHandler
- Defined in:
- docs/5_Battle_04_Logic.rb
Overview
Handler responsive of handling the end of the battle
Constant Summary collapse
- GrassItem =
List of Items (ID) got with Pickup on Grass
[[155, 151, 158, 150, 152, 149, 4, 79, 154, 92], [151, 158, 150, 152, 149, 4, 79, 154, 92, 85], [158, 26, 28, 27, 3, 76, 154, 92, 85, 25], [26, 28, 27, 3, 76, 154, 92, 85, 25, 38], [28, 27, 2, 76, 154, 92, 85, 25, 38, 278], [27, 2, 76, 154, 28, 85, 24, 38, 278, 537], [2, 76, 154, 28, 85, 24, 93, 278, 537, 40], [77, 154, 28, 85, 24, 93, 50, 80, 40, 537], [154, 28, 2, 24, 93, 50, 80, 40, 537, 234], [28, 2, 23, 93, 50, 80, 40, 51, 234, 537], [2, 23, 93, 50, 80, 40, 51, 234, 53, 537]]
- CaveItem =
List of Items (ID) got with Pickup in Cave
[[17, 18, 26, 78, 28, 27, 3, 79, 78, 92], [18, 4, 26, 28, 27, 3, 79, 78, 92, 82], [4, 26, 28, 27, 3, 76, 78, 92, 82, 25], [26, 28, 27, 3, 77, 78, 92, 82, 25, 38], [28, 27, 2, 77, 78, 92, 82, 25, 38, 278], [27, 2, 77, 78, 28, 82, 24, 38, 278, 537], [2, 77, 78, 28, 82, 24, 93, 278, 537, 40], [77, 78, 28, 82, 24, 93, 50, 80, 40, 537], [78, 28, 2, 24, 93, 50, 80, 40, 537, 234], [28, 2, 23, 93, 50, 80, 40, 51, 234, 537], [2, 23, 93, 50, 80, 40, 51, 234, 53, 537]]
- WaterItem =
List of Items (ID) got with Pickup on Water
[[17, 18, 26, 78, 28, 27, 3, 79, 78, 92], [18, 4, 26, 28, 27, 3, 79, 78, 92, 84], [4, 26, 28, 27, 3, 76, 78, 92, 84, 25], [26, 28, 27, 3, 77, 78, 92, 84, 25, 38], [28, 27, 2, 77, 78, 92, 84, 25, 38, 278], [27, 2, 77, 78, 28, 84, 24, 38, 278, 537], [2, 77, 78, 28, 84, 24, 93, 278, 537, 40], [77, 78, 28, 84, 24, 93, 50, 80, 40, 537], [78, 28, 2, 24, 93, 50, 80, 40, 537, 234], [28, 2, 23, 93, 50, 80, 40, 51, 234, 537], [2, 23, 93, 50, 80, 40, 51, 234, 53, 537]]
- CommonItem =
List of Items (ID) got with Pickup on common tiles
[[17, 18, 26, 78, 28, 27, 3, 79, 78, 92], [18, 4, 26, 28, 27, 3, 79, 78, 92, 83], [4, 26, 28, 27, 3, 76, 78, 92, 83, 25], [26, 28, 27, 3, 77, 78, 92, 83, 25, 38], [28, 27, 2, 77, 78, 92, 83, 25, 38, 278], [27, 2, 77, 78, 28, 83, 24, 38, 278, 537], [2, 77, 78, 28, 83, 24, 93, 278, 537, 40], [77, 78, 28, 83, 24, 93, 50, 80, 40, 537], [78, 28, 2, 24, 93, 50, 80, 40, 537, 234], [28, 2, 23, 93, 50, 80, 40, 51, 234, 537], [2, 23, 93, 50, 80, 40, 51, 234, 53, 537]]
Instance Attribute Summary
Attributes inherited from ChangeHandlerBase
#logic, #pre_checked_effects, #scene
Instance Method Summary collapse
-
#pickup_item(pokemon) ⇒ Integer
Get the item to pick up.
-
#player_loose_sequence
Process the loose sequence when the battle doesn't allow defeat.
-
#process
Process the battle end.
Methods inherited from ChangeHandlerBase
#initialize, #pass_change, #prevent_change, #process_reason, #reset_reason
Constructor Details
This class inherits a constructor from Battle::Logic::ChangeHandlerBase
Instance Method Details
#pickup_item(pokemon) ⇒ Integer
Get the item to pick up
1621 1622 |
# File 'docs/5_Battle_04_Logic.rb', line 1621 def pickup_item(pokemon) end |
#player_loose_sequence
Process the loose sequence when the battle doesn't allow defeat
1624 1625 |
# File 'docs/5_Battle_04_Logic.rb', line 1624 def player_loose_sequence end |
#process
Process the battle end
1616 1617 |
# File 'docs/5_Battle_04_Logic.rb', line 1616 def process end |