qpremake 1.5.3 → 1.6.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.
Files changed (234) hide show
  1. package/README.md +5 -3
  2. package/package.json +2 -7
  3. package/lib/_localizationFiles/English.d.ts +0 -2
  4. package/lib/_localizationFiles/English.js +0 -307
  5. package/lib/_mods/parserModules/addSymbol.d.ts +0 -7
  6. package/lib/_mods/parserModules/addSymbol.js +0 -18
  7. package/lib/_mods/parserModules/expression.d.ts +0 -7
  8. package/lib/_mods/parserModules/expression.js +0 -45
  9. package/lib/_mods/parserModules/expression_parser.d.ts +0 -143
  10. package/lib/_mods/parserModules/expression_parser.js +0 -728
  11. package/lib/_mods/parserModules/img.d.ts +0 -8
  12. package/lib/_mods/parserModules/img.js +0 -42
  13. package/lib/_mods/parserModules/qpOriginal.d.ts +0 -5
  14. package/lib/_mods/parserModules/qpOriginal.js +0 -27
  15. package/lib/_mods/parserModules/sectionID.d.ts +0 -13
  16. package/lib/_mods/parserModules/sectionID.js +0 -56
  17. package/lib/_mods/parserModules/tags.d.ts +0 -9
  18. package/lib/_mods/parserModules/tags.js +0 -29
  19. package/lib/_mods/parserModules/uaddminus.d.ts +0 -9
  20. package/lib/_mods/parserModules/uaddminus.js +0 -42
  21. package/lib/_mods/parserModules/variantCheck.d.ts +0 -10
  22. package/lib/_mods/parserModules/variantCheck.js +0 -53
  23. package/lib/_queenSystem/handler/actionGenrator.d.ts +0 -994
  24. package/lib/_queenSystem/handler/actionGenrator.js +0 -646
  25. package/lib/_queenSystem/handler/actionInputGenerator.d.ts +0 -95
  26. package/lib/_queenSystem/handler/actionInputGenerator.js +0 -373
  27. package/lib/_queenSystem/handler/actionInputRequesterGenerator.d.ts +0 -92
  28. package/lib/_queenSystem/handler/actionInputRequesterGenerator.js +0 -341
  29. package/lib/_queenSystem/handler/cardHandler.d.ts +0 -20
  30. package/lib/_queenSystem/handler/cardHandler.js +0 -61
  31. package/lib/_queenSystem/handler/effectGenerator.d.ts +0 -1
  32. package/lib/_queenSystem/handler/effectGenerator.js +0 -127
  33. package/lib/_queenSystem/handler/localizationHandler.d.ts +0 -28
  34. package/lib/_queenSystem/handler/localizationHandler.js +0 -166
  35. package/lib/_queenSystem/handler/modHandler.d.ts +0 -10
  36. package/lib/_queenSystem/handler/modHandler.js +0 -36
  37. package/lib/_queenSystem/handler/oldDataProcessor.d.ts +0 -9
  38. package/lib/_queenSystem/handler/oldDataProcessor.js +0 -129
  39. package/lib/_queenSystem/handler/registryHandler.d.ts +0 -36
  40. package/lib/_queenSystem/handler/registryHandler.js +0 -63
  41. package/lib/_queenSystem/handler/zoneHandler.d.ts +0 -102
  42. package/lib/_queenSystem/handler/zoneHandler.js +0 -606
  43. package/lib/_queenSystem/loader/loader_card.d.ts +0 -20
  44. package/lib/_queenSystem/loader/loader_card.js +0 -124
  45. package/lib/_queenSystem/loader/loader_effect.d.ts +0 -27
  46. package/lib/_queenSystem/loader/loader_effect.js +0 -163
  47. package/lib/_queenSystem/loader/loader_handler.d.ts +0 -11
  48. package/lib/_queenSystem/loader/loader_handler.js +0 -24
  49. package/lib/_queenSystem/loader/loader_localization.d.ts +0 -11
  50. package/lib/_queenSystem/loader/loader_localization.js +0 -73
  51. package/lib/_queenSystem/loader/loader_mod.d.ts +0 -10
  52. package/lib/_queenSystem/loader/loader_mod.js +0 -72
  53. package/lib/_queenSystem/loader/loader_subtype.d.ts +0 -9
  54. package/lib/_queenSystem/loader/loader_subtype.js +0 -39
  55. package/lib/_queenSystem/loader/loader_type.d.ts +0 -9
  56. package/lib/_queenSystem/loader/loader_type.js +0 -39
  57. package/lib/_queenSystem/loader/loader_zone.d.ts +0 -14
  58. package/lib/_queenSystem/loader/loader_zone.js +0 -35
  59. package/lib/_queenSystem/queenSystem.d.ts +0 -127
  60. package/lib/_queenSystem/queenSystem.js +0 -996
  61. package/lib/_queenSystem/renderer/rendererInterface.d.ts +0 -27
  62. package/lib/_queenSystem/renderer/rendererInterface.js +0 -25
  63. package/lib/data/actionRegistry.d.ts +0 -56
  64. package/lib/data/actionRegistry.js +0 -60
  65. package/lib/data/cardRegistry.d.ts +0 -1162
  66. package/lib/data/cardRegistry.js +0 -716
  67. package/lib/data/deckRegistry.d.ts +0 -19
  68. package/lib/data/deckRegistry.js +0 -41
  69. package/lib/data/effectRegistry.d.ts +0 -465
  70. package/lib/data/effectRegistry.js +0 -151
  71. package/lib/data/effectTypeRegistry.d.ts +0 -14
  72. package/lib/data/effectTypeRegistry.js +0 -14
  73. package/lib/data/operatorRegistry.d.ts +0 -92
  74. package/lib/data/operatorRegistry.js +0 -82
  75. package/lib/data/rarityRegistry.d.ts +0 -28
  76. package/lib/data/rarityRegistry.js +0 -63
  77. package/lib/data/registryRegistry.d.ts +0 -10
  78. package/lib/data/registryRegistry.js +0 -14
  79. package/lib/data/subtypeRegistry.d.ts +0 -15
  80. package/lib/data/subtypeRegistry.js +0 -15
  81. package/lib/data/systemRegistry.d.ts +0 -253
  82. package/lib/data/systemRegistry.js +0 -56
  83. package/lib/data/zoneRegistry.d.ts +0 -43
  84. package/lib/data/zoneRegistry.js +0 -157
  85. package/lib/effectTextParser/index.d.ts +0 -42
  86. package/lib/effectTextParser/index.js +0 -316
  87. package/lib/global/index.d.ts +0 -8
  88. package/lib/global/index.js +0 -12
  89. package/lib/index.d.ts +0 -6335
  90. package/lib/index.js +0 -205
  91. package/lib/specificEffects/e_cond.d.ts +0 -11
  92. package/lib/specificEffects/e_cond.js +0 -36
  93. package/lib/specificEffects/e_fruit.d.ts +0 -3
  94. package/lib/specificEffects/e_fruit.js +0 -187
  95. package/lib/specificEffects/e_generic.d.ts +0 -191
  96. package/lib/specificEffects/e_generic.js +0 -662
  97. package/lib/specificEffects/e_generic_cardTargetting.d.ts +0 -38
  98. package/lib/specificEffects/e_generic_cardTargetting.js +0 -82
  99. package/lib/specificEffects/e_generic_noneTargetting.d.ts +0 -10
  100. package/lib/specificEffects/e_generic_noneTargetting.js +0 -26
  101. package/lib/specificEffects/e_status.d.ts +0 -80
  102. package/lib/specificEffects/e_status.js +0 -151
  103. package/lib/specificEffects/e_test.d.ts +0 -3
  104. package/lib/specificEffects/e_test.js +0 -21
  105. package/lib/types/abstract/gameComponents/API.d.ts +0 -19
  106. package/lib/types/abstract/gameComponents/API.js +0 -2
  107. package/lib/types/abstract/gameComponents/card.d.ts +0 -108
  108. package/lib/types/abstract/gameComponents/card.js +0 -771
  109. package/lib/types/abstract/gameComponents/effect.d.ts +0 -82
  110. package/lib/types/abstract/gameComponents/effect.js +0 -331
  111. package/lib/types/abstract/gameComponents/effectSubtype.d.ts +0 -22
  112. package/lib/types/abstract/gameComponents/effectSubtype.js +0 -40
  113. package/lib/types/abstract/gameComponents/effectType.d.ts +0 -11
  114. package/lib/types/abstract/gameComponents/effectType.js +0 -8
  115. package/lib/types/abstract/gameComponents/settings.d.ts +0 -80
  116. package/lib/types/abstract/gameComponents/settings.js +0 -72
  117. package/lib/types/abstract/gameComponents/zone.d.ts +0 -113
  118. package/lib/types/abstract/gameComponents/zone.js +0 -614
  119. package/lib/types/abstract/gameComponents/zone_gridBased.d.ts +0 -18
  120. package/lib/types/abstract/gameComponents/zone_gridBased.js +0 -58
  121. package/lib/types/abstract/gameComponents/zone_stackBased.d.ts +0 -13
  122. package/lib/types/abstract/gameComponents/zone_stackBased.js +0 -55
  123. package/lib/types/abstract/generics/node.d.ts +0 -23
  124. package/lib/types/abstract/generics/node.js +0 -46
  125. package/lib/types/abstract/generics/position.d.ts +0 -23
  126. package/lib/types/abstract/generics/position.js +0 -91
  127. package/lib/types/abstract/generics/tree.d.ts +0 -25
  128. package/lib/types/abstract/generics/tree.js +0 -153
  129. package/lib/types/abstract/generics/universalResponse.d.ts +0 -4
  130. package/lib/types/abstract/generics/universalResponse.js +0 -2
  131. package/lib/types/abstract/generics/wraper.d.ts +0 -21
  132. package/lib/types/abstract/generics/wraper.js +0 -56
  133. package/lib/types/abstract/parser/component.d.ts +0 -88
  134. package/lib/types/abstract/parser/component.js +0 -132
  135. package/lib/types/abstract/parser/index.d.ts +0 -6
  136. package/lib/types/abstract/parser/index.js +0 -28
  137. package/lib/types/abstract/parser/modPack.d.ts +0 -21
  138. package/lib/types/abstract/parser/modPack.js +0 -48
  139. package/lib/types/abstract/parser/moduleInputObject.d.ts +0 -12
  140. package/lib/types/abstract/parser/moduleInputObject.js +0 -21
  141. package/lib/types/abstract/parser/options.d.ts +0 -31
  142. package/lib/types/abstract/parser/options.js +0 -45
  143. package/lib/types/abstract/serializedGameComponents/Gamestate.d.ts +0 -46
  144. package/lib/types/abstract/serializedGameComponents/Gamestate.js +0 -70
  145. package/lib/types/abstract/serializedGameComponents/Localized.d.ts +0 -69
  146. package/lib/types/abstract/serializedGameComponents/Localized.js +0 -84
  147. package/lib/types/defaultZones/ability.d.ts +0 -10
  148. package/lib/types/defaultZones/ability.js +0 -22
  149. package/lib/types/defaultZones/deck.d.ts +0 -25
  150. package/lib/types/defaultZones/deck.js +0 -90
  151. package/lib/types/defaultZones/drop.d.ts +0 -5
  152. package/lib/types/defaultZones/drop.js +0 -13
  153. package/lib/types/defaultZones/field.d.ts +0 -11
  154. package/lib/types/defaultZones/field.js +0 -35
  155. package/lib/types/defaultZones/grave.d.ts +0 -8
  156. package/lib/types/defaultZones/grave.js +0 -21
  157. package/lib/types/defaultZones/hand.d.ts +0 -5
  158. package/lib/types/defaultZones/hand.js +0 -14
  159. package/lib/types/defaultZones/storage.d.ts +0 -9
  160. package/lib/types/defaultZones/storage.js +0 -21
  161. package/lib/types/defaultZones/system.d.ts +0 -12
  162. package/lib/types/defaultZones/system.js +0 -35
  163. package/lib/types/defaultZones/void.d.ts +0 -4
  164. package/lib/types/defaultZones/void.js +0 -10
  165. package/lib/types/effects/effectSubtypes/subtype_chained.d.ts +0 -10
  166. package/lib/types/effects/effectSubtypes/subtype_chained.js +0 -17
  167. package/lib/types/effects/effectSubtypes/subtype_delayed.d.ts +0 -9
  168. package/lib/types/effects/effectSubtypes/subtype_delayed.js +0 -16
  169. package/lib/types/effects/effectSubtypes/subtype_fieldLock.d.ts +0 -9
  170. package/lib/types/effects/effectSubtypes/subtype_fieldLock.js +0 -21
  171. package/lib/types/effects/effectSubtypes/subtype_graveLock.d.ts +0 -9
  172. package/lib/types/effects/effectSubtypes/subtype_graveLock.js +0 -21
  173. package/lib/types/effects/effectSubtypes/subtype_hand_or_fieldLock.d.ts +0 -9
  174. package/lib/types/effects/effectSubtypes/subtype_hand_or_fieldLock.js +0 -21
  175. package/lib/types/effects/effectSubtypes/subtype_hardUnique.d.ts +0 -9
  176. package/lib/types/effects/effectSubtypes/subtype_hardUnique.js +0 -15
  177. package/lib/types/effects/effectSubtypes/subtype_instant.d.ts +0 -8
  178. package/lib/types/effects/effectSubtypes/subtype_instant.js +0 -20
  179. package/lib/types/effects/effectSubtypes/subtype_once.d.ts +0 -12
  180. package/lib/types/effects/effectSubtypes/subtype_once.js +0 -27
  181. package/lib/types/effects/effectSubtypes/subtype_unique.d.ts +0 -9
  182. package/lib/types/effects/effectSubtypes/subtype_unique.js +0 -16
  183. package/lib/types/effects/effectTypes/initEffect.d.ts +0 -7
  184. package/lib/types/effects/effectTypes/initEffect.js +0 -23
  185. package/lib/types/effects/effectTypes/lockEffect.d.ts +0 -9
  186. package/lib/types/effects/effectTypes/lockEffect.js +0 -25
  187. package/lib/types/effects/effectTypes/manualEffect.d.ts +0 -9
  188. package/lib/types/effects/effectTypes/manualEffect.js +0 -18
  189. package/lib/types/effects/effectTypes/passiveEffect.d.ts +0 -9
  190. package/lib/types/effects/effectTypes/passiveEffect.js +0 -23
  191. package/lib/types/effects/effectTypes/triggerEffect.d.ts +0 -9
  192. package/lib/types/effects/effectTypes/triggerEffect.js +0 -28
  193. package/lib/types/errors/cannotLoad.d.ts +0 -5
  194. package/lib/types/errors/cannotLoad.js +0 -13
  195. package/lib/types/errors/cardNotExist.d.ts +0 -5
  196. package/lib/types/errors/cardNotExist.js +0 -13
  197. package/lib/types/errors/cardNotInApplicableZone.d.ts +0 -5
  198. package/lib/types/errors/cardNotInApplicableZone.js +0 -13
  199. package/lib/types/errors/effectCondNotMet.d.ts +0 -5
  200. package/lib/types/errors/effectCondNotMet.js +0 -13
  201. package/lib/types/errors/effectNotExist.d.ts +0 -5
  202. package/lib/types/errors/effectNotExist.js +0 -13
  203. package/lib/types/errors/error.d.ts +0 -17
  204. package/lib/types/errors/error.js +0 -42
  205. package/lib/types/errors/incorrectActionType.d.ts +0 -5
  206. package/lib/types/errors/incorrectActionType.js +0 -13
  207. package/lib/types/errors/index.d.ts +0 -16
  208. package/lib/types/errors/index.js +0 -36
  209. package/lib/types/errors/invalidOrderMap.d.ts +0 -6
  210. package/lib/types/errors/invalidOrderMap.js +0 -14
  211. package/lib/types/errors/invalidPosition.d.ts +0 -6
  212. package/lib/types/errors/invalidPosition.js +0 -13
  213. package/lib/types/errors/subTypeOverrideConflict.d.ts +0 -7
  214. package/lib/types/errors/subTypeOverrideConflict.js +0 -15
  215. package/lib/types/errors/unknownError.d.ts +0 -5
  216. package/lib/types/errors/unknownError.js +0 -13
  217. package/lib/types/errors/unregisteredAction.d.ts +0 -6
  218. package/lib/types/errors/unregisteredAction.js +0 -13
  219. package/lib/types/errors/wrongEffectIdx.d.ts +0 -5
  220. package/lib/types/errors/wrongEffectIdx.js +0 -14
  221. package/lib/types/errors/zoneAttrConflict.d.ts +0 -5
  222. package/lib/types/errors/zoneAttrConflict.js +0 -15
  223. package/lib/types/errors/zoneFull.d.ts +0 -5
  224. package/lib/types/errors/zoneFull.js +0 -13
  225. package/lib/types/errors/zoneNotExist.d.ts +0 -5
  226. package/lib/types/errors/zoneNotExist.js +0 -13
  227. package/lib/types/misc.d.ts +0 -97
  228. package/lib/types/misc.js +0 -8
  229. package/lib/types/mods/effectTextParserModule.d.ts +0 -16
  230. package/lib/types/mods/effectTextParserModule.js +0 -81
  231. package/lib/types/mods/gameModule.d.ts +0 -5
  232. package/lib/types/mods/gameModule.js +0 -8
  233. package/lib/utils/index.d.ts +0 -78
  234. package/lib/utils/index.js +0 -562
@@ -1,716 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.cardDataRegistry = exports.type_and_or_subtype_inference_method = exports.partitionActivationBehavior = void 0;
4
- exports.defaultPartition = defaultPartition;
5
- exports.oldImgURL = oldImgURL;
6
- //update 1.2.9: changed the definitions of these
7
- //If changed in future to no longer be activating the entire partition if activate
8
- //change activatePartition in card
9
- var partitionActivationBehavior;
10
- (function (partitionActivationBehavior) {
11
- partitionActivationBehavior[partitionActivationBehavior["strict"] = 0] = "strict";
12
- partitionActivationBehavior[partitionActivationBehavior["first"] = 1] = "first";
13
- partitionActivationBehavior[partitionActivationBehavior["last"] = 2] = "last";
14
- })(partitionActivationBehavior || (exports.partitionActivationBehavior = partitionActivationBehavior = {}));
15
- var type_and_or_subtype_inference_method;
16
- (function (type_and_or_subtype_inference_method) {
17
- type_and_or_subtype_inference_method[type_and_or_subtype_inference_method["first"] = 0] = "first";
18
- type_and_or_subtype_inference_method[type_and_or_subtype_inference_method["most"] = 1] = "most";
19
- type_and_or_subtype_inference_method[type_and_or_subtype_inference_method["all"] = 2] = "all";
20
- })(type_and_or_subtype_inference_method || (exports.type_and_or_subtype_inference_method = type_and_or_subtype_inference_method = {}));
21
- const rarityRegistry_1 = require("./rarityRegistry");
22
- function defaultPartition(id, num = 0) {
23
- num = Array.isArray(num) ? num : [num];
24
- return {
25
- behaviorID: partitionActivationBehavior.first,
26
- mapping: num,
27
- displayID: id,
28
- typeID: type_and_or_subtype_inference_method.first,
29
- subTypeID: type_and_or_subtype_inference_method.all
30
- };
31
- }
32
- function oldImgURL(oldID) {
33
- return `https://raw.githubusercontent.com/qpProject/qpProject.github.io/refs/heads/main/cards/${oldID}.png`;
34
- }
35
- //Welp am creating another system for this stuff
36
- class quickCardData extends Function {
37
- constructor() {
38
- super();
39
- this.data = {
40
- variantData: {
41
- base: {
42
- level: 1,
43
- rarityID: rarityRegistry_1.rarityRegistry.r_white,
44
- extensionArr: [],
45
- belongTo: [],
46
- atk: 0,
47
- hp: 1,
48
- effects: {},
49
- imgURL: "",
50
- partition: [],
51
- }
52
- }
53
- };
54
- this.T_this = 0;
55
- }
56
- //Adding belong to others if belongTo is empty
57
- fin() {
58
- if (this.data.variantData.base.belongTo.length === 0)
59
- this.data.variantData.base.belongTo = ["other"];
60
- return this.data;
61
- }
62
- //effects are added to the last partition
63
- rarity(rarity) {
64
- this.data.variantData.base.rarityID = rarity;
65
- return this;
66
- }
67
- img(oldCardName) {
68
- this.data.variantData.base.imgURL = oldImgURL(oldCardName);
69
- return this;
70
- }
71
- archtype(archtype) {
72
- this.data.variantData.base.belongTo.push(archtype);
73
- this.data.variantData.base.extensionArr.push(archtype);
74
- return this;
75
- }
76
- extension(ex) {
77
- this.data.variantData.base.extensionArr.push(ex);
78
- return this;
79
- }
80
- belongTo(ex) {
81
- this.data.variantData.base.belongTo.push(ex);
82
- return this;
83
- }
84
- enemy() {
85
- return this.belongTo("enemy");
86
- }
87
- atk(atk) {
88
- this.data.variantData.base.atk = atk;
89
- return this;
90
- }
91
- hp(hp) {
92
- this.data.variantData.base.hp = hp;
93
- return this;
94
- }
95
- level(level) {
96
- this.data.variantData.base.level = level;
97
- return this;
98
- }
99
- variant(key, data) {
100
- this.data.variantData[key] = data;
101
- return this;
102
- }
103
- upgrade(data) {
104
- return this.variant("upgrade_1", data);
105
- }
106
- effect(data) {
107
- this.data.variantData.base.effects = data.effects;
108
- this.data.variantData.base.partition = data.partition;
109
- return this;
110
- }
111
- //quickhand stat, tailwind inspired
112
- static get def() { return new quickCardData().toFunc(); }
113
- static get green() { return new quickCardData().rarity(rarityRegistry_1.rarityRegistry.r_green).toFunc(); }
114
- static get blue() { return new quickCardData().rarity(rarityRegistry_1.rarityRegistry.r_blue).toFunc(); }
115
- static get red() { return new quickCardData().rarity(rarityRegistry_1.rarityRegistry.r_red).toFunc(); }
116
- static get algo() { return new quickCardData().rarity(rarityRegistry_1.rarityRegistry.r_algo).toFunc(); }
117
- static get ability() { return new quickCardData().rarity(rarityRegistry_1.rarityRegistry.r_ability).toFunc(); }
118
- get l0() { return this.level(0); }
119
- get l2() { return this.level(2); }
120
- get l3() { return this.level(3); }
121
- static get l0() { return new quickCardData().l0.toFunc(); }
122
- static get l2() { return new quickCardData().l2.toFunc(); }
123
- static get l3() { return new quickCardData().l3.toFunc(); }
124
- get atk1() { return this.atk(1); }
125
- get atk2() { return this.atk(2); }
126
- get atk3() { return this.atk(3); }
127
- get atk4() { return this.atk(4); }
128
- get atk5() { return this.atk(5); }
129
- get hp2() { return this.hp(2); }
130
- get hp3() { return this.hp(3); }
131
- get hp4() { return this.hp(4); }
132
- get hp5() { return this.hp(5); }
133
- get hp6() { return this.hp(6); }
134
- get hp7() { return this.hp(7); }
135
- get hp8() { return this.hp(8); }
136
- get hp9() { return this.hp(9); }
137
- get hp10() { return this.hp(10); }
138
- stat(stat0, stat1) {
139
- return this.atk(stat0).hp(stat1);
140
- }
141
- static stat(stat0, stat1) {
142
- return new quickCardData().atk(stat0).hp(stat1).toFunc();
143
- }
144
- toFunc() {
145
- return new Proxy(this, {
146
- apply(target) {
147
- return target.fin();
148
- }
149
- });
150
- }
151
- }
152
- class quickEffectInfo extends Function {
153
- constructor() {
154
- super();
155
- this.data = {
156
- effects: {},
157
- partition: []
158
- };
159
- this.effCountArr = 0;
160
- this.currPartition = 0;
161
- this.T_this = 0;
162
- }
163
- p_start(id) {
164
- this.data.partition[this.currPartition] = defaultPartition(id);
165
- return this;
166
- }
167
- p(id) {
168
- this.currPartition++;
169
- this.data.partition[this.currPartition] = defaultPartition(id, this.effCountArr);
170
- return this;
171
- }
172
- e(key, obj) {
173
- this.data.effects[key] = obj;
174
- this.data.partition[this.currPartition].mapping.push(this.effCountArr);
175
- this.data.partition[this.currPartition].mapping = Array.from(new Set(this.data.partition[this.currPartition].mapping));
176
- this.effCountArr++;
177
- return this;
178
- }
179
- displayID(id) {
180
- this.data.partition[this.currPartition].displayID = id;
181
- return this;
182
- }
183
- behavior(be) {
184
- this.data.partition[this.currPartition].behaviorID = be;
185
- return this;
186
- }
187
- static def(displayID) {
188
- return new quickEffectInfo().p_start(displayID).toFunc();
189
- }
190
- fin() {
191
- return this.data;
192
- }
193
- toFunc() {
194
- return new Proxy(this, {
195
- apply(target) {
196
- return target.fin();
197
- }
198
- });
199
- }
200
- }
201
- //TODO : change to const later
202
- const cardDataRegistry //: {[key : string] : Omit<cardData, "id">}
203
- = {
204
- //zero eff stuff
205
- //removed the 2 unused nova card that wont work anyway
206
- c_blank: quickCardData.def.img("puzzleBlank")(),
207
- c_knife: quickCardData.def.extension(".hck").stat(3, 5).img("quantumKnifeTutorial")(),
208
- c_quantum_sigil: quickCardData.def.img("quantumSigil")(),
209
- c_sentry: quickCardData.def.extension("sc").enemy().stat(1, 2).img("enemySentry")(),
210
- c_stagemarker: quickCardData.def.img("stageMarker")(),
211
- c_security: quickCardData.def.extension("x").img("securityLock")(),
212
- c_objective_data: quickCardData.def.extension("txt").img("objectiveData1")(),
213
- c_active: quickCardData.green.img("openingDungeonMark")(),
214
- c_dummy: quickCardData.def.img("puzzleDummy")(),
215
- c_loot_dummy: quickCardData.def.img("lootDummy")(),
216
- c_lock_core: quickCardData.red.img("queenLockCore")(),
217
- c_machine_block: quickCardData.def.stat(0, 2).img("machineBlock").variant("2", { hp: 3, imgURL: oldImgURL("machineBlock2") })(),
218
- c_machine_coin: quickCardData.def.img("machineCoin")(),
219
- c_brain_queen: quickCardData.def.img("brainQueen")(),
220
- c_story_oxygen: quickCardData.def.img("storyOxygen")(),
221
- c_story_hydrogen: quickCardData.def.img("storyHydrogen")(),
222
- c_story_backdoor: quickCardData.def.img("storyBackdoor")(),
223
- c_flower_hologram: quickCardData.def.img("flowerHologram")(),
224
- c_dark_power: quickCardData.stat(2, 2).img("bossB10MinionSpawn")(),
225
- c_zira_defeat: quickCardData.red.l3.belongTo("boss").extension("z").img("bossCometDefeat")(),
226
- c_bug_passive: quickCardData.stat(0, 4).enemy().extension("mw").img("enemyPassiveBug")(),
227
- c_stagemark: quickCardData.def.enemy().img("enemyStageTarget")(),
228
- c_strong_bug: quickCardData.stat(2, 3).enemy().extension("mw").img("enemyStrongBug").upgrade({ atk: 3, hp: 5 })(),
229
- c_firewall: quickCardData.stat(0, 3).enemy().extension("sc").img("enemyWeakWall")(),
230
- c_target: quickCardData.def.enemy().img("enemyWeakTarget")(),
231
- c_curse: quickCardData.def.extension("x").belongTo("boss").img("miniboss1")(),
232
- c_legion_token: quickCardData.stat(1, 1).archtype("legion").img("vampGen2_minion").upgrade({ atk: 2 } //check syka for stat info
233
- )(),
234
- c_nova_protean: quickCardData.stat(2, 2).archtype("nova").img("novaStandard").upgrade({ atk: 3, hp: 3 })(),
235
- //generics
236
- //white
237
- c_after_burner: quickCardData.def.archtype("generic").effect(quickEffectInfo
238
- .def()
239
- .e("e_draw_until", { count: 2 })
240
- .p()
241
- .e("e_quick", {})()).upgrade({
242
- effects: quickEffectInfo
243
- .def()
244
- .e("e_draw_until", { count: 3 })
245
- .e("e_quick", {})().effects
246
- })(),
247
- c_battery: quickCardData.def.archtype("generic").effect(quickEffectInfo
248
- .def("e_turn_draw")
249
- .e("e_draw", { doTurnDraw: 1 })()).upgrade(quickEffectInfo
250
- .def("e_turn_draw")
251
- .e("e_draw", { doTurnDraw: 1 })
252
- .p()
253
- .e("e_quick", {})())(),
254
- c_flash_bang: quickCardData.def.archtype("generic").effect(quickEffectInfo
255
- .def()
256
- .e("e_delay_all", { delayCount: 3 })
257
- .p()
258
- .e("e_quick", {})()).upgrade({
259
- effects: quickEffectInfo
260
- .def()
261
- .e("e_delay_all", { delayCount: 4 })
262
- .p()
263
- .e("e_quick", {})().effects
264
- })(),
265
- c_cinder: quickCardData.def.archtype("generic").effect(quickEffectInfo
266
- .def()
267
- .e("e_delay_all", { delayCount: 2 })
268
- .e("e_quick", {})()).upgrade({
269
- effects: quickEffectInfo
270
- .def()
271
- .e("e_delay_all", { delayCount: 3 })
272
- .e("e_quick", {})().effects
273
- })(),
274
- c_ember: quickCardData.def.archtype("generic").effect(quickEffectInfo
275
- .def()
276
- .e("e_draw", { count: 1 })()).upgrade({
277
- effects: quickEffectInfo
278
- .def()
279
- .e("e_draw", { count: 1 })().effects
280
- })(),
281
- //green
282
- c_capacitor: quickCardData.def.archtype("generic").effect(quickEffectInfo
283
- .def()
284
- .e("e_capacitor_1", { maxCount: 3 })
285
- .p()
286
- .e("e_capacitor_2", {})
287
- .p()
288
- .e("e_reset_all_once_this", {})()).upgrade({
289
- effects: quickEffectInfo
290
- .def()
291
- .e("e_capacitor_1", { maxCount: 5 })
292
- .p()
293
- .e("e_capacitor_2", {})
294
- .p()
295
- .e("e_reset_all_once_this", {})().effects
296
- })(),
297
- //blue
298
- //fruits
299
- //white
300
- c_apple: {
301
- variantData: {
302
- base: {
303
- level: 1,
304
- rarityID: rarityRegistry_1.rarityRegistry.r_white,
305
- extensionArr: ["fruit"],
306
- belongTo: ["fruit"],
307
- atk: 2,
308
- hp: 2,
309
- effects: {
310
- e_apple: {
311
- count: 1
312
- }
313
- },
314
- imgURL: oldImgURL("naturalApple"),
315
- partition: [defaultPartition()],
316
- },
317
- upgrade_1: {
318
- atk: 3,
319
- hp: 3,
320
- effects: {
321
- e_apple: {
322
- count: 2,
323
- }
324
- }
325
- }
326
- }
327
- },
328
- c_banana: {
329
- variantData: {
330
- base: {
331
- level: 1,
332
- rarityID: rarityRegistry_1.rarityRegistry.r_white,
333
- extensionArr: ["fruit"],
334
- belongTo: ["fruit"],
335
- atk: 0,
336
- hp: 1,
337
- effects: {
338
- e_banana: {
339
- doArchtypeCheck: 1
340
- }
341
- },
342
- imgURL: oldImgURL("naturalBanana"),
343
- partition: [defaultPartition()]
344
- },
345
- upgrade_1: {
346
- effects: {
347
- e_banana: {
348
- doArchtypeCheck: 0
349
- }
350
- }
351
- },
352
- }
353
- },
354
- c_cherry: {
355
- variantData: {
356
- base: {
357
- level: 1,
358
- rarityID: rarityRegistry_1.rarityRegistry.r_white,
359
- extensionArr: ["fruit"],
360
- belongTo: ["fruit"],
361
- atk: 0,
362
- hp: 1,
363
- effects: {
364
- e_draw: {
365
- count: 1
366
- }
367
- },
368
- imgURL: oldImgURL("naturalCherry"),
369
- partition: [defaultPartition()]
370
- },
371
- upgrade_1: {
372
- effects: {
373
- e_draw: {
374
- count: 2
375
- }
376
- }
377
- },
378
- }
379
- },
380
- c_lemon: {
381
- variantData: {
382
- base: {
383
- level: 1,
384
- rarityID: rarityRegistry_1.rarityRegistry.r_white,
385
- extensionArr: ["fruit"],
386
- belongTo: ["fruit"],
387
- atk: 1,
388
- hp: 2,
389
- effects: {
390
- e_lemon: {}
391
- },
392
- imgURL: oldImgURL("naturalLemon"),
393
- partition: [defaultPartition()]
394
- },
395
- upgrade_1: {
396
- atk: 2
397
- },
398
- }
399
- },
400
- c_pomegranate: {
401
- variantData: {
402
- base: {
403
- level: 1,
404
- rarityID: rarityRegistry_1.rarityRegistry.r_white,
405
- extensionArr: ["fruit"],
406
- belongTo: ["fruit"],
407
- atk: 0,
408
- hp: 1,
409
- effects: {
410
- e_pomegranate: {
411
- exposedDmg: 1,
412
- coveredDmg: 1,
413
- }
414
- },
415
- imgURL: oldImgURL("naturalPomegranate"),
416
- partition: [defaultPartition()]
417
- },
418
- upgrade_1: {
419
- effects: {
420
- e_pomegranate: {
421
- exposedDmg: 2,
422
- coveredDmg: 1,
423
- }
424
- }
425
- },
426
- }
427
- },
428
- c_pumpkin: {
429
- variantData: {
430
- base: {
431
- level: 1,
432
- rarityID: rarityRegistry_1.rarityRegistry.r_white,
433
- extensionArr: ["fruit"],
434
- belongTo: ["fruit"],
435
- atk: 3,
436
- hp: 2,
437
- imgURL: oldImgURL("naturalPumpkin"),
438
- partition: [
439
- defaultPartition(),
440
- defaultPartition(undefined, 1)
441
- ],
442
- effects: {
443
- e_pumpkin: {
444
- maxHp: 1,
445
- },
446
- e_fragile: {}
447
- }
448
- },
449
- upgrade_1: {
450
- effects: {
451
- e_pumpkin: {
452
- maxHp: 2,
453
- },
454
- e_fragile: {}
455
- }
456
- }
457
- }
458
- },
459
- //green
460
- c_pollinate: {
461
- variantData: {
462
- base: {
463
- level: 1,
464
- rarityID: rarityRegistry_1.rarityRegistry.r_green,
465
- extensionArr: ["fruit"],
466
- belongTo: ["fruit"],
467
- atk: 0,
468
- hp: 1,
469
- imgURL: oldImgURL("naturalPollination"),
470
- partition: [
471
- defaultPartition()
472
- ],
473
- effects: {
474
- e_pollinate: {
475
- doArchtypeCheck: 1
476
- },
477
- }
478
- },
479
- upgrade_1: {
480
- effects: {
481
- e_pollinate: {
482
- doArchtypeCheck: 0
483
- }
484
- }
485
- }
486
- }
487
- },
488
- c_greenhouse: {
489
- variantData: {
490
- base: {
491
- level: 2,
492
- rarityID: rarityRegistry_1.rarityRegistry.r_green,
493
- extensionArr: ["fruit"],
494
- belongTo: ["fruit"],
495
- atk: 0,
496
- hp: 2,
497
- imgURL: oldImgURL("naturalGreenhouse"),
498
- partition: [
499
- defaultPartition()
500
- ],
501
- effects: {
502
- e_greenhouse: {
503
- checkLevel: 1
504
- }
505
- }
506
- },
507
- upgrade_1: {
508
- effects: {
509
- e_greenhouse: {
510
- checkLevel: 2
511
- }
512
- }
513
- }
514
- }
515
- },
516
- //blue
517
- c_growth: {
518
- variantData: {
519
- base: {
520
- level: 1,
521
- rarityID: rarityRegistry_1.rarityRegistry.r_blue,
522
- extensionArr: ["fruit"],
523
- belongTo: ["fruit"],
524
- atk: 0,
525
- hp: 1,
526
- imgURL: oldImgURL("naturalGrowth"),
527
- partition: [
528
- defaultPartition()
529
- ],
530
- effects: {
531
- e_growth: {
532
- doArchtypeCheck: 1
533
- }
534
- }
535
- },
536
- upgrade_1: {
537
- effects: {
538
- e_growth: {
539
- doArchtypeCheck: 0
540
- }
541
- }
542
- }
543
- }
544
- },
545
- c_spring: {
546
- variantData: {
547
- base: {
548
- level: 2,
549
- rarityID: rarityRegistry_1.rarityRegistry.r_blue,
550
- extensionArr: ["fruit"],
551
- belongTo: ["fruit"],
552
- atk: 1,
553
- hp: 2,
554
- imgURL: oldImgURL("naturalSpring"),
555
- partition: [
556
- defaultPartition()
557
- ],
558
- effects: {
559
- e_spring: {
560
- checkLevel: 1
561
- }
562
- }
563
- },
564
- upgrade_1: {
565
- effects: {
566
- e_spring: {
567
- checkLevel: 2
568
- }
569
- }
570
- }
571
- }
572
- },
573
- c_summer: {
574
- variantData: {
575
- base: {
576
- level: 2,
577
- rarityID: rarityRegistry_1.rarityRegistry.r_blue,
578
- extensionArr: ["fruit"],
579
- belongTo: ["fruit"],
580
- atk: 1,
581
- hp: 2,
582
- imgURL: oldImgURL("naturalSummer"),
583
- partition: [
584
- defaultPartition()
585
- ],
586
- effects: {
587
- e_summer: {
588
- checkLevel: 1
589
- }
590
- }
591
- },
592
- upgrade_1: {
593
- effects: {
594
- e_summer: {
595
- checkLevel: 3
596
- }
597
- }
598
- }
599
- }
600
- },
601
- c_autumn: {
602
- variantData: {
603
- base: {
604
- level: 2,
605
- rarityID: rarityRegistry_1.rarityRegistry.r_blue,
606
- extensionArr: ["fruit"],
607
- belongTo: ["fruit"],
608
- atk: 1,
609
- hp: 2,
610
- imgURL: oldImgURL("naturalFall"),
611
- partition: [
612
- defaultPartition()
613
- ],
614
- effects: {
615
- e_autumn: {
616
- // doIncAtk : 0
617
- }
618
- }
619
- },
620
- upgrade_1: {
621
- effects: {
622
- e_autumn: {
623
- // doIncAtk : 1
624
- }
625
- }
626
- }
627
- }
628
- },
629
- c_winter: {
630
- variantData: {
631
- base: {
632
- level: 2,
633
- rarityID: rarityRegistry_1.rarityRegistry.r_blue,
634
- extensionArr: ["fruit"],
635
- belongTo: ["fruit"],
636
- atk: 1,
637
- hp: 2,
638
- imgURL: oldImgURL("naturalWinter"),
639
- partition: [
640
- defaultPartition(undefined, [0, 1]),
641
- defaultPartition(undefined, 2)
642
- ],
643
- effects: {
644
- e_winter_1: {
645
- mult: 1
646
- },
647
- e_winter_2: {},
648
- e_dmg_reduction: {
649
- reductionAmmount: Infinity,
650
- minDmg: 1,
651
- }
652
- }
653
- },
654
- upgrade_1: {
655
- effects: {
656
- e_winter_1: {
657
- mult: 2
658
- },
659
- e_winter_2: {},
660
- e_dmg_reduction: {
661
- reductionAmmount: Infinity,
662
- minDmg: 1,
663
- }
664
- }
665
- }
666
- }
667
- },
668
- //red
669
- c_persephone: {
670
- variantData: {
671
- base: {
672
- level: 3,
673
- rarityID: rarityRegistry_1.rarityRegistry.r_red,
674
- extensionArr: ["fruit"],
675
- belongTo: ["fruit"],
676
- atk: 0,
677
- hp: 5,
678
- imgURL: oldImgURL("naturalPersephone"),
679
- partition: [
680
- defaultPartition("c_persephone"),
681
- defaultPartition("c_persephone", 1),
682
- defaultPartition("c_persephone", 2),
683
- ],
684
- effects: {
685
- e_persephone_1: {},
686
- e_persephone_2: {},
687
- e_persephone_3: {},
688
- }
689
- }
690
- }
691
- },
692
- c_demeter: {
693
- variantData: {
694
- base: {
695
- level: 3,
696
- rarityID: rarityRegistry_1.rarityRegistry.r_red,
697
- extensionArr: ["fruit"],
698
- belongTo: ["fruit"],
699
- atk: 2,
700
- hp: 8,
701
- imgURL: oldImgURL("naturalDemeter"),
702
- partition: [
703
- defaultPartition("c_demeter"),
704
- defaultPartition("c_demeter", 1),
705
- defaultPartition("c_demeter", 2),
706
- ],
707
- effects: {
708
- e_demeter_1: {},
709
- e_demeter_2: {},
710
- e_demeter_3: {},
711
- }
712
- }
713
- }
714
- },
715
- };
716
- exports.cardDataRegistry = cardDataRegistry;