MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / SpawnNote

Function SpawnNote

Source/items.cpp:474–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void SpawnNote()
475{
476 _item_indexes id;
477
478 switch (currlevel) {
479 case 22:
480 id = IDI_NOTE2;
481 break;
482 case 23:
483 id = IDI_NOTE3;
484 break;
485 default:
486 id = IDI_NOTE1;
487 break;
488 }
489
490 Point position = GetRandomAvailableItemPosition();
491 SpawnQuestItem(id, position, 0, 1, false);
492}
493
494void CalcSelfItems(Player &player)
495{

Callers 1

InitItemsFunction · 0.85

Calls 2

SpawnQuestItemFunction · 0.85

Tested by

no test coverage detected