magicrealmsshared 0.6.35 → 0.6.37

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.
@@ -64,7 +64,7 @@ export type REGISTER_DATA = z.infer<typeof REGISTER_DATA_SCHEME>;
64
64
  export declare const REGISTER_RESPONSE_COMMAND = "RETSIGER";
65
65
  export type REGISTER_RESPONSE_DATA = LOGIN_RESPONSE;
66
66
  export type WellWithCharacter<IdFormat, DateFormat> = Well<IdFormat> & {
67
- player?: Omit<CharacterWell<IdFormat, DateFormat>, "_id" | "playerId" | "wellId">;
67
+ character?: Omit<CharacterWell<IdFormat, DateFormat>, "_id" | "playerId" | "wellId">;
68
68
  };
69
69
  export declare const DATA_UPDATE_COMMAND = "DATA_UPDATE";
70
70
  export type DATA_UPDATE = {
@@ -1,5 +1,12 @@
1
1
  import { ObjectWithId } from "./types";
2
- export type ItemTrait = {};
2
+ export declare enum EItemTraitType {
3
+ MANA_CRYSTAL_MAX_HARD = 1,
4
+ MANA_CRYSTAL_MAX_SOFT = 2
5
+ }
6
+ export type ItemTrait = {
7
+ type: EItemTraitType;
8
+ value: number;
9
+ };
3
10
  export declare enum EGameItemType {
4
11
  ManaCrytal = 1,
5
12
  HeadGear = 10
@@ -23,6 +30,6 @@ export type HeadGear<IDFormat, DateFormat> = GameItemCommon<IDFormat, DateFormat
23
30
  export type GameItem<IDFormat, DateFormat> = HeadGear<IDFormat, DateFormat> | ManaCrytal<IDFormat, DateFormat>;
24
31
  export type GameItemTemplate<IDFormat> = ObjectWithId<IDFormat> & {
25
32
  name: string;
26
- template: Record<string, any>;
33
+ template: Omit<GameItem<IDFormat, any>, "_id" | "defVersion" | "creationDate">;
27
34
  };
28
35
  export {};
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EGameItemType = void 0;
3
+ exports.EGameItemType = exports.EItemTraitType = void 0;
4
+ var EItemTraitType;
5
+ (function (EItemTraitType) {
6
+ EItemTraitType[EItemTraitType["MANA_CRYSTAL_MAX_HARD"] = 1] = "MANA_CRYSTAL_MAX_HARD";
7
+ EItemTraitType[EItemTraitType["MANA_CRYSTAL_MAX_SOFT"] = 2] = "MANA_CRYSTAL_MAX_SOFT";
8
+ })(EItemTraitType || (exports.EItemTraitType = EItemTraitType = {}));
4
9
  var EGameItemType;
5
10
  (function (EGameItemType) {
6
11
  EGameItemType[EGameItemType["ManaCrytal"] = 1] = "ManaCrytal";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magicrealmsshared",
3
- "version": "0.6.35",
3
+ "version": "0.6.37",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {