qpremake 1.5.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.
Files changed (234) hide show
  1. package/README.md +184 -0
  2. package/lib/_localizationFiles/English.d.ts +2 -0
  3. package/lib/_localizationFiles/English.js +307 -0
  4. package/lib/_mods/parserModules/addSymbol.d.ts +7 -0
  5. package/lib/_mods/parserModules/addSymbol.js +18 -0
  6. package/lib/_mods/parserModules/expression.d.ts +7 -0
  7. package/lib/_mods/parserModules/expression.js +45 -0
  8. package/lib/_mods/parserModules/expression_parser.d.ts +143 -0
  9. package/lib/_mods/parserModules/expression_parser.js +728 -0
  10. package/lib/_mods/parserModules/img.d.ts +8 -0
  11. package/lib/_mods/parserModules/img.js +42 -0
  12. package/lib/_mods/parserModules/qpOriginal.d.ts +5 -0
  13. package/lib/_mods/parserModules/qpOriginal.js +27 -0
  14. package/lib/_mods/parserModules/sectionID.d.ts +13 -0
  15. package/lib/_mods/parserModules/sectionID.js +56 -0
  16. package/lib/_mods/parserModules/tags.d.ts +9 -0
  17. package/lib/_mods/parserModules/tags.js +29 -0
  18. package/lib/_mods/parserModules/uaddminus.d.ts +9 -0
  19. package/lib/_mods/parserModules/uaddminus.js +42 -0
  20. package/lib/_mods/parserModules/variantCheck.d.ts +10 -0
  21. package/lib/_mods/parserModules/variantCheck.js +53 -0
  22. package/lib/_queenSystem/handler/actionGenrator.d.ts +994 -0
  23. package/lib/_queenSystem/handler/actionGenrator.js +646 -0
  24. package/lib/_queenSystem/handler/actionInputGenerator.d.ts +95 -0
  25. package/lib/_queenSystem/handler/actionInputGenerator.js +373 -0
  26. package/lib/_queenSystem/handler/actionInputRequesterGenerator.d.ts +92 -0
  27. package/lib/_queenSystem/handler/actionInputRequesterGenerator.js +341 -0
  28. package/lib/_queenSystem/handler/cardHandler.d.ts +20 -0
  29. package/lib/_queenSystem/handler/cardHandler.js +61 -0
  30. package/lib/_queenSystem/handler/effectGenerator.d.ts +1 -0
  31. package/lib/_queenSystem/handler/effectGenerator.js +127 -0
  32. package/lib/_queenSystem/handler/localizationHandler.d.ts +28 -0
  33. package/lib/_queenSystem/handler/localizationHandler.js +166 -0
  34. package/lib/_queenSystem/handler/modHandler.d.ts +10 -0
  35. package/lib/_queenSystem/handler/modHandler.js +36 -0
  36. package/lib/_queenSystem/handler/oldDataProcessor.d.ts +9 -0
  37. package/lib/_queenSystem/handler/oldDataProcessor.js +129 -0
  38. package/lib/_queenSystem/handler/registryHandler.d.ts +36 -0
  39. package/lib/_queenSystem/handler/registryHandler.js +63 -0
  40. package/lib/_queenSystem/handler/zoneHandler.d.ts +102 -0
  41. package/lib/_queenSystem/handler/zoneHandler.js +606 -0
  42. package/lib/_queenSystem/loader/loader_card.d.ts +20 -0
  43. package/lib/_queenSystem/loader/loader_card.js +124 -0
  44. package/lib/_queenSystem/loader/loader_effect.d.ts +27 -0
  45. package/lib/_queenSystem/loader/loader_effect.js +163 -0
  46. package/lib/_queenSystem/loader/loader_handler.d.ts +11 -0
  47. package/lib/_queenSystem/loader/loader_handler.js +24 -0
  48. package/lib/_queenSystem/loader/loader_localization.d.ts +11 -0
  49. package/lib/_queenSystem/loader/loader_localization.js +73 -0
  50. package/lib/_queenSystem/loader/loader_mod.d.ts +10 -0
  51. package/lib/_queenSystem/loader/loader_mod.js +72 -0
  52. package/lib/_queenSystem/loader/loader_subtype.d.ts +9 -0
  53. package/lib/_queenSystem/loader/loader_subtype.js +39 -0
  54. package/lib/_queenSystem/loader/loader_type.d.ts +9 -0
  55. package/lib/_queenSystem/loader/loader_type.js +39 -0
  56. package/lib/_queenSystem/loader/loader_zone.d.ts +14 -0
  57. package/lib/_queenSystem/loader/loader_zone.js +35 -0
  58. package/lib/_queenSystem/queenSystem.d.ts +127 -0
  59. package/lib/_queenSystem/queenSystem.js +996 -0
  60. package/lib/_queenSystem/renderer/rendererInterface.d.ts +9 -0
  61. package/lib/_queenSystem/renderer/rendererInterface.js +2 -0
  62. package/lib/data/actionRegistry.d.ts +56 -0
  63. package/lib/data/actionRegistry.js +60 -0
  64. package/lib/data/cardRegistry.d.ts +1162 -0
  65. package/lib/data/cardRegistry.js +716 -0
  66. package/lib/data/deckRegistry.d.ts +19 -0
  67. package/lib/data/deckRegistry.js +41 -0
  68. package/lib/data/effectRegistry.d.ts +465 -0
  69. package/lib/data/effectRegistry.js +151 -0
  70. package/lib/data/effectTypeRegistry.d.ts +14 -0
  71. package/lib/data/effectTypeRegistry.js +14 -0
  72. package/lib/data/operatorRegistry.d.ts +92 -0
  73. package/lib/data/operatorRegistry.js +82 -0
  74. package/lib/data/rarityRegistry.d.ts +28 -0
  75. package/lib/data/rarityRegistry.js +63 -0
  76. package/lib/data/registryRegistry.d.ts +10 -0
  77. package/lib/data/registryRegistry.js +14 -0
  78. package/lib/data/subtypeRegistry.d.ts +15 -0
  79. package/lib/data/subtypeRegistry.js +15 -0
  80. package/lib/data/systemRegistry.d.ts +253 -0
  81. package/lib/data/systemRegistry.js +56 -0
  82. package/lib/data/zoneRegistry.d.ts +43 -0
  83. package/lib/data/zoneRegistry.js +157 -0
  84. package/lib/effectTextParser/index.d.ts +42 -0
  85. package/lib/effectTextParser/index.js +316 -0
  86. package/lib/global/index.d.ts +8 -0
  87. package/lib/global/index.js +12 -0
  88. package/lib/index.d.ts +6344 -0
  89. package/lib/index.js +213 -0
  90. package/lib/specificEffects/e_cond.d.ts +11 -0
  91. package/lib/specificEffects/e_cond.js +36 -0
  92. package/lib/specificEffects/e_fruit.d.ts +3 -0
  93. package/lib/specificEffects/e_fruit.js +187 -0
  94. package/lib/specificEffects/e_generic.d.ts +191 -0
  95. package/lib/specificEffects/e_generic.js +662 -0
  96. package/lib/specificEffects/e_generic_cardTargetting.d.ts +38 -0
  97. package/lib/specificEffects/e_generic_cardTargetting.js +82 -0
  98. package/lib/specificEffects/e_generic_noneTargetting.d.ts +10 -0
  99. package/lib/specificEffects/e_generic_noneTargetting.js +26 -0
  100. package/lib/specificEffects/e_status.d.ts +80 -0
  101. package/lib/specificEffects/e_status.js +151 -0
  102. package/lib/specificEffects/e_test.d.ts +3 -0
  103. package/lib/specificEffects/e_test.js +21 -0
  104. package/lib/types/abstract/gameComponents/API.d.ts +19 -0
  105. package/lib/types/abstract/gameComponents/API.js +2 -0
  106. package/lib/types/abstract/gameComponents/card.d.ts +108 -0
  107. package/lib/types/abstract/gameComponents/card.js +771 -0
  108. package/lib/types/abstract/gameComponents/effect.d.ts +82 -0
  109. package/lib/types/abstract/gameComponents/effect.js +331 -0
  110. package/lib/types/abstract/gameComponents/effectSubtype.d.ts +22 -0
  111. package/lib/types/abstract/gameComponents/effectSubtype.js +40 -0
  112. package/lib/types/abstract/gameComponents/effectType.d.ts +11 -0
  113. package/lib/types/abstract/gameComponents/effectType.js +8 -0
  114. package/lib/types/abstract/gameComponents/settings.d.ts +80 -0
  115. package/lib/types/abstract/gameComponents/settings.js +68 -0
  116. package/lib/types/abstract/gameComponents/zone.d.ts +113 -0
  117. package/lib/types/abstract/gameComponents/zone.js +614 -0
  118. package/lib/types/abstract/gameComponents/zone_gridBased.d.ts +18 -0
  119. package/lib/types/abstract/gameComponents/zone_gridBased.js +58 -0
  120. package/lib/types/abstract/gameComponents/zone_stackBased.d.ts +13 -0
  121. package/lib/types/abstract/gameComponents/zone_stackBased.js +55 -0
  122. package/lib/types/abstract/generics/node.d.ts +23 -0
  123. package/lib/types/abstract/generics/node.js +46 -0
  124. package/lib/types/abstract/generics/position.d.ts +23 -0
  125. package/lib/types/abstract/generics/position.js +91 -0
  126. package/lib/types/abstract/generics/tree.d.ts +25 -0
  127. package/lib/types/abstract/generics/tree.js +153 -0
  128. package/lib/types/abstract/generics/universalResponse.d.ts +4 -0
  129. package/lib/types/abstract/generics/universalResponse.js +2 -0
  130. package/lib/types/abstract/generics/wraper.d.ts +21 -0
  131. package/lib/types/abstract/generics/wraper.js +56 -0
  132. package/lib/types/abstract/parser/component.d.ts +88 -0
  133. package/lib/types/abstract/parser/component.js +132 -0
  134. package/lib/types/abstract/parser/index.d.ts +6 -0
  135. package/lib/types/abstract/parser/index.js +28 -0
  136. package/lib/types/abstract/parser/modPack.d.ts +21 -0
  137. package/lib/types/abstract/parser/modPack.js +48 -0
  138. package/lib/types/abstract/parser/moduleInputObject.d.ts +12 -0
  139. package/lib/types/abstract/parser/moduleInputObject.js +21 -0
  140. package/lib/types/abstract/parser/options.d.ts +31 -0
  141. package/lib/types/abstract/parser/options.js +45 -0
  142. package/lib/types/abstract/serializedGameComponents/Gamestate.d.ts +46 -0
  143. package/lib/types/abstract/serializedGameComponents/Gamestate.js +70 -0
  144. package/lib/types/abstract/serializedGameComponents/Localized.d.ts +69 -0
  145. package/lib/types/abstract/serializedGameComponents/Localized.js +84 -0
  146. package/lib/types/defaultZones/ability.d.ts +10 -0
  147. package/lib/types/defaultZones/ability.js +22 -0
  148. package/lib/types/defaultZones/deck.d.ts +25 -0
  149. package/lib/types/defaultZones/deck.js +90 -0
  150. package/lib/types/defaultZones/drop.d.ts +5 -0
  151. package/lib/types/defaultZones/drop.js +13 -0
  152. package/lib/types/defaultZones/field.d.ts +11 -0
  153. package/lib/types/defaultZones/field.js +35 -0
  154. package/lib/types/defaultZones/grave.d.ts +8 -0
  155. package/lib/types/defaultZones/grave.js +21 -0
  156. package/lib/types/defaultZones/hand.d.ts +5 -0
  157. package/lib/types/defaultZones/hand.js +14 -0
  158. package/lib/types/defaultZones/storage.d.ts +9 -0
  159. package/lib/types/defaultZones/storage.js +21 -0
  160. package/lib/types/defaultZones/system.d.ts +12 -0
  161. package/lib/types/defaultZones/system.js +35 -0
  162. package/lib/types/defaultZones/void.d.ts +4 -0
  163. package/lib/types/defaultZones/void.js +10 -0
  164. package/lib/types/effects/effectSubtypes/subtype_chained.d.ts +10 -0
  165. package/lib/types/effects/effectSubtypes/subtype_chained.js +17 -0
  166. package/lib/types/effects/effectSubtypes/subtype_delayed.d.ts +9 -0
  167. package/lib/types/effects/effectSubtypes/subtype_delayed.js +16 -0
  168. package/lib/types/effects/effectSubtypes/subtype_fieldLock.d.ts +9 -0
  169. package/lib/types/effects/effectSubtypes/subtype_fieldLock.js +21 -0
  170. package/lib/types/effects/effectSubtypes/subtype_graveLock.d.ts +9 -0
  171. package/lib/types/effects/effectSubtypes/subtype_graveLock.js +21 -0
  172. package/lib/types/effects/effectSubtypes/subtype_hand_or_fieldLock.d.ts +9 -0
  173. package/lib/types/effects/effectSubtypes/subtype_hand_or_fieldLock.js +21 -0
  174. package/lib/types/effects/effectSubtypes/subtype_hardUnique.d.ts +9 -0
  175. package/lib/types/effects/effectSubtypes/subtype_hardUnique.js +15 -0
  176. package/lib/types/effects/effectSubtypes/subtype_instant.d.ts +8 -0
  177. package/lib/types/effects/effectSubtypes/subtype_instant.js +20 -0
  178. package/lib/types/effects/effectSubtypes/subtype_once.d.ts +12 -0
  179. package/lib/types/effects/effectSubtypes/subtype_once.js +27 -0
  180. package/lib/types/effects/effectSubtypes/subtype_unique.d.ts +9 -0
  181. package/lib/types/effects/effectSubtypes/subtype_unique.js +16 -0
  182. package/lib/types/effects/effectTypes/initEffect.d.ts +7 -0
  183. package/lib/types/effects/effectTypes/initEffect.js +23 -0
  184. package/lib/types/effects/effectTypes/lockEffect.d.ts +9 -0
  185. package/lib/types/effects/effectTypes/lockEffect.js +25 -0
  186. package/lib/types/effects/effectTypes/manualEffect.d.ts +9 -0
  187. package/lib/types/effects/effectTypes/manualEffect.js +18 -0
  188. package/lib/types/effects/effectTypes/passiveEffect.d.ts +9 -0
  189. package/lib/types/effects/effectTypes/passiveEffect.js +23 -0
  190. package/lib/types/effects/effectTypes/triggerEffect.d.ts +9 -0
  191. package/lib/types/effects/effectTypes/triggerEffect.js +28 -0
  192. package/lib/types/errors/cannotLoad.d.ts +5 -0
  193. package/lib/types/errors/cannotLoad.js +13 -0
  194. package/lib/types/errors/cardNotExist.d.ts +5 -0
  195. package/lib/types/errors/cardNotExist.js +13 -0
  196. package/lib/types/errors/cardNotInApplicableZone.d.ts +5 -0
  197. package/lib/types/errors/cardNotInApplicableZone.js +13 -0
  198. package/lib/types/errors/effectCondNotMet.d.ts +5 -0
  199. package/lib/types/errors/effectCondNotMet.js +13 -0
  200. package/lib/types/errors/effectNotExist.d.ts +5 -0
  201. package/lib/types/errors/effectNotExist.js +13 -0
  202. package/lib/types/errors/error.d.ts +17 -0
  203. package/lib/types/errors/error.js +42 -0
  204. package/lib/types/errors/incorrectActionType.d.ts +5 -0
  205. package/lib/types/errors/incorrectActionType.js +13 -0
  206. package/lib/types/errors/index.d.ts +16 -0
  207. package/lib/types/errors/index.js +36 -0
  208. package/lib/types/errors/invalidOrderMap.d.ts +6 -0
  209. package/lib/types/errors/invalidOrderMap.js +14 -0
  210. package/lib/types/errors/invalidPosition.d.ts +6 -0
  211. package/lib/types/errors/invalidPosition.js +13 -0
  212. package/lib/types/errors/subTypeOverrideConflict.d.ts +7 -0
  213. package/lib/types/errors/subTypeOverrideConflict.js +15 -0
  214. package/lib/types/errors/unknownError.d.ts +5 -0
  215. package/lib/types/errors/unknownError.js +13 -0
  216. package/lib/types/errors/unregisteredAction.d.ts +6 -0
  217. package/lib/types/errors/unregisteredAction.js +13 -0
  218. package/lib/types/errors/wrongEffectIdx.d.ts +5 -0
  219. package/lib/types/errors/wrongEffectIdx.js +14 -0
  220. package/lib/types/errors/zoneAttrConflict.d.ts +5 -0
  221. package/lib/types/errors/zoneAttrConflict.js +15 -0
  222. package/lib/types/errors/zoneFull.d.ts +5 -0
  223. package/lib/types/errors/zoneFull.js +13 -0
  224. package/lib/types/errors/zoneNotExist.d.ts +5 -0
  225. package/lib/types/errors/zoneNotExist.js +13 -0
  226. package/lib/types/misc.d.ts +97 -0
  227. package/lib/types/misc.js +8 -0
  228. package/lib/types/mods/effectTextParserModule.d.ts +16 -0
  229. package/lib/types/mods/effectTextParserModule.js +81 -0
  230. package/lib/types/mods/gameModule.d.ts +5 -0
  231. package/lib/types/mods/gameModule.js +8 -0
  232. package/lib/utils/index.d.ts +78 -0
  233. package/lib/utils/index.js +562 -0
  234. package/package.json +45 -0
@@ -0,0 +1,82 @@
1
+ import type { dry_card, dry_system, inputData, dry_effect, dry_zone, dry_position, inputData_card, inputData_zone } from "../../../data/systemRegistry";
2
+ import { type Action } from "../../../_queenSystem/handler/actionGenrator";
3
+ import type Card from "./card";
4
+ import type EffectSubtype from "./effectSubtype";
5
+ import type { effectData } from "../../../data/cardRegistry";
6
+ import EffectType from "./effectType";
7
+ import { id_able } from "../../misc";
8
+ import { inputRequester, inputRequester_finalized } from "../../../_queenSystem/handler/actionInputGenerator";
9
+ import { zoneRegistry } from "../../../data/zoneRegistry";
10
+ declare class Effect<inputTupleType extends inputData[] = inputData[]> {
11
+ id: string;
12
+ dataID: string;
13
+ type: EffectType;
14
+ subTypes: EffectSubtype[];
15
+ readonly originalData: effectData;
16
+ isDisabled: boolean;
17
+ attr: Map<string, number>;
18
+ get signature_type(): string;
19
+ get signature_type_subtype(): string;
20
+ canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
21
+ activate_final(c: dry_card, s: dry_system, a: Action, input: inputTupleType extends [] ? undefined : inputRequester_finalized<inputTupleType>): Action[];
22
+ private __cached_input;
23
+ addedInputConditionMap: Partial<{
24
+ c(c: dry_card): boolean;
25
+ e(e: dry_effect): boolean;
26
+ z(z: dry_zone): boolean;
27
+ p(p: dry_position): boolean;
28
+ n(n: number): boolean;
29
+ }>;
30
+ /** @final */
31
+ getInputObj(c: dry_card, s: dry_system, a: Action): inputTupleType extends [] ? undefined : inputRequester<any, inputTupleType>;
32
+ createInputObj(c: dry_card, s: dry_system, a: Action): inputTupleType extends [] ? undefined : inputRequester<any, inputTupleType>;
33
+ /** @final */
34
+ canRespondAndActivate_prelim(c: Card, system: dry_system, a: Action): boolean;
35
+ /** @final */
36
+ activate(c: Card, system: dry_system, a: Action, input: inputTupleType extends [] ? undefined : inputRequester_finalized<inputTupleType>): Action[];
37
+ /** @final */
38
+ getSubtypeidx(subtypeID: string): number;
39
+ activateSubtypeSpecificFunc(subtypeIdentifier: string | number, c: Card, system: dry_system, a: Action): Action[];
40
+ constructor(id: string, dataID: string, type: EffectType, subTypes: EffectSubtype[] | undefined, data: effectData);
41
+ get displayID(): string;
42
+ addSubType(st: EffectSubtype): void;
43
+ removeSubType(stid: string): void;
44
+ /** @final */
45
+ disable(): void;
46
+ /** @final */
47
+ toDry(): this;
48
+ /** @final */
49
+ enable(): void;
50
+ /** @final */
51
+ is(p: Function): this is boolean;
52
+ is(p: id_able): boolean;
53
+ get count(): number;
54
+ get doArchtypeCheck(): boolean;
55
+ get checkLevel(): number;
56
+ get mult(): number;
57
+ getDisplayInput(c: dry_card, system: dry_system): (string | number)[];
58
+ reset(): Action[];
59
+ toString(spaces?: number): string;
60
+ cause(s: dry_system, c: dry_card): import("../../../data/systemRegistry").identificationInfo_effect;
61
+ private overrideActivationCondition?;
62
+ static listen(f: Exclude<Effect<any>["overrideActivationCondition"], undefined>): typeof Effect;
63
+ static beforeActivate<T extends new (...p: any[]) => Effect<any>>(this: T, f: (this: Effect<any>, ...p: Parameters<ObjAfterConstructor<T>["activate_final"]>) => void): typeof Effect;
64
+ /**then
65
+ * Allows the quick creation of a new effect class
66
+ * overriding the original action[] result
67
+ * Does NOT asks for more input
68
+ * */
69
+ static then<T extends new (...p: any[]) => Effect<any>>(this: T, f: (this: Effect<any>, res: Action[], ...p: Parameters<ObjAfterConstructor<T>["activate_final"]>) => Action[]): typeof Effect;
70
+ static thenShares<T extends new (...p: any[]) => Effect<any>>(this: T, f: (this: Effect<any>, res: Action[], ...p: [...Parameters<ObjAfterConstructor<T>["activate_final"]>, Effect<any>]) => [string, number]): typeof Effect;
71
+ static implyCondition<T extends new (...p: any[]) => Effect<any>, K extends keyof Effect["addedInputConditionMap"]>(this: T, type: K, cond: (this: Effect<any>, p: Parameters<Exclude<Effect["addedInputConditionMap"][K], undefined>>[0], ...p2: Parameters<Exclude<Effect["overrideActivationCondition"], undefined>>) => boolean): T;
72
+ static removeInput<T extends new (...p: any[]) => Effect<any>, oldInputType extends inputData[] = T extends new (...p: any[]) => Effect<infer X> ? (X extends [] ? never : X) : never>(this: T, converter: (this: Effect<any>, ...p: [dry_card, dry_system, Action]) => oldInputType | oldInputType[]): typeof Effect<[]>;
73
+ static retarget<newInputType extends inputData[], T extends new (...p: any[]) => Effect<any>, oldInputType extends inputData[] = T extends new (...p: any[]) => Effect<infer X> ? (X extends [] ? never : X) : never>(this: T, newInputFunc: (this: Effect<any>, ...p: [dry_card, dry_system, Action]) => inputRequester<any, newInputType>, converter: (this: Effect<any>, newInput: newInputType, ...p: [dry_card, dry_system, Action]) => oldInputType | oldInputType[]): typeof Effect<newInputType>;
74
+ static toOthersOfSameField(this: typeof Effect<inputData_card[]>, filter?: (c: dry_card, thisCard: dry_card, s: dry_system, a: Action) => boolean): typeof Effect;
75
+ static toAllEnemies(this: typeof Effect<inputData_card[]>, filter?: (c: dry_card, thisCard: dry_card, s: dry_system, a: Action) => boolean): typeof Effect;
76
+ static toAllOfZone(this: typeof Effect<inputData_card[]>, newInputFunc: Effect<[inputData_zone]>["createInputObj"], filter?: (c: dry_card, thisCard: dry_card, s: dry_system, a: Action) => boolean): typeof Effect;
77
+ static toAllOfSpecificZone(this: typeof Effect<inputData_card[]>, type: zoneRegistry, filter?: (c: dry_card, thisCard: dry_card, s: dry_system, a: Action) => boolean): typeof Effect;
78
+ static toThisCard(this: typeof Effect<inputData_card[]>): typeof Effect;
79
+ static moreInput<originalInput extends Exclude<inputData[], []>, extraInput extends Exclude<inputData[], []>>(this: typeof Effect<originalInput>, moreInputFunc: (this: Effect<any>, c: dry_card, s: dry_system, a: Action) => inputRequester<any, extraInput>, handler?: (this: Effect<any>, c: dry_card, s: dry_system, a: Action, input: [...originalInput, ...extraInput]) => Action[]): typeof Effect<[...originalInput, ...extraInput]>;
80
+ }
81
+ type ObjAfterConstructor<T> = T extends new (...p: any[]) => infer K ? K : never;
82
+ export default Effect;
@@ -0,0 +1,331 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const actionGenrator_1 = require("../../../_queenSystem/handler/actionGenrator");
7
+ //some effects can modify event data
8
+ //so in general, activate takes in an event and spits out an event
9
+ const actionInputGenerator_1 = require("../../../_queenSystem/handler/actionInputGenerator");
10
+ const actionInputRequesterGenerator_1 = __importDefault(require("../../../_queenSystem/handler/actionInputRequesterGenerator"));
11
+ class Effect {
12
+ get signature_type() {
13
+ return this.type.dataID;
14
+ }
15
+ get signature_type_subtype() {
16
+ const sep = "===";
17
+ return this.signature_type + sep + this.subTypes.map(i => i.dataID).join(sep);
18
+ }
19
+ //actual effects override these two
20
+ canRespondAndActivate_final(c, system, a) { return this.constructor.name !== "Effect"; }
21
+ activate_final(c, s, a, input) { return []; }
22
+ ;
23
+ /** @final */
24
+ getInputObj(c, s, a) {
25
+ if (this.__cached_input.hasValue)
26
+ return this.__cached_input.value;
27
+ this.__cached_input = {
28
+ hasValue: true,
29
+ value: this.createInputObj(c, s, a)
30
+ };
31
+ return this.__cached_input.value;
32
+ }
33
+ //createInputObj should be deterministic
34
+ //activate once per activate call
35
+ createInputObj(c, s, a) {
36
+ return undefined;
37
+ }
38
+ //Update 1.2.6 : Move the condition closer to the activate, i.e inside it
39
+ //to avoid condition conflicts
40
+ //can repond -> 2 functions, canRespond_prelim and canRespond_final
41
+ /** @final */
42
+ canRespondAndActivate_prelim(c, system, a) {
43
+ let res = -1;
44
+ let trueForceFlag = false;
45
+ let falseForceFlag = false;
46
+ const overrideIndexes = [];
47
+ let skipTypeCheck = false;
48
+ if (this.isDisabled)
49
+ return false;
50
+ if (!c.canAct)
51
+ return false;
52
+ for (let i = 0; i < this.subTypes.length; i++) {
53
+ //if any non-disabled subtype returns returns that instead
54
+ if (this.subTypes[i].isDisabled)
55
+ continue;
56
+ res = this.subTypes[i].onEffectCheckCanActivate(c, this, system, a);
57
+ if (res === -1)
58
+ continue;
59
+ if (res === -2) {
60
+ skipTypeCheck = true;
61
+ continue;
62
+ }
63
+ if (res)
64
+ trueForceFlag = true;
65
+ else
66
+ falseForceFlag = true;
67
+ overrideIndexes.push(i);
68
+ }
69
+ //resolvin conflict
70
+ if (trueForceFlag && falseForceFlag) {
71
+ //conflict exists
72
+ //false is prioritized
73
+ // return new subTypeOverrideConflict(c.id, this.id, overrideIndexes)
74
+ return false;
75
+ }
76
+ if (trueForceFlag)
77
+ return true;
78
+ if (falseForceFlag)
79
+ return false;
80
+ if (!skipTypeCheck) {
81
+ res = this.type.canRespondAndActivate(this, c, system, a);
82
+ if (res !== -1)
83
+ return res;
84
+ }
85
+ //has input check
86
+ const gen = this.getInputObj(c, system, a);
87
+ if (gen !== undefined && !gen.hasInput())
88
+ return false;
89
+ // return this.canRespondAndActivate_final(c, system, a);
90
+ return true;
91
+ }
92
+ /** @final */
93
+ activate(c, system, a, input) {
94
+ this.__cached_input = {
95
+ hasValue: false
96
+ };
97
+ if (this.overrideActivationCondition && !this.overrideActivationCondition.bind(this)(c, system, a)) {
98
+ return [];
99
+ }
100
+ if (!this.canRespondAndActivate_final(c, system, a)) {
101
+ return [];
102
+ }
103
+ if (this.isDisabled)
104
+ return [];
105
+ if (!c.canAct)
106
+ return [];
107
+ let res = -1;
108
+ const appenddedRes = [];
109
+ for (let i = 0; i < this.subTypes.length; i++) {
110
+ if (this.subTypes[i].isDisabled)
111
+ continue;
112
+ res = this.subTypes[i].onEffectActivate(c, this, system, a);
113
+ if (res === -1)
114
+ continue;
115
+ appenddedRes.push(...res);
116
+ }
117
+ const final = this.activate_final(c, system, a, input);
118
+ this.type.parseAfterActivate(this, c, system, final);
119
+ this.subTypes.forEach(st => st.parseAfterActivate(c, this, system, final));
120
+ return final;
121
+ }
122
+ ;
123
+ /** @final */
124
+ getSubtypeidx(subtypeID) {
125
+ for (let i = 0; i > this.subTypes.length; i++) {
126
+ if (this.subTypes[i].dataID === subtypeID)
127
+ return i;
128
+ }
129
+ return -1;
130
+ }
131
+ activateSubtypeSpecificFunc(subtypeIdentifier, c, system, a) {
132
+ if (typeof subtypeIdentifier === "string") {
133
+ subtypeIdentifier = this.getSubtypeidx(subtypeIdentifier);
134
+ }
135
+ if (subtypeIdentifier < 0)
136
+ return [];
137
+ return this.subTypes[subtypeIdentifier].activateSpecificFunctionality(c, this, system, a);
138
+ }
139
+ constructor(id, dataID, type, subTypes = [], data) {
140
+ this.isDisabled = false; //I DO NOT LIKE THIS NAME
141
+ this.__cached_input = {
142
+ hasValue: false
143
+ };
144
+ //@unmodifiable
145
+ this.addedInputConditionMap = {};
146
+ this.id = id;
147
+ this.type = type;
148
+ this.subTypes = subTypes;
149
+ this.dataID = dataID;
150
+ this.originalData = data;
151
+ const k = Object.entries(data).filter(([_, val]) => typeof val === "number");
152
+ this.attr = new Map(k);
153
+ }
154
+ get displayID() { var _a; return (_a = this.originalData.displayID_default) !== null && _a !== void 0 ? _a : this.dataID; }
155
+ addSubType(st) {
156
+ this.subTypes.push(st);
157
+ }
158
+ removeSubType(stid) {
159
+ this.subTypes = this.subTypes.filter(i => i.dataID !== stid);
160
+ }
161
+ /** @final */
162
+ disable() {
163
+ this.isDisabled = true;
164
+ }
165
+ /** @final */
166
+ toDry() {
167
+ return this;
168
+ }
169
+ /** @final */
170
+ enable() {
171
+ this.isDisabled = false;
172
+ }
173
+ is(p) {
174
+ return typeof p === "function" ? this instanceof p : this.id === p.id;
175
+ }
176
+ //common variables
177
+ get count() { var _a; return (_a = this.attr.get("count")) !== null && _a !== void 0 ? _a : 0; }
178
+ get doArchtypeCheck() { return this.attr.get("doArchtypeCheck") != 0; } //!= is intentional to allow undefine = 0
179
+ get checkLevel() { var _a; return (_a = this.attr.get("checkLevel")) !== null && _a !== void 0 ? _a : 0; }
180
+ get mult() { var _a; return (_a = this.attr.get("mult")) !== null && _a !== void 0 ? _a : 1; }
181
+ //effect types:
182
+ // + trigger :
183
+ // responds to "effect resolution"
184
+ // adds each action return as a new tree
185
+ // + passive :
186
+ // responds to "effect activation"
187
+ // may modifies the action it responds to
188
+ // adds the effect to the current node as a child node to the current node
189
+ // + chained trigger :
190
+ // responds to "effect activation"
191
+ // adds a "activate effect" action as a child node to the current node, which activates this one
192
+ //^ implemented
193
+ getDisplayInput(c, system) {
194
+ return Object.keys(this.originalData).sort().map(k => { var _a; return (_a = this.attr.get(k)) !== null && _a !== void 0 ? _a : 0; });
195
+ }
196
+ reset() {
197
+ const res = [];
198
+ this.subTypes.forEach(i => res.push(...i.reset()));
199
+ return res;
200
+ }
201
+ toString(spaces = 2) {
202
+ return JSON.stringify({
203
+ dataID: this.dataID,
204
+ subTypes: this.subTypes,
205
+ // desc : this.desc,
206
+ attr: JSON.stringify(Array.from(Object.entries(this.attr)))
207
+ }, null, spaces);
208
+ }
209
+ cause(s, c) {
210
+ return actionGenrator_1.actionFormRegistry.effect(s, c, this);
211
+ }
212
+ static listen(f) {
213
+ return class ExtendedEff extends this {
214
+ constructor(...p) {
215
+ super(...p);
216
+ this.overrideActivationCondition = f.bind(this);
217
+ }
218
+ };
219
+ }
220
+ static beforeActivate(f) {
221
+ return class ExtendedEff extends this {
222
+ activate_final(...p) {
223
+ const k = p;
224
+ (f.bind(this))(...k);
225
+ return super.activate_final(...k);
226
+ }
227
+ };
228
+ }
229
+ /**then
230
+ * Allows the quick creation of a new effect class
231
+ * overriding the original action[] result
232
+ * Does NOT asks for more input
233
+ * */
234
+ static then(f) {
235
+ return class ExtendedEff extends this {
236
+ activate_final(...p) {
237
+ const k = p;
238
+ const res = super.activate_final(...k);
239
+ return (f.bind(this))(res, ...k);
240
+ }
241
+ };
242
+ }
243
+ static thenShares(f) {
244
+ return class ExtendedEff extends this {
245
+ activate_final(...p) {
246
+ const k = p;
247
+ const res = super.activate_final(...k);
248
+ const [key, val] = f.bind(this)(res, ...p, this);
249
+ p[0].addShareMemory(this, key, val);
250
+ return res;
251
+ }
252
+ };
253
+ }
254
+ static implyCondition(type, cond) {
255
+ return class ExtendedEff extends this {
256
+ createInputObj(c, s, a) {
257
+ this.addedInputConditionMap[type] =
258
+ ((c, s, a) => (target) => cond.bind(this)(target, c, s, a))(c, s, a);
259
+ const res = super.createInputObj(c, s, a);
260
+ delete this.addedInputConditionMap[type];
261
+ return res;
262
+ }
263
+ };
264
+ }
265
+ static removeInput(converter) {
266
+ const originalClass = this; //type dance to convert old -> new
267
+ return class ExtendedEff extends originalClass {
268
+ createInputObj(c, s, a) {
269
+ return undefined;
270
+ }
271
+ activate_final(c, s, a) {
272
+ const oldInput = converter.bind(this)(c, s, a);
273
+ const testObj = oldInput[0];
274
+ if (!testObj || !Array.isArray(testObj))
275
+ return super.activate_final(c, s, a, { next: () => oldInput });
276
+ return testObj.flatMap(o => super.activate_final(c, s, a, { next: () => o }));
277
+ }
278
+ };
279
+ }
280
+ static retarget(newInputFunc, converter) {
281
+ const originalClass = this; //type dance to convert old -> new
282
+ return class ExtendedEff extends originalClass {
283
+ createInputObj(c, s, a) {
284
+ return newInputFunc.bind(this)(c, s, a);
285
+ }
286
+ activate_final(c, s, a, input) {
287
+ const r = input === null || input === void 0 ? void 0 : input.next();
288
+ if (!r)
289
+ return [];
290
+ const oldInput = converter.bind(this)(r, c, s, a);
291
+ const testObj = oldInput[0];
292
+ if (!testObj || !Array.isArray(testObj))
293
+ return super.activate_final(c, s, a, { next: () => oldInput });
294
+ return testObj.flatMap(o => super.activate_final(c, s, a, { next: () => o }));
295
+ }
296
+ };
297
+ }
298
+ static toOthersOfSameField(filter) {
299
+ return this.removeInput((c, s, a) => s.getZoneOf(c).cardArr_filtered.filter(c1 => c1.id !== c.id && (!filter || filter(c1, c, s, a))).map(c1 => actionInputGenerator_1.inputFormRegistry.card(s, c1)));
300
+ }
301
+ static toAllEnemies(filter) {
302
+ return this.toAllOfZone((c, s, a) => actionInputRequesterGenerator_1.default.oppositeZoneTo(s, c).once(), filter);
303
+ }
304
+ static toAllOfZone(newInputFunc, filter) {
305
+ return this.retarget(newInputFunc, (z, c, s, a) => filter ?
306
+ z[0].data.zone.cardArr_filtered.filter(c1 => filter(c1, c, s, a)).map(c => actionInputGenerator_1.inputFormRegistry.card(s, c)) :
307
+ z[0].data.zone.cardArr_filtered.map(c => actionInputGenerator_1.inputFormRegistry.card(s, c)));
308
+ }
309
+ static toAllOfSpecificZone(type, filter) {
310
+ return this.toAllOfZone((c, s, a) => actionInputRequesterGenerator_1.default.specificType(s, c, type).once(), filter);
311
+ }
312
+ static toThisCard() {
313
+ return this.removeInput((c, s, a) => [actionInputGenerator_1.inputFormRegistry.card(s, c)]);
314
+ }
315
+ static moreInput(moreInputFunc, handler) {
316
+ const originalClass = this;
317
+ return class ExtendedEff extends originalClass {
318
+ createInputObj(c, s, a) {
319
+ this.___input_original = super.createInputObj(c, s, a);
320
+ return this.___input_original.merge(moreInputFunc.bind(this)(c, s, a));
321
+ }
322
+ activate_final(c, s, a, input) {
323
+ const a1 = super.activate_final(c, s, a, this.___input_original);
324
+ if (!handler)
325
+ return a1;
326
+ return a1.concat(handler.bind(this)(c, s, a, input.next()));
327
+ }
328
+ };
329
+ }
330
+ }
331
+ exports.default = Effect;
@@ -0,0 +1,22 @@
1
+ import type Card from "./card";
2
+ import type { dry_system } from "../../../data/systemRegistry";
3
+ import type { Action } from "../../../_queenSystem/handler/actionGenrator";
4
+ import type Effect from "./effect";
5
+ import { dry_effectSubType } from "../../../data/systemRegistry";
6
+ type doNothingCode = -1;
7
+ type doNothingAndSkipTypeCheckCode = -2;
8
+ declare class EffectSubtype {
9
+ dataID: string;
10
+ isDisabled: boolean;
11
+ constructor(dataID: string);
12
+ onEffectCheckCanActivate(c: Card, e: Effect, system: dry_system, a: Action): doNothingCode | doNothingAndSkipTypeCheckCode | boolean;
13
+ onEffectActivate(c: Card, e: Effect, system: dry_system, a: Action): doNothingCode | Action[];
14
+ parseAfterActivate(c: Card, e: Effect, system: dry_system, res: Action[]): void;
15
+ activateSpecificFunctionality(c: Card, e: Effect, system: dry_system, a: Action): Action[];
16
+ disable(): void;
17
+ enable(): void;
18
+ reset(): Action[];
19
+ toDry(): dry_effectSubType;
20
+ is(p: dry_effectSubType): boolean;
21
+ }
22
+ export default EffectSubtype;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class EffectSubtype {
4
+ constructor(dataID) {
5
+ this.isDisabled = false;
6
+ this.dataID = dataID;
7
+ }
8
+ //the job of this bullshit is to do additonal stuff before the two main functions
9
+ //of effect and may or may not override a forced return early
10
+ //remember, what returns here is simply the extra functionality of the subtype
11
+ //we do not care here what the fuck the effect do
12
+ onEffectCheckCanActivate(c, e, system, a) {
13
+ return -1;
14
+ }
15
+ onEffectActivate(c, e, system, a) {
16
+ //I hereby declare that
17
+ //subtypes cannot override effects
18
+ //whatever returns here shall be appended
19
+ return -1;
20
+ }
21
+ parseAfterActivate(c, e, system, res) { }
22
+ //this is for subtype specific functionality
23
+ activateSpecificFunctionality(c, e, system, a) { return []; }
24
+ disable() {
25
+ this.isDisabled = true;
26
+ }
27
+ enable() {
28
+ this.isDisabled = false;
29
+ }
30
+ reset() {
31
+ return [];
32
+ }
33
+ toDry() {
34
+ return this;
35
+ }
36
+ is(p) {
37
+ return p.dataID === this.dataID;
38
+ }
39
+ }
40
+ exports.default = EffectSubtype;
@@ -0,0 +1,11 @@
1
+ import type Card from "./card";
2
+ import type { dry_card, dry_effect, dry_system } from "../../../data/systemRegistry";
3
+ import type { Action } from "../../../_queenSystem/handler/actionGenrator";
4
+ type doNothingAndPassCode = -1;
5
+ export default class EffectType {
6
+ dataID: string;
7
+ constructor(dataID: string);
8
+ canRespondAndActivate(eff: dry_effect, c: dry_card, system: dry_system, a: Action): doNothingAndPassCode | boolean;
9
+ parseAfterActivate(eff: dry_effect, c: Card, system: dry_system, res: Action[]): void;
10
+ }
11
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class EffectType {
4
+ constructor(dataID) { this.dataID = dataID; }
5
+ canRespondAndActivate(eff, c, system, a) { return -1; }
6
+ parseAfterActivate(eff, c, system, res) { }
7
+ }
8
+ exports.default = EffectType;
@@ -0,0 +1,80 @@
1
+ import { partitionActivationBehavior } from "../../../data/cardRegistry";
2
+ export declare enum partitionSetting {
3
+ "manual_mapping_no_ghost" = 0,
4
+ "manual_mapping_with_ghost" = 1,//ghosts are gathered into a partition
5
+ "manual_mapping_with_ghost_spread" = 2,//ghosts are gathered one to one into multiple partition
6
+ "auto_mapping_types" = 3,//gather like-typed effects into a partition, no care ab subtype, sorted in enum order
7
+ "auto_mapping_subtypes" = 4,//gather like-subtyped and like-typed effects into a partition, sorted in type enum -> then sutype enum
8
+ "auto_mapping_one_to_one" = 5,//one to one map
9
+ "auto_mapping_ygo" = 6
10
+ }
11
+ export type partitionSetting_manual = partitionSetting.manual_mapping_no_ghost | partitionSetting.manual_mapping_with_ghost | partitionSetting.manual_mapping_with_ghost_spread;
12
+ export type partitionSetting_auto = partitionSetting.auto_mapping_one_to_one | partitionSetting.auto_mapping_subtypes | partitionSetting.auto_mapping_types | partitionSetting.auto_mapping_ygo;
13
+ declare enum supporttedLanguages {
14
+ "English" = 0,
15
+ "Japanese" = 1,
16
+ "testLang" = 2
17
+ }
18
+ declare enum id_style {
19
+ "MINIMAL" = 0,//absolute bare minimum for everything to function (randID + count)
20
+ "REDUCED" = 1,// dataID + minimal
21
+ "FULL" = 2
22
+ }
23
+ declare enum auto_input_option {
24
+ none = 0,//no assumtion, prompt input even if valid choices is only one
25
+ default = 1,//if valid choices is one, skip that input
26
+ first = 2,//auto chooses the first option available
27
+ last = 3,//auto chooses the last option
28
+ random = 4
29
+ }
30
+ interface Setting {
31
+ languageID: supporttedLanguages;
32
+ dynamic_id_len: number;
33
+ id_style: id_style;
34
+ id_separator: string;
35
+ max_id_count: number;
36
+ effectFolder: string;
37
+ effectFiles: string[];
38
+ mods: string[];
39
+ modFolder_game: string;
40
+ modFolder_parser: string;
41
+ localizationFolder: string;
42
+ ignore_undefined_subtype: boolean;
43
+ ignore_undefined_effect: boolean;
44
+ show_negative_stat: boolean;
45
+ auto_input: auto_input_option;
46
+ ignore_invalid_partition_mapping: boolean;
47
+ global_partition_setting: partitionSetting;
48
+ default_partition_behavior: partitionActivationBehavior;
49
+ parser_modules: string[];
50
+ singleton_effect_subtype: boolean;
51
+ singleton_effect_type: boolean;
52
+ spawn_instanced_zones_per_player: boolean;
53
+ }
54
+ declare class defaultSetting implements Setting {
55
+ languageID: supporttedLanguages;
56
+ mods: never[];
57
+ dynamic_id_len: number;
58
+ id_style: id_style;
59
+ id_separator: string;
60
+ max_id_count: number;
61
+ effectFolder: string;
62
+ effectFiles: string[];
63
+ modFolder_game: string;
64
+ modFolder_parser: string;
65
+ localizationFolder: string;
66
+ ignore_undefined_subtype: boolean;
67
+ ignore_undefined_effect: boolean;
68
+ show_negative_stat: boolean;
69
+ ignore_invalid_partition_mapping: boolean;
70
+ global_partition_setting: partitionSetting;
71
+ default_partition_behavior: partitionActivationBehavior;
72
+ parser_modules: string[];
73
+ singleton_effect_subtype: boolean;
74
+ singleton_effect_type: boolean;
75
+ spawn_instanced_zones_per_player: boolean;
76
+ auto_input: auto_input_option;
77
+ }
78
+ declare const _default: defaultSetting;
79
+ export default _default;
80
+ export { Setting, defaultSetting, supporttedLanguages, auto_input_option, id_style, };
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.id_style = exports.auto_input_option = exports.supporttedLanguages = exports.defaultSetting = exports.partitionSetting = void 0;
4
+ const cardRegistry_1 = require("../../../data/cardRegistry");
5
+ var partitionSetting;
6
+ (function (partitionSetting) {
7
+ partitionSetting[partitionSetting["manual_mapping_no_ghost"] = 0] = "manual_mapping_no_ghost";
8
+ partitionSetting[partitionSetting["manual_mapping_with_ghost"] = 1] = "manual_mapping_with_ghost";
9
+ partitionSetting[partitionSetting["manual_mapping_with_ghost_spread"] = 2] = "manual_mapping_with_ghost_spread";
10
+ partitionSetting[partitionSetting["auto_mapping_types"] = 3] = "auto_mapping_types";
11
+ partitionSetting[partitionSetting["auto_mapping_subtypes"] = 4] = "auto_mapping_subtypes";
12
+ partitionSetting[partitionSetting["auto_mapping_one_to_one"] = 5] = "auto_mapping_one_to_one";
13
+ partitionSetting[partitionSetting["auto_mapping_ygo"] = 6] = "auto_mapping_ygo"; //maps all effects to one partition (gonna be hella fun)
14
+ })(partitionSetting || (exports.partitionSetting = partitionSetting = {}));
15
+ var supporttedLanguages;
16
+ (function (supporttedLanguages) {
17
+ supporttedLanguages[supporttedLanguages["English"] = 0] = "English";
18
+ supporttedLanguages[supporttedLanguages["Japanese"] = 1] = "Japanese";
19
+ supporttedLanguages[supporttedLanguages["testLang"] = 2] = "testLang";
20
+ })(supporttedLanguages || (exports.supporttedLanguages = supporttedLanguages = {}));
21
+ var id_style;
22
+ (function (id_style) {
23
+ id_style[id_style["MINIMAL"] = 0] = "MINIMAL";
24
+ id_style[id_style["REDUCED"] = 1] = "REDUCED";
25
+ id_style[id_style["FULL"] = 2] = "FULL";
26
+ })(id_style || (exports.id_style = id_style = {}));
27
+ var auto_input_option;
28
+ (function (auto_input_option) {
29
+ auto_input_option[auto_input_option["none"] = 0] = "none";
30
+ auto_input_option[auto_input_option["default"] = 1] = "default";
31
+ //the below skips all input prompting
32
+ auto_input_option[auto_input_option["first"] = 2] = "first";
33
+ auto_input_option[auto_input_option["last"] = 3] = "last";
34
+ auto_input_option[auto_input_option["random"] = 4] = "random";
35
+ })(auto_input_option || (exports.auto_input_option = auto_input_option = {}));
36
+ class defaultSetting {
37
+ constructor() {
38
+ this.languageID = supporttedLanguages.English;
39
+ this.mods = []; //no mods
40
+ this.dynamic_id_len = 5;
41
+ this.id_style = id_style.MINIMAL;
42
+ this.id_separator = '';
43
+ this.max_id_count = 65536;
44
+ this.effectFolder = "../../specificEffects";
45
+ this.effectFiles = [
46
+ "e_test",
47
+ "e_status",
48
+ "e_generic",
49
+ "e_fruit",
50
+ ];
51
+ this.modFolder_game = "../_mods/gameModules";
52
+ this.modFolder_parser = "../_mods/parserModules";
53
+ this.localizationFolder = "../../_localizationFiles";
54
+ this.ignore_undefined_subtype = true;
55
+ this.ignore_undefined_effect = true;
56
+ this.show_negative_stat = true;
57
+ this.ignore_invalid_partition_mapping = false;
58
+ this.global_partition_setting = partitionSetting.manual_mapping_no_ghost;
59
+ this.default_partition_behavior = cardRegistry_1.partitionActivationBehavior.strict;
60
+ this.parser_modules = ["qpOriginal"];
61
+ this.singleton_effect_subtype = true;
62
+ this.singleton_effect_type = true;
63
+ this.spawn_instanced_zones_per_player = false;
64
+ this.auto_input = auto_input_option.default;
65
+ }
66
+ }
67
+ exports.defaultSetting = defaultSetting;
68
+ exports.default = new defaultSetting();