isaacscript-common 44.0.0 → 45.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/index.rollup.d.ts +31 -11
  2. package/dist/isaacscript-common.lua +5383 -5236
  3. package/dist/src/classes/features/other/{EdenStartingStats.d.ts → EdenStartingStatsHealth.d.ts} +17 -5
  4. package/dist/src/classes/features/other/EdenStartingStatsHealth.d.ts.map +1 -0
  5. package/dist/src/classes/features/other/EdenStartingStatsHealth.lua +75 -0
  6. package/dist/src/classes/features/other/ItemPoolDetection.d.ts.map +1 -1
  7. package/dist/src/classes/features/other/ItemPoolDetection.lua +2 -1
  8. package/dist/src/classes/features/other/Pause.lua +2 -2
  9. package/dist/src/classes/features/other/extraConsoleCommands/commands.lua +4 -3
  10. package/dist/src/enums/ISCFeature.d.ts +1 -1
  11. package/dist/src/enums/ISCFeature.d.ts.map +1 -1
  12. package/dist/src/enums/ISCFeature.lua +2 -2
  13. package/dist/src/features.d.ts +3 -3
  14. package/dist/src/features.d.ts.map +1 -1
  15. package/dist/src/features.lua +3 -3
  16. package/dist/src/functions/characters.d.ts +9 -2
  17. package/dist/src/functions/characters.d.ts.map +1 -1
  18. package/dist/src/functions/characters.lua +13 -4
  19. package/dist/src/functions/charge.lua +2 -2
  20. package/dist/src/functions/math.d.ts +1 -0
  21. package/dist/src/functions/math.d.ts.map +1 -1
  22. package/dist/src/functions/math.lua +1 -0
  23. package/dist/src/functions/playerCollectibles.d.ts +127 -0
  24. package/dist/src/functions/playerCollectibles.d.ts.map +1 -0
  25. package/dist/src/functions/playerCollectibles.lua +308 -0
  26. package/dist/src/functions/playerHealth.d.ts +1 -1
  27. package/dist/src/functions/playerHealth.d.ts.map +1 -1
  28. package/dist/src/functions/playerHealth.lua +10 -6
  29. package/dist/src/functions/playerTrinkets.d.ts +69 -0
  30. package/dist/src/functions/playerTrinkets.d.ts.map +1 -0
  31. package/dist/src/functions/playerTrinkets.lua +160 -0
  32. package/dist/src/functions/players.d.ts +5 -166
  33. package/dist/src/functions/players.d.ts.map +1 -1
  34. package/dist/src/functions/players.lua +20 -389
  35. package/dist/src/functions/trinketGive.lua +2 -2
  36. package/dist/src/functions/trinkets.d.ts +0 -30
  37. package/dist/src/functions/trinkets.d.ts.map +1 -1
  38. package/dist/src/functions/trinkets.lua +0 -71
  39. package/dist/src/index.d.ts +2 -0
  40. package/dist/src/index.d.ts.map +1 -1
  41. package/dist/src/index.lua +16 -0
  42. package/dist/src/objects/{characterStartingCollectibles.d.ts → characterStartingCollectibleTypes.d.ts} +2 -2
  43. package/dist/src/objects/characterStartingCollectibleTypes.d.ts.map +1 -0
  44. package/dist/src/objects/{characterStartingCollectibles.lua → characterStartingCollectibleTypes.lua} +1 -1
  45. package/dist/src/objects/characterStartingTrinketTypes.d.ts +46 -0
  46. package/dist/src/objects/characterStartingTrinketTypes.d.ts.map +1 -0
  47. package/dist/src/objects/characterStartingTrinketTypes.lua +49 -0
  48. package/package.json +1 -1
  49. package/src/classes/features/other/{EdenStartingStats.ts → EdenStartingStatsHealth.ts} +38 -5
  50. package/src/classes/features/other/ItemPoolDetection.ts +2 -4
  51. package/src/classes/features/other/Pause.ts +1 -1
  52. package/src/classes/features/other/extraConsoleCommands/commands.ts +3 -3
  53. package/src/enums/ISCFeature.ts +1 -1
  54. package/src/features.ts +3 -3
  55. package/src/functions/characters.ts +20 -4
  56. package/src/functions/charge.ts +1 -1
  57. package/src/functions/math.ts +1 -0
  58. package/src/functions/playerCollectibles.ts +372 -0
  59. package/src/functions/playerHealth.ts +23 -15
  60. package/src/functions/playerTrinkets.ts +184 -0
  61. package/src/functions/players.ts +16 -481
  62. package/src/functions/trinketGive.ts +1 -1
  63. package/src/functions/trinkets.ts +1 -84
  64. package/src/index.ts +2 -0
  65. package/src/objects/{characterStartingCollectibles.ts → characterStartingCollectibleTypes.ts} +1 -1
  66. package/src/objects/characterStartingTrinketTypes.ts +129 -0
  67. package/dist/src/classes/features/other/EdenStartingStats.d.ts.map +0 -1
  68. package/dist/src/classes/features/other/EdenStartingStats.lua +0 -54
  69. package/dist/src/objects/characterStartingCollectibles.d.ts.map +0 -1
@@ -1,16 +1,28 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  import type { PlayerStat } from "../../../enums/PlayerStat";
3
+ import type { PlayerHealth } from "../../../interfaces/PlayerHealth";
3
4
  import type { PlayerStats } from "../../../interfaces/PlayerStats";
4
5
  import { Feature } from "../../private/Feature";
5
- export declare class EdenStartingStats extends Feature {
6
+ export declare class EdenStartingStatsHealth extends Feature {
6
7
  /**
7
8
  * We must use the `POST_PLAYER_INIT` callback since the two random collectibles have not been
8
9
  * granted yet.
9
10
  */
10
11
  private readonly postPlayerInit;
12
+ private getEdenStats;
13
+ private getEdenHealth;
11
14
  /**
12
- * Helper function to get the value of the randomized starting stat for Eden. (At the beginning of
13
- * a run, Eden starts with randomized stats.)
15
+ * Helper function to get the health that Eden started with at the beginning of the run before any
16
+ * of the random collectibles were added.
17
+ *
18
+ * Returns undefined if passed a player that is not Eden.
19
+ *
20
+ * In order to use this function, you must upgrade your mod with `ISCFeature.EDEN_STARTING_STATS`.
21
+ */
22
+ getEdenStartingHealth(player: EntityPlayer): Readonly<PlayerHealth> | undefined;
23
+ /**
24
+ * Helper function to get the value of the randomized starting stat for Eden that was assigned at
25
+ * the beginning of the run before any of the random collectibles were added.
14
26
  *
15
27
  * Returns undefined if passed a player that is not Eden.
16
28
  *
@@ -19,7 +31,7 @@ export declare class EdenStartingStats extends Feature {
19
31
  getEdenStartingStat<T extends PlayerStat>(player: EntityPlayer, playerStat: T): PlayerStats[T] | undefined;
20
32
  /**
21
33
  * Helper function to get all of the stat values that Eden started with at the beginning of the
22
- * run.
34
+ * run before any of the random collectibles were added.
23
35
  *
24
36
  * Returns undefined if passed a player that is not Eden.
25
37
  *
@@ -27,4 +39,4 @@ export declare class EdenStartingStats extends Feature {
27
39
  */
28
40
  getEdenStartingStats(player: EntityPlayer): Readonly<PlayerStats> | undefined;
29
41
  }
30
- //# sourceMappingURL=EdenStartingStats.d.ts.map
42
+ //# sourceMappingURL=EdenStartingStatsHealth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdenStartingStatsHealth.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/EdenStartingStatsHealth.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAQ5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAShD,qBAAa,uBAAwB,SAAQ,OAAO;IAclD;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,cAAc,CAO7B;IAEF,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,aAAa;IAUrB;;;;;;;OAOG;IAEI,qBAAqB,CAC1B,MAAM,EAAE,YAAY,GACnB,QAAQ,CAAC,YAAY,CAAC,GAAG,SAAS;IAIrC;;;;;;;OAOG;IAEI,mBAAmB,CAAC,CAAC,SAAS,UAAU,EAC7C,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,CAAC,GACZ,WAAW,CAAC,CAAC,CAAC,GAAG,SAAS;IAS7B;;;;;;;OAOG;IAEI,oBAAoB,CACzB,MAAM,EAAE,YAAY,GACnB,QAAQ,CAAC,WAAW,CAAC,GAAG,SAAS;CAGrC"}
@@ -0,0 +1,75 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Map = ____lualib.Map
3
+ local __TS__New = ____lualib.__TS__New
4
+ local __TS__Class = ____lualib.__TS__Class
5
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
+ local __TS__DecorateLegacy = ____lualib.__TS__DecorateLegacy
7
+ local ____exports = {}
8
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
9
+ local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
10
+ local ____decorators = require("src.decorators")
11
+ local Exported = ____decorators.Exported
12
+ local ____playerDataStructures = require("src.functions.playerDataStructures")
13
+ local mapGetPlayer = ____playerDataStructures.mapGetPlayer
14
+ local mapSetPlayer = ____playerDataStructures.mapSetPlayer
15
+ local ____playerHealth = require("src.functions.playerHealth")
16
+ local getPlayerHealth = ____playerHealth.getPlayerHealth
17
+ local ____players = require("src.functions.players")
18
+ local isEden = ____players.isEden
19
+ local ____stats = require("src.functions.stats")
20
+ local getPlayerStats = ____stats.getPlayerStats
21
+ local ____Feature = require("src.classes.private.Feature")
22
+ local Feature = ____Feature.Feature
23
+ local v = {run = {
24
+ edenPlayerStats = __TS__New(Map),
25
+ edenPlayerHealth = __TS__New(Map)
26
+ }}
27
+ ____exports.EdenStartingStatsHealth = __TS__Class()
28
+ local EdenStartingStatsHealth = ____exports.EdenStartingStatsHealth
29
+ EdenStartingStatsHealth.name = "EdenStartingStatsHealth"
30
+ __TS__ClassExtends(EdenStartingStatsHealth, Feature)
31
+ function EdenStartingStatsHealth.prototype.____constructor(self)
32
+ Feature.prototype.____constructor(self)
33
+ self.v = v
34
+ self.postPlayerInit = function(____, player)
35
+ if not isEden(nil, player) then
36
+ return
37
+ end
38
+ self:getEdenStats(player)
39
+ self:getEdenHealth(player)
40
+ end
41
+ self.callbacksUsed = {{ModCallback.POST_PLAYER_INIT, self.postPlayerInit}}
42
+ end
43
+ function EdenStartingStatsHealth.prototype.getEdenStats(self, player)
44
+ local existingStatMap = mapGetPlayer(nil, v.run.edenPlayerStats, player)
45
+ if existingStatMap ~= nil then
46
+ return
47
+ end
48
+ local playerStats = getPlayerStats(nil, player)
49
+ mapSetPlayer(nil, v.run.edenPlayerStats, player, playerStats)
50
+ end
51
+ function EdenStartingStatsHealth.prototype.getEdenHealth(self, player)
52
+ local existingHealthMap = mapGetPlayer(nil, v.run.edenPlayerHealth, player)
53
+ if existingHealthMap ~= nil then
54
+ return
55
+ end
56
+ local playerHealth = getPlayerHealth(nil, player)
57
+ mapSetPlayer(nil, v.run.edenPlayerHealth, player, playerHealth)
58
+ end
59
+ function EdenStartingStatsHealth.prototype.getEdenStartingHealth(self, player)
60
+ return mapGetPlayer(nil, v.run.edenPlayerHealth, player)
61
+ end
62
+ __TS__DecorateLegacy({Exported}, EdenStartingStatsHealth.prototype, "getEdenStartingHealth", true)
63
+ function EdenStartingStatsHealth.prototype.getEdenStartingStat(self, player, playerStat)
64
+ local playerStats = mapGetPlayer(nil, v.run.edenPlayerStats, player)
65
+ if playerStats == nil then
66
+ return nil
67
+ end
68
+ return playerStats[playerStat]
69
+ end
70
+ __TS__DecorateLegacy({Exported}, EdenStartingStatsHealth.prototype, "getEdenStartingStat", true)
71
+ function EdenStartingStatsHealth.prototype.getEdenStartingStats(self, player)
72
+ return mapGetPlayer(nil, v.run.edenPlayerStats, player)
73
+ end
74
+ __TS__DecorateLegacy({Exported}, EdenStartingStatsHealth.prototype, "getEdenStartingStats", true)
75
+ return ____exports
@@ -1 +1 @@
1
- {"version":3,"file":"ItemPoolDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/ItemPoolDetection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EACL,eAAe,EAIhB,MAAM,8BAA8B,CAAC;AAgBtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAahD,qBAAa,iBAAkB,SAAQ,OAAO;IAC5C,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAoB;IAWtD;;;;;OAKG;IAEI,yBAAyB,CAC9B,YAAY,EAAE,YAAY,GACzB,eAAe,EAAE;IAOpB;;;;;;;;;;;OAWG;IAEI,uBAAuB,CAC5B,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,GACzB,OAAO;IA+DV;;;;;;;;;;;;;;;OAeG;IAEI,qBAAqB,CAC1B,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,GACzB,OAAO;CAOX"}
1
+ {"version":3,"file":"ItemPoolDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/ItemPoolDetection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EACL,eAAe,EAIhB,MAAM,8BAA8B,CAAC;AActC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAahD,qBAAa,iBAAkB,SAAQ,OAAO;IAC5C,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAoB;IAWtD;;;;;OAKG;IAEI,yBAAyB,CAC9B,YAAY,EAAE,YAAY,GACzB,eAAe,EAAE;IAOpB;;;;;;;;;;;OAWG;IAEI,uBAAuB,CAC5B,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,GACzB,OAAO;IA+DV;;;;;;;;;;;;;;;OAeG;IAEI,qBAAqB,CAC1B,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,GACzB,OAAO;CAOX"}
@@ -20,13 +20,14 @@ local ____ISCFeature = require("src.enums.ISCFeature")
20
20
  local ISCFeature = ____ISCFeature.ISCFeature
21
21
  local ____collectibleTag = require("src.functions.collectibleTag")
22
22
  local collectibleHasTag = ____collectibleTag.collectibleHasTag
23
+ local ____playerCollectibles = require("src.functions.playerCollectibles")
24
+ local anyPlayerHasCollectible = ____playerCollectibles.anyPlayerHasCollectible
23
25
  local ____playerDataStructures = require("src.functions.playerDataStructures")
24
26
  local mapGetPlayer = ____playerDataStructures.mapGetPlayer
25
27
  local mapSetPlayer = ____playerDataStructures.mapSetPlayer
26
28
  local ____playerIndex = require("src.functions.playerIndex")
27
29
  local getAllPlayers = ____playerIndex.getAllPlayers
28
30
  local ____players = require("src.functions.players")
29
- local anyPlayerHasCollectible = ____players.anyPlayerHasCollectible
30
31
  local getPlayersOfType = ____players.getPlayersOfType
31
32
  local ____utils = require("src.functions.utils")
32
33
  local ____repeat = ____utils["repeat"]
@@ -26,10 +26,10 @@ local ____isaacAPIClass = require("src.functions.isaacAPIClass")
26
26
  local isTear = ____isaacAPIClass.isTear
27
27
  local ____logMisc = require("src.functions.logMisc")
28
28
  local logError = ____logMisc.logError
29
+ local ____playerCollectibles = require("src.functions.playerCollectibles")
30
+ local useActiveItemTemp = ____playerCollectibles.useActiveItemTemp
29
31
  local ____playerIndex = require("src.functions.playerIndex")
30
32
  local getAllPlayers = ____playerIndex.getAllPlayers
31
- local ____players = require("src.functions.players")
32
- local useActiveItemTemp = ____players.useActiveItemTemp
33
33
  local ____tstlClass = require("src.functions.tstlClass")
34
34
  local getTSTLClassName = ____tstlClass.getTSTLClassName
35
35
  local ____utils = require("src.functions.utils")
@@ -76,13 +76,14 @@ local spawnPill = ____pickupsSpecific.spawnPill
76
76
  local spawnTrinketFunction = ____pickupsSpecific.spawnTrinket
77
77
  local ____pills = require("src.functions.pills")
78
78
  local getPillEffectName = ____pills.getPillEffectName
79
+ local ____playerCollectibles = require("src.functions.playerCollectibles")
80
+ local addCollectibleCostume = ____playerCollectibles.addCollectibleCostume
81
+ local removeCollectibleCostume = ____playerCollectibles.removeCollectibleCostume
82
+ local useActiveItemTemp = ____playerCollectibles.useActiveItemTemp
79
83
  local ____playerIndex = require("src.functions.playerIndex")
80
84
  local getPlayers = ____playerIndex.getPlayers
81
85
  local ____players = require("src.functions.players")
82
- local addCollectibleCostume = ____players.addCollectibleCostume
83
86
  local getPlayerName = ____players.getPlayerName
84
- local removeCollectibleCostume = ____players.removeCollectibleCostume
85
- local useActiveItemTemp = ____players.useActiveItemTemp
86
87
  local ____roomGrid = require("src.functions.roomGrid")
87
88
  local gridCoordinatesToWorldPosition = ____roomGrid.gridCoordinatesToWorldPosition
88
89
  local ____roomTransition = require("src.functions.roomTransition")
@@ -26,7 +26,7 @@ export declare enum ISCFeature {
26
26
  DEPLOY_JSON_ROOM = 24,
27
27
  DISABLE_ALL_SOUND = 25,
28
28
  DISABLE_INPUTS = 26,
29
- EDEN_STARTING_STATS = 27,
29
+ EDEN_STARTING_STATS_HEALTH = 27,
30
30
  FADE_IN_REMOVER = 28,
31
31
  FAST_RESET = 29,
32
32
  FLYING_DETECTION = 30,
@@ -1 +1 @@
1
- {"version":3,"file":"ISCFeature.d.ts","sourceRoot":"","sources":["../../../src/enums/ISCFeature.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IAEpB,aAAa,IAAA;IACb,iBAAiB,IAAA;IACjB,cAAc,IAAA;IACd,+BAA+B,IAAA;IAC/B,4BAA4B,IAAA;IAC5B,4BAA4B,IAAA;IAC5B,wBAAwB,IAAA;IACxB,qBAAqB,IAAA;IACrB,uBAAuB,IAAA;IACvB,4BAA4B,IAAA;IAC5B,0BAA0B,KAAA;IAC1B,wBAAwB,KAAA;IACxB,qBAAqB,KAAA;IACrB,qBAAqB,KAAA;IAGrB,2BAA2B,KAAA;IAC3B,eAAe,KAAA;IACf,0BAA0B,KAAA;IAC1B,oBAAoB,KAAA;IACpB,iBAAiB,KAAA;IACjB,cAAc,KAAA;IACd,cAAc,KAAA;IACd,aAAa,KAAA;IACb,gBAAgB,KAAA;IAChB,aAAa,KAAA;IACb,gBAAgB,KAAA;IAChB,iBAAiB,KAAA;IACjB,cAAc,KAAA;IACd,mBAAmB,KAAA;IACnB,eAAe,KAAA;IACf,UAAU,KAAA;IACV,gBAAgB,KAAA;IAChB,gBAAgB,KAAA;IAChB,sBAAsB,KAAA;IACtB,mBAAmB,KAAA;IACnB,wBAAwB,KAAA;IACxB,mBAAmB,KAAA;IACnB,cAAc,KAAA;IACd,KAAK,KAAA;IACL,mBAAmB,KAAA;IACnB,qBAAqB,KAAA;IACrB,2BAA2B,KAAA;IAC3B,cAAc,KAAA;IACd,WAAW,KAAA;IACX,sBAAsB,KAAA;IACtB,4BAA4B,KAAA;IAC5B,2BAA2B,KAAA;IAC3B,gBAAgB,KAAA;IAChB,YAA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IACf,aAAa,KAAA;IACb,iBAAiB,KAAA;IACjB,sBAAsB,KAAA;IACtB,iBAAiB,KAAA;IACjB,aAAa,KAAA;IACb,YAAY,KAAA;IACZ,uBAAuB,KAAA;CACxB"}
@@ -54,8 +54,8 @@ ____exports.ISCFeature.DISABLE_ALL_SOUND = 25
54
54
  ____exports.ISCFeature[____exports.ISCFeature.DISABLE_ALL_SOUND] = "DISABLE_ALL_SOUND"
55
55
  ____exports.ISCFeature.DISABLE_INPUTS = 26
56
56
  ____exports.ISCFeature[____exports.ISCFeature.DISABLE_INPUTS] = "DISABLE_INPUTS"
57
- ____exports.ISCFeature.EDEN_STARTING_STATS = 27
58
- ____exports.ISCFeature[____exports.ISCFeature.EDEN_STARTING_STATS] = "EDEN_STARTING_STATS"
57
+ ____exports.ISCFeature.EDEN_STARTING_STATS_HEALTH = 27
58
+ ____exports.ISCFeature[____exports.ISCFeature.EDEN_STARTING_STATS_HEALTH] = "EDEN_STARTING_STATS_HEALTH"
59
59
  ____exports.ISCFeature.FADE_IN_REMOVER = 28
60
60
  ____exports.ISCFeature[____exports.ISCFeature.FADE_IN_REMOVER] = "FADE_IN_REMOVER"
61
61
  ____exports.ISCFeature.FAST_RESET = 29
@@ -26,7 +26,7 @@ import { DebugDisplay } from "./classes/features/other/DebugDisplay";
26
26
  import { DeployJSONRoom } from "./classes/features/other/DeployJSONRoom";
27
27
  import { DisableAllSound } from "./classes/features/other/DisableAllSound";
28
28
  import { DisableInputs } from "./classes/features/other/DisableInputs";
29
- import { EdenStartingStats } from "./classes/features/other/EdenStartingStats";
29
+ import { EdenStartingStatsHealth } from "./classes/features/other/EdenStartingStatsHealth";
30
30
  import { ExtraConsoleCommands } from "./classes/features/other/ExtraConsoleCommands";
31
31
  import { FadeInRemover } from "./classes/features/other/FadeInRemover";
32
32
  import { FastReset } from "./classes/features/other/FastReset";
@@ -85,7 +85,7 @@ export interface ISCFeatureToClass {
85
85
  [ISCFeature.DEPLOY_JSON_ROOM]: DeployJSONRoom;
86
86
  [ISCFeature.DISABLE_ALL_SOUND]: DisableAllSound;
87
87
  [ISCFeature.DISABLE_INPUTS]: DisableInputs;
88
- [ISCFeature.EDEN_STARTING_STATS]: EdenStartingStats;
88
+ [ISCFeature.EDEN_STARTING_STATS_HEALTH]: EdenStartingStatsHealth;
89
89
  [ISCFeature.FADE_IN_REMOVER]: FadeInRemover;
90
90
  [ISCFeature.FAST_RESET]: FastReset;
91
91
  [ISCFeature.FLYING_DETECTION]: FlyingDetection;
@@ -143,7 +143,7 @@ export declare function getFeatures(mod: ModUpgradedInterface, callbacks: ModCal
143
143
  readonly 24: DeployJSONRoom;
144
144
  readonly 25: DisableAllSound;
145
145
  readonly 26: DisableInputs;
146
- readonly 27: EdenStartingStats;
146
+ readonly 27: EdenStartingStatsHealth;
147
147
  readonly 28: FadeInRemover;
148
148
  readonly 29: FastReset;
149
149
  readonly 30: FlyingDetection;
@@ -1 +1 @@
1
- {"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../src/features.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AACjG,OAAO,EAAE,4BAA4B,EAAE,MAAM,+DAA+D,CAAC;AAC7G,OAAO,EAAE,yBAAyB,EAAE,MAAM,4DAA4D,CAAC;AACvG,OAAO,EAAE,yBAAyB,EAAE,MAAM,4DAA4D,CAAC;AACvG,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAC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AAKD,wBAAgB,WAAW,CACzB,GAAG,EAAE,oBAAoB,EACzB,SAAS,EAAE,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoLpC"}
@@ -55,8 +55,8 @@ local ____DisableAllSound = require("src.classes.features.other.DisableAllSound"
55
55
  local DisableAllSound = ____DisableAllSound.DisableAllSound
56
56
  local ____DisableInputs = require("src.classes.features.other.DisableInputs")
57
57
  local DisableInputs = ____DisableInputs.DisableInputs
58
- local ____EdenStartingStats = require("src.classes.features.other.EdenStartingStats")
59
- local EdenStartingStats = ____EdenStartingStats.EdenStartingStats
58
+ local ____EdenStartingStatsHealth = require("src.classes.features.other.EdenStartingStatsHealth")
59
+ local EdenStartingStatsHealth = ____EdenStartingStatsHealth.EdenStartingStatsHealth
60
60
  local ____ExtraConsoleCommands = require("src.classes.features.other.ExtraConsoleCommands")
61
61
  local ExtraConsoleCommands = ____ExtraConsoleCommands.ExtraConsoleCommands
62
62
  local ____FadeInRemover = require("src.classes.features.other.FadeInRemover")
@@ -212,7 +212,7 @@ function ____exports.getFeatures(self, mod, callbacks)
212
212
  [ISCFeature.DEPLOY_JSON_ROOM] = __TS__New(DeployJSONRoom, preventGridEntityRespawn, spawnCollectible),
213
213
  [ISCFeature.DISABLE_ALL_SOUND] = disableAllSound,
214
214
  [ISCFeature.DISABLE_INPUTS] = disableInputs,
215
- [ISCFeature.EDEN_STARTING_STATS] = __TS__New(EdenStartingStats),
215
+ [ISCFeature.EDEN_STARTING_STATS_HEALTH] = __TS__New(EdenStartingStatsHealth),
216
216
  [ISCFeature.FADE_IN_REMOVER] = __TS__New(FadeInRemover),
217
217
  [ISCFeature.FAST_RESET] = __TS__New(FastReset),
218
218
  [ISCFeature.FLYING_DETECTION] = __TS__New(FlyingDetection, moddedElementSets),
@@ -1,4 +1,4 @@
1
- import type { CollectibleType } from "isaac-typescript-definitions";
1
+ import type { CollectibleType, TrinketType } from "isaac-typescript-definitions";
2
2
  import { PlayerType } from "isaac-typescript-definitions";
3
3
  /**
4
4
  * Helper function to determine if the given character can have red heart containers. Returns true
@@ -53,7 +53,14 @@ export declare function getCharacterName(character: PlayerType): string;
53
53
  *
54
54
  * Note that this will return an empty array for Eden and Tainted Eden.
55
55
  */
56
- export declare function getCharacterStartingCollectibles(character: PlayerType): readonly CollectibleType[];
56
+ export declare function getCharacterStartingCollectibleTypes(character: PlayerType): readonly CollectibleType[];
57
+ /**
58
+ * Helper function to get the trinket that is granted to a particular character at the beginning of
59
+ * a run. Returns undefined if the character does not start with a trinket.
60
+ *
61
+ * Note that this will return undefined for Eden and Tainted Eden.
62
+ */
63
+ export declare function getCharacterStartingTrinketType(character: PlayerType): TrinketType | undefined;
57
64
  export declare function isFlyingCharacter(character: PlayerType): boolean;
58
65
  /**
59
66
  * Helper function to check if the provided character is one of the characters that are selectable
@@ -1 +1 @@
1
- {"version":3,"file":"characters.d.ts","sourceRoot":"","sources":["../../../src/functions/characters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAiB1D;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAExE;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAEzE;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAE7E;AAED;;;;GAIG;AACH,wBAAgB,uCAAuC,CACrD,SAAS,EAAE,UAAU,GACpB,OAAO,CAET;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAE5E;AAED,8EAA8E;AAC9E,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,UAAU,EACrB,iBAAiB,UAAQ,GACxB,KAAK,C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AA4B,CAC1C,SAAS,EAAE,UAAU,EACrB,iBAAiB,UAAQ,GACxB,KAAK,CAMP;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,CAU5E;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,UAAU,GAAG,GAAG,CAsBzE;AAED,+FAA+F;AAC/F,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,CAM9D;AAED;;;;;GAKG;AACH,wBAAgB,oCAAoC,CAClD,SAAS,EAAE,UAAU,GACpB,SAAS,eAAe,EAAE,CAE5B;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,UAAU,GACpB,WAAW,GAAG,SAAS,CAEzB;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAEhE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAE9D;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAEhE;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAEjE"}
@@ -12,8 +12,10 @@ local ____characterDamageMultipliers = require("src.objects.characterDamageMulti
12
12
  local CHARACTER_DAMAGE_MULTIPLIERS = ____characterDamageMultipliers.CHARACTER_DAMAGE_MULTIPLIERS
13
13
  local ____characterNames = require("src.objects.characterNames")
14
14
  local CHARACTER_NAMES = ____characterNames.CHARACTER_NAMES
15
- local ____characterStartingCollectibles = require("src.objects.characterStartingCollectibles")
16
- local CHARACTER_STARTING_COLLECTIBLES = ____characterStartingCollectibles.CHARACTER_STARTING_COLLECTIBLES
15
+ local ____characterStartingCollectibleTypes = require("src.objects.characterStartingCollectibleTypes")
16
+ local CHARACTER_STARTING_COLLECTIBLE_TYPES = ____characterStartingCollectibleTypes.CHARACTER_STARTING_COLLECTIBLE_TYPES
17
+ local ____characterStartingTrinketTypes = require("src.objects.characterStartingTrinketTypes")
18
+ local CHARACTER_STARTING_TRINKET_TYPE = ____characterStartingTrinketTypes.CHARACTER_STARTING_TRINKET_TYPE
17
19
  local ____charactersThatStartWithAnActiveItemSet = require("src.sets.charactersThatStartWithAnActiveItemSet")
18
20
  local CHARACTERS_THAT_START_WITH_AN_ACTIVE_ITEM_SET = ____charactersThatStartWithAnActiveItemSet.CHARACTERS_THAT_START_WITH_AN_ACTIVE_ITEM_SET
19
21
  local ____charactersWithBlackHeartFromEternalHeartSet = require("src.sets.charactersWithBlackHeartFromEternalHeartSet")
@@ -118,8 +120,15 @@ end
118
120
  -- beginning of a run.
119
121
  --
120
122
  -- Note that this will return an empty array for Eden and Tainted Eden.
121
- function ____exports.getCharacterStartingCollectibles(self, character)
122
- return CHARACTER_STARTING_COLLECTIBLES[character]
123
+ function ____exports.getCharacterStartingCollectibleTypes(self, character)
124
+ return CHARACTER_STARTING_COLLECTIBLE_TYPES[character]
125
+ end
126
+ --- Helper function to get the trinket that is granted to a particular character at the beginning of
127
+ -- a run. Returns undefined if the character does not start with a trinket.
128
+ --
129
+ -- Note that this will return undefined for Eden and Tainted Eden.
130
+ function ____exports.getCharacterStartingTrinketType(self, character)
131
+ return CHARACTER_STARTING_TRINKET_TYPE[character]
123
132
  end
124
133
  function ____exports.isFlyingCharacter(self, character)
125
134
  return FLYING_CHARACTERS_SET:has(character)
@@ -14,10 +14,10 @@ local sfxManager = ____cachedClasses.sfxManager
14
14
  local ____collectibles = require("src.functions.collectibles")
15
15
  local getCollectibleChargeType = ____collectibles.getCollectibleChargeType
16
16
  local getCollectibleMaxCharges = ____collectibles.getCollectibleMaxCharges
17
+ local ____playerCollectibles = require("src.functions.playerCollectibles")
18
+ local getActiveItemSlots = ____playerCollectibles.getActiveItemSlots
17
19
  local ____playerIndex = require("src.functions.playerIndex")
18
20
  local getPlayers = ____playerIndex.getPlayers
19
- local ____players = require("src.functions.players")
20
- local getActiveItemSlots = ____players.getActiveItemSlots
21
21
  local ____roomShape = require("src.functions.roomShape")
22
22
  local getRoomShapeCharges = ____roomShape.getRoomShapeCharges
23
23
  --- Helper function to add a charge to the player's active item. Will flash the HUD and play the
@@ -37,6 +37,7 @@ export declare function lerp(a: number, b: number, pos: float): number;
37
37
  export declare function lerpAngleDegrees(aStart: number, aEnd: number, percent: float): number;
38
38
  /**
39
39
  * If rounding fails, this function returns 0.
40
+ *
40
41
  * From: http://lua-users.org/wiki/SimpleRound
41
42
  *
42
43
  * @param num The number to round.
@@ -1 +1 @@
1
- {"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../src/functions/math.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAGzD;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,CAEvD;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,KAAK,CAGtE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,KAAK,EACb,SAAS,EAAE,GAAG,EACd,WAAW,SAAI,EACf,WAAW,SAAI,EACf,gBAAgB,YAAe,GAC9B,MAAM,EAAE,CAaV;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GAClB,OAAO,CAOT;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,KAAK,EACnB,gBAAgB,EAAE,MAAM,EACxB,oBAAoB,EAAE,MAAM,GAC3B,OAAO,CAgBT;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAGx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EAAE,MAAM,EACpB,YAAY,EAAE,KAAK,EACnB,gBAAgB,EAAE,MAAM,EACxB,oBAAoB,EAAE,MAAM,GAC3B,OAAO,CAgBT;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAGxC;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAGvC;AAED,wBAAgB,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,GAAG,MAAM,CAE7D;AAED,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,KAAK,GACb,MAAM,CAER;AAED;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,gBAAgB,SAAI,GAAG,KAAK,CAG7D;AAED,wEAAwE;AACxE,wBAAgB,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAUnC;AAED,wBAAgB,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEtC"}
@@ -87,6 +87,7 @@ function ____exports.lerpAngleDegrees(self, aStart, aEnd, percent)
87
87
  return aStart + ____exports.getAngleDifference(nil, aStart, aEnd) * percent
88
88
  end
89
89
  --- If rounding fails, this function returns 0.
90
+ --
90
91
  -- From: http://lua-users.org/wiki/SimpleRound
91
92
  --
92
93
  -- @param num The number to round.
@@ -0,0 +1,127 @@
1
+ import { ActiveSlot, CollectibleType } from "isaac-typescript-definitions";
2
+ /**
3
+ * Helper function to add one or more collectibles to a player.
4
+ *
5
+ * This function is variadic, meaning that you can supply as many collectible types as you want to
6
+ * add.
7
+ */
8
+ export declare function addCollectible(player: EntityPlayer, ...collectibleTypes: CollectibleType[]): void;
9
+ export declare function addCollectibleCostume(player: EntityPlayer, collectibleType: CollectibleType): void;
10
+ /**
11
+ * Helper function to check to see if any player has a particular collectible.
12
+ *
13
+ * @param collectibleType The collectible type to check for.
14
+ * @param ignoreModifiers If set to true, only counts collectibles the player actually owns and
15
+ * ignores effects granted by items like Zodiac, 3 Dollar Bill and Lemegeton.
16
+ * Default is false.
17
+ */
18
+ export declare function anyPlayerHasCollectible(collectibleType: CollectibleType, ignoreModifiers?: boolean): boolean;
19
+ /**
20
+ * Helper function to find the active slots that the player has the corresponding collectible type
21
+ * in. Returns an empty array if the player does not have the collectible in any active slot.
22
+ */
23
+ export declare function getActiveItemSlots(player: EntityPlayer, collectibleType: CollectibleType): ActiveSlot[];
24
+ /**
25
+ * Helper function to return the total amount of collectibles that a player has that match the
26
+ * collectible type(s) provided.
27
+ *
28
+ * This function is variadic, meaning that you can specify N collectible types.
29
+ *
30
+ * Note that this will filter out non-real collectibles like Lilith's Incubus.
31
+ */
32
+ export declare function getPlayerCollectibleCount(player: EntityPlayer, ...collectibleTypes: CollectibleType[]): int;
33
+ /**
34
+ * Helper function to get only the players that have a certain collectible.
35
+ *
36
+ * This function is variadic, meaning that you can supply as many collectible types as you want to
37
+ * check for. It only returns the players that have all of the collectibles.
38
+ */
39
+ export declare function getPlayersWithCollectible(...collectibleTypes: CollectibleType[]): EntityPlayer[];
40
+ /**
41
+ * Returns the total number of collectibles amongst all players. For example, if player 1 has 1 Sad
42
+ * Onion and player 2 has 2 Sad Onions, then this function would return 3.
43
+ *
44
+ * Note that this will filter out non-real collectibles like Lilith's Incubus.
45
+ */
46
+ export declare function getTotalPlayerCollectibles(collectibleType: CollectibleType): int;
47
+ /**
48
+ * Helper function to check to see if a player has one or more collectibles.
49
+ *
50
+ * This function is variadic, meaning that you can supply as many collectible types as you want to
51
+ * check for. Returns true if the player has any of the supplied collectible types.
52
+ *
53
+ * This function always passes `false` to the `ignoreModifiers` argument.
54
+ */
55
+ export declare function hasCollectible(player: EntityPlayer, ...collectibleTypes: CollectibleType[]): boolean;
56
+ /**
57
+ * Helper function to check to see if a player has a specific collectible in one or more active
58
+ * slots.
59
+ *
60
+ * This function is variadic, meaning that you can specify as many active slots as you want to check
61
+ * for. This function will return true if the collectible type is located in any of the active slots
62
+ * provided.
63
+ */
64
+ export declare function hasCollectibleInActiveSlot(player: EntityPlayer, collectibleType: CollectibleType, ...activeSlots: ActiveSlot[]): boolean;
65
+ /**
66
+ * Returns whether the player can hold an additional active item, beyond what they are currently
67
+ * carrying. This takes the Schoolbag into account.
68
+ *
69
+ * If the player is the Tainted Soul, this always returns false, since that character cannot pick up
70
+ * items. (Only Tainted Forgotten can pick up items.)
71
+ */
72
+ export declare function hasOpenActiveItemSlot(player: EntityPlayer): boolean;
73
+ /**
74
+ * Helper function to check if the active slot of a particular player is empty.
75
+ *
76
+ * @param player The player to check.
77
+ * @param activeSlot Optional. The active slot to check. Default is `ActiveSlot.PRIMARY`.
78
+ */
79
+ export declare function isActiveSlotEmpty(player: EntityPlayer, activeSlot?: ActiveSlot): boolean;
80
+ /**
81
+ * Helper function to remove all of the active items from a player. This includes the Schoolbag item
82
+ * and any pocket actives.
83
+ */
84
+ export declare function removeAllActiveItems(player: EntityPlayer): void;
85
+ /**
86
+ * Helper function to remove one or more collectibles to a player.
87
+ *
88
+ * This function is variadic, meaning that you can supply as many collectible types as you want to
89
+ * remove.
90
+ */
91
+ export declare function removeCollectible(player: EntityPlayer, ...collectibleTypes: CollectibleType[]): void;
92
+ /**
93
+ * Helper function to remove a collectible costume from a player. Use this helper function to avoid
94
+ * having to request the collectible from the item config.
95
+ */
96
+ export declare function removeCollectibleCostume(player: EntityPlayer, collectibleType: CollectibleType): void;
97
+ /**
98
+ * Helper function to remove one or more collectibles from all players. If any player has more than
99
+ * one copy of the item, then all copies of it will be removed.
100
+ *
101
+ * This function is variadic, meaning that you can specify as many collectibles as you want to
102
+ * remove.
103
+ */
104
+ export declare function removeCollectibleFromAllPlayers(...collectibleTypes: CollectibleType[]): void;
105
+ /**
106
+ * Helper function to set an active collectible to a particular slot. This has different behavior
107
+ * than calling the `player.AddCollectible` method with the `activeSlot` argument, because this
108
+ * function will not shift existing items into the Schoolbag and it handles
109
+ * `ActiveSlot.SLOT_POCKET2`.
110
+ *
111
+ * Note that if an item is set to `ActiveSlot.SLOT_POCKET2`, it will disappear after being used and
112
+ * will be automatically removed upon entering a new room.
113
+ *
114
+ * @param player The player to give the item to.
115
+ * @param collectibleType The collectible type of the item to give.
116
+ * @param activeSlot Optional. The slot to set. Default is `ActiveSlot.PRIMARY`.
117
+ * @param charge Optional. The argument of charges to set. If not specified, the item will be set
118
+ * with maximum charges.
119
+ * @param keepInPools Optional. Whether to remove the item from pools. Default is false.
120
+ */
121
+ export declare function setActiveItem(player: EntityPlayer, collectibleType: CollectibleType, activeSlot?: ActiveSlot, charge?: int, keepInPools?: boolean): void;
122
+ /**
123
+ * Helper function to use an active item without showing an animation, keeping the item, or adding
124
+ * any costumes.
125
+ */
126
+ export declare function useActiveItemTemp(player: EntityPlayer, collectibleType: CollectibleType): void;
127
+ //# sourceMappingURL=playerCollectibles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playerCollectibles.d.ts","sourceRoot":"","sources":["../../../src/functions/playerCollectibles.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,eAAe,EAEhB,MAAM,8BAA8B,CAAC;AAStC;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,YAAY,EACpB,GAAG,gBAAgB,EAAE,eAAe,EAAE,GACrC,IAAI,CAIN;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,eAAe,EAAE,eAAe,GAC/B,IAAI,CAON;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,eAAe,EAAE,eAAe,EAChC,eAAe,CAAC,EAAE,OAAO,GACxB,OAAO,CAMT;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,YAAY,EACpB,eAAe,EAAE,eAAe,GAC/B,UAAU,EAAE,CAKd;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,E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