mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-08-26 04:04:10 -05:00
method to lower enemy hp during battle
This commit is contained in:
@@ -495,9 +495,12 @@ class crystal(object):
|
||||
self.vba.write_memory_at(0xC2FC, 0)
|
||||
self.vba.write_memory_at(0xC2FD, 0)
|
||||
|
||||
#@staticmethod
|
||||
#def set_enemy_level(level):
|
||||
# vba.write_memory_at(0xd213, level)
|
||||
def lower_enemy_hp(self):
|
||||
"""
|
||||
Dramatically lower the enemy's HP.
|
||||
"""
|
||||
self.vba.write_memory_at(0xd216, 0)
|
||||
self.vba.write_memory_at(0xd217, 1)
|
||||
|
||||
def nstep(self, steplimit=500):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user