OPBE Debris fix

    • OPBE Debris fix

      Hi guys,

      Only when the defense or ship is destroyed is no problem.
      However, when the ship was added to the defense, debris was calculated incorrectly.

      Small fix for those using Ogame probabilistic battle engine;
      github.com/jstar88/opbe/pull/41
    • Good job, but there is a bug in your fix!

      Source Code

      1. $sendMetal *= $metal * $factor;
      2. $sendCrystal *= $crystal * $factor;

      This needs to be changed to this:

      Source Code

      1. $sendMetal += $metal * $factor;
      2. $sendCrystal += $crystal * $factor;
      As if $sendMetal = 0 and then you multiply debris with 0, it always will be 0!