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

Function AddRepair

Source/missiles.cpp:2196–2210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2194}
2195
2196void AddRepair(int mi, int sx, int sy, int dx, int dy, int midir, char mienemy, int id, int dam)
2197{
2198 missile[mi]._miDelFlag = TRUE;
2199 UseMana(id, SPL_REPAIR);
2200 if (id == myplr) {
2201 if (sbookflag)
2202 sbookflag = FALSE;
2203 if (!invflag) {
2204 invflag = TRUE;
2205 if (sgbControllerActive)
2206 FocusOnInventory();
2207 }
2208 SetCursor_(CURSOR_REPAIR);
2209 }
2210}
2211
2212void AddRecharge(int mi, int sx, int sy, int dx, int dy, int midir, char mienemy, int id, int dam)
2213{

Callers

nothing calls this directly

Calls 3

UseManaFunction · 0.85
FocusOnInventoryFunction · 0.85
SetCursor_Function · 0.85

Tested by

no test coverage detected