Difference between revisions of "Useful Constants"
Jump to navigation
Jump to search
(Created page with "Useful Constants") |
(initial setup) |
||
Line 1: | Line 1: | ||
+ | This page will list constants either useful because they are missing from the official constants or because they might be interesting to know when solving certain ingame problems. |
||
− | Useful Constants |
||
+ | |||
+ | == Missing from game constants == |
||
+ | Knowing "constant worthy" values that do not have a constant set up in the engine yet is important especially now that private servers get more and more modifiable. This list will be useful to users since they can just use values without having to look them up in the engine code, but it might also help request missing constants from the devs (in case changing these currently hardcoded values might make the game more moddable). |
||
+ | {| class="wikitable" |
||
+ | |+ |
||
+ | !Description |
||
+ | !Value |
||
+ | !Code sample |
||
+ | |- |
||
+ | |Creep fatigue removal multiplier. It works like this in the engine: |
||
+ | newFatigue = Math.max(0, oldFatigue - ( MOVEparts * multiplier)) |
||
+ | | -2 |
||
+ | |const MULT_CREEP_FATIGUE_REDUCTION = -2; |
||
+ | |- |
||
+ | |Max bucket value. The CPU bucket fills up to 10000 |
||
+ | |10000 |
||
+ | |const MAX_BUCKET = 10000; |
||
+ | |- |
||
+ | | |
||
+ | | |
||
+ | | |
||
+ | |} |
Revision as of 13:51, 18 October 2020
This page will list constants either useful because they are missing from the official constants or because they might be interesting to know when solving certain ingame problems.
Missing from game constants
Knowing "constant worthy" values that do not have a constant set up in the engine yet is important especially now that private servers get more and more modifiable. This list will be useful to users since they can just use values without having to look them up in the engine code, but it might also help request missing constants from the devs (in case changing these currently hardcoded values might make the game more moddable).
Description | Value | Code sample |
---|---|---|
Creep fatigue removal multiplier. It works like this in the engine:
newFatigue = Math.max(0, oldFatigue - ( MOVEparts * multiplier)) |
-2 | const MULT_CREEP_FATIGUE_REDUCTION = -2; |
Max bucket value. The CPU bucket fills up to 10000 | 10000 | const MAX_BUCKET = 10000; |