enefel 2.1.2 → 2.1.3

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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "enefel",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "enefel",
9
- "version": "2.1.2",
9
+ "version": "2.1.3",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "seedrandom": "3.0.5",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enefel",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Blood Bowl 3 game engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/dist/skill.js CHANGED
@@ -224,7 +224,7 @@ function useSkill(player, skillId, date = -1, info = null) {
224
224
  date === -1
225
225
  ? new Date(Date.now() + (0, time_1.getTime)(time_1.TYPE_TIMER.ACTION) * 1000)
226
226
  : date;
227
- skill.info = info || "";
227
+ skill.info = info;
228
228
  }
229
229
  function getSkill(player, skillId, info = null) {
230
230
  if (!SKILLS.hasOwnProperty(skillId)) {
@@ -225,10 +225,10 @@ export interface PlayerSkill {
225
225
  date_next: Date | null;
226
226
  player_id: string;
227
227
  skill_id: string;
228
- info: string;
229
- active: string;
230
- duration: number;
231
- data: string;
228
+ info: string | null;
229
+ active: string | null;
230
+ duration: number | null;
231
+ data: string | null;
232
232
  createdAt: Date;
233
233
  updatedAt: Date;
234
234
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enefel",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Blood Bowl 3 game engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/skill.ts CHANGED
@@ -218,7 +218,7 @@ function useSkill(
218
218
  date === -1
219
219
  ? new Date(Date.now() + getTime(TYPE_TIMER.ACTION) * 1000)
220
220
  : date;
221
- skill.info = info || "";
221
+ skill.info = info;
222
222
  }
223
223
 
224
224
  function getSkill(
package/types/models.ts CHANGED
@@ -238,10 +238,10 @@ export interface PlayerSkill {
238
238
  date_next: Date | null;
239
239
  player_id: string;
240
240
  skill_id: string;
241
- info: string;
242
- active: string;
243
- duration: number;
244
- data: string;
241
+ info: string | null;
242
+ active: string | null;
243
+ duration: number | null;
244
+ data: string | null;
245
245
  createdAt: Date;
246
246
  updatedAt: Date;
247
247
  }