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

angular.service(ꞌsynthesisꞌ)   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
c 2
b 0
f 0
nc 1
dl 0
loc 8
rs 9.4285
nop 3

1 Function

Rating   Name   Duplication   Size   Complexity  
A ��) 0 4 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