Skip to content

Commit

Permalink
Temporary disable of pokecenter reward
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Apr 17, 2024
1 parent e8fc37b commit 08350ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pokemonred_puffer/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ def agent_stats(self, action):
"item_count": self.read_m(0xD31D),
"reset_count": self.reset_count,
"blackout_count": self.blackout_count,
"pokecenter": np.sum(self.pokecenters),
},
"reward": self.get_game_state_reward(),
"reward/reward_sum": sum(self.get_game_state_reward().values()),
Expand Down
2 changes: 1 addition & 1 deletion pokemonred_puffer/rewards/baseline.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def get_game_state_reward(self):
self.reward_config["stats_menu"] * self.seen_stats_menu * int(self.taught_cut)
),
"bag_menu": self.reward_config["bag_menu"] * self.seen_bag_menu * int(self.taught_cut),
"pokecenter": self.reward_config["pokecenter"] * np.sum(self.pokecenters),
# "pokecenter": self.reward_config["pokecenter"] * np.sum(self.pokecenters),
"badges": self.reward_config["badges"] * self.get_badges(),
"met_bill": self.reward_config["bill_saved"] * int(self.read_bit(0xD7F1, 0)),
"used_cell_separator_on_bill": self.reward_config["bill_saved"]
Expand Down

0 comments on commit 08350ea

Please sign in to comment.