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

Function AddRecharge

Source/missiles.cpp:2212–2226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2210}
2211
2212void AddRecharge(int mi, int sx, int sy, int dx, int dy, int midir, char mienemy, int id, int dam)
2213{
2214 missile[mi]._miDelFlag = TRUE;
2215 UseMana(id, SPL_RECHARGE);
2216 if (id == myplr) {
2217 if (sbookflag)
2218 sbookflag = FALSE;
2219 if (!invflag) {
2220 invflag = TRUE;
2221 if (sgbControllerActive)
2222 FocusOnInventory();
2223 }
2224 SetCursor_(CURSOR_RECHARGE);
2225 }
2226}
2227
2228void AddDisarm(int mi, int sx, int sy, int dx, int dy, int midir, char mienemy, int id, int dam)
2229{

Callers

nothing calls this directly

Calls 3

UseManaFunction · 0.85
FocusOnInventoryFunction · 0.85
SetCursor_Function · 0.85

Tested by

no test coverage detected