| Total Complexity | 2 |
| Complexity/F | 1 |
| Lines of Code | 16 |
| Function Count | 2 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 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 |