mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-11 16:53:02 +00:00
thanks webstorm
This commit is contained in:
@@ -433,11 +433,11 @@ function _addModifications(module, modifiers, blueprint, grade, specialModificat
|
|||||||
|
|
||||||
// Bulkhead boost is based off the inherent boost of the module
|
// Bulkhead boost is based off the inherent boost of the module
|
||||||
if (module.grp == 'bh') {
|
if (module.grp == 'bh') {
|
||||||
const alteredBoost = (1 + module.hullboost) * (1 + module.getModValue('hullboost') / 10000) - 1;
|
const alteredBoost = (1 + module.hullboost) * (1 + module.getModValue('hullboost') / 10000) - 1;
|
||||||
module.setModValue('hullboost', (alteredBoost / module.hullboost - 1) * 1000);
|
module.setModValue('hullboost', (alteredBoost / module.hullboost - 1) * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Jitter is an absolute number, so we need to divide it by 100
|
// Jitter is an absolute number, so we need to divide it by 100
|
||||||
if (module.getModValue('jitter')) {
|
if (module.getModValue('jitter')) {
|
||||||
module.setModValue('jitter', module.getModValue('jitter') / 100);
|
module.setModValue('jitter', module.getModValue('jitter') / 100);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user