mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
remove console logs
This commit is contained in:
@@ -123,7 +123,6 @@ export function shipModelFromJson(json) {
|
|||||||
*/
|
*/
|
||||||
export function shipFromJson(json) {
|
export function shipFromJson(json) {
|
||||||
// Start off building a basic ship
|
// Start off building a basic ship
|
||||||
console.log(json);
|
|
||||||
const shipModel = shipModelFromJson(json);
|
const shipModel = shipModelFromJson(json);
|
||||||
if (!shipModel) {
|
if (!shipModel) {
|
||||||
throw 'No such ship found: "' + json.name + '"';
|
throw 'No such ship found: "' + json.name + '"';
|
||||||
@@ -303,8 +302,6 @@ export function shipFromJson(json) {
|
|||||||
* @param {Object} specialModifications special modification
|
* @param {Object} specialModifications special modification
|
||||||
*/
|
*/
|
||||||
function _addModifications(module, modifiers, blueprint, grade, specialModifications) {
|
function _addModifications(module, modifiers, blueprint, grade, specialModifications) {
|
||||||
console.log(module);
|
|
||||||
console.log(modifiers);
|
|
||||||
if (!modifiers) return;
|
if (!modifiers) return;
|
||||||
|
|
||||||
let special;
|
let special;
|
||||||
@@ -339,10 +336,8 @@ function _addModifications(module, modifiers, blueprint, grade, specialModificat
|
|||||||
} else if (i === 'OutfittingFieldType_DefenceModifierHealthMultiplier' && blueprint === 'Armour_Thermic') {
|
} else if (i === 'OutfittingFieldType_DefenceModifierHealthMultiplier' && blueprint === 'Armour_Thermic') {
|
||||||
//TODO: fix the hull strength. not sure whats wrong with it.
|
//TODO: fix the hull strength. not sure whats wrong with it.
|
||||||
value = (modifiers[i].value - module.hullboost) / module.hullboost;
|
value = (modifiers[i].value - module.hullboost) / module.hullboost;
|
||||||
console.log(value);
|
|
||||||
} else if (i === 'OutfittingFieldType_DefenceModifierHealthMultiplier') {
|
} else if (i === 'OutfittingFieldType_DefenceModifierHealthMultiplier') {
|
||||||
value = modifiers[i].value / module.hullboost;
|
value = modifiers[i].value / module.hullboost;
|
||||||
console.log(value);
|
|
||||||
} else {
|
} else {
|
||||||
value = modifiers[i].value - 1;
|
value = modifiers[i].value - 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user