qpremake 1.5.3 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- 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 -27
- package/lib/_queenSystem/renderer/rendererInterface.js +0 -25
- 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 -6335
- package/lib/index.js +0 -205
- 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 -72
- 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
|
@@ -1,23 +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 triggerEffect_1 = __importDefault(require("./triggerEffect"));
|
|
7
|
-
const actionRegistry_1 = __importDefault(require("../../../data/actionRegistry"));
|
|
8
|
-
const zoneRegistry_1 = require("../../../data/zoneRegistry");
|
|
9
|
-
class InitEffect extends triggerEffect_1.default {
|
|
10
|
-
canRespondAndActivate(e, c, system, a) {
|
|
11
|
-
if (a.typeID !== actionRegistry_1.default.a_pos_change && a.typeID !== actionRegistry_1.default.a_pos_change_force)
|
|
12
|
-
return false;
|
|
13
|
-
let targets = a.targets;
|
|
14
|
-
let zone = system.getZoneWithID(targets[1].pos.zoneID);
|
|
15
|
-
if (!zone)
|
|
16
|
-
return false;
|
|
17
|
-
if (targets[0].is(c) &&
|
|
18
|
-
zone.types.includes(zoneRegistry_1.zoneRegistry.z_field))
|
|
19
|
-
return super.canRespondAndActivate(e, c, system, a);
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.default = InitEffect;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type Action } from "../../../_queenSystem/handler/actionGenrator";
|
|
2
|
-
import type Card from "../../abstract/gameComponents/card";
|
|
3
|
-
import type { dry_effect, dry_system } from "../../../data/systemRegistry";
|
|
4
|
-
import PassiveEffect from "./passiveEffect";
|
|
5
|
-
declare class LockEffect extends PassiveEffect {
|
|
6
|
-
canRespondAndActivate(e: dry_effect, c: Card, s: dry_system, a: Action): false | -1;
|
|
7
|
-
parseAfterActivate(e: dry_effect, c: Card, system: dry_system, res: Action[]): void;
|
|
8
|
-
}
|
|
9
|
-
export default LockEffect;
|
|
@@ -1,25 +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
|
-
// import type { subTypeOverrideConflict } from "../../errors"
|
|
8
|
-
const passiveEffect_1 = __importDefault(require("./passiveEffect"));
|
|
9
|
-
class LockEffect extends passiveEffect_1.default {
|
|
10
|
-
canRespondAndActivate(e, c, s, a) {
|
|
11
|
-
//enforces only respond in the chain phase
|
|
12
|
-
if (!a.is("a_pos_change") && !a.is("a_pos_change_force"))
|
|
13
|
-
return false;
|
|
14
|
-
if (!a.targets[0].is(c))
|
|
15
|
-
return false;
|
|
16
|
-
if (s.turnAction && s.turnAction.id !== a.id)
|
|
17
|
-
return false;
|
|
18
|
-
return super.canRespondAndActivate(e, c, s, a);
|
|
19
|
-
}
|
|
20
|
-
parseAfterActivate(e, c, system, res) {
|
|
21
|
-
const cause = actionGenrator_1.actionFormRegistry.effect(system, c, e);
|
|
22
|
-
res.unshift(actionGenrator_1.actionConstructorRegistry.a_negate_action(cause));
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.default = LockEffect;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type Action } from "../../../_queenSystem/handler/actionGenrator";
|
|
2
|
-
import type Card from "../../abstract/gameComponents/card";
|
|
3
|
-
import type { dry_effect, dry_system } from "../../../data/systemRegistry";
|
|
4
|
-
import EffectType from "../../abstract/gameComponents/effectType";
|
|
5
|
-
declare class ManualEffect extends EffectType {
|
|
6
|
-
canRespondAndActivate(e: dry_effect, c: Card, system: dry_system, a: Action): boolean;
|
|
7
|
-
parseAfterActivate(e: dry_effect, c: Card, system: dry_system, res: Action[]): void;
|
|
8
|
-
}
|
|
9
|
-
export default ManualEffect;
|
|
@@ -1,18 +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 effectType_1 = __importDefault(require("../../abstract/gameComponents/effectType"));
|
|
8
|
-
class ManualEffect extends effectType_1.default {
|
|
9
|
-
//behaviors:
|
|
10
|
-
//manual effect uhh just sits there, until the action "activate effect" forcefull activate it
|
|
11
|
-
canRespondAndActivate(e, c, system, a) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
parseAfterActivate(e, c, system, res) {
|
|
15
|
-
res.push(actionGenrator_1.actionConstructorRegistry.a_disable_card(system, c)(actionGenrator_1.actionFormRegistry.card(system, c)));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.default = ManualEffect;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Action } from "../../../_queenSystem/handler/actionGenrator";
|
|
2
|
-
import type Card from "../../abstract/gameComponents/card";
|
|
3
|
-
import type { dry_system } from "../../../data/systemRegistry";
|
|
4
|
-
import EffectType from "../../abstract/gameComponents/effectType";
|
|
5
|
-
declare class PassiveEffect extends EffectType {
|
|
6
|
-
canRespondAndActivate(e: any, c: Card, system: dry_system, a: Action): false | -1;
|
|
7
|
-
parseAfterActivate(e: any, c: Card, system: dry_system, res: Action[]): void;
|
|
8
|
-
}
|
|
9
|
-
export default PassiveEffect;
|
|
@@ -1,23 +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
|
-
// import type { subTypeOverrideConflict } from "../../errors"
|
|
7
|
-
const effectType_1 = __importDefault(require("../../abstract/gameComponents/effectType"));
|
|
8
|
-
class PassiveEffect extends effectType_1.default {
|
|
9
|
-
//behaviors:
|
|
10
|
-
//1. every action returns have isChain = true
|
|
11
|
-
//2. activates only in the chain phase
|
|
12
|
-
//3. when condition met -> returns the Action[] itself
|
|
13
|
-
canRespondAndActivate(e, c, system, a) {
|
|
14
|
-
//enforces only respond in the chain phase
|
|
15
|
-
if (!system.isInChainPhase)
|
|
16
|
-
return false;
|
|
17
|
-
return -1;
|
|
18
|
-
}
|
|
19
|
-
parseAfterActivate(e, c, system, res) {
|
|
20
|
-
res.forEach(i => i.isChain = true);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.default = PassiveEffect;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type Action } from "../../../_queenSystem/handler/actionGenrator";
|
|
2
|
-
import type Card from "../../abstract/gameComponents/card";
|
|
3
|
-
import type { dry_effect, dry_system } from "../../../data/systemRegistry";
|
|
4
|
-
import EffectType from "../../abstract/gameComponents/effectType";
|
|
5
|
-
declare class TriggerEffect extends EffectType {
|
|
6
|
-
canRespondAndActivate(e: any, c: Card, system: dry_system, a: Action): -1 | boolean;
|
|
7
|
-
parseAfterActivate(e: dry_effect, c: Card, system: dry_system, res: Action[]): void;
|
|
8
|
-
}
|
|
9
|
-
export default TriggerEffect;
|
|
@@ -1,28 +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 effectType_1 = __importDefault(require("../../abstract/gameComponents/effectType"));
|
|
8
|
-
class TriggerEffect extends effectType_1.default {
|
|
9
|
-
//behaviors:
|
|
10
|
-
//1. activates only in the trigger phase if and only if no subtype overrides the result
|
|
11
|
-
//2. activate has 2 behaviors:
|
|
12
|
-
// action != "activate self" -> returns an "activate self" action, isChain = false
|
|
13
|
-
// action == "activate self" -> returns whatever super.activate returns, isChain = true
|
|
14
|
-
canRespondAndActivate(e, c, system, a) {
|
|
15
|
-
//enforces only respond in the trigger phase
|
|
16
|
-
//if and only if no subtype overrides the result
|
|
17
|
-
//this function only runs if no override happens
|
|
18
|
-
if (!system.isInTriggerPhase)
|
|
19
|
-
return false;
|
|
20
|
-
return -1;
|
|
21
|
-
}
|
|
22
|
-
parseAfterActivate(e, c, system, res) {
|
|
23
|
-
const cause = actionGenrator_1.actionFormRegistry.effect(system, c, e);
|
|
24
|
-
res.unshift(actionGenrator_1.actionConstructorRegistry.a_declare_activation(system, c, e)(cause));
|
|
25
|
-
res.forEach(i => i.isChain = false);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.default = TriggerEffect;
|
|
@@ -1,13 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
class cannotLoad extends error_1.default {
|
|
8
|
-
constructor(itemID, type) {
|
|
9
|
-
super();
|
|
10
|
-
this.messege = `Cannot load item ${itemID} ${type ? `type = ${type}` : ""}`;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = cannotLoad;
|
|
@@ -1,13 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
class cardNotExist extends error_1.default {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this.messege = `Try to access something thats not a card pretending to be a card`;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = cardNotExist;
|
|
@@ -1,13 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
class cardNotInApplicableZone extends error_1.default {
|
|
8
|
-
constructor(zoneID, cardID) {
|
|
9
|
-
super(cardID);
|
|
10
|
-
this.messege = `Action done when card is not in zone with id ${zoneID} is invalid, cardID = ${cardID}`;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = cardNotInApplicableZone;
|
|
@@ -1,13 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
class effectCondNotMet extends error_1.default {
|
|
8
|
-
constructor(eid, cid) {
|
|
9
|
-
super(cid);
|
|
10
|
-
this.messege = `The card with id ${cid} cannot activate the effect with id ${eid}`;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = effectCondNotMet;
|
|
@@ -1,13 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
class effectNotExist extends error_1.default {
|
|
8
|
-
constructor(eid_or_index, cid) {
|
|
9
|
-
super();
|
|
10
|
-
this.messege = `The effect with id / index ${eid_or_index} doesnt exist on the card reference with id ${cid}, wrong activation time perhaps?`;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = effectNotExist;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Action_class } from "../../_queenSystem/handler/actionGenrator";
|
|
2
|
-
declare class debugInfo {
|
|
3
|
-
file: string;
|
|
4
|
-
func: string;
|
|
5
|
-
line: number;
|
|
6
|
-
constructor(file: string, func?: string, line?: number);
|
|
7
|
-
toString(): string;
|
|
8
|
-
}
|
|
9
|
-
declare class error extends Action_class<[], never, {}> {
|
|
10
|
-
messege: string;
|
|
11
|
-
callStack: debugInfo[];
|
|
12
|
-
cardID: string | undefined;
|
|
13
|
-
constructor(cardID?: string);
|
|
14
|
-
add(file: string, func?: string, line?: number): this;
|
|
15
|
-
toString(): string;
|
|
16
|
-
}
|
|
17
|
-
export default error;
|
|
@@ -1,42 +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 actionRegistry_1 = __importDefault(require("../../data/actionRegistry"));
|
|
7
|
-
const actionGenrator_1 = require("../../_queenSystem/handler/actionGenrator");
|
|
8
|
-
//actions by default are NOT valid to listen to, they r just there
|
|
9
|
-
class debugInfo {
|
|
10
|
-
constructor(file, func = "", line = -1) {
|
|
11
|
-
this.file = file;
|
|
12
|
-
this.line = line;
|
|
13
|
-
this.func = func;
|
|
14
|
-
}
|
|
15
|
-
toString() {
|
|
16
|
-
let str = 'file: ' + this.file;
|
|
17
|
-
if (this.func.length)
|
|
18
|
-
str += ", function: " + this.func;
|
|
19
|
-
if (this.line >= 0)
|
|
20
|
-
str += ", line: " + this.line;
|
|
21
|
-
return str;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
class error extends actionGenrator_1.Action_class {
|
|
25
|
-
constructor(cardID) {
|
|
26
|
-
let o = (0, actionGenrator_1.getDefaultObjContructionObj)(actionRegistry_1.default.error);
|
|
27
|
-
let o2 = Object.assign(Object.assign({}, o), { cause: actionGenrator_1.actionFormRegistry.system(), targets: [] });
|
|
28
|
-
super(o2);
|
|
29
|
-
this.messege = "";
|
|
30
|
-
this.callStack = []; //larger index = higher hierachy
|
|
31
|
-
this.cardID = cardID;
|
|
32
|
-
}
|
|
33
|
-
add(file, func, line) {
|
|
34
|
-
this.callStack.push(new debugInfo(file, func, line));
|
|
35
|
-
return this;
|
|
36
|
-
}
|
|
37
|
-
toString() {
|
|
38
|
-
return 'Error: ' + this.messege + '\nAt\n' + this.callStack.map(i => i.toString()).join("\n");
|
|
39
|
-
}
|
|
40
|
-
;
|
|
41
|
-
}
|
|
42
|
-
exports.default = error;
|
|
@@ -1,13 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
class incorrectActiontype extends error_1.default {
|
|
8
|
-
constructor(got, expected) {
|
|
9
|
-
super();
|
|
10
|
-
this.messege = `wrong action type received : got : ${got}, expected : ${expected}`;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = incorrectActiontype;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import cardNotExist from "./cardNotExist";
|
|
2
|
-
import effectNotExist from "./effectNotExist";
|
|
3
|
-
import cardNotInApplicableZone from "./cardNotInApplicableZone";
|
|
4
|
-
import effectCondNotMet from "./effectCondNotMet";
|
|
5
|
-
import invalidOrderMap from "./invalidOrderMap";
|
|
6
|
-
import invalidPosition from "./invalidPosition";
|
|
7
|
-
import unknownError from "./unknownError";
|
|
8
|
-
import zoneAttrConflict from "./zoneAttrConflict";
|
|
9
|
-
import zoneFull from "./zoneFull";
|
|
10
|
-
import subTypeOverrideConflict from "./subTypeOverrideConflict";
|
|
11
|
-
import unregisteredAction from "./unregisteredAction";
|
|
12
|
-
import wrongEffectIdx from "./wrongEffectIdx";
|
|
13
|
-
import cannotLoad from "./cannotLoad";
|
|
14
|
-
import incorrectActiontype from "./incorrectActionType";
|
|
15
|
-
import zoneNotExist from "./zoneNotExist";
|
|
16
|
-
export { cardNotExist, cardNotInApplicableZone, effectCondNotMet, invalidOrderMap, invalidPosition, unknownError, zoneAttrConflict, zoneFull, effectNotExist, wrongEffectIdx, subTypeOverrideConflict, unregisteredAction, cannotLoad, incorrectActiontype, zoneNotExist };
|
|
@@ -1,36 +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
|
-
exports.zoneNotExist = exports.incorrectActiontype = exports.cannotLoad = exports.unregisteredAction = exports.subTypeOverrideConflict = exports.wrongEffectIdx = exports.effectNotExist = exports.zoneFull = exports.zoneAttrConflict = exports.unknownError = exports.invalidPosition = exports.invalidOrderMap = exports.effectCondNotMet = exports.cardNotInApplicableZone = exports.cardNotExist = void 0;
|
|
7
|
-
const cardNotExist_1 = __importDefault(require("./cardNotExist"));
|
|
8
|
-
exports.cardNotExist = cardNotExist_1.default;
|
|
9
|
-
const effectNotExist_1 = __importDefault(require("./effectNotExist"));
|
|
10
|
-
exports.effectNotExist = effectNotExist_1.default;
|
|
11
|
-
const cardNotInApplicableZone_1 = __importDefault(require("./cardNotInApplicableZone"));
|
|
12
|
-
exports.cardNotInApplicableZone = cardNotInApplicableZone_1.default;
|
|
13
|
-
const effectCondNotMet_1 = __importDefault(require("./effectCondNotMet"));
|
|
14
|
-
exports.effectCondNotMet = effectCondNotMet_1.default;
|
|
15
|
-
const invalidOrderMap_1 = __importDefault(require("./invalidOrderMap"));
|
|
16
|
-
exports.invalidOrderMap = invalidOrderMap_1.default;
|
|
17
|
-
const invalidPosition_1 = __importDefault(require("./invalidPosition"));
|
|
18
|
-
exports.invalidPosition = invalidPosition_1.default;
|
|
19
|
-
const unknownError_1 = __importDefault(require("./unknownError"));
|
|
20
|
-
exports.unknownError = unknownError_1.default;
|
|
21
|
-
const zoneAttrConflict_1 = __importDefault(require("./zoneAttrConflict"));
|
|
22
|
-
exports.zoneAttrConflict = zoneAttrConflict_1.default;
|
|
23
|
-
const zoneFull_1 = __importDefault(require("./zoneFull"));
|
|
24
|
-
exports.zoneFull = zoneFull_1.default;
|
|
25
|
-
const subTypeOverrideConflict_1 = __importDefault(require("./subTypeOverrideConflict"));
|
|
26
|
-
exports.subTypeOverrideConflict = subTypeOverrideConflict_1.default;
|
|
27
|
-
const unregisteredAction_1 = __importDefault(require("./unregisteredAction"));
|
|
28
|
-
exports.unregisteredAction = unregisteredAction_1.default;
|
|
29
|
-
const wrongEffectIdx_1 = __importDefault(require("./wrongEffectIdx"));
|
|
30
|
-
exports.wrongEffectIdx = wrongEffectIdx_1.default;
|
|
31
|
-
const cannotLoad_1 = __importDefault(require("./cannotLoad"));
|
|
32
|
-
exports.cannotLoad = cannotLoad_1.default;
|
|
33
|
-
const incorrectActionType_1 = __importDefault(require("./incorrectActionType"));
|
|
34
|
-
exports.incorrectActiontype = incorrectActionType_1.default;
|
|
35
|
-
const zoneNotExist_1 = __importDefault(require("./zoneNotExist"));
|
|
36
|
-
exports.zoneNotExist = zoneNotExist_1.default;
|
|
@@ -1,14 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
class invalidOrderMap extends error_1.default {
|
|
8
|
-
constructor(orderMap) {
|
|
9
|
-
super();
|
|
10
|
-
this.orderMap = orderMap;
|
|
11
|
-
this.messege = `Invalid order map`;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.default = invalidOrderMap;
|
|
@@ -1,13 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
class invalidPosition extends error_1.default {
|
|
8
|
-
constructor(cid, p) {
|
|
9
|
-
super(cid);
|
|
10
|
-
this.messege = `Cannot place card with id ${cid} on position ${p.toString()}`;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = invalidPosition;
|
|
@@ -1,15 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
class subTypeOverrideConflict extends error_1.default {
|
|
8
|
-
constructor(cid, eid, conflictIndexes) {
|
|
9
|
-
super(cid);
|
|
10
|
-
this.effectID = eid;
|
|
11
|
-
this.conflictIndexes = conflictIndexes;
|
|
12
|
-
this.messege = conflictIndexes.length + " subtypes attempted to override the result differently in card with id " + cid + " on effect " + eid;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.default = subTypeOverrideConflict;
|
|
@@ -1,13 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
class unknownError extends error_1.default {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this.messege = `Some error happened, I dunno what tho`;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = unknownError;
|
|
@@ -1,13 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
class unregisteredAction extends error_1.default {
|
|
8
|
-
constructor(a) {
|
|
9
|
-
super();
|
|
10
|
-
this.messege = `an unregistered action is being resolved with type = ${a.type}`;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = unregisteredAction;
|
|
@@ -1,14 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
//For accessing effect using idx instead of eid
|
|
8
|
-
class wrongEffectIdx extends error_1.default {
|
|
9
|
-
constructor(eidx, cid) {
|
|
10
|
-
super(cid);
|
|
11
|
-
this.messege = `The card with id ${cid} do not have the effect at index ${eidx}`;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.default = wrongEffectIdx;
|
|
@@ -1,15 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
class zoneAttrConflict extends error_1.default {
|
|
8
|
-
constructor(zoneID, actionName, cardID) {
|
|
9
|
-
super(cardID);
|
|
10
|
-
this.messege = `Attempts to interact with zone with id ${zoneID} is not allowed by zone attribute`;
|
|
11
|
-
if (actionName)
|
|
12
|
-
this.messege += ", forbidden action: " + actionName;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.default = zoneAttrConflict;
|
|
@@ -1,13 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
class zoneFull extends error_1.default {
|
|
8
|
-
constructor(zoneID, cardID) {
|
|
9
|
-
super(cardID);
|
|
10
|
-
this.messege = `Cannot add card with id ${cardID} to zone with id ${zoneID} full, extra card discarded`;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = zoneFull;
|
|
@@ -1,13 +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 error_1 = __importDefault(require("./error"));
|
|
7
|
-
class zoneNotExist extends error_1.default {
|
|
8
|
-
constructor(zid) {
|
|
9
|
-
super();
|
|
10
|
-
this.messege = `Try to access something thats not a zone pretending to be a zone, accessing index : ${zid}`;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = zoneNotExist;
|