MCPcopy Create free account
hub / github.com/diasurgical/devilution / ResyncMPQuests

Function ResyncMPQuests

Source/quests.cpp:589–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587}
588
589void ResyncMPQuests()
590{
591#ifndef SPAWN
592 if (quests[QTYPE_KING]._qactive == 1
593 && currlevel >= quests[QTYPE_KING]._qlevel - 1
594 && currlevel <= quests[QTYPE_KING]._qlevel + 1) {
595 quests[QTYPE_KING]._qactive = 2;
596 NetSendCmdQuest(TRUE, QTYPE_KING);
597 }
598 if (quests[QTYPE_BUTCH]._qactive == 1
599 && currlevel >= quests[QTYPE_BUTCH]._qlevel - 1
600 && currlevel <= quests[QTYPE_BUTCH]._qlevel + 1) {
601 quests[QTYPE_BUTCH]._qactive = 2;
602 NetSendCmdQuest(TRUE, QTYPE_BUTCH);
603 }
604 if (quests[QTYPE_VB]._qactive == 1 && currlevel == quests[QTYPE_VB]._qlevel - 1) {
605 quests[QTYPE_VB]._qactive = 2;
606 NetSendCmdQuest(TRUE, QTYPE_VB);
607 }
608 if (QuestStatus(QTYPE_VB))
609 AddObject(OBJ_ALTBOY, 2 * setpc_x + 20, 2 * setpc_y + 22);
610#endif
611}
612
613void ResyncQuests()
614{

Callers 1

LoadGameLevelFunction · 0.85

Calls 3

NetSendCmdQuestFunction · 0.85
QuestStatusFunction · 0.85
AddObjectFunction · 0.85

Tested by

no test coverage detected