@reldens/game-data-generator 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,7 @@ const { AttributesPerLevel } = require('../lib/generator/attributes-per-level');
9
9
  let attributesPerLevel = new AttributesPerLevel({
10
10
  templateBase: {
11
11
  hp: 10,
12
+ mp: 10,
12
13
  atk: 10,
13
14
  def: 10,
14
15
  speed: 10,
@@ -20,6 +21,7 @@ let attributesPerLevel = new AttributesPerLevel({
20
21
  typeTemplates: {
21
22
  melee: {
22
23
  hp: {min: 10, max: 20},
24
+ mp: {min: 1, max: 5},
23
25
  atk: {min: 10, max: 20},
24
26
  def: {min: 10, max: 20},
25
27
  speed: {min: 1, max: 2},
@@ -30,6 +32,7 @@ let attributesPerLevel = new AttributesPerLevel({
30
32
  },
31
33
  mage: {
32
34
  hp: {min: 5, max: 10},
35
+ mp: {min: 10, max: 20},
33
36
  atk: {min: 1, max: 2},
34
37
  def: {min: 1, max: 2},
35
38
  speed: {min: 1, max: 4},
@@ -40,6 +43,7 @@ let attributesPerLevel = new AttributesPerLevel({
40
43
  },
41
44
  archer: {
42
45
  hp: {min: 5, max: 10},
46
+ mp: {min: 5, max: 10},
43
47
  atk: {min: 5, max: 10},
44
48
  def: {min: 1, max: 4},
45
49
  speed: {min: 5, max: 10},
@@ -72,7 +72,7 @@ class AttributesPerLevel extends GameDataGenerator
72
72
  let typesKeys = Object.keys(this.typeTemplates);
73
73
  for(let level = 1; level <= this.maxLevel; level ++){
74
74
  this.variations[variationType][level] = {};
75
- for (let typeKey of typesKeys) {
75
+ for(let typeKey of typesKeys){
76
76
  this.variations[variationType][level][typeKey] = this.applyTemplate(typeKey, level, variationType);
77
77
  }
78
78
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@reldens/game-data-generator",
3
3
  "scope": "@reldens",
4
- "version": "0.9.0",
4
+ "version": "0.10.0",
5
5
  "description": "Reldens - Game Data Generator",
6
6
  "author": "Damian A. Pastorini",
7
7
  "license": "MIT",
@@ -37,6 +37,6 @@
37
37
  "url": "https://github.com/damian-pastorini/game-data-generator/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@reldens/utils": "^0.37.0"
40
+ "@reldens/utils": "^0.40.0"
41
41
  }
42
42
  }