[MOD] New Calculation of Expedition Chances

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • [MOD] New Calculation of Expedition Chances

      Install:

      replace "MissionCaseExpedition.class.php" in following Folder:
      ...\htdocs\2moons-2.0-master\includes\classes\missions

      replace "FLEET.php" in following Folder (Yet only german version)
      ...\htdocs\2moons-2.0-master\language\de

      What does this Mod do?

      PHP Source Code

      1. $GetTrigger = mt_rand(1, 1000); // Chance in Promille 1/1000
      2. if(($GetTrigger >= 0) & ($GetTrigger < 100)) // Get Event 1 "Ress Found" has a Chance of 10% to happen
      3. {
      4. $GetEvent = 1;
      5. }
      6. elseif(($GetTrigger >= 100) & ($GetTrigger < 150)) // Get Event 2 "DM Found" has a Chance of 5% to happen
      7. {
      8. $GetEvent = 2;
      9. }
      10. elseif(($GetTrigger >= 150) & ($GetTrigger < 300)) // Get Event 3 "Ships Found" has a Chance of 15% to happen
      11. {
      12. $GetEvent = 3;
      13. }
      14. elseif(($GetTrigger >= 300) & ($GetTrigger < 400)) // Get Event 4 "Fight" has a Chance of 10% to happen
      15. {
      16. $GetEvent = 4;
      17. }
      18. elseif(($GetTrigger >= 300) & ($GetTrigger < 310)) // Get Event 5 "Fleet Loss" has a Chance of 1% to happen
      19. {
      20. $GetEvent = 5;
      21. }
      22. elseif(($GetTrigger >= 310) & ($GetTrigger < 510)) // Get Event 6 "Change Flytime" has a Chance of 20% to happen
      23. {
      24. $GetEvent = 6;
      25. }
      26. else // Get Event 7 "Nothing" has a Chance of 49% to happen
      27. {
      28. $GetEvent = 7;
      29. }
      Display All

      Also i've made a few changes to the Reward calculations with more balanced Rewards and also a small percentage to win big in a Expedition. And added some new german Texts
      Files