mirror of
https://github.com/pret/pmd-red.git
synced 2026-06-17 06:00:24 -05:00
28 lines
687 B
C
28 lines
687 B
C
#include "global.h"
|
|
#include "code_8084778.h"
|
|
|
|
#include "code_80958E8.h"
|
|
#include "mailbox.h"
|
|
#include "pokemon_mid.h"
|
|
#include "structs/str_dungeon.h"
|
|
|
|
extern u8 gUnknown_202E088[];
|
|
|
|
extern const u8 gUnknown_8107224[];
|
|
|
|
void sub_8084778(void)
|
|
{
|
|
s32 i;
|
|
WonderMail *wm;
|
|
|
|
strcpy(gUnknown_202E088, gUnknown_8107224);
|
|
|
|
for (i = 0; i < MAX_ACCEPTED_JOBS; i++) {
|
|
wm = GetJobSlotInfo(i);
|
|
if (wm->mailType == MAIL_TYPE_TAKEN_JOB && gDungeon->dungeonLocation.id == wm->unk4.dungeon.id && wm->missionType == WONDER_MAIL_MISSION_TYPE_ESCORT_CLIENT) {
|
|
CopyCyanMonsterNametoBuffer(gUnknown_202E088, wm->targetSpecies);
|
|
break;
|
|
}
|
|
}
|
|
}
|