MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / FindMultipackPowerup

Function FindMultipackPowerup

Descent3/Player.cpp:2882–2889  ·  view source on GitHub ↗

Returns the index of the multipack version of the specified powerup, or -1 if none

Source from the content-addressed store, hash-verified

2880
2881// Returns the index of the multipack version of the specified powerup, or -1 if none
2882int FindMultipackPowerup(int single_index) {
2883 for (int i = 0; i < N_POWERUP_MULTIPACKS; i++) {
2884 if (stricmp(Object_info[single_index].name, powerup_multipacks[i * 2]) == 0)
2885 return FindObjectIDName(powerup_multipacks[i * 2 + 1]);
2886 }
2887
2888 return -1;
2889}
2890
2891// Spews the inventory of the passed in player object
2892void PlayerSpewInventory(object *obj, bool spew_energy_and_shield, bool spew_nonspewable) {

Callers 1

PlayerSpewInventoryFunction · 0.85

Calls 1

FindObjectIDNameFunction · 0.85

Tested by

no test coverage detected