Consolidate helpers

This commit is contained in:
Blade Barringer
2015-09-22 08:16:38 -05:00
parent ad7e01d87e
commit 8eeffeb2a9
7 changed files with 71 additions and 21 deletions
+7 -2
View File
@@ -1,5 +1,10 @@
import {translator as t} from '../helpers';
import {diminishingReturns, calculateBonus, setSpellDefaults} from './spell-helper';
import {
translator as t,
diminishingReturns,
calculateBonus,
setSpellDefaults
} from '../helpers';
import {each} from 'lodash';
let heal = {
@@ -1,6 +1,3 @@
import {translator as t} from '../helpers';
import {diminishingReturns, calculateBonus} from './spell-helper';
import wizard from './wizard';
import warrior from './warrior';
import healer from './healer';
@@ -28,7 +25,6 @@ import special from './special';
Note, user.stats.mp is docked after automatically (it's appended to functions automatically down below in an _.each)
*/
var spells = {
wizard: wizard,
warrior: warrior,
+6 -2
View File
@@ -1,5 +1,9 @@
import {translator as t} from '../helpers';
import {diminishingReturns, calculateBonus, setSpellDefaults} from './spell-helper';
import {
translator as t,
diminishingReturns,
calculateBonus,
setSpellDefaults
} from '../helpers';
import {each} from 'lodash';
let pickPocket = {
+1 -2
View File
@@ -1,5 +1,4 @@
import {translator as t} from '../helpers';
import {diminishingReturns, calculateBonus, setSpellDefaults} from './spell-helper';
import { translator as t } from '../helpers';
import {each} from 'lodash';
let snowball = {
+6 -2
View File
@@ -1,5 +1,9 @@
import {translator as t} from '../helpers';
import {diminishingReturns, calculateBonus, setSpellDefaults} from './spell-helper';
import {
translator as t,
diminishingReturns,
calculateBonus,
setSpellDefaults
} from '../helpers';
import {each} from 'lodash';
let smash= {
+6 -2
View File
@@ -1,5 +1,9 @@
import {translator as t} from '../helpers';
import {diminishingReturns, calculateBonus, setSpellDefaults} from './spell-helper';
import {
translator as t,
diminishingReturns,
calculateBonus,
setSpellDefaults
} from '../helpers';
import {each} from 'lodash';
let fireball = {