Completed
Push — master ( 029898...63d8f1 )
by Andres
01:05
created

src/scripts/services/synthesis.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 16
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 0
wmc 2
c 2
b 0
f 0
nc 1
mnd 0
bc 2
fnc 2
dl 0
loc 16
rs 10
bpm 1
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A angular.service(ꞌsynthesisꞌ) 0 8 1
1
'use strict';
2
3
angular
4
  .module('game')
5
  .service('synthesis', ['state',
6
    'reaction',
7
    'data',
8
    function (state, reaction, data) {
9
      let ct = this;
10
11
      ct.synthesisPower = function (synthesis) {
12
        let level = state.player.syntheses[synthesis].active;
13
        return Math.ceil(Math.pow(level, data.constants.SYNTH_POWER_INCREASE));
14
      };
15
    }
16
  ]);
17