Something
public ruby v1 · immutableclass Game_ATB def initialize reset end def update agi, count = 0 for battler in $game_troop.enemies + $game_party.actors agi += battler.agi count += 1 end for battler in $game_troop.enemies + $game_party.actors speed = battler.agi / (agi / count) battler.time -= (speed * 100).to_i if battler.time <= 0 # It's this battler's turn... end end end def reset for battler in $game_troop.enemies + $game_party.actors battler.time = 10000 end endend