mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Add bonk to random sprite on event
This commit is contained in:
3
Rom.py
3
Rom.py
@@ -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
|
||||
|
Reference in New Issue
Block a user