Add music, beach fishing, catching, and selectable creature partners
This commit is contained in:
1 parent
3469f2e6dd
commit
cb77683a87
24 files changed
+1307
-104
No files matched your search
+4
-4
@@ -5,7 +5,7 @@ void check_following_and_battle(void)
|
||||
static u16 expected[WIDTH * HEIGHT], visible[WIDTH * HEIGHT];
|
||||
static const unsigned directions[] = {RIGHT, DOWN, LEFT, UP};
|
||||
partner_owned = 1;
|
||||
for (int room = OUTSIDE; room <= MELLON_HOUSE; ++room) {
|
||||
for (int room = OUTSIDE; room <= BEACH; ++room) {
|
||||
current_room = (enum Room)room;
|
||||
int x, y;
|
||||
reset_position(&x, &y);
|
||||
@@ -78,7 +78,7 @@ void check_following_and_battle(void)
|
||||
write_preview("build/battle-preview.ppm");
|
||||
copy_pending_rows(visible);
|
||||
assert(!battle_input(0));
|
||||
assert(!battle_input(SELECT));
|
||||
assert(battle_input(SELECT) && battle.notice == NOTICE_NO_BALLS);
|
||||
assert(battle.turns == 0);
|
||||
assert(battle_input(RIGHT));
|
||||
assert(battle.move == 1 && battle.enemy_hp == GOLDEN_HP);
|
||||
@@ -126,7 +126,7 @@ void check_following_and_battle(void)
|
||||
|
||||
void check_wild_encounters(void)
|
||||
{
|
||||
for (int kind = 0; kind < 3; ++kind) {
|
||||
for (int kind = 0; kind < 4; ++kind) {
|
||||
int opaque = 0;
|
||||
for (int row = 0; row < 24; ++row) {
|
||||
assert(strlen(wild_art[kind].rows[row]) == 24);
|
||||
@@ -137,7 +137,7 @@ void check_wild_encounters(void)
|
||||
++opaque;
|
||||
}
|
||||
}
|
||||
assert(opaque > 180); /* Full original sprites, not palette swaps. */
|
||||
assert(opaque > (kind == TIDEFIN - FERNFOX ? 100 : 180)); /* Fish has a slimmer silhouette. */
|
||||
}
|
||||
partner_owned = 1;
|
||||
current_room = OUTSIDE;
|
||||
|
||||
Reference in new issue
Block a user