vmeow / f2pehp

BSD 3-Clause "New" or "Revised" License
16 stars 12 forks source link

Fix EHP time gains #149

Closed puremana closed 1 year ago

puremana commented 1 year ago

Weekly, monthly gains are update are now negative due to losing ehp from update

image

puremana commented 1 year ago

I think everything is fixed again. Turns out just needed to run below again.

    Player.where("overall_ehp > 250 OR player_name IN #{Player.sql_supporters}").find_in_batches(batch_size: 25) do |batch|
      batch.each do |player|
        begin
          player.recalculate_ehp
        rescue
          next
        end
      end
    end