Yanfly Victory Aftermath - skipping loot screen when there's no loot

Link to the script

The screen still shows up even if the enemy didn't drop anything. It just shows that I got 0 money from the battle.
Is it possible to adjust the script so that this screen won't show up if there's no loot?
Thanks for help in advance.
I am not sure if this is what you want, but you can use this:
Spoiler: Code inside
Code:
module HRK_VAS
  def self.skip_spoils(val)
    @spoils_skip_flag = val
  end
  def self.skip_spoils?
    @spoils_skip_flag
  end
end

class Scene_Battle < Scene_Base
  alias hrk_show_victory_spoils_old show_victory_spoils
  def show_victory_spoils(gold, drops)
    HRK_VAS.skip_spoils((gold == 0) && (drops.length == 0))
    return if HRK_VAS.skip_spoils?
    hrk_show_victory_spoils_old(gold, drops)
  end
end

module BattleManager
  class << BattleManager
    alias hrk_set_victory_text_old set_victory_text
    def set_victory_text(actor, type)
      return if (HRK_VAS.skip_spoils? && (type == :drops))
      hrk_set_victory_text_old(actor, type)
    end
  end
end
This is just plug and play, copy/past below Materials and above Main in your script editor. Just be sure to place it BELOW Yanfly's script.
I am not sure if this is what you want, but you can use this:
Spoiler: Code inside
Code:
module HRK_VAS
  def self.skip_spoils(val)
    @spoils_skip_flag = val
  end
  def self.skip_spoils?
    @spoils_skip_flag
  end
end

class Scene_Battle < Scene_Base
  alias hrk_show_victory_spoils_old show_victory_spoils
  def show_victory_spoils(gold, drops)
    HRK_VAS.skip_spoils((gold == 0) && (drops.length == 0))
    return if HRK_VAS.skip_spoils?
    hrk_show_victory_spoils_old(gold, drops)
  end
end

module BattleManager
  class << BattleManager
    alias hrk_set_victory_text_old set_victory_text
    def set_victory_text(actor, type)
      return if (HRK_VAS.skip_spoils? && (type == :drops))
      hrk_set_victory_text_old(actor, type)
    end
  end
end
This is just plug and play, copy/past below Materials and above Main in your script editor. Just be sure to place it BELOW Yanfly's script.
I would like to use this, but I have no experience whatsoever with editing plugins or scripts. I tried finding a detailed tutorial on how to do this, but I couldn't really find one. Can anyone please help me with this?
@Loara Please read the forums rules. <- necroposting

I would advise that you read some tutorials. Follow the links in my signature block to learn more about the engine and how to use scripts. The information is in the post above yours.
here
↓

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-victory-aftermath-skipping-loot-screen-when-theres-no-loot.110175/