Skip to content

Commit

Permalink
Merge pull request jstar88#33 from LucasKovacs/patch-2
Browse files Browse the repository at this point in the history
Dynamic constants for debris
  • Loading branch information
jstar88 authored Feb 11, 2017
2 parents 739d7bd + 9685906 commit 5cca5c0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions constants/battle_constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,17 @@

/*** After-battle constants, default as Ogame ***/
define('REPAIRED_DO_DEBRIS',true);
define('SHIP_DEBRIS_FACTOR', 0.3); //Percentage of debris generated from destroyed defenses.
define('DEFENSE_DEBRIS_FACTOR', 0.3); //Percentage of debris generated from destroyed ships.

//Percentage of debris generated from destroyed ships.
if (!defined('SHIP_DEBRIS_FACTOR')) {
define('SHIP_DEBRIS_FACTOR', 0.3);
}

//Percentage of debris generated from destroyed defenses.
if (!defined('DEFENSE_DEBRIS_FACTOR')) {
define('DEFENSE_DEBRIS_FACTOR', 0.3);
}

define('POINT_UNIT', 1000); //Ogame point = 1000 resources.
define('MOON_UNIT_PROB', 100000);
define('MAX_MOON_PROB', 20); //max probability to moon creation.
Expand Down

0 comments on commit 5cca5c0

Please sign in to comment.