Falcao Pearl ABS Liquid v3 - Cooldown Stopper

Falcao Pearl ABS Liquid v3 - Cooldown Stopper
by: IneptAttorney​

Description
This script allow you to stop the cooldown of Tools and State by using switch. For Falcao Pearl ABS Liquid v3.
Terms Of Use
Free for Commercial and non-commercial project. Remember to give me a credit on your project.
Script
Spoiler
Ruby:
#===============================================================================
# * Falcao Pearl ABS Liquid V3 Cooldown Stopper
#===============================================================================
# Author: IneptAttorney
# Date: 22 July 2020
# Required: Falcao Pearl ABS Liquid v3
#===============================================================================
# * Description
#   This script allows you to stop the cooldown of equipment or state by using a
#   switch.
#===============================================================================
# * Terms of Use
#   Credit IneptAttorney on your project! Free for commercial and non-commercial
#   Project.
#===============================================================================
# * Usage
#   Set the configuration Below. Turn on the switch to stop the cooldown of the
#   tools.
#===============================================================================
module INEPTATTRNY
 
  #----------------------------------------------------
  # * Switch to stop Skills Cooldown
  #----------------------------------------------------
  SKILL_CD_SWITCH = 1
  #----------------------------------------------------
  # * Switch to stop Items Cooldown
  #----------------------------------------------------
  ITEM_CD_SWITCH = 2
  #----------------------------------------------------
  # * Switch to stop Weapons Cooldown
  #----------------------------------------------------
  WEAPON_CD_SWITCH = 3
  #----------------------------------------------------
  # * Switch to stop Armors Cooldown
  #----------------------------------------------------
  ARMOR_CD_SWITCH = 4
  #----------------------------------------------------
  # * Switch to stop States Cooldown
  #----------------------------------------------------
  STATE_CD_SWITCH = 5
 
end
#===============================================================================
# * Configuration Ends!
#===============================================================================
class Game_CharacterBase
  def update_state_action_steps
    for state in battler.states
      if state.remove_by_walking
        if !battler.state_steps[state.id].nil? &&
          battler.state_steps[state.id] > 0
          battler.state_steps[state.id] -= 1 if $game_switches[INEPTATTRNY::STATE_CD_SWITCH] == false
        end
        if battler.state_steps[state.id] == 0
          battler.remove_state(state.id)
          pop_damage
        end
      end
      if state.restriction == 4
        @stopped_movement = 10
        @pattern = 2 if @knockdown_data[0] == 0
      end
      state.features.each do |feature|
        if feature.code == 22
          @knockdown_data[0] =10 if state.restriction == 4 && feature.data_id==1
          next unless feature.data_id.between?(7, 9)
          apply_regen_state(state, feature.data_id)
        end
      end
    end
  end
end
#===============================================================================
class << Input
  # cooldown update
  def eval_cooldown(operand)
    for sub in operand
      if $game_switches[INEPTATTRNY::SKILL_CD_SWITCH] == false
        sub.skill_cooldown.each {|sid, sv| # skill
        if sub.skill_cooldown[sid] > 0
          sub.skill_cooldown[sid] -= 1
          sub.skill_cooldown.delete(sid) if sub.skill_cooldown[sid] == 0
        end}
      end
      if $game_switches[INEPTATTRNY::ITEM_CD_SWITCH] == false
      sub.item_cooldown.each {|iid, iv| # item
        if sub.item_cooldown[iid] > 0
          sub.item_cooldown[iid] -= 1
          sub.item_cooldown.delete(iid) if sub.item_cooldown[iid] == 0
        end}
      end
      if $game_switches[INEPTATTRNY::WEAPON_CD_SWITCH] == false
      sub.weapon_cooldown.each {|wid, wv| # weapon
        if sub.weapon_cooldown[wid] > 0
          sub.weapon_cooldown[wid] -= 1
          sub.weapon_cooldown.delete(wid) if sub.weapon_cooldown[wid] == 0
        end}
      end
      if $game_switches[INEPTATTRNY::ARMOR_CD_SWITCH] == false
      sub.armor_cooldown.each {|aid, av| #armor
        if sub.armor_cooldown[aid] > 0
          sub.armor_cooldown[aid] -= 1
          sub.armor_cooldown.delete(aid) if sub.armor_cooldown[aid] == 0
        end}
      end
    end
  end
end


Credits

  • Enterbrain​
  • Falcao​
  • Ineptattorney​

Original thread: https://forums.rpgmakerweb.com/threads/falcao-pearl-abs-liquid-v3-cooldown-stopper.124340/