forked from mirror/Archipelago
Some checks failed
Analyze modified files / flake8 (push) Failing after 2m28s
Build / build-win (push) Has been cancelled
Build / build-ubuntu2204 (push) Has been cancelled
ctest / Test C++ ubuntu-latest (push) Has been cancelled
ctest / Test C++ windows-latest (push) Has been cancelled
Analyze modified files / mypy (push) Has been cancelled
Build and Publish Docker Images / Push Docker image to Docker Hub (push) Successful in 5m4s
Native Code Static Analysis / scan-build (push) Failing after 5m2s
type check / pyright (push) Successful in 1m7s
unittests / Test Python 3.11.2 ubuntu-latest (push) Failing after 16m23s
unittests / Test Python 3.12 ubuntu-latest (push) Failing after 28m19s
unittests / Test Python 3.13 ubuntu-latest (push) Failing after 14m49s
unittests / Test hosting with 3.13 on ubuntu-latest (push) Successful in 5m0s
unittests / Test Python 3.13 macos-latest (push) Has been cancelled
unittests / Test Python 3.11 windows-latest (push) Has been cancelled
unittests / Test Python 3.13 windows-latest (push) Has been cancelled
72 lines
1.6 KiB
YAML
72 lines
1.6 KiB
YAML
# basically anything that has to do with determining whether an item should be
|
|
# created/given, how to create/give the item, and what happens when the item is
|
|
# obtained.
|
|
|
|
# have seed satchel inherently refill all seeds.
|
|
3f//testSatchelRefillOnItemGet: |
|
|
push bc
|
|
call $44c8 ; giveTreasure_body
|
|
ld a,b
|
|
pop bc
|
|
push af
|
|
ld a,b
|
|
cp TREASURE_SEED_SATCHEL
|
|
jr nz,@notSatchel
|
|
push bc
|
|
push de
|
|
call refillSeedSatchel
|
|
pop de
|
|
pop bc
|
|
@notSatchel:
|
|
pop af
|
|
ld b,a
|
|
ret
|
|
00/16f6/: call testSatchelRefillOnItemGet
|
|
|
|
# setting a flute's icon and song when obtained. also makes the corresponding
|
|
# animal companion rideable, etc.
|
|
3f//activateFlute: |
|
|
push af
|
|
push de
|
|
push hl
|
|
ld a,b
|
|
cp TREASURE_FLUTE
|
|
jr nz,@done
|
|
ld e,$af
|
|
ld a,c
|
|
sub $0a ; get animal index item parameter
|
|
ld (de),a
|
|
add a,$42
|
|
ld h,$c6
|
|
ld l,a ; hl = flags for relevant animal
|
|
cp $45
|
|
jr nz,@moosh
|
|
set 5,(hl)
|
|
jr @done
|
|
@moosh:
|
|
set 7,(hl)
|
|
@done:
|
|
pop hl
|
|
pop de
|
|
pop af
|
|
call $454e ; applyParameter
|
|
ret
|
|
3f/452b/: call activateFlute
|
|
|
|
# Set room flag 0x20 when knocking off tree seeds (mostly for tracking purpose)
|
|
10//extendedKnockOffTree: |
|
|
push hl
|
|
call getThisRoomFlags
|
|
or $20
|
|
ld (hl),a
|
|
pop hl
|
|
ld bc,$fec0 ; original instruction replaced by injected call
|
|
ret
|
|
10/4b29/: call extendedKnockOffTree
|
|
|
|
# remove interactions from jewel caves so that they act as normal chests,
|
|
# meaning no linked changes. this also removes the vire event.
|
|
11/6ca2/: db $ff # swamp
|
|
11/6ca8/: db $ff # lake
|
|
11/6d0f/: db $ff # woods
|