MV Temporarily turn off all enemy drops

I'm currently trying to add an endless battle arena to my game in which the players will be pitted against random enemies, but without any exp, gold, or items gained. Exp and gold aren't a problem to turn off and back on again, but item drops are another story.

I've managed to find many different plugins that can add conditions to enemy drops, but all of these plugins require that those conditions be set for each individual drop on each individual enemy. This seems like a lot of redundant work when all I want is to just turn a switch on and stop all enemy drops.

I could also duplicate every enemy in the game and remove all of the drops on the duplicates. But again this is very redundant and will double the already very large amount of enemies in the game.

I haven't had any luck in my search, so if anyone could point me in the right direction, it'd be much appreciated.
Try the attached plugin~
Spoiler: Full plugin code
JavaScript:
// =========================
// DisableEnemyDrops.js
// =========================

/*:
 * @target MV MZ
 * @plugindesc Disable enemy drops when a specific switch is on.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/index.php?threads/143181/
 * @help Terms of use: free to use and/or modify for any project.
 *
 * @param Switch ID
 * @type switch
 * @desc When this switch is on, enemy drops are disabled.
 * @default 0
 */

(function() {
'use strict';

  const SWITCH_ID = parseInt(PluginManager.parameters('DisableEnemyDrops')['Switch ID'], 10);

  const alias = Game_Enemy.prototype.makeDropItems;
  Game_Enemy.prototype.makeDropItems = function() {
    return $gameSwitches.value(SWITCH_ID) ? [] :
           alias.apply(this, arguments);
  };

})();
Try the attached plugin~
Spoiler: Full plugin code
JavaScript:
// =========================
// DisableEnemyDrops.js
// =========================

/*:
 * @target MV MZ
 * @plugindesc Disable enemy drops when a specific switch is on.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/index.php?threads/143181/
 * @help Terms of use: free to use and/or modify for any project.
 *
 * @param Switch ID
 * @type switch
 * @desc When this switch is on, enemy drops are disabled.
 * @default 0
 */

(function() {
'use strict';

  const SWITCH_ID = parseInt(PluginManager.parameters('DisableEnemyDrops')['Switch ID'], 10);

  const alias = Game_Enemy.prototype.makeDropItems;
  Game_Enemy.prototype.makeDropItems = function() {
    return $gameSwitches.value(SWITCH_ID) ? [] :
           alias.apply(this, arguments);
  };

})();
Thank you so much! This is exactly what I was looking for!
Moved to: Plugin Requests
Great, happy RPG Making! 👋

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/temporarily-turn-off-all-enemy-drops.143181/