Guest User

Untitled

a guest
May 27th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import { itemFromCollection } from '../utils/random';
  2.  
  3. const data = require('../../data/ancient.json');
  4.  
  5. export function god() {
  6. return itemFromCollection(data['gods']);
  7. }
  8.  
  9. export function primordial() {
  10. return itemFromCollection(data['primordials']);
  11. }
  12.  
  13. export function titan() {
  14. return itemFromCollection(data['titans']);
  15. }
  16.  
  17. export function hero() {
  18. return itemFromCollection(data['heroes']);
  19. }
Add Comment
Please, Sign In to add comment