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

Function ForceQuests

Source/quests.cpp:208–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208BOOL ForceQuests()
209{
210#ifndef SPAWN
211 int i, j, qx, qy, ql;
212
213 if (gbMaxPlayers != 1) {
214 return FALSE;
215 }
216
217 for (i = 0; i < MAXQUESTS; i++) {
218
219 if (i != QTYPE_VB && currlevel == quests[i]._qlevel && quests[i]._qslvl != 0) {
220 ql = quests[quests[i]._qidx]._qslvl - 1;
221 qx = quests[i]._qtx;
222 qy = quests[i]._qty;
223
224 for (j = 0; j < 7; j++) {
225 if (qx + questxoff[j] == cursmx && qy + questyoff[j] == cursmy) {
226 sprintf(infostr, "To %s", questtrigstr[ql]);
227 cursmx = qx;
228 cursmy = qy;
229 return TRUE;
230 }
231 }
232 }
233 }
234#endif
235
236 return FALSE;
237}
238
239BOOL QuestStatus(int i)
240{

Callers 1

CheckTrigForceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected