@firestone-hs/simulate-bgs-battle 1.1.649 → 1.1.650
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OnDespawnedCard, OnSpawnedCard
|
|
2
|
-
export declare const Malorne:
|
|
1
|
+
import { OnDespawnedCard, OnSpawnedCard } from '../../card.interface';
|
|
2
|
+
export declare const Malorne: OnDespawnedCard & OnSpawnedCard;
|
|
@@ -3,13 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Malorne = void 0;
|
|
4
4
|
exports.Malorne = {
|
|
5
5
|
cardIds: ["BG32_HERO_001_Buddy", "BG32_HERO_001_Buddy_G"],
|
|
6
|
-
rebornSelfEffect: (minion, input) => {
|
|
7
|
-
const mult = minion.cardId === "BG32_HERO_001_Buddy_G" ? 2 : 1;
|
|
8
|
-
const totalGoldSpent = input.boardWithKilledMinionHero.globalInfo.GoldSpentThisGame;
|
|
9
|
-
const baseBuff = Math.floor(totalGoldSpent / 3);
|
|
10
|
-
minion.attack += baseBuff * mult;
|
|
11
|
-
minion.health += baseBuff * mult;
|
|
12
|
-
},
|
|
13
6
|
onSpawned: (minion, input) => {
|
|
14
7
|
const mult = minion.cardId === "BG32_HERO_001_Buddy_G" ? 2 : 1;
|
|
15
8
|
const totalGoldSpent = input.hero.globalInfo.GoldSpentThisGame;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"malorne.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/malorne.ts"],"names":[],"mappings":";;;AAMa,QAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"malorne.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/malorne.ts"],"names":[],"mappings":";;;AAMa,QAAA,OAAO,GAAoC;IACvD,OAAO,EAAE,gDAA4E;IACrF,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAmB,EAAE,EAAE;QACvD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,4BAA0C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7E,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;QAC/D,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC;QAChD,MAAM,CAAC,MAAM,IAAI,QAAQ,GAAG,IAAI,CAAC;QACjC,MAAM,CAAC,MAAM,IAAI,QAAQ,GAAG,IAAI,CAAC;IAClC,CAAC;IACD,WAAW,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAE,EAAE;QAC3D,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,4BAA0C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7E,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;QAC/D,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC;QAChD,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC,CAAC;QAC7D,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC,CAAC;IAC9D,CAAC;CACD,CAAC","sourcesContent":["import { BoardEntity } from '../../../board-entity';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { OnDespawnInput, OnSpawnInput } from '../../../simulation/add-minion-to-board';\r\nimport { RebornEffectInput } from '../../../simulation/reborn';\r\nimport { OnDespawnedCard, OnSpawnedCard, RebornSelfEffectCard } from '../../card.interface';\r\n\r\nexport const Malorne: OnDespawnedCard & OnSpawnedCard = {\r\n\tcardIds: [CardIds.Malorne_BG32_HERO_001_Buddy, CardIds.Malorne_BG32_HERO_001_Buddy_G],\r\n\tonSpawned: (minion: BoardEntity, input: OnSpawnInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.Malorne_BG32_HERO_001_Buddy_G ? 2 : 1;\r\n\t\tconst totalGoldSpent = input.hero.globalInfo.GoldSpentThisGame;\r\n\t\tconst baseBuff = Math.floor(totalGoldSpent / 3);\r\n\t\tminion.attack += baseBuff * mult;\r\n\t\tminion.health += baseBuff * mult;\r\n\t},\r\n\tonDespawned: (minion: BoardEntity, input: OnDespawnInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.Malorne_BG32_HERO_001_Buddy_G ? 2 : 1;\r\n\t\tconst totalGoldSpent = input.hero.globalInfo.GoldSpentThisGame;\r\n\t\tconst baseBuff = Math.floor(totalGoldSpent / 3);\r\n\t\tminion.attack = Math.max(0, minion.attack - baseBuff * mult);\r\n\t\tminion.health = Math.max(1, minion.health - baseBuff * mult);\r\n\t},\r\n};\r\n"]}
|