qpremake 1.5.2 → 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.
- package/README.md +335 -180
- package/package.json +2 -7
- package/lib/_localizationFiles/English.d.ts +0 -2
- package/lib/_localizationFiles/English.js +0 -307
- package/lib/_mods/parserModules/addSymbol.d.ts +0 -7
- package/lib/_mods/parserModules/addSymbol.js +0 -18
- package/lib/_mods/parserModules/expression.d.ts +0 -7
- package/lib/_mods/parserModules/expression.js +0 -45
- package/lib/_mods/parserModules/expression_parser.d.ts +0 -143
- package/lib/_mods/parserModules/expression_parser.js +0 -728
- package/lib/_mods/parserModules/img.d.ts +0 -8
- package/lib/_mods/parserModules/img.js +0 -42
- package/lib/_mods/parserModules/qpOriginal.d.ts +0 -5
- package/lib/_mods/parserModules/qpOriginal.js +0 -27
- package/lib/_mods/parserModules/sectionID.d.ts +0 -13
- package/lib/_mods/parserModules/sectionID.js +0 -56
- package/lib/_mods/parserModules/tags.d.ts +0 -9
- package/lib/_mods/parserModules/tags.js +0 -29
- package/lib/_mods/parserModules/uaddminus.d.ts +0 -9
- package/lib/_mods/parserModules/uaddminus.js +0 -42
- package/lib/_mods/parserModules/variantCheck.d.ts +0 -10
- package/lib/_mods/parserModules/variantCheck.js +0 -53
- package/lib/_queenSystem/handler/actionGenrator.d.ts +0 -994
- package/lib/_queenSystem/handler/actionGenrator.js +0 -646
- package/lib/_queenSystem/handler/actionInputGenerator.d.ts +0 -95
- package/lib/_queenSystem/handler/actionInputGenerator.js +0 -373
- package/lib/_queenSystem/handler/actionInputRequesterGenerator.d.ts +0 -92
- package/lib/_queenSystem/handler/actionInputRequesterGenerator.js +0 -341
- package/lib/_queenSystem/handler/cardHandler.d.ts +0 -20
- package/lib/_queenSystem/handler/cardHandler.js +0 -61
- package/lib/_queenSystem/handler/effectGenerator.d.ts +0 -1
- package/lib/_queenSystem/handler/effectGenerator.js +0 -127
- package/lib/_queenSystem/handler/localizationHandler.d.ts +0 -28
- package/lib/_queenSystem/handler/localizationHandler.js +0 -166
- package/lib/_queenSystem/handler/modHandler.d.ts +0 -10
- package/lib/_queenSystem/handler/modHandler.js +0 -36
- package/lib/_queenSystem/handler/oldDataProcessor.d.ts +0 -9
- package/lib/_queenSystem/handler/oldDataProcessor.js +0 -129
- package/lib/_queenSystem/handler/registryHandler.d.ts +0 -36
- package/lib/_queenSystem/handler/registryHandler.js +0 -63
- package/lib/_queenSystem/handler/zoneHandler.d.ts +0 -102
- package/lib/_queenSystem/handler/zoneHandler.js +0 -606
- package/lib/_queenSystem/loader/loader_card.d.ts +0 -20
- package/lib/_queenSystem/loader/loader_card.js +0 -124
- package/lib/_queenSystem/loader/loader_effect.d.ts +0 -27
- package/lib/_queenSystem/loader/loader_effect.js +0 -163
- package/lib/_queenSystem/loader/loader_handler.d.ts +0 -11
- package/lib/_queenSystem/loader/loader_handler.js +0 -24
- package/lib/_queenSystem/loader/loader_localization.d.ts +0 -11
- package/lib/_queenSystem/loader/loader_localization.js +0 -73
- package/lib/_queenSystem/loader/loader_mod.d.ts +0 -10
- package/lib/_queenSystem/loader/loader_mod.js +0 -72
- package/lib/_queenSystem/loader/loader_subtype.d.ts +0 -9
- package/lib/_queenSystem/loader/loader_subtype.js +0 -39
- package/lib/_queenSystem/loader/loader_type.d.ts +0 -9
- package/lib/_queenSystem/loader/loader_type.js +0 -39
- package/lib/_queenSystem/loader/loader_zone.d.ts +0 -14
- package/lib/_queenSystem/loader/loader_zone.js +0 -35
- package/lib/_queenSystem/queenSystem.d.ts +0 -127
- package/lib/_queenSystem/queenSystem.js +0 -996
- package/lib/_queenSystem/renderer/rendererInterface.d.ts +0 -9
- package/lib/_queenSystem/renderer/rendererInterface.js +0 -2
- package/lib/data/actionRegistry.d.ts +0 -56
- package/lib/data/actionRegistry.js +0 -60
- package/lib/data/cardRegistry.d.ts +0 -1162
- package/lib/data/cardRegistry.js +0 -716
- package/lib/data/deckRegistry.d.ts +0 -19
- package/lib/data/deckRegistry.js +0 -41
- package/lib/data/effectRegistry.d.ts +0 -465
- package/lib/data/effectRegistry.js +0 -151
- package/lib/data/effectTypeRegistry.d.ts +0 -14
- package/lib/data/effectTypeRegistry.js +0 -14
- package/lib/data/operatorRegistry.d.ts +0 -92
- package/lib/data/operatorRegistry.js +0 -82
- package/lib/data/rarityRegistry.d.ts +0 -28
- package/lib/data/rarityRegistry.js +0 -63
- package/lib/data/registryRegistry.d.ts +0 -10
- package/lib/data/registryRegistry.js +0 -14
- package/lib/data/subtypeRegistry.d.ts +0 -15
- package/lib/data/subtypeRegistry.js +0 -15
- package/lib/data/systemRegistry.d.ts +0 -253
- package/lib/data/systemRegistry.js +0 -56
- package/lib/data/zoneRegistry.d.ts +0 -43
- package/lib/data/zoneRegistry.js +0 -157
- package/lib/effectTextParser/index.d.ts +0 -42
- package/lib/effectTextParser/index.js +0 -316
- package/lib/global/index.d.ts +0 -8
- package/lib/global/index.js +0 -12
- package/lib/index.d.ts +0 -6341
- package/lib/index.js +0 -212
- package/lib/specificEffects/e_cond.d.ts +0 -11
- package/lib/specificEffects/e_cond.js +0 -36
- package/lib/specificEffects/e_fruit.d.ts +0 -3
- package/lib/specificEffects/e_fruit.js +0 -187
- package/lib/specificEffects/e_generic.d.ts +0 -191
- package/lib/specificEffects/e_generic.js +0 -662
- package/lib/specificEffects/e_generic_cardTargetting.d.ts +0 -38
- package/lib/specificEffects/e_generic_cardTargetting.js +0 -82
- package/lib/specificEffects/e_generic_noneTargetting.d.ts +0 -10
- package/lib/specificEffects/e_generic_noneTargetting.js +0 -26
- package/lib/specificEffects/e_status.d.ts +0 -80
- package/lib/specificEffects/e_status.js +0 -151
- package/lib/specificEffects/e_test.d.ts +0 -3
- package/lib/specificEffects/e_test.js +0 -21
- package/lib/types/abstract/gameComponents/API.d.ts +0 -19
- package/lib/types/abstract/gameComponents/API.js +0 -2
- package/lib/types/abstract/gameComponents/card.d.ts +0 -108
- package/lib/types/abstract/gameComponents/card.js +0 -771
- package/lib/types/abstract/gameComponents/effect.d.ts +0 -82
- package/lib/types/abstract/gameComponents/effect.js +0 -331
- package/lib/types/abstract/gameComponents/effectSubtype.d.ts +0 -22
- package/lib/types/abstract/gameComponents/effectSubtype.js +0 -40
- package/lib/types/abstract/gameComponents/effectType.d.ts +0 -11
- package/lib/types/abstract/gameComponents/effectType.js +0 -8
- package/lib/types/abstract/gameComponents/settings.d.ts +0 -80
- package/lib/types/abstract/gameComponents/settings.js +0 -68
- package/lib/types/abstract/gameComponents/zone.d.ts +0 -113
- package/lib/types/abstract/gameComponents/zone.js +0 -614
- package/lib/types/abstract/gameComponents/zone_gridBased.d.ts +0 -18
- package/lib/types/abstract/gameComponents/zone_gridBased.js +0 -58
- package/lib/types/abstract/gameComponents/zone_stackBased.d.ts +0 -13
- package/lib/types/abstract/gameComponents/zone_stackBased.js +0 -55
- package/lib/types/abstract/generics/node.d.ts +0 -23
- package/lib/types/abstract/generics/node.js +0 -46
- package/lib/types/abstract/generics/position.d.ts +0 -23
- package/lib/types/abstract/generics/position.js +0 -91
- package/lib/types/abstract/generics/tree.d.ts +0 -25
- package/lib/types/abstract/generics/tree.js +0 -153
- package/lib/types/abstract/generics/universalResponse.d.ts +0 -4
- package/lib/types/abstract/generics/universalResponse.js +0 -2
- package/lib/types/abstract/generics/wraper.d.ts +0 -21
- package/lib/types/abstract/generics/wraper.js +0 -56
- package/lib/types/abstract/parser/component.d.ts +0 -88
- package/lib/types/abstract/parser/component.js +0 -132
- package/lib/types/abstract/parser/index.d.ts +0 -6
- package/lib/types/abstract/parser/index.js +0 -28
- package/lib/types/abstract/parser/modPack.d.ts +0 -21
- package/lib/types/abstract/parser/modPack.js +0 -48
- package/lib/types/abstract/parser/moduleInputObject.d.ts +0 -12
- package/lib/types/abstract/parser/moduleInputObject.js +0 -21
- package/lib/types/abstract/parser/options.d.ts +0 -31
- package/lib/types/abstract/parser/options.js +0 -45
- package/lib/types/abstract/serializedGameComponents/Gamestate.d.ts +0 -46
- package/lib/types/abstract/serializedGameComponents/Gamestate.js +0 -70
- package/lib/types/abstract/serializedGameComponents/Localized.d.ts +0 -69
- package/lib/types/abstract/serializedGameComponents/Localized.js +0 -84
- package/lib/types/defaultZones/ability.d.ts +0 -10
- package/lib/types/defaultZones/ability.js +0 -22
- package/lib/types/defaultZones/deck.d.ts +0 -25
- package/lib/types/defaultZones/deck.js +0 -90
- package/lib/types/defaultZones/drop.d.ts +0 -5
- package/lib/types/defaultZones/drop.js +0 -13
- package/lib/types/defaultZones/field.d.ts +0 -11
- package/lib/types/defaultZones/field.js +0 -35
- package/lib/types/defaultZones/grave.d.ts +0 -8
- package/lib/types/defaultZones/grave.js +0 -21
- package/lib/types/defaultZones/hand.d.ts +0 -5
- package/lib/types/defaultZones/hand.js +0 -14
- package/lib/types/defaultZones/storage.d.ts +0 -9
- package/lib/types/defaultZones/storage.js +0 -21
- package/lib/types/defaultZones/system.d.ts +0 -12
- package/lib/types/defaultZones/system.js +0 -35
- package/lib/types/defaultZones/void.d.ts +0 -4
- package/lib/types/defaultZones/void.js +0 -10
- package/lib/types/effects/effectSubtypes/subtype_chained.d.ts +0 -10
- package/lib/types/effects/effectSubtypes/subtype_chained.js +0 -17
- package/lib/types/effects/effectSubtypes/subtype_delayed.d.ts +0 -9
- package/lib/types/effects/effectSubtypes/subtype_delayed.js +0 -16
- package/lib/types/effects/effectSubtypes/subtype_fieldLock.d.ts +0 -9
- package/lib/types/effects/effectSubtypes/subtype_fieldLock.js +0 -21
- package/lib/types/effects/effectSubtypes/subtype_graveLock.d.ts +0 -9
- package/lib/types/effects/effectSubtypes/subtype_graveLock.js +0 -21
- package/lib/types/effects/effectSubtypes/subtype_hand_or_fieldLock.d.ts +0 -9
- package/lib/types/effects/effectSubtypes/subtype_hand_or_fieldLock.js +0 -21
- package/lib/types/effects/effectSubtypes/subtype_hardUnique.d.ts +0 -9
- package/lib/types/effects/effectSubtypes/subtype_hardUnique.js +0 -15
- package/lib/types/effects/effectSubtypes/subtype_instant.d.ts +0 -8
- package/lib/types/effects/effectSubtypes/subtype_instant.js +0 -20
- package/lib/types/effects/effectSubtypes/subtype_once.d.ts +0 -12
- package/lib/types/effects/effectSubtypes/subtype_once.js +0 -27
- package/lib/types/effects/effectSubtypes/subtype_unique.d.ts +0 -9
- package/lib/types/effects/effectSubtypes/subtype_unique.js +0 -16
- package/lib/types/effects/effectTypes/initEffect.d.ts +0 -7
- package/lib/types/effects/effectTypes/initEffect.js +0 -23
- package/lib/types/effects/effectTypes/lockEffect.d.ts +0 -9
- package/lib/types/effects/effectTypes/lockEffect.js +0 -25
- package/lib/types/effects/effectTypes/manualEffect.d.ts +0 -9
- package/lib/types/effects/effectTypes/manualEffect.js +0 -18
- package/lib/types/effects/effectTypes/passiveEffect.d.ts +0 -9
- package/lib/types/effects/effectTypes/passiveEffect.js +0 -23
- package/lib/types/effects/effectTypes/triggerEffect.d.ts +0 -9
- package/lib/types/effects/effectTypes/triggerEffect.js +0 -28
- package/lib/types/errors/cannotLoad.d.ts +0 -5
- package/lib/types/errors/cannotLoad.js +0 -13
- package/lib/types/errors/cardNotExist.d.ts +0 -5
- package/lib/types/errors/cardNotExist.js +0 -13
- package/lib/types/errors/cardNotInApplicableZone.d.ts +0 -5
- package/lib/types/errors/cardNotInApplicableZone.js +0 -13
- package/lib/types/errors/effectCondNotMet.d.ts +0 -5
- package/lib/types/errors/effectCondNotMet.js +0 -13
- package/lib/types/errors/effectNotExist.d.ts +0 -5
- package/lib/types/errors/effectNotExist.js +0 -13
- package/lib/types/errors/error.d.ts +0 -17
- package/lib/types/errors/error.js +0 -42
- package/lib/types/errors/incorrectActionType.d.ts +0 -5
- package/lib/types/errors/incorrectActionType.js +0 -13
- package/lib/types/errors/index.d.ts +0 -16
- package/lib/types/errors/index.js +0 -36
- package/lib/types/errors/invalidOrderMap.d.ts +0 -6
- package/lib/types/errors/invalidOrderMap.js +0 -14
- package/lib/types/errors/invalidPosition.d.ts +0 -6
- package/lib/types/errors/invalidPosition.js +0 -13
- package/lib/types/errors/subTypeOverrideConflict.d.ts +0 -7
- package/lib/types/errors/subTypeOverrideConflict.js +0 -15
- package/lib/types/errors/unknownError.d.ts +0 -5
- package/lib/types/errors/unknownError.js +0 -13
- package/lib/types/errors/unregisteredAction.d.ts +0 -6
- package/lib/types/errors/unregisteredAction.js +0 -13
- package/lib/types/errors/wrongEffectIdx.d.ts +0 -5
- package/lib/types/errors/wrongEffectIdx.js +0 -14
- package/lib/types/errors/zoneAttrConflict.d.ts +0 -5
- package/lib/types/errors/zoneAttrConflict.js +0 -15
- package/lib/types/errors/zoneFull.d.ts +0 -5
- package/lib/types/errors/zoneFull.js +0 -13
- package/lib/types/errors/zoneNotExist.d.ts +0 -5
- package/lib/types/errors/zoneNotExist.js +0 -13
- package/lib/types/misc.d.ts +0 -97
- package/lib/types/misc.js +0 -8
- package/lib/types/mods/effectTextParserModule.d.ts +0 -16
- package/lib/types/mods/effectTextParserModule.js +0 -81
- package/lib/types/mods/gameModule.d.ts +0 -5
- package/lib/types/mods/gameModule.js +0 -8
- package/lib/utils/index.d.ts +0 -78
- package/lib/utils/index.js +0 -562
package/lib/index.js
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.queenSystemUtils = exports.queenSystemComponents = exports.queenSystem = void 0;
|
|
40
|
-
/**
|
|
41
|
-
* Entry point for npm import
|
|
42
|
-
* Role:
|
|
43
|
-
* Import and export common symbols
|
|
44
|
-
* List how to use if need be
|
|
45
|
-
*/
|
|
46
|
-
const global_1 = __importDefault(require("./global"));
|
|
47
|
-
global_1.default.load();
|
|
48
|
-
const queenSystem_1 = __importDefault(require("./_queenSystem/queenSystem"));
|
|
49
|
-
exports.queenSystem = queenSystem_1.default;
|
|
50
|
-
// game component
|
|
51
|
-
const card_1 = __importDefault(require("./types/abstract/gameComponents/card"));
|
|
52
|
-
const effect_1 = __importDefault(require("./types/abstract/gameComponents/effect"));
|
|
53
|
-
// zones
|
|
54
|
-
const zone_1 = __importDefault(require("./types/abstract/gameComponents/zone"));
|
|
55
|
-
const zone_gridBased_1 = __importDefault(require("./types/abstract/gameComponents/zone_gridBased"));
|
|
56
|
-
const zone_stackBased_1 = __importDefault(require("./types/abstract/gameComponents/zone_stackBased"));
|
|
57
|
-
const ability_1 = __importDefault(require("./types/defaultZones/ability"));
|
|
58
|
-
const deck_1 = __importDefault(require("./types/defaultZones/deck"));
|
|
59
|
-
const drop_1 = __importDefault(require("./types/defaultZones/drop"));
|
|
60
|
-
const field_1 = __importDefault(require("./types/defaultZones/field"));
|
|
61
|
-
const grave_1 = __importDefault(require("./types/defaultZones/grave"));
|
|
62
|
-
const hand_1 = __importDefault(require("./types/defaultZones/hand"));
|
|
63
|
-
const storage_1 = __importDefault(require("./types/defaultZones/storage"));
|
|
64
|
-
const system_1 = __importDefault(require("./types/defaultZones/system"));
|
|
65
|
-
const void_1 = __importDefault(require("./types/defaultZones/void"));
|
|
66
|
-
// effect subtypes
|
|
67
|
-
const effectSubtype_1 = __importDefault(require("./types/abstract/gameComponents/effectSubtype"));
|
|
68
|
-
const subtype_chained_1 = __importDefault(require("./types/effects/effectSubtypes/subtype_chained"));
|
|
69
|
-
const subtype_delayed_1 = __importDefault(require("./types/effects/effectSubtypes/subtype_delayed"));
|
|
70
|
-
const subtype_fieldLock_1 = __importDefault(require("./types/effects/effectSubtypes/subtype_fieldLock"));
|
|
71
|
-
const subtype_graveLock_1 = __importDefault(require("./types/effects/effectSubtypes/subtype_graveLock"));
|
|
72
|
-
const subtype_hand_or_fieldLock_1 = __importDefault(require("./types/effects/effectSubtypes/subtype_hand_or_fieldLock"));
|
|
73
|
-
const subtype_hardUnique_1 = __importDefault(require("./types/effects/effectSubtypes/subtype_hardUnique"));
|
|
74
|
-
const subtype_instant_1 = __importDefault(require("./types/effects/effectSubtypes/subtype_instant"));
|
|
75
|
-
const subtype_once_1 = __importDefault(require("./types/effects/effectSubtypes/subtype_once"));
|
|
76
|
-
const subtype_unique_1 = __importDefault(require("./types/effects/effectSubtypes/subtype_unique"));
|
|
77
|
-
// effect types
|
|
78
|
-
const effectType_1 = __importDefault(require("./types/abstract/gameComponents/effectType"));
|
|
79
|
-
const initEffect_1 = __importDefault(require("./types/effects/effectTypes/initEffect"));
|
|
80
|
-
const lockEffect_1 = __importDefault(require("./types/effects/effectTypes/lockEffect"));
|
|
81
|
-
const manualEffect_1 = __importDefault(require("./types/effects/effectTypes/manualEffect"));
|
|
82
|
-
const passiveEffect_1 = __importDefault(require("./types/effects/effectTypes/passiveEffect"));
|
|
83
|
-
const triggerEffect_1 = __importDefault(require("./types/effects/effectTypes/triggerEffect"));
|
|
84
|
-
// default settings
|
|
85
|
-
const settings_1 = __importDefault(require("./types/abstract/gameComponents/settings"));
|
|
86
|
-
// serialized
|
|
87
|
-
const Gamestate_1 = require("./types/abstract/serializedGameComponents/Gamestate");
|
|
88
|
-
// localized
|
|
89
|
-
const Localized_1 = require("./types/abstract/serializedGameComponents/Localized");
|
|
90
|
-
// parser
|
|
91
|
-
const effectTextParser_1 = __importDefault(require("./effectTextParser"));
|
|
92
|
-
// actions
|
|
93
|
-
const actionGenrator_1 = require("./_queenSystem/handler/actionGenrator");
|
|
94
|
-
// Localizer
|
|
95
|
-
const localizationHandler_1 = __importDefault(require("./_queenSystem/handler/localizationHandler"));
|
|
96
|
-
// input request generator
|
|
97
|
-
const actionInputRequesterGenerator_1 = __importDefault(require("./_queenSystem/handler/actionInputRequesterGenerator"));
|
|
98
|
-
// modules
|
|
99
|
-
const gameModule_1 = __importDefault(require("./types/mods/gameModule"));
|
|
100
|
-
const effectTextParserModule_1 = require("./types/mods/effectTextParserModule");
|
|
101
|
-
const parser_1 = require("./types/abstract/parser");
|
|
102
|
-
// enums
|
|
103
|
-
const actionRegistry_1 = __importDefault(require("./data/actionRegistry"));
|
|
104
|
-
const cardRegistry_1 = require("./data/cardRegistry");
|
|
105
|
-
const effectRegistry_1 = __importDefault(require("./data/effectRegistry"));
|
|
106
|
-
const effectTypeRegistry_1 = __importDefault(require("./data/effectTypeRegistry"));
|
|
107
|
-
const operatorRegistry_1 = __importStar(require("./data/operatorRegistry"));
|
|
108
|
-
const rarityRegistry_1 = __importStar(require("./data/rarityRegistry"));
|
|
109
|
-
const zoneRegistry_1 = __importStar(require("./data/zoneRegistry"));
|
|
110
|
-
const subtypeRegistry_1 = __importDefault(require("./data/subtypeRegistry"));
|
|
111
|
-
const queenSystemComponents = {
|
|
112
|
-
"gameComponent": {
|
|
113
|
-
"Action": actionGenrator_1.Action_class,
|
|
114
|
-
Card: card_1.default,
|
|
115
|
-
Effect: effect_1.default,
|
|
116
|
-
Zone_grid: zone_gridBased_1.default, Zone_stack: zone_stackBased_1.default,
|
|
117
|
-
"Zone": {
|
|
118
|
-
"ParentClass": zone_1.default,
|
|
119
|
-
Ability: ability_1.default,
|
|
120
|
-
Deck: deck_1.default,
|
|
121
|
-
Drop: drop_1.default,
|
|
122
|
-
Field: field_1.default,
|
|
123
|
-
Grave: grave_1.default,
|
|
124
|
-
Hand: hand_1.default,
|
|
125
|
-
Storage: storage_1.default,
|
|
126
|
-
System: system_1.default,
|
|
127
|
-
Void: void_1.default
|
|
128
|
-
},
|
|
129
|
-
"EffectSubType": {
|
|
130
|
-
"ParentClass": effectSubtype_1.default,
|
|
131
|
-
Chained: subtype_chained_1.default,
|
|
132
|
-
Delayed: subtype_delayed_1.default,
|
|
133
|
-
FieldLock: subtype_fieldLock_1.default,
|
|
134
|
-
GraveLock: subtype_graveLock_1.default,
|
|
135
|
-
HandOrFieldLock: subtype_hand_or_fieldLock_1.default,
|
|
136
|
-
HardUnique: subtype_hardUnique_1.default,
|
|
137
|
-
Instant: subtype_instant_1.default,
|
|
138
|
-
Once: subtype_once_1.default,
|
|
139
|
-
Unique: subtype_unique_1.default
|
|
140
|
-
},
|
|
141
|
-
"EffectType": {
|
|
142
|
-
"ParentClass": effectType_1.default,
|
|
143
|
-
InitEffect: initEffect_1.default,
|
|
144
|
-
LockEffect: lockEffect_1.default,
|
|
145
|
-
ManualEffect: manualEffect_1.default,
|
|
146
|
-
PassiveEffect: passiveEffect_1.default,
|
|
147
|
-
TriggerEffect: triggerEffect_1.default
|
|
148
|
-
},
|
|
149
|
-
"Serialized": {
|
|
150
|
-
SerializedCard: Gamestate_1.SerializedCard,
|
|
151
|
-
Serialized_effect: Gamestate_1.Serialized_effect,
|
|
152
|
-
SerializedZone: Gamestate_1.SerializedZone,
|
|
153
|
-
SerializedPlayer: Gamestate_1.SerializedPlayer,
|
|
154
|
-
SerializedSystem: Gamestate_1.SerializedSystem,
|
|
155
|
-
},
|
|
156
|
-
"Localized": {
|
|
157
|
-
LocalizedAction: Localized_1.LocalizedAction,
|
|
158
|
-
LocalizedCard: Localized_1.LocalizedCard,
|
|
159
|
-
LocalizedEffect: Localized_1.LocalizedEffect,
|
|
160
|
-
LocalizedZone: Localized_1.LocalizedZone,
|
|
161
|
-
LocalizedPlayer: Localized_1.LocalizedPlayer,
|
|
162
|
-
LocalizedSystem: Localized_1.LocalizedSystem,
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
"systemComponent": {
|
|
166
|
-
"effectTextParser": effectTextParser_1.default,
|
|
167
|
-
"localizer": localizationHandler_1.default,
|
|
168
|
-
"actionGenerator": actionGenrator_1.actionConstructorRegistry,
|
|
169
|
-
"inputRequester": actionInputRequesterGenerator_1.default,
|
|
170
|
-
},
|
|
171
|
-
"displayComponent": {
|
|
172
|
-
"ParentClass": parser_1.DisplayComponent,
|
|
173
|
-
TextComponent: parser_1.TextComponent,
|
|
174
|
-
IconComponent: parser_1.IconComponent,
|
|
175
|
-
ReferenceComponent: parser_1.ReferenceComponent,
|
|
176
|
-
ImageComponent: parser_1.ImageComponent,
|
|
177
|
-
SymbolComponent: parser_1.SymbolComponent,
|
|
178
|
-
},
|
|
179
|
-
"registry": {
|
|
180
|
-
actionRegistry: actionRegistry_1.default,
|
|
181
|
-
cardDataRegistry: cardRegistry_1.cardDataRegistry,
|
|
182
|
-
effectDataRegistry: effectRegistry_1.default,
|
|
183
|
-
effectTypeRegistry: effectTypeRegistry_1.default,
|
|
184
|
-
operatorRegistry: operatorRegistry_1.operatorRegistry,
|
|
185
|
-
operatorDataRegistry: operatorRegistry_1.default,
|
|
186
|
-
rarityRegistry: rarityRegistry_1.rarityRegistry,
|
|
187
|
-
rarityDataRegistry: rarityRegistry_1.default,
|
|
188
|
-
subtypeRegistry: subtypeRegistry_1.default,
|
|
189
|
-
zoneRegistry: zoneRegistry_1.zoneRegistry,
|
|
190
|
-
zoneDataRegistry: zoneRegistry_1.default,
|
|
191
|
-
},
|
|
192
|
-
"defaultSetting": settings_1.default,
|
|
193
|
-
"mod": {
|
|
194
|
-
GameModule: gameModule_1.default,
|
|
195
|
-
ParserModule: effectTextParserModule_1.ParserModule,
|
|
196
|
-
},
|
|
197
|
-
};
|
|
198
|
-
exports.queenSystemComponents = queenSystemComponents;
|
|
199
|
-
exports.default = queenSystem_1.default;
|
|
200
|
-
/**
|
|
201
|
-
* Usage :
|
|
202
|
-
*
|
|
203
|
-
* let setting = new defaultSetting()
|
|
204
|
-
let renderer = new qpTerminalRenderer()
|
|
205
|
-
let s = new queenSystem(setting, renderer)
|
|
206
|
-
renderer.bind(s)
|
|
207
|
-
s.addPlayers("player", operatorRegistry.o_esper)
|
|
208
|
-
s.addPlayers("enemy", operatorRegistry.o_null)
|
|
209
|
-
await s.load()
|
|
210
|
-
|
|
211
|
-
renderer.start();
|
|
212
|
-
*/
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Action } from "../_queenSystem/handler/actionGenrator";
|
|
2
|
-
import { dry_card, dry_system } from "../data/systemRegistry";
|
|
3
|
-
import Effect from "../types/abstract/gameComponents/effect";
|
|
4
|
-
/**@deprecated */
|
|
5
|
-
export declare class e_on_atk_destroy extends Effect {
|
|
6
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: {
|
|
9
|
-
e_on_atk_destroy: typeof e_on_atk_destroy;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//overriding for very specific conditions
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.e_on_atk_destroy = void 0;
|
|
8
|
-
const effect_1 = __importDefault(require("../types/abstract/gameComponents/effect"));
|
|
9
|
-
const systemRegistry_1 = require("../data/systemRegistry");
|
|
10
|
-
/**@deprecated */
|
|
11
|
-
class e_on_atk_destroy extends effect_1.default {
|
|
12
|
-
canRespondAndActivate_final(c, system, a) {
|
|
13
|
-
//so logically, it is
|
|
14
|
-
//whenever the action resolved an us attacking, deals damage, then destroy that attacked card
|
|
15
|
-
//we activate, reactivating this card
|
|
16
|
-
//hopefully this works?
|
|
17
|
-
let actionChain = system.findSpecificChainOfAction_resolve([
|
|
18
|
-
"a_attack",
|
|
19
|
-
"a_deal_damage_internal",
|
|
20
|
-
"a_destroy",
|
|
21
|
-
]);
|
|
22
|
-
if (!actionChain)
|
|
23
|
-
return false;
|
|
24
|
-
let dmgTarget = actionChain[1].targets[0].card;
|
|
25
|
-
let destroyTarget = actionChain[2].targets[0].card;
|
|
26
|
-
return (dmgTarget.id === destroyTarget.id &&
|
|
27
|
-
actionChain[0].cause.type === systemRegistry_1.identificationType.card &&
|
|
28
|
-
actionChain[0].cause.card.id === c.id &&
|
|
29
|
-
actionChain[1].cause.type === systemRegistry_1.identificationType.card &&
|
|
30
|
-
actionChain[1].cause.card.id === c.id);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.e_on_atk_destroy = e_on_atk_destroy;
|
|
34
|
-
exports.default = {
|
|
35
|
-
e_on_atk_destroy
|
|
36
|
-
};
|
|
@@ -1,187 +0,0 @@
|
|
|
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
|
-
const actionInputRequesterGenerator_1 = __importDefault(require("../_queenSystem/handler/actionInputRequesterGenerator"));
|
|
8
|
-
const zoneRegistry_1 = require("../data/zoneRegistry");
|
|
9
|
-
const actionGenrator_2 = require("../_queenSystem/handler/actionGenrator");
|
|
10
|
-
const effect_1 = __importDefault(require("../types/abstract/gameComponents/effect"));
|
|
11
|
-
const e_generic_1 = require("./e_generic");
|
|
12
|
-
const misc_1 = require("../types/misc");
|
|
13
|
-
const e_generic_cardTargetting_1 = require("./e_generic_cardTargetting");
|
|
14
|
-
class e_autumn extends effect_1.default {
|
|
15
|
-
activate_final(c, s, a, input) {
|
|
16
|
-
const cards = actionInputRequesterGenerator_1.default.field(s, c).ofSamePlayer(s.getZoneOf(c)).cards().ofArchtype("fruit").ofLevel(1).clean();
|
|
17
|
-
const cause = actionGenrator_2.actionFormRegistry.effect(s, c, this);
|
|
18
|
-
c.addShareMemory(this, "count", cards.length);
|
|
19
|
-
return cards.map(c => actionGenrator_1.actionConstructorRegistry.a_remove_all_effects(s, c)(cause));
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
class e_greenhouse extends e_generic_1.e_add_to_hand {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.___target_data_id = "";
|
|
26
|
-
}
|
|
27
|
-
canRespondAndActivate_final(c, s, a) {
|
|
28
|
-
var _a;
|
|
29
|
-
if (s.isPlayAction(a) && //a card is played
|
|
30
|
-
a.targets[0].card.level <= ((_a = this.attr.get("checkLevel")) !== null && _a !== void 0 ? _a : 1) && //that card level is this eff's checkLevel attr
|
|
31
|
-
a.targets[0].card.dataID !== c.dataID && //that card is not "GreenHouse"
|
|
32
|
-
a.targets[1].pos.zoneID === c.pos.zoneID && //the target pos is in the same zone as this card
|
|
33
|
-
s.getZoneOf(c).isC2Behind(c, a.targets[1]) //the target pos is behind this card
|
|
34
|
-
) {
|
|
35
|
-
this.___target_data_id = a.targets[0].card.dataID;
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
createInputObj(c, s, a) {
|
|
41
|
-
//one card from grave with the same name as the saved name
|
|
42
|
-
const r1 = actionInputRequesterGenerator_1.default.grave(s, c).ofSamePlayer(s.getZoneOf(c)).cards().ofDataID(this.___target_data_id).once();
|
|
43
|
-
const r2 = actionInputRequesterGenerator_1.default.hand(s, c).once();
|
|
44
|
-
return r1.merge(r2);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
class e_lemon extends effect_1.default {
|
|
48
|
-
activate_final(c, s, a, input) {
|
|
49
|
-
const cards = actionInputRequesterGenerator_1.default.field(s, c).ofSamePlayer(s.getZoneOf(c)).cards().ofSameDataID(c).clean();
|
|
50
|
-
const cause = actionGenrator_2.actionFormRegistry.effect(s, c, this);
|
|
51
|
-
return cards.map(c => actionGenrator_1.actionConstructorRegistry.a_attack(s, c)(cause, {
|
|
52
|
-
dmg: c.atk,
|
|
53
|
-
dmgType: misc_1.damageType.physical
|
|
54
|
-
}));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
class e_pomegranate extends effect_1.default {
|
|
58
|
-
get exposedDmg() { var _a; return (_a = this.attr.get("exposedDmg")) !== null && _a !== void 0 ? _a : 0; }
|
|
59
|
-
get coveredDmg() { var _a; return (_a = this.attr.get("coveredDmg")) !== null && _a !== void 0 ? _a : 0; }
|
|
60
|
-
createInputObj(c, s, a) {
|
|
61
|
-
return actionInputRequesterGenerator_1.default.oppositeZoneTo(s, c).once();
|
|
62
|
-
}
|
|
63
|
-
activate_final(c, s, a, input) {
|
|
64
|
-
const zone = input.next();
|
|
65
|
-
const cards = zone[0].data.zone.cardArr_filtered;
|
|
66
|
-
const cause = actionGenrator_2.actionFormRegistry.card(s, c);
|
|
67
|
-
return cards.map(c => actionGenrator_1.actionConstructorRegistry.a_deal_damage_card(s, c)(cause, {
|
|
68
|
-
dmg: s.getZoneOf(c).isExposed(c) ? this.exposedDmg : this.coveredDmg,
|
|
69
|
-
dmgType: misc_1.damageType.magic
|
|
70
|
-
}));
|
|
71
|
-
}
|
|
72
|
-
getDisplayInput(c, system) {
|
|
73
|
-
return [this.exposedDmg, this.coveredDmg];
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
class e_pollinate extends effect_1.default {
|
|
77
|
-
createInputObj(c, s, a) {
|
|
78
|
-
return actionInputRequesterGenerator_1.default.deck(s, c).cards().ofLevel(1).ofArchtype("fruit").filter(c => c.getFirstActualPartitionIndex() >= 0).once();
|
|
79
|
-
}
|
|
80
|
-
activate_final(c, s, a, input) {
|
|
81
|
-
const card = input.next()[0].data.card;
|
|
82
|
-
const cards = this.doArchtypeCheck ?
|
|
83
|
-
actionInputRequesterGenerator_1.default.hand(s, c).ofSamePlayer(s.getZoneOf(c)).cards().ofLevel(1).ofArchtype("fruit").clean() :
|
|
84
|
-
actionInputRequesterGenerator_1.default.hand(s, c).ofSamePlayer(s.getZoneOf(c)).cards().ofLevel(1).clean();
|
|
85
|
-
const cause = actionGenrator_2.actionFormRegistry.effect(s, c, this);
|
|
86
|
-
const pid = card.getFirstActualPartitionIndex();
|
|
87
|
-
return [
|
|
88
|
-
...cards.map(c => actionGenrator_1.actionConstructorRegistry.a_duplicate_effect(s, c)(card)(pid)(cause, {
|
|
89
|
-
addedSubtype: ["subtype_once"]
|
|
90
|
-
})),
|
|
91
|
-
];
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
class e_spring extends effect_1.default {
|
|
95
|
-
createInputObj(c, s, a) {
|
|
96
|
-
const r1 = actionInputRequesterGenerator_1.default.grave(s, c).ofSamePlayer(s.getZoneOf(c)).cards().ofAtLeastLevel(this.checkLevel).ofArchtype("fruit").once();
|
|
97
|
-
const r2 = actionInputRequesterGenerator_1.default.field(s, c).ofSamePlayer(s.getZoneOf(c)).pos().isEmpty().once();
|
|
98
|
-
return r1.merge(r2);
|
|
99
|
-
}
|
|
100
|
-
activate_final(c, s, a, input) {
|
|
101
|
-
const n = input.next();
|
|
102
|
-
const target_c = n[0].data.card;
|
|
103
|
-
const target_pos = n[1].data.pos;
|
|
104
|
-
const cause = this.cause(s, c);
|
|
105
|
-
const l = actionInputRequesterGenerator_1.default.grave(s, c).ofSamePlayer(s.getZoneOf(c)).cards().ofAtLeastLevel(this.checkLevel).ofArchtype("fruit").filter(c_ => c.id !== c_.id).clean().length - 1;
|
|
106
|
-
if (l < 0)
|
|
107
|
-
return [];
|
|
108
|
-
const a1 = actionGenrator_1.actionConstructorRegistry.a_duplicate_card(s, target_c)(target_pos)(cause, {
|
|
109
|
-
followUp: (c) => ((l) => [
|
|
110
|
-
actionGenrator_1.actionConstructorRegistry.a_add_status_effect("e_generic_stat_change_diff", true)(s, c)(cause, {
|
|
111
|
-
maxAtk: Math.max(l, 3),
|
|
112
|
-
})
|
|
113
|
-
])(l),
|
|
114
|
-
});
|
|
115
|
-
return [a1];
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
exports.default = {
|
|
119
|
-
//white
|
|
120
|
-
e_apple: e_generic_1.e_add_to_hand.implyCondition("c", (c, oldc, s) => c.dataID === oldc.dataID && //selection is same as this card
|
|
121
|
-
s.getZoneOf(c).is(zoneRegistry_1.zoneRegistry.z_deck) //selction is from deck
|
|
122
|
-
),
|
|
123
|
-
e_banana: e_generic_1.e_revive.implyCondition("c", function (c, oldC, _, _2) {
|
|
124
|
-
return c.dataID !== oldC.dataID && //selection is NOT same name as this card
|
|
125
|
-
c.level === 1 && //selection is lv1
|
|
126
|
-
(!this.doArchtypeCheck || //either dont do archtypecheck or
|
|
127
|
-
c.is("fruit") //selection has to be fruit
|
|
128
|
-
//this condition is upgrade and not upgrade in one
|
|
129
|
-
);
|
|
130
|
-
}),
|
|
131
|
-
e_lemon,
|
|
132
|
-
e_pomegranate,
|
|
133
|
-
e_pumpkin: e_generic_1.e_add_stat_change_diff.implyCondition("c", (c, c2) => c.dataID === c2.dataID),
|
|
134
|
-
//e_cherry is e_draw
|
|
135
|
-
//green
|
|
136
|
-
e_greenhouse,
|
|
137
|
-
e_pollinate,
|
|
138
|
-
//blue
|
|
139
|
-
e_autumn,
|
|
140
|
-
//e_autumn also has these 2 in its partition:
|
|
141
|
-
//e_draw
|
|
142
|
-
//e_add_stat_change_diff (if upgraded)
|
|
143
|
-
e_spring,
|
|
144
|
-
e_summer: e_generic_1.e_add_to_hand.retarget(function (c, s, a) {
|
|
145
|
-
const r1 = actionInputRequesterGenerator_1.default.grave(s, c).ofSamePlayer(s.getZoneOf(c)).cards().ofAtLeastLevel(this.checkLevel).ofArchtype("fruit").filter(c => c.dataID !== "c_summer").once(this);
|
|
146
|
-
const r2 = actionInputRequesterGenerator_1.default.hand(s, c).ofSamePlayer(s.getZoneOf(c)).once(this);
|
|
147
|
-
return r1.merge(r2);
|
|
148
|
-
}, (res) => res),
|
|
149
|
-
e_winter_1: e_generic_1.e_add_all_to_grave.implyCondition("c", function (c, oldC, s, a) {
|
|
150
|
-
return c.is("fruit") && c.dataID !== "c_winter" && c.level === 1;
|
|
151
|
-
}).thenShares(function (res, c, s, a, input) {
|
|
152
|
-
return ["MaxHp", res.length * this.mult];
|
|
153
|
-
}),
|
|
154
|
-
e_winter_2: e_generic_1.e_add_stat_change_diff.toAllOfZone(function (c, s, a) {
|
|
155
|
-
return actionInputRequesterGenerator_1.default.field(s, c).ofSamePlayer(s.getZoneOf(c)).once();
|
|
156
|
-
}),
|
|
157
|
-
//e_winter_3 is e_dmg_reduction
|
|
158
|
-
e_growth: e_generic_1.e_add_all_to_hand.implyCondition("c", function (c1, c, s, a) {
|
|
159
|
-
return (!this.doArchtypeCheck ||
|
|
160
|
-
c.is("fruit")) && (s.getZoneOf(c).is(zoneRegistry_1.zoneRegistry.z_grave));
|
|
161
|
-
}).thenShares(res => ["count", res.length]),
|
|
162
|
-
//red
|
|
163
|
-
e_demeter_1: e_generic_1.e_add_all_to_hand.implyCondition("c", (c, _, s) => c.level === 1 && c.isFrom(s, zoneRegistry_1.zoneRegistry.z_grave)),
|
|
164
|
-
e_demeter_2: e_generic_1.e_deal_dmg_ahead.listen((c, s, a) => s.isPlayAction(a)),
|
|
165
|
-
e_demeter_3: e_generic_1.e_lock.keyCondition((c, s, a) => {
|
|
166
|
-
const z = s.getZoneOf(c);
|
|
167
|
-
if (!z)
|
|
168
|
-
return false;
|
|
169
|
-
return actionInputRequesterGenerator_1.default.grave(s, c).ofSamePlayer(z).cards().ofArchtype("fruit").ofLevel(1).clean().length > 0;
|
|
170
|
-
}),
|
|
171
|
-
e_persephone_1: e_generic_cardTargetting_1.e_void.toAllOfZone((c, s, a) => actionInputRequesterGenerator_1.default.field(s, c).ofSamePlayer(s.getZoneOf(c)).once()).then((res, c, s, a) => {
|
|
172
|
-
const l = res.length * 2;
|
|
173
|
-
res.push(actionGenrator_1.actionConstructorRegistry.a_add_status_effect("e_generic_stat_change_diff", true)(s, c)(actionGenrator_2.actionFormRegistry.effect(s, c, this), {
|
|
174
|
-
maxAtk: l,
|
|
175
|
-
}));
|
|
176
|
-
return res;
|
|
177
|
-
}),
|
|
178
|
-
e_persephone_2: e_generic_1.e_add_stat_change_diff.listen((c, s, a) => a.is("a_attack") && a.targets[0].is(c)),
|
|
179
|
-
// e_persephone_2_2 : e_deal_damage_card.retargetToAllEnemies(),
|
|
180
|
-
e_persephone_3: e_generic_1.e_lock.keyCondition((c, s, a) => {
|
|
181
|
-
const z = s.getZoneOf(c);
|
|
182
|
-
if (!z)
|
|
183
|
-
return false;
|
|
184
|
-
const cardsInField = actionInputRequesterGenerator_1.default.field(s, c).ofSamePlayer(z).cards().ofArchtype("fruit").ofLevel(1).clean();
|
|
185
|
-
return (new Set(cardsInField.map(c => c.dataID))).size >= 3;
|
|
186
|
-
})
|
|
187
|
-
};
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import type { Action, Action_class } from "../_queenSystem/handler/actionGenrator";
|
|
2
|
-
import type { dry_system, dry_card, inputData_card, inputData_pos, identificationInfo, inputData_zone, inputData_standard } from "../data/systemRegistry";
|
|
3
|
-
import Effect from "../types/abstract/gameComponents/effect";
|
|
4
|
-
import Instant from "../types/effects/effectSubtypes/subtype_instant";
|
|
5
|
-
import { damageType } from "../types/misc";
|
|
6
|
-
import { zoneRegistry } from "../data/zoneRegistry";
|
|
7
|
-
import { inputRequester_finalized, inputRequester } from "../_queenSystem/handler/actionInputGenerator";
|
|
8
|
-
/**
|
|
9
|
-
* All typical effects should have 3 versions
|
|
10
|
-
* - target c or this
|
|
11
|
-
* - target inputs
|
|
12
|
-
* - target all of a higher order input (card -> zone, eff -> card)
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
export declare class e_quick extends Effect {
|
|
16
|
-
protected instant_subtype: Instant;
|
|
17
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
18
|
-
activate_final(c: dry_card, system: dry_system, a: Action): Action_class<[import("../data/systemRegistry").identificationInfo_action], boolean | [] | import("../data/systemRegistry").identificationInfo_card | import("../data/systemRegistry").identificationInfo_action | import("../data/systemRegistry").identificationInfo_partition | import("../data/systemRegistry").identificationInfo_effect | import("../data/systemRegistry").identificationInfo_none | import("../data/systemRegistry").identificationInfo_player | import("../data/systemRegistry").identificationInfo_pos | import("../data/systemRegistry").identificationInfo_subtype | import("../data/systemRegistry").identificationInfo_zone | import("../data/systemRegistry").identificationInfo_system, Partial<{
|
|
19
|
-
doIncreaseTurnCount: boolean;
|
|
20
|
-
}> & Partial<{
|
|
21
|
-
targets: [];
|
|
22
|
-
cause: identificationInfo;
|
|
23
|
-
canBeChainedTo: boolean;
|
|
24
|
-
canBeTriggeredTo: boolean;
|
|
25
|
-
}>>[];
|
|
26
|
-
}
|
|
27
|
-
export declare class e_attack extends Effect<inputData_card[]> {
|
|
28
|
-
get dmg(): number | undefined;
|
|
29
|
-
set dmg(val: number);
|
|
30
|
-
get dmgType(): damageType;
|
|
31
|
-
set dmgType(val: damageType);
|
|
32
|
-
getDisplayInput(c: dry_card, system: dry_system): (string | number)[];
|
|
33
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputRequester<any, inputData_card[], inputData_card[], inputData_standard, inputData_standard, inputData_standard[]>;
|
|
34
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
35
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<inputData_card[]>): Action[];
|
|
36
|
-
}
|
|
37
|
-
export declare class e_add_to_hand extends Effect<[...inputData_card[], inputData_zone]> {
|
|
38
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputRequester<any, [...inputData_card[], inputData_zone], [...inputData_card[], inputData_zone], inputData_standard, inputData_standard, inputData_standard[]>;
|
|
39
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
40
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<[...inputData_card[], inputData_zone]>): Action[];
|
|
41
|
-
getDisplayInput(c: dry_card, system: dry_system): (string | number)[];
|
|
42
|
-
}
|
|
43
|
-
export declare class e_add_stat_change_diff extends Effect<inputData_card[]> {
|
|
44
|
-
get maxAtk(): number | undefined;
|
|
45
|
-
get maxHp(): number | undefined;
|
|
46
|
-
get level(): number | undefined;
|
|
47
|
-
get statObj(): {
|
|
48
|
-
maxAtk?: number;
|
|
49
|
-
maxHp?: number;
|
|
50
|
-
level?: number;
|
|
51
|
-
};
|
|
52
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputRequester<any, inputData_card[], inputData_card[], inputData_standard, inputData_standard, inputData_standard[]>;
|
|
53
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
54
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<inputData_card[]>): Action[];
|
|
55
|
-
getDisplayInput(c: dry_card, system: dry_system): (string | number)[];
|
|
56
|
-
}
|
|
57
|
-
export declare class e_add_stat_change_override extends e_add_stat_change_diff {
|
|
58
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<inputData_card[]>): Action[];
|
|
59
|
-
}
|
|
60
|
-
export declare class e_deal_dmg_ahead extends e_attack {
|
|
61
|
-
activate_final(c: dry_card, s: dry_system, a: Action): Action_class<identificationInfo[], any, any>[];
|
|
62
|
-
}
|
|
63
|
-
export declare class e_revenge extends e_attack {
|
|
64
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
65
|
-
}
|
|
66
|
-
export declare class e_reflect extends e_revenge {
|
|
67
|
-
activate_final(c: dry_card, system: dry_system, a: Action, i: any): Action_class<identificationInfo[], any, any>[];
|
|
68
|
-
}
|
|
69
|
-
export declare class e_dmg_reduction extends Effect {
|
|
70
|
-
get reductionAmmount(): number;
|
|
71
|
-
set reductionAmmount(val: number);
|
|
72
|
-
get minDmg(): number;
|
|
73
|
-
set minDmg(val: number);
|
|
74
|
-
get reductionDmgType(): number | undefined;
|
|
75
|
-
set reductionDmgType(val: number | undefined);
|
|
76
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
77
|
-
activate_final(c: dry_card, system: dry_system, a: Action<"a_deal_damage_card"> | Action<"a_deal_damage_internal"> | Action<"a_deal_damage_position">): Action_class<[import("../data/systemRegistry").identificationInfo_action], number | boolean | import("../data/systemRegistry").identificationInfo_card | import("../data/systemRegistry").identificationInfo_action | import("../data/systemRegistry").identificationInfo_partition | import("../data/systemRegistry").identificationInfo_effect | import("../data/systemRegistry").identificationInfo_none | import("../data/systemRegistry").identificationInfo_player | import("../data/systemRegistry").identificationInfo_pos | import("../data/systemRegistry").identificationInfo_subtype | import("../data/systemRegistry").identificationInfo_zone | import("../data/systemRegistry").identificationInfo_system | [import("../data/systemRegistry").identificationInfo_card], Partial<{
|
|
78
|
-
dmg: number;
|
|
79
|
-
dmgType: number;
|
|
80
|
-
}> & Partial<{
|
|
81
|
-
targets: [import("../data/systemRegistry").identificationInfo_card];
|
|
82
|
-
cause: identificationInfo;
|
|
83
|
-
canBeChainedTo: boolean;
|
|
84
|
-
canBeTriggeredTo: boolean;
|
|
85
|
-
}>>[];
|
|
86
|
-
}
|
|
87
|
-
export declare class e_add_counter extends Effect {
|
|
88
|
-
get times(): number;
|
|
89
|
-
set times(val: number);
|
|
90
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
91
|
-
activate_final(c: dry_card, system: dry_system, a: Action): Action_class<identificationInfo[], any, any>[];
|
|
92
|
-
}
|
|
93
|
-
export declare class e_add_counter_to_targets extends Effect<inputData_card[]> {
|
|
94
|
-
get times(): number;
|
|
95
|
-
set times(val: number);
|
|
96
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputRequester<any, inputData_card[], inputData_card[], inputData_standard, inputData_standard, inputData_standard[]>;
|
|
97
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
98
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<inputData_card[]>): Action[];
|
|
99
|
-
}
|
|
100
|
-
export declare class e_revive extends Effect<[inputData_card, inputData_pos]> {
|
|
101
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputRequester<any, [inputData_card, inputData_pos], [inputData_card, inputData_pos], inputData_standard, inputData_card, [inputData_pos]>;
|
|
102
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<[inputData_card, inputData_pos]>): Action[];
|
|
103
|
-
}
|
|
104
|
-
/**Remove this card when it leaves the field */
|
|
105
|
-
export declare class e_volatile extends Effect {
|
|
106
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
107
|
-
activate_final(c: dry_card, s: dry_system, a: Action): Action_class<[import("../data/systemRegistry").identificationInfo_action], never, {}>[];
|
|
108
|
-
}
|
|
109
|
-
declare const e_fragile_base: typeof Effect;
|
|
110
|
-
/**Destroy self after attack */
|
|
111
|
-
export declare class e_fragile extends e_fragile_base {
|
|
112
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
113
|
-
}
|
|
114
|
-
export declare class e_draw extends Effect<[inputData_zone, inputData_zone]> {
|
|
115
|
-
get times(): number;
|
|
116
|
-
set times(val: number);
|
|
117
|
-
get cooldown(): number;
|
|
118
|
-
set cooldown(val: number);
|
|
119
|
-
get doTurnDraw(): boolean;
|
|
120
|
-
set doTurnDraw(val: boolean);
|
|
121
|
-
getDisplayInput(c: dry_card, system: dry_system): (string | number)[];
|
|
122
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
123
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputRequester<any, [inputData_zone, inputData_zone], [inputData_zone, inputData_zone], inputData_standard, inputData_zone, [inputData_zone]>;
|
|
124
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<[inputData_zone, inputData_zone]>): Action[];
|
|
125
|
-
}
|
|
126
|
-
export declare class e_draw_until extends e_draw {
|
|
127
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
128
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<[inputData_zone, inputData_zone]>): Action[];
|
|
129
|
-
}
|
|
130
|
-
export declare class e_lock extends Effect {
|
|
131
|
-
protected key_condition: (c: dry_card, s: dry_system, a: Action, attr: this["attr"]) => boolean;
|
|
132
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
133
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<inputData_standard[]>): Action[];
|
|
134
|
-
static keyCondition(f: (...p: [dry_card, dry_system, Action, Effect["attr"]]) => boolean): (new (...p: any[]) => Effect);
|
|
135
|
-
}
|
|
136
|
-
export declare class e_bounce extends Effect<[...inputData_card[], inputData_zone]> {
|
|
137
|
-
get target_zone(): zoneRegistry;
|
|
138
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputRequester<any, [...inputData_card[], inputData_zone], [...inputData_card[], inputData_zone], inputData_standard, inputData_standard, inputData_standard[]>;
|
|
139
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<[...inputData_card[], inputData_zone]>): Action[];
|
|
140
|
-
}
|
|
141
|
-
export declare class e_delay extends Effect<inputData_card[]> {
|
|
142
|
-
get delayCount(): number;
|
|
143
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
144
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputRequester<any, inputData_card[], inputData_card[], inputData_standard, inputData_standard, inputData_standard[]>;
|
|
145
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<inputData_card[]>): Action[];
|
|
146
|
-
}
|
|
147
|
-
/**Add all cards of a particular dataID from the same zone too hand */
|
|
148
|
-
export declare class e_add_all_to_zone extends Effect<[inputData_card, inputData_zone]> {
|
|
149
|
-
protected target_zone: zoneRegistry;
|
|
150
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputRequester<any, [inputData_card, inputData_zone], [inputData_card, inputData_zone], inputData_standard, inputData_card, [inputData_zone]>;
|
|
151
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<[inputData_card, inputData_zone]>): Action[];
|
|
152
|
-
static to(zType: zoneRegistry): typeof e_add_all_to_zone;
|
|
153
|
-
}
|
|
154
|
-
export declare class e_remove_all_effects extends Effect<inputData_card[]> {
|
|
155
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputRequester<any, inputData_card[], inputData_card[], inputData_standard, inputData_standard, inputData_standard[]>;
|
|
156
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
157
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<inputData_card[]>): Action[];
|
|
158
|
-
}
|
|
159
|
-
export declare class e_deal_dmg_card extends Effect<inputData_card[]> {
|
|
160
|
-
get dmg(): number;
|
|
161
|
-
get dmgType(): number;
|
|
162
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
163
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputRequester<any, inputData_card[], inputData_card[], inputData_standard, inputData_standard, inputData_standard[]>;
|
|
164
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<inputData_card[]>): Action[];
|
|
165
|
-
}
|
|
166
|
-
export declare class e_shuffle_into_deck extends Effect<[...inputData_card[], inputData_zone]> {
|
|
167
|
-
get target_zone(): zoneRegistry;
|
|
168
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
169
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputRequester<any, [...inputData_card[], inputData_zone], [...inputData_card[], inputData_zone], inputData_standard, inputData_standard, inputData_standard[]>;
|
|
170
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<[...inputData_card[], inputData_zone]>): Action[];
|
|
171
|
-
}
|
|
172
|
-
export declare class e_send_all_to_grave extends Effect<[inputData_card, inputData_zone]> {
|
|
173
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputRequester<any, [inputData_card, inputData_zone], [inputData_card, inputData_zone], inputData_standard, inputData_card, [inputData_zone]>;
|
|
174
|
-
}
|
|
175
|
-
export declare const e_add_all_to_hand: typeof e_add_all_to_zone;
|
|
176
|
-
export declare const e_add_all_to_grave: typeof e_add_all_to_zone;
|
|
177
|
-
export declare class e_capacitor_1 extends Effect<[]> {
|
|
178
|
-
canRespondAndActivate_final(c: dry_card, s: dry_system, a: Action): boolean;
|
|
179
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: undefined): Action[];
|
|
180
|
-
}
|
|
181
|
-
export declare class e_capacitor_2 extends Effect<[]> {
|
|
182
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
183
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: undefined): Action[];
|
|
184
|
-
}
|
|
185
|
-
export declare class e_reset_all_once extends Effect<inputData_card[]> {
|
|
186
|
-
canRespondAndActivate_final(c: dry_card, system: dry_system, a: Action): boolean;
|
|
187
|
-
createInputObj(c: dry_card, s: dry_system, a: Action): inputRequester<any, inputData_card[], inputData_card[], inputData_standard, inputData_standard, inputData_standard[]>;
|
|
188
|
-
activate_final(c: dry_card, s: dry_system, a: Action, input: inputRequester_finalized<inputData_card[]>): Action[];
|
|
189
|
-
}
|
|
190
|
-
declare const _default: Record<string, new (...p: any[]) => Effect<any>>;
|
|
191
|
-
export default _default;
|