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

Function AddBarrel

Source/objects.cpp:1096–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1094}
1095
1096void AddBarrel(int i, int t)
1097{
1098 object[i]._oVar1 = 0;
1099 object[i]._oRndSeed = GetRndSeed();
1100 object[i]._oVar2 = random_(149, 10);
1101 object[i]._oVar3 = random_(149, 3);
1102
1103 if (object[i]._oVar2 >= 8)
1104 object[i]._oVar4 = PreSpawnSkeleton();
1105}
1106
1107void AddShrine(int i)
1108{

Callers 1

AddObjectFunction · 0.85

Calls 3

GetRndSeedFunction · 0.85
random_Function · 0.85
PreSpawnSkeletonFunction · 0.85

Tested by

no test coverage detected