mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-11 16:53:02 +00:00
fix rate of fire
probably
This commit is contained in:
@@ -338,6 +338,8 @@ function _addModifications(module, modifiers, blueprint, grade, specialModificat
|
|||||||
value = (modifiers[i].value - module.hullboost) / module.hullboost;
|
value = (modifiers[i].value - module.hullboost) / module.hullboost;
|
||||||
} else if (i === 'OutfittingFieldType_DefenceModifierHealthMultiplier') {
|
} else if (i === 'OutfittingFieldType_DefenceModifierHealthMultiplier') {
|
||||||
value = modifiers[i].value / module.hullboost;
|
value = modifiers[i].value / module.hullboost;
|
||||||
|
} else if (i === 'OutfittingFieldType_RateOfFire') {
|
||||||
|
value = (1 / Math.abs(modifiers[i].value));
|
||||||
} else {
|
} else {
|
||||||
value = modifiers[i].value - 1;
|
value = modifiers[i].value - 1;
|
||||||
}
|
}
|
||||||
@@ -444,11 +446,6 @@ function _addModifications(module, modifiers, blueprint, grade, specialModificat
|
|||||||
module.setModValue('jitter', module.getModValue('jitter') / 100);
|
module.setModValue('jitter', module.getModValue('jitter') / 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
// FD uses interval between bursts internally, so we need to translate this to a real rate of fire
|
|
||||||
if (module.getModValue('rof')) {
|
|
||||||
module.setModValue('rof', ((1 / (1 + module.getModValue('rof') / 10000)) - 1) * 10000);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Clip size is rounded up so that the result is a whole number
|
// Clip size is rounded up so that the result is a whole number
|
||||||
if (module.getModValue('clip')) {
|
if (module.getModValue('clip')) {
|
||||||
const individual = 1 / (module.clip || 1);
|
const individual = 1 / (module.clip || 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user