Add bonk to random sprite on event

This commit is contained in:
CaitSith2
2020-10-07 16:13:42 -07:00
parent 88a5e024c7
commit 4a923c7046
4 changed files with 9 additions and 2 deletions

3
Rom.py
View File

@@ -1,5 +1,5 @@
JAP10HASH = '03a63945398191337e896e5771f77173'
RANDOMIZERBASEHASH = '72e6e25f66bf57bb93016ce33a975506'
RANDOMIZERBASEHASH = 'a9f0b20fe7ada566e56dc7da722959fd'
import io
import json
@@ -177,6 +177,7 @@ def apply_random_sprite_on_event(rom: LocalRom, sprite, local_random, allow_rand
onevent += 0x04 if 'exit' in sprite else 0x00
onevent += 0x08 if 'slash' in sprite else 0x00
onevent += 0x10 if 'item' in sprite else 0x00
onevent += 0x20 if 'bonk' in sprite else 0x00
sprite = Sprite(sprite) if os.path.isfile(sprite) else get_sprite_from_name(sprite, local_random)
# write link sprite if required