Added Setting for item sell prices, added stat for primal reversions, fixed weird movement when jumping across a map connection

This commit is contained in:
Maruno17
2024-01-18 22:20:46 +00:00
parent 8c5911e4a4
commit c5d7d1447b
8 changed files with 25 additions and 7 deletions

View File

@@ -93,7 +93,7 @@ class PokemonMapFactory
# Detects whether the player has moved onto a connected map, and if so, causes
# their transfer to that map.
def setCurrentMap
return if $game_player.moving?
return if $game_player.moving? || $game_player.jumping?
return if $game_map.valid?($game_player.x, $game_player.y)
newmap = getNewMap($game_player.x, $game_player.y)
return if !newmap

View File

@@ -38,7 +38,7 @@ class GameStats
attr_accessor :total_exp_gained
attr_accessor :battle_money_gained, :battle_money_lost
attr_accessor :blacked_out_count
attr_accessor :mega_evolution_count
attr_accessor :mega_evolution_count, :primal_reversion_count
attr_accessor :failed_poke_ball_count
# Currency
attr_accessor :money_spent_at_marts
@@ -118,6 +118,7 @@ class GameStats
@battle_money_lost = 0
@blacked_out_count = 0
@mega_evolution_count = 0
@primal_reversion_count = 0
@failed_poke_ball_count = 0
# Currency
@money_spent_at_marts = 0