Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
wstag933.c File Reference

WSTAG933: Lamb Chop, Amaterasu City, in the extra chapter. More...

#include "common.h"
#include "field/stage.h"
#include "common/update_stage.inc.c"
#include "common/start_stage.inc.c"
Include dependency graph for wstag933.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)
 
#define STAGE_FILE   0x8F9
 
#define STAGE_FILE_8   0x1AA
 

Functions

void setupStage (void)
 Sets the stage up: its map and actors, playing SHOP2BGM.
 

Variables

ActorImage stageImages []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor6Talks []
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x19, 4, 275, 255, 1 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x1A, 5, 256, 321, 1 }
 
FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x39, 6, 133, 187, 1 }
 
FieldActorEntry actor3 = { ((void *)0) , ((void *)0) , 0x44, 7, 307, 240, 5 }
 
FieldActorEntry actor4 = { ((void *)0) , actor4Talks, 0x84, 8, 217, 257, 5 }
 
FieldActorEntry actor5 = { ((void *)0) , ((void *)0) , 0xE0, 9, 267, 266, 7 }
 
FieldActorEntry actor6 = { ((void *)0) , actor6Talks, 0x16F, 0xA, 101, 203, 5 }
 
FieldActorEntry * stageActors []
 
StageTile stageObjects []
 The tables and color setupStage gives FIELDSTG_state (FieldState)
 
StageSlot stageSlots []
 
void(* stageFuncs [])(void)
 The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a tween, which define STAGE_TWEEN before they include this file, and in the others an array of just setupStage.
 

Detailed Description

WSTAG933: Lamb Chop, Amaterasu City, in the extra chapter.

The European version's: in its extra chapter (STORY_EXTRA), mode 638 starts it instead of WSTAG256.

Definition in file wstag933.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 14 of file wstag933.c.

◆ STAGE_FILE

#define STAGE_FILE   0x8F9

Definition at line 15 of file wstag933.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x1AA

Definition at line 16 of file wstag933.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map and actors, playing SHOP2BGM.

Sets the stage up: its map, actors, battles and events, playing KANRIBGM; BGM_0029 instead except at STORY_PRESIDENT_ARRESTED once flag 0x1A0A is set.

< SHOP2BGM: Lamb Chop, the Yellow Cruiser and El Dorado

< SHOP2BGM: Lamb Chop, the Yellow Cruiser and El Dorado

< a cell's value: a direction (3 bits) and a StageSlot (5)

Definition at line 23 of file wstag933.c.

Variable Documentation

◆ stageImages

ActorImage stageImages[]
Initial value:
= {
{ 0x200, 0x100, 0x21C, 0x1A6, 0x70, 0xA6, 0x230, 0x1FE },
{ 0x200, 0x100, 0x200, 0x100, 0, 0, 0x220, 0x1FE },
{ 0x200, 0x100, 0x216, 0x138, 0x58, 0x38, 0x200, 0x1FD },
{ 0x200, 0x100, 0x208, 0x1BC, 0x20, 0xBC, 0x210, 0x1FD },
{ 0x200, 0x100, 0x210, 0x1BC, 0x40, 0xBC, 0x220, 0x1FD },
{ 0x200, 0x100, 0x200, 0x1BC, 0, 0xBC, 0x230, 0x1FD },
{ 0x140, 0x100, 0x14A, 0x17A, 0x28, 0x7A, 0x150, 0x1FF },
{ 0x140, 0x100, 0x15A, 0x162, 0x68, 0x62, 0x160, 0x1FF },
{ 0x140, 0x100, 0x140, 0x188, 0, 0x88, 0x170, 0x1FF },
{ 0x140, 0x100, 0x164, 0x162, 0x90, 0x62, 0x150, 0x1FE },
{ 0x140, 0x100, 0x170, 0x148, 0xC0, 0x48, 0x160, 0x1FE },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0x140, 0x100, 0x15A, 0x18A, 0x68, 0x8A, 0x170, 0x1FE },
}

Definition at line 41 of file wstag933.c.

Referenced by setupStage().

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x39 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 56 of file wstag933.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x3A },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 60 of file wstag933.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x3B },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 64 of file wstag933.c.

◆ actor4Talks

FieldTalk actor4Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x3C },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 68 of file wstag933.c.

◆ actor6Talks

FieldTalk actor6Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x3D },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 72 of file wstag933.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x19, 4, 275, 255, 1 }

Definition at line 76 of file wstag933.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x1A, 5, 256, 321, 1 }

Definition at line 77 of file wstag933.c.

◆ actor2

FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x39, 6, 133, 187, 1 }

Definition at line 78 of file wstag933.c.

◆ actor3

FieldActorEntry actor3 = { ((void *)0) , ((void *)0) , 0x44, 7, 307, 240, 5 }

Definition at line 79 of file wstag933.c.

◆ actor4

FieldActorEntry actor4 = { ((void *)0) , actor4Talks, 0x84, 8, 217, 257, 5 }

Definition at line 80 of file wstag933.c.

◆ actor5

FieldActorEntry actor5 = { ((void *)0) , ((void *)0) , 0xE0, 9, 267, 266, 7 }

Definition at line 81 of file wstag933.c.

◆ actor6

FieldActorEntry actor6 = { ((void *)0) , actor6Talks, 0x16F, 0xA, 101, 203, 5 }

Definition at line 82 of file wstag933.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag933.c:76
FieldActorEntry actor6
Definition wstag933.c:82
FieldActorEntry actor5
Definition wstag933.c:81
FieldActorEntry actor2
Definition wstag933.c:78
FieldActorEntry actor4
Definition wstag933.c:80
FieldActorEntry actor1
Definition wstag933.c:77
FieldActorEntry actor3
Definition wstag933.c:79

Definition at line 83 of file wstag933.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 0xC, 0, 0, 0, 0, 0, 115, 131, 0, 0 },
{ 1, 0, 0x40, 2, 0xC, 0, 0, 0, 0, 0, 163, 107, 0, 0 },
{ 1, 0, 0x40, 2, 0xC, 0, 0, 0, 0, 0, 227, 75, 0, 0 },
{ 1, 0, 0x40, 2, 0xD, 0, 0, 0, 0, 0, 280, 73, 0, 0 },
{ 1, 0, 0x40, 2, 0xD, 0, 0, 0, 0, 0, 328, 97, 0, 0 },
{ 1, 0, 0x40, 2, 0xD, 0, 0, 0, 0, 0, 376, 121, 0, 0 },
{ 1, 0, 0x40, 2, 0xA, 2, 0, 2, 4, 0, 117, 147, 0, 0 },
{ 1, 0, 0x40, 2, 0xA, 2, 0, 2, 4, 0, 165, 124, 0, 0 },
{ 1, 0, 0x40, 2, 0xA, 2, 0, 2, 4, 0, 229, 92, 0, 0 },
{ 1, 0, 0x40, 2, 0xB, 2, 0, 2, 4, 0, 259, 90, 0, 0 },
{ 1, 0, 0x40, 2, 0xB, 2, 0, 2, 4, 0, 307, 115, 0, 0 },
{ 1, 0, 0x40, 2, 0xB, 2, 0, 2, 4, 0, 355, 139, 0, 0 },
{ 1, 0x64, 0x40, 6, 0xF, 0, 0, 0, 0, 0, 350, 125, 0, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 192, 271, 301, 0 },
{ 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 184, 263, 288, 0 },
{ 1, 0, 0x40, 4, 0xE, 0, 0, 0, 0, 0, 152, 216, 233, 0 },
{ 1, 0, 0x40, 4, 2, 0, 0, 0, 0, 0, 178, 254, 277, 0 },
{ 1, 0, 0x40, 4, 3, 0, 0, 0, 0, 0, 280, 256, 280, 0 },
{ 1, 0, 0x40, 4, 4, 0, 0, 0, 0, 0, 264, 248, 271, 0 },
{ 1, 0, 0x40, 4, 5, 0, 0, 0, 0, 0, 248, 240, 264, 0 },
{ 1, 0, 0x40, 4, 6, 0, 0, 0, 0, 0, 232, 232, 256, 0 },
{ 1, 0, 0x40, 4, 7, 0, 0, 0, 0, 0, 217, 222, 248, 0 },
{ 1, 0, 0x40, 4, 8, 0, 0, 0, 0, 0, 312, 231, 263, 0 },
{ 1, 0, 0x40, 4, 9, 0, 0, 0, 0, 0, 332, 222, 253, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
}

The tables and color setupStage gives FIELDSTG_state (FieldState)

Definition at line 93 of file wstag933.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x270, 0x112, 0x220, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x279, 0x68, 0x15A, 5, 0x64, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 120 of file wstag933.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map and actors, playing SHOP2BGM.
Definition wstag933.c:23

The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a tween, which define STAGE_TWEEN before they include this file, and in the others an array of just setupStage.

Definition at line 125 of file wstag933.c.