Move translator to helpers.js

This commit is contained in:
Blade Barringer
2015-09-21 17:35:27 -05:00
parent 0e6f563c1f
commit ad7e01d87e
44 changed files with 45 additions and 46 deletions
+1 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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';