@opfr/utils-type 0.6.0 → 0.6.1

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,2 +1,7 @@
1
1
  export declare const CHARACTERISTICS: readonly ["vitality", "strength", "agility", "intelligence", "chance", "wisdom"];
2
+ export declare const CHARACTERISTIC_POINT_PER_LEVEL = 10;
3
+ export declare const CHARACTERISTIC_DEFAULT_POINT_COST = 1;
4
+ export declare const CHARACTERISTIC_POINT_COSTS: readonly [readonly [200, 4], readonly [100, 3], readonly [50, 2], readonly [0, 1]];
5
+ export declare const DEFAULT_MAX_HP = 100;
6
+ export declare const HP_PER_VITALITY = 10;
2
7
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/characteristics/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,kFAOlB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/characteristics/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,kFAOlB,CAAC;AAEX,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAEjD,eAAO,MAAM,iCAAiC,IAAI,CAAC;AAEnD,eAAO,MAAM,0BAA0B,oFAK7B,CAAC;AAEX,eAAO,MAAM,cAAc,MAAM,CAAC;AAElC,eAAO,MAAM,eAAe,KAAK,CAAC"}
@@ -6,4 +6,14 @@ export const CHARACTERISTICS = [
6
6
  'chance',
7
7
  'wisdom',
8
8
  ];
9
+ export const CHARACTERISTIC_POINT_PER_LEVEL = 10;
10
+ export const CHARACTERISTIC_DEFAULT_POINT_COST = 1;
11
+ export const CHARACTERISTIC_POINT_COSTS = [
12
+ [200, 4],
13
+ [100, 3],
14
+ [50, 2],
15
+ [0, CHARACTERISTIC_DEFAULT_POINT_COST],
16
+ ];
17
+ export const DEFAULT_MAX_HP = 100;
18
+ export const HP_PER_VITALITY = 10;
9
19
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/characteristics/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,UAAU;IACV,UAAU;IACV,SAAS;IACT,cAAc;IACd,QAAQ;IACR,QAAQ;CACA,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/characteristics/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,UAAU;IACV,UAAU;IACV,SAAS;IACT,cAAc;IACd,QAAQ;IACR,QAAQ;CACA,CAAC;AAEX,MAAM,CAAC,MAAM,8BAA8B,GAAG,EAAE,CAAC;AAEjD,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC;AAEnD,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,CAAC,GAAG,EAAE,CAAC,CAAC;IACR,CAAC,GAAG,EAAE,CAAC,CAAC;IACR,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,CAAC,CAAC,EAAE,iCAAiC,CAAC;CAC9B,CAAC;AAEX,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC;AAElC,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAC"}
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  var t = /* @__PURE__ */ ((o) => (o.BASIC = "BASIC", o.COMMON = "COMMON", o.RARE = "RARE", o.EPIC = "EPIC", o.LEGENDARY = "LEGENDARY", o.MYTHIC = "MYTHIC", o))(t || {});
2
- const r = {
2
+ const C = {
3
3
  BASIC: { color: "#fff", strength: 0, id: t.BASIC },
4
4
  COMMON: { color: "#813D31", strength: 1, id: t.COMMON },
5
5
  RARE: { color: "#5B6870", strength: 2, id: t.RARE },
@@ -13,7 +13,12 @@ const r = {
13
13
  "intelligence",
14
14
  "chance",
15
15
  "wisdom"
16
- ], i = {
16
+ ], A = 10, r = 1, c = [
17
+ [200, 4],
18
+ [100, 3],
19
+ [50, 2],
20
+ [0, r]
21
+ ], n = 100, E = 10, i = {
17
22
  pirate: {
18
23
  name: "pirate",
19
24
  color: "#8A1623",
@@ -34,12 +39,17 @@ const r = {
34
39
  color: "#fff",
35
40
  role: "1147953458507423874"
36
41
  }
37
- }, c = "citizen", n = ["category", "alpha", "quantity"];
42
+ }, T = "citizen", I = ["category", "alpha", "quantity"];
38
43
  export {
39
44
  e as CHARACTERISTICS,
40
- c as DEFAULT_FACTION,
45
+ r as CHARACTERISTIC_DEFAULT_POINT_COST,
46
+ c as CHARACTERISTIC_POINT_COSTS,
47
+ A as CHARACTERISTIC_POINT_PER_LEVEL,
48
+ T as DEFAULT_FACTION,
49
+ n as DEFAULT_MAX_HP,
41
50
  i as FACTIONS,
42
- r as RANKS,
51
+ E as HP_PER_VITALITY,
52
+ C as RANKS,
43
53
  t as RankId,
44
- n as SORT_VALUES
54
+ I as SORT_VALUES
45
55
  };
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.utils={}))})(this,function(t){"use strict";var e=(o=>(o.BASIC="BASIC",o.COMMON="COMMON",o.RARE="RARE",o.EPIC="EPIC",o.LEGENDARY="LEGENDARY",o.MYTHIC="MYTHIC",o))(e||{});const i={BASIC:{color:"#fff",strength:0,id:e.BASIC},COMMON:{color:"#813D31",strength:1,id:e.COMMON},RARE:{color:"#5B6870",strength:2,id:e.RARE},EPIC:{color:"#C46619",strength:3,id:e.EPIC},LEGENDARY:{color:"#88A3CB",strength:4,id:e.LEGENDARY},MYTHIC:{color:"#F6bF62",strength:5,id:e.MYTHIC}},n=["vitality","strength","agility","intelligence","chance","wisdom"],r={pirate:{name:"pirate",color:"#8A1623",role:"1047815125282848849"},marine:{name:"marine",color:"#387cbc",role:"1047816059937361940"},revolutionary:{name:"revolutionary",color:"#335635",role:"1047815105846444152"},citizen:{name:"citizen",color:"#fff",role:"1147953458507423874"}},c="citizen",A=["category","alpha","quantity"];t.CHARACTERISTICS=n,t.DEFAULT_FACTION=c,t.FACTIONS=r,t.RANKS=i,t.RankId=e,t.SORT_VALUES=A,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
1
+ (function(C,T){typeof exports=="object"&&typeof module<"u"?T(exports):typeof define=="function"&&define.amd?define(["exports"],T):(C=typeof globalThis<"u"?globalThis:C||self,T(C.utils={}))})(this,function(C){"use strict";var T=(A=>(A.BASIC="BASIC",A.COMMON="COMMON",A.RARE="RARE",A.EPIC="EPIC",A.LEGENDARY="LEGENDARY",A.MYTHIC="MYTHIC",A))(T||{});const t={BASIC:{color:"#fff",strength:0,id:T.BASIC},COMMON:{color:"#813D31",strength:1,id:T.COMMON},RARE:{color:"#5B6870",strength:2,id:T.RARE},EPIC:{color:"#C46619",strength:3,id:T.EPIC},LEGENDARY:{color:"#88A3CB",strength:4,id:T.LEGENDARY},MYTHIC:{color:"#F6bF62",strength:5,id:T.MYTHIC}},n=["vitality","strength","agility","intelligence","chance","wisdom"],o=10,e=1,i=[[200,4],[100,3],[50,2],[0,e]],E=100,I=10,c={pirate:{name:"pirate",color:"#8A1623",role:"1047815125282848849"},marine:{name:"marine",color:"#387cbc",role:"1047816059937361940"},revolutionary:{name:"revolutionary",color:"#335635",role:"1047815105846444152"},citizen:{name:"citizen",color:"#fff",role:"1147953458507423874"}},R="citizen",S=["category","alpha","quantity"];C.CHARACTERISTICS=n,C.CHARACTERISTIC_DEFAULT_POINT_COST=e,C.CHARACTERISTIC_POINT_COSTS=i,C.CHARACTERISTIC_POINT_PER_LEVEL=o,C.DEFAULT_FACTION=R,C.DEFAULT_MAX_HP=E,C.FACTIONS=c,C.HP_PER_VITALITY=I,C.RANKS=t,C.RankId=T,C.SORT_VALUES=S,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opfr/utils-type",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "private": false,
5
5
  "description": "OPFR utils-type",
6
6
  "author": "Matthieu VEIGA",
@@ -32,6 +32,5 @@
32
32
  "eslintIgnore": [
33
33
  "node_modules",
34
34
  "dist"
35
- ],
36
- "gitHead": "61ae62b3dc69ba68c59849bccd090f6ef246f110"
35
+ ]
37
36
  }