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

Function LoadHeroItems

Source/loadsave.cpp:2248–2261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2246}
2247
2248void LoadHeroItems(Player &player)
2249{
2250 LoadHelper file(OpenSaveArchive(gSaveNumber), "heroitems");
2251 if (!file.IsValid())
2252 return;
2253
2254 gbIsHellfireSaveGame = file.NextBool8();
2255
2256 LoadMatchingItems(file, player, NUM_INVLOC, player.InvBody);
2257 LoadMatchingItems(file, player, InventoryGridCells, player.InvList);
2258 LoadMatchingItems(file, player, MaxBeltItems, player.SpdList);
2259
2260 gbIsHellfireSaveGame = gbIsHellfire;
2261}
2262
2263constexpr uint8_t StashVersion = 0;
2264

Callers 2

pfile_ui_set_hero_infosFunction · 0.85

Calls 4

OpenSaveArchiveFunction · 0.85
LoadMatchingItemsFunction · 0.85
NextBool8Method · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected