Returns the index of the multipack version of the specified powerup, or -1 if none
| 2880 | |
| 2881 | // Returns the index of the multipack version of the specified powerup, or -1 if none |
| 2882 | int 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 |
| 2892 | void PlayerSpewInventory(object *obj, bool spew_energy_and_shield, bool spew_nonspewable) { |
no test coverage detected