Move translator to helpers.js
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import t from '../helpers/translator';
|
||||
import {translator as t} from '../helpers';
|
||||
import {diminishingReturns, calculateBonus, setSpellDefaults} from './spell-helper';
|
||||
import {each} from 'lodash';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import t from '../helpers/translator';
|
||||
import {translator as t} from '../helpers';
|
||||
import {diminishingReturns, calculateBonus} from './spell-helper';
|
||||
|
||||
import wizard from './wizard';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import t from '../helpers/translator';
|
||||
import {translator as t} from '../helpers';
|
||||
import {diminishingReturns, calculateBonus, setSpellDefaults} from './spell-helper';
|
||||
import {each} from 'lodash';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import t from '../helpers/translator';
|
||||
import {translator as t} from '../helpers';
|
||||
import {diminishingReturns, calculateBonus, setSpellDefaults} from './spell-helper';
|
||||
import {each} from 'lodash';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {each, defaults} from 'lodash';
|
||||
import capitalize from 'lodash.capitalize';
|
||||
import t from '../helpers/translator';
|
||||
import {translator as t} from '../helpers';
|
||||
|
||||
export function diminishingReturns(bonus, max, halfway=max/2) {
|
||||
return max * (bonus / (bonus + halfway));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import t from '../helpers/translator';
|
||||
import {translator as t} from '../helpers';
|
||||
import {diminishingReturns, calculateBonus, setSpellDefaults} from './spell-helper';
|
||||
import {each} from 'lodash';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import t from '../helpers/translator';
|
||||
import {translator as t} from '../helpers';
|
||||
import {diminishingReturns, calculateBonus, setSpellDefaults} from './spell-helper';
|
||||
import {each} from 'lodash';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user