isaacscript-common 7.0.0 → 7.1.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 (144) hide show
  1. package/dist/callbacks/postPlayerChangeHealth.lua +8 -1
  2. package/dist/callbacks/postPlayerChangeStat.d.ts +3 -0
  3. package/dist/callbacks/postPlayerChangeStat.d.ts.map +1 -0
  4. package/dist/callbacks/postPlayerChangeStat.lua +59 -0
  5. package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts +2 -2
  6. package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts.map +1 -1
  7. package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +9 -2
  8. package/dist/callbacks/subscriptions/postPlayerChangeStat.d.ts +12 -0
  9. package/dist/callbacks/subscriptions/postPlayerChangeStat.d.ts.map +1 -0
  10. package/dist/callbacks/subscriptions/postPlayerChangeStat.lua +35 -0
  11. package/dist/core/constants.d.ts +1 -1
  12. package/dist/core/constants.d.ts.map +1 -1
  13. package/dist/core/constants.lua +1 -1
  14. package/dist/enums/ModCallbackCustom.d.ts +70 -39
  15. package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
  16. package/dist/enums/ModCallbackCustom.lua +37 -35
  17. package/dist/enums/StatType.d.ts +30 -0
  18. package/dist/enums/StatType.d.ts.map +1 -0
  19. package/dist/enums/StatType.lua +30 -0
  20. package/dist/enums/index.d.ts +1 -0
  21. package/dist/enums/index.d.ts.map +1 -1
  22. package/dist/enums/index.lua +8 -0
  23. package/dist/enums/private/CopyableIsaacAPIClassType.d.ts +5 -1
  24. package/dist/enums/private/CopyableIsaacAPIClassType.d.ts.map +1 -1
  25. package/dist/enums/private/CopyableIsaacAPIClassType.lua +3 -1
  26. package/dist/enums/private/SerializationBrand.d.ts +1 -0
  27. package/dist/enums/private/SerializationBrand.d.ts.map +1 -1
  28. package/dist/enums/private/SerializationBrand.lua +1 -0
  29. package/dist/features/customStage/versusScreen.lua +2 -2
  30. package/dist/features/saveDataManager/merge.d.ts +1 -0
  31. package/dist/features/saveDataManager/merge.d.ts.map +1 -1
  32. package/dist/features/saveDataManager/merge.lua +1 -0
  33. package/dist/functions/bitSet128.d.ts +25 -0
  34. package/dist/functions/bitSet128.d.ts.map +1 -0
  35. package/dist/functions/bitSet128.lua +71 -0
  36. package/dist/functions/collectibles.d.ts +2 -2
  37. package/dist/functions/collectibles.lua +2 -2
  38. package/dist/functions/color.d.ts +1 -1
  39. package/dist/functions/color.d.ts.map +1 -1
  40. package/dist/functions/color.lua +2 -2
  41. package/dist/functions/deepCopy.d.ts +1 -0
  42. package/dist/functions/deepCopy.d.ts.map +1 -1
  43. package/dist/functions/deepCopy.lua +1 -0
  44. package/dist/functions/familiars.d.ts +4 -4
  45. package/dist/functions/familiars.lua +4 -4
  46. package/dist/functions/flag.d.ts +1 -1
  47. package/dist/functions/flag.lua +1 -1
  48. package/dist/functions/index.d.ts +2 -0
  49. package/dist/functions/index.d.ts.map +1 -1
  50. package/dist/functions/index.lua +16 -0
  51. package/dist/functions/jsonRoom.lua +4 -4
  52. package/dist/functions/kColor.d.ts +1 -1
  53. package/dist/functions/kColor.d.ts.map +1 -1
  54. package/dist/functions/kColor.lua +2 -2
  55. package/dist/functions/log.lua +1 -1
  56. package/dist/functions/npcs.d.ts +2 -2
  57. package/dist/functions/npcs.lua +2 -2
  58. package/dist/functions/playerIndex.d.ts +1 -1
  59. package/dist/functions/playerIndex.lua +1 -1
  60. package/dist/functions/playerStats.d.ts +6 -0
  61. package/dist/functions/playerStats.d.ts.map +1 -0
  62. package/dist/functions/playerStats.lua +22 -0
  63. package/dist/functions/players.d.ts +1 -1
  64. package/dist/functions/players.lua +1 -1
  65. package/dist/functions/rng.d.ts +1 -1
  66. package/dist/functions/rng.d.ts.map +1 -1
  67. package/dist/functions/rng.lua +2 -2
  68. package/dist/functions/roomTransition.d.ts +1 -1
  69. package/dist/functions/roomTransition.lua +1 -1
  70. package/dist/functions/rooms.d.ts +1 -1
  71. package/dist/functions/rooms.lua +1 -1
  72. package/dist/functions/sprites.d.ts +3 -3
  73. package/dist/functions/sprites.lua +3 -3
  74. package/dist/functions/tears.d.ts +5 -4
  75. package/dist/functions/tears.d.ts.map +1 -1
  76. package/dist/functions/tears.lua +5 -4
  77. package/dist/functions/utils.d.ts +4 -1
  78. package/dist/functions/utils.d.ts.map +1 -1
  79. package/dist/functions/utils.lua +4 -1
  80. package/dist/functions/vector.d.ts +1 -1
  81. package/dist/functions/vector.d.ts.map +1 -1
  82. package/dist/functions/vector.lua +2 -2
  83. package/dist/initCustomCallbacks.d.ts.map +1 -1
  84. package/dist/initCustomCallbacks.lua +3 -0
  85. package/dist/interfaces/SaveData.d.ts +2 -5
  86. package/dist/interfaces/SaveData.d.ts.map +1 -1
  87. package/dist/interfaces/StatTypeType.d.ts +18 -0
  88. package/dist/interfaces/StatTypeType.d.ts.map +1 -0
  89. package/dist/interfaces/StatTypeType.lua +4 -0
  90. package/dist/interfaces/index.d.ts +1 -0
  91. package/dist/interfaces/index.d.ts.map +1 -1
  92. package/dist/interfaces/private/AddCallbackParameterCustom.d.ts +2 -0
  93. package/dist/interfaces/private/AddCallbackParameterCustom.d.ts.map +1 -1
  94. package/dist/objects/callbackRegisterFunctions.d.ts.map +1 -1
  95. package/dist/objects/callbackRegisterFunctions.lua +3 -0
  96. package/dist/objects/isaacAPIClassTypeToBrand.d.ts.map +1 -1
  97. package/dist/objects/isaacAPIClassTypeToBrand.lua +7 -1
  98. package/dist/objects/isaacAPIClassTypeToFunctions.d.ts.map +1 -1
  99. package/dist/objects/isaacAPIClassTypeToFunctions.lua +12 -1
  100. package/package.json +2 -2
  101. package/src/callbacks/postPlayerChangeHealth.ts +7 -1
  102. package/src/callbacks/postPlayerChangeStat.ts +68 -0
  103. package/src/callbacks/subscriptions/postPlayerChangeHealth.ts +5 -1
  104. package/src/callbacks/subscriptions/postPlayerChangeStat.ts +55 -0
  105. package/src/core/constants.ts +1 -1
  106. package/src/enums/ModCallbackCustom.ts +36 -4
  107. package/src/enums/StatType.ts +47 -0
  108. package/src/enums/index.ts +1 -0
  109. package/src/enums/indexTypeDoc.ts +1 -0
  110. package/src/enums/private/CopyableIsaacAPIClassType.ts +5 -1
  111. package/src/enums/private/SerializationBrand.ts +1 -0
  112. package/src/features/customStage/versusScreen.ts +2 -2
  113. package/src/features/saveDataManager/merge.ts +1 -0
  114. package/src/functions/bitSet128.ts +96 -0
  115. package/src/functions/collectibles.ts +2 -2
  116. package/src/functions/color.ts +3 -2
  117. package/src/functions/deepCopy.ts +1 -0
  118. package/src/functions/familiars.ts +4 -4
  119. package/src/functions/flag.ts +1 -1
  120. package/src/functions/index.ts +2 -0
  121. package/src/functions/indexTypeDoc.ts +2 -0
  122. package/src/functions/jsonRoom.ts +4 -4
  123. package/src/functions/kColor.ts +2 -2
  124. package/src/functions/log.ts +1 -1
  125. package/src/functions/npcs.ts +2 -2
  126. package/src/functions/playerIndex.ts +1 -1
  127. package/src/functions/playerStats.ts +26 -0
  128. package/src/functions/players.ts +1 -1
  129. package/src/functions/rng.ts +2 -2
  130. package/src/functions/roomTransition.ts +1 -1
  131. package/src/functions/rooms.ts +1 -1
  132. package/src/functions/sprites.ts +3 -3
  133. package/src/functions/tears.ts +5 -4
  134. package/src/functions/utils.ts +5 -1
  135. package/src/functions/vector.ts +2 -2
  136. package/src/initCustomCallbacks.ts +2 -0
  137. package/src/interfaces/SaveData.ts +1 -5
  138. package/src/interfaces/StatTypeType.ts +18 -0
  139. package/src/interfaces/index.ts +1 -0
  140. package/src/interfaces/indexTypeDoc.ts +1 -0
  141. package/src/interfaces/private/AddCallbackParameterCustom.ts +2 -0
  142. package/src/objects/callbackRegisterFunctions.ts +2 -0
  143. package/src/objects/isaacAPIClassTypeToBrand.ts +1 -0
  144. package/src/objects/isaacAPIClassTypeToFunctions.ts +12 -0
@@ -35,7 +35,14 @@ function postPEffectUpdateReordered(self, player)
35
35
  playerHealthMap:set(healthType, currentHealthValue)
36
36
  if storedHealthValue ~= nil and storedHealthValue ~= currentHealthValue then
37
37
  local difference = currentHealthValue - storedHealthValue
38
- postPlayerChangeHealthFire(nil, player, healthType, difference)
38
+ postPlayerChangeHealthFire(
39
+ nil,
40
+ player,
41
+ healthType,
42
+ difference,
43
+ storedHealthValue,
44
+ currentHealthValue
45
+ )
39
46
  end
40
47
  end
41
48
  end
@@ -0,0 +1,3 @@
1
+ import { ModUpgraded } from "../classes/ModUpgraded";
2
+ export declare function postPlayerChangeStatInit(mod: ModUpgraded): void;
3
+ //# sourceMappingURL=postPlayerChangeStat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postPlayerChangeStat.d.ts","sourceRoot":"","sources":["../../src/callbacks/postPlayerChangeStat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAsBrD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,CAO/D"}
@@ -0,0 +1,59 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Map = ____lualib.Map
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ local hasSubscriptions, postPEffectUpdateReordered, v
6
+ local ____DefaultMap = require("classes.DefaultMap")
7
+ local DefaultMap = ____DefaultMap.DefaultMap
8
+ local ____enums = require("enums.index")
9
+ local StatType = ____enums.StatType
10
+ local ____ModCallbackCustom = require("enums.ModCallbackCustom")
11
+ local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
12
+ local ____exports = require("features.saveDataManager.exports")
13
+ local saveDataManager = ____exports.saveDataManager
14
+ local ____functions = require("functions.index")
15
+ local getPlayerStat = ____functions.getPlayerStat
16
+ local isNumber = ____functions.isNumber
17
+ local ____enums = require("functions.enums")
18
+ local getEnumValues = ____enums.getEnumValues
19
+ local ____playerIndex = require("functions.playerIndex")
20
+ local getPlayerIndex = ____playerIndex.getPlayerIndex
21
+ local ____postPlayerChangeStat = require("callbacks.subscriptions.postPlayerChangeStat")
22
+ local postPlayerChangeStatFire = ____postPlayerChangeStat.postPlayerChangeStatFire
23
+ local postPlayerChangeStatHasSubscriptions = ____postPlayerChangeStat.postPlayerChangeStatHasSubscriptions
24
+ function hasSubscriptions(self)
25
+ return postPlayerChangeStatHasSubscriptions(nil)
26
+ end
27
+ function postPEffectUpdateReordered(self, player)
28
+ if not hasSubscriptions(nil) then
29
+ return
30
+ end
31
+ local playerIndex = getPlayerIndex(nil, player, true)
32
+ local playerStatMap = v.run.playersStatMap:getAndSetDefault(playerIndex)
33
+ for ____, statType in ipairs(getEnumValues(nil, StatType)) do
34
+ local storedStatValue = playerStatMap:get(statType)
35
+ local currentStatValue = getPlayerStat(nil, player, statType)
36
+ playerStatMap:set(statType, currentStatValue)
37
+ if storedStatValue ~= nil and storedStatValue ~= currentStatValue then
38
+ local isNumberStat = isNumber(nil, storedStatValue) and isNumber(nil, currentStatValue)
39
+ local difference = isNumberStat and currentStatValue - storedStatValue or 0
40
+ postPlayerChangeStatFire(
41
+ nil,
42
+ player,
43
+ statType,
44
+ difference,
45
+ storedStatValue,
46
+ currentStatValue
47
+ )
48
+ end
49
+ end
50
+ end
51
+ v = {run = {playersStatMap = __TS__New(
52
+ DefaultMap,
53
+ function() return __TS__New(Map) end
54
+ )}}
55
+ function ____exports.postPlayerChangeStatInit(self, mod)
56
+ saveDataManager(nil, "postPlayerChangeStat", v, hasSubscriptions)
57
+ mod:AddCallbackCustom(ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, postPEffectUpdateReordered)
58
+ end
59
+ return ____exports
@@ -1,11 +1,11 @@
1
1
  import { PlayerType, PlayerVariant } from "isaac-typescript-definitions";
2
2
  import { HealthType } from "../../enums/HealthType";
3
3
  export declare type PostPlayerChangeHealthRegisterParameters = [
4
- callback: (player: EntityPlayer, healthType: HealthType, difference: int) => void,
4
+ callback: (player: EntityPlayer, healthType: HealthType, difference: int, oldValue: int, newValue: int) => void,
5
5
  playerVariant?: PlayerVariant,
6
6
  character?: PlayerType
7
7
  ];
8
8
  export declare function postPlayerChangeHealthHasSubscriptions(): boolean;
9
9
  export declare function postPlayerChangeHealthRegister(...args: PostPlayerChangeHealthRegisterParameters): void;
10
- export declare function postPlayerChangeHealthFire(player: EntityPlayer, healthType: HealthType, difference: int): void;
10
+ export declare function postPlayerChangeHealthFire(player: EntityPlayer, healthType: HealthType, difference: int, oldValue: int, newValue: int): void;
11
11
  //# sourceMappingURL=postPlayerChangeHealth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postPlayerChangeHealth.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postPlayerChangeHealth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,oBAAY,wCAAwC,GAAG;IACrD,QAAQ,EAAE,CACR,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,GAAG,KACZ,IAAI;IACT,aAAa,CAAC,EAAE,aAAa;IAC7B,SAAS,CAAC,EAAE,UAAU;CACvB,CAAC;AAIF,wBAAgB,sCAAsC,IAAI,OAAO,CAEhE;AAED,wBAAgB,8BAA8B,CAC5C,GAAG,IAAI,EAAE,wCAAwC,GAChD,IAAI,CAEN;AAED,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,GAAG,GACd,IAAI,CAgBN"}
1
+ {"version":3,"file":"postPlayerChangeHealth.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postPlayerChangeHealth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,oBAAY,wCAAwC,GAAG;IACrD,QAAQ,EAAE,CACR,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,GAAG,EACf,QAAQ,EAAE,GAAG,EACb,QAAQ,EAAE,GAAG,KACV,IAAI;IACT,aAAa,CAAC,EAAE,aAAa;IAC7B,SAAS,CAAC,EAAE,UAAU;CACvB,CAAC;AAIF,wBAAgB,sCAAsC,IAAI,OAAO,CAEhE;AAED,wBAAgB,8BAA8B,CAC5C,GAAG,IAAI,EAAE,wCAAwC,GAChD,IAAI,CAEN;AAED,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,GAAG,EACf,QAAQ,EAAE,GAAG,EACb,QAAQ,EAAE,GAAG,GACZ,IAAI,CAgBN"}
@@ -7,7 +7,7 @@ function ____exports.postPlayerChangeHealthRegister(self, ...)
7
7
  local args = {...}
8
8
  subscriptions[#subscriptions + 1] = args
9
9
  end
10
- function ____exports.postPlayerChangeHealthFire(self, player, healthType, difference)
10
+ function ____exports.postPlayerChangeHealthFire(self, player, healthType, difference, oldValue, newValue)
11
11
  local character = player:GetPlayerType()
12
12
  for ____, ____value in ipairs(subscriptions) do
13
13
  local callback = ____value[1]
@@ -20,7 +20,14 @@ function ____exports.postPlayerChangeHealthFire(self, player, healthType, differ
20
20
  if callbackCharacter ~= nil and callbackCharacter ~= character then
21
21
  goto __continue5
22
22
  end
23
- callback(nil, player, healthType, difference)
23
+ callback(
24
+ nil,
25
+ player,
26
+ healthType,
27
+ difference,
28
+ oldValue,
29
+ newValue
30
+ )
24
31
  end
25
32
  ::__continue5::
26
33
  end
@@ -0,0 +1,12 @@
1
+ import { PlayerType, PlayerVariant, TearFlag } from "isaac-typescript-definitions";
2
+ import { StatType } from "../../enums/StatType";
3
+ import { StatTypeType } from "../../interfaces/StatTypeType";
4
+ export declare type PostPlayerChangeStatRegisterParameters = [
5
+ callback: (player: EntityPlayer, statType: StatType, difference: int, oldValue: number | boolean | BitFlags<TearFlag> | Color | Vector, newValue: number | boolean | BitFlags<TearFlag> | Color | Vector) => void,
6
+ playerVariant?: PlayerVariant,
7
+ character?: PlayerType
8
+ ];
9
+ export declare function postPlayerChangeStatHasSubscriptions(): boolean;
10
+ export declare function postPlayerChangeStatRegister(...args: PostPlayerChangeStatRegisterParameters): void;
11
+ export declare function postPlayerChangeStatFire<T extends StatType>(player: EntityPlayer, statType: T, difference: int, oldValue: StatTypeType[T], newValue: StatTypeType[T]): void;
12
+ //# sourceMappingURL=postPlayerChangeStat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postPlayerChangeStat.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postPlayerChangeStat.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,aAAa,EACb,QAAQ,EACT,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,oBAAY,sCAAsC,GAAG;IACnD,QAAQ,EAAE,CACR,MAAM,EAAE,YAAY,EACpB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,GAAG,EACf,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC,QAAQ,CAAC,GAAG,KAAK,GAAG,MAAM,EAChE,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC,QAAQ,CAAC,GAAG,KAAK,GAAG,MAAM,KAC7D,IAAI;IACT,aAAa,CAAC,EAAE,aAAa;IAC7B,SAAS,CAAC,EAAE,UAAU;CACvB,CAAC;AAIF,wBAAgB,oCAAoC,IAAI,OAAO,CAE9D;AAED,wBAAgB,4BAA4B,CAC1C,GAAG,IAAI,EAAE,sCAAsC,GAC9C,IAAI,CAEN;AAED,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,QAAQ,EACzD,MAAM,EAAE,YAAY,EACpB,QAAQ,EAAE,CAAC,EACX,UAAU,EAAE,GAAG,EACf,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,EACzB,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,GACxB,IAAI,CAgBN"}
@@ -0,0 +1,35 @@
1
+ local ____exports = {}
2
+ local subscriptions = {}
3
+ function ____exports.postPlayerChangeStatHasSubscriptions(self)
4
+ return #subscriptions > 0
5
+ end
6
+ function ____exports.postPlayerChangeStatRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
+ end
10
+ function ____exports.postPlayerChangeStatFire(self, player, statType, difference, oldValue, newValue)
11
+ local character = player:GetPlayerType()
12
+ for ____, ____value in ipairs(subscriptions) do
13
+ local callback = ____value[1]
14
+ local playerVariant = ____value[2]
15
+ local callbackCharacter = ____value[3]
16
+ do
17
+ if playerVariant ~= nil and playerVariant ~= player.Variant then
18
+ goto __continue5
19
+ end
20
+ if callbackCharacter ~= nil and callbackCharacter ~= character then
21
+ goto __continue5
22
+ end
23
+ callback(
24
+ nil,
25
+ player,
26
+ statType,
27
+ difference,
28
+ oldValue,
29
+ newValue
30
+ )
31
+ end
32
+ ::__continue5::
33
+ end
34
+ end
35
+ return ____exports
@@ -22,7 +22,7 @@ export declare const AZAZEL_DEFAULT_BRIMSTONE_DISTANCE = 75.125;
22
22
  export declare const BLIND_ITEM_PNG_PATH = "gfx/items/collectibles/questionmark.png";
23
23
  /** Bombs explode when their frame count is equal to this value. */
24
24
  export declare const BOMB_EXPLODE_FRAME = 45;
25
- /** This is the initial value of the `EntityPickup.Wait` property after a collectible is spawned. */
25
+ /** This is the initial value of the `EntityPickup.Wait` field after a collectible is spawned. */
26
26
  export declare const COLLECTIBLE_INITIAL_WAIT = 20;
27
27
  export declare const DEFAULT_ITEM_POOL_TYPE = ItemPoolType.TREASURE;
28
28
  /** This is also the distance that a player spawns from the door that they enter a room from. */
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/core/constants.ts"],"names":[],"mapp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AAiC;AACjC,eAAO,MAAM,sCAAsC,QAAmB,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,gCAAgC,QAAmB,CAAC;AAEjE,+EAA+E;AAC/E,eAAO,MAAM,iCAAiC,SAAS,CAAC;AAExD,eAAO,MAAM,cAAc,QAA+B,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAyB,CAAC;AAExD,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,sBAAsB,QAA8B,CAAC;AAElE,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,6FAA6F;AAC7F,eAAO,MAAM,gDAAgD,QAAQ,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAgB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAgB,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAkB,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAsB,CAAC"}
@@ -23,7 +23,7 @@ ____exports.AZAZEL_DEFAULT_BRIMSTONE_DISTANCE = 75.125
23
23
  ____exports.BLIND_ITEM_PNG_PATH = "gfx/items/collectibles/questionmark.png"
24
24
  --- Bombs explode when their frame count is equal to this value.
25
25
  ____exports.BOMB_EXPLODE_FRAME = 45
26
- --- This is the initial value of the `EntityPickup.Wait` property after a collectible is spawned.
26
+ --- This is the initial value of the `EntityPickup.Wait` field after a collectible is spawned.
27
27
  ____exports.COLLECTIBLE_INITIAL_WAIT = 20
28
28
  ____exports.DEFAULT_ITEM_POOL_TYPE = ItemPoolType.TREASURE
29
29
  --- This is also the distance that a player spawns from the door that they enter a room from.
@@ -738,8 +738,8 @@ export declare enum ModCallbackCustom {
738
738
  */
739
739
  POST_PIT_UPDATE = 50,
740
740
  /**
741
- * Fires from the `POST_PEFFECT_UPDATE` callback when a player entity gains or loses any health
742
- * (i.e. hearts). For more information, see the `PlayerHealth` enum.
741
+ * Fires from the `POST_PEFFECT_UPDATE` callback when a player's health (i.e. hearts) is different
742
+ * than what it was on the previous frame. For more information, see the `PlayerHealth` enum.
743
743
  *
744
744
  * - When registering the callback, takes an optional second argument that will make the callback
745
745
  * only fire if the player matches the `PlayerVariant` provided.
@@ -751,14 +751,45 @@ export declare enum ModCallbackCustom {
751
751
  * player: EntityPlayer,
752
752
  * healthType: HealthType,
753
753
  * difference: int,
754
+ * oldValue: int,
755
+ * newValue: int,
754
756
  * ): void {}
755
757
  * ```
756
758
  */
757
759
  POST_PLAYER_CHANGE_HEALTH = 51,
760
+ /**
761
+ * Fires from the `POST_PEFFECT_UPDATE` callback when one of the player's stats change from what
762
+ * they were on the previous frame.
763
+ *
764
+ * The type of `oldValue` and `newValue` will depend on what kind of stat it is. For example,
765
+ * `StatType.FLYING` will be a boolean. (You can use the "Types" helper functions to narrow the
766
+ * type.)
767
+ *
768
+ * For `StatType.TEAR_FLAG`, `StatType.TEAR_COLOR`, `StatType.FLYING`, and `StatType.SIZE`, the
769
+ * `difference` argument will always be a value of 0, since the type of these stats are not
770
+ * numbers. (For these cases, you should examine the `oldValue` and `newValue` arguments
771
+ * accordingly.)
772
+ *
773
+ * - When registering the callback, takes an optional second argument that will make the callback
774
+ * only fire if the player matches the `PlayerVariant` provided.
775
+ * - When registering the callback, takes an optional third argument that will make the callback
776
+ * only fire if the player matches the `PlayerType` provided.
777
+ *
778
+ * ```ts
779
+ * function postPlayerChangeStat(
780
+ * player: EntityPlayer,
781
+ * statType: StatType,
782
+ * difference: int,
783
+ * oldValue: number | boolean | BitFlags<TearFlag> | Color | Vector,
784
+ * newValue: number | boolean | BitFlags<TearFlag> | Color | Vector,
785
+ * ): void {}
786
+ * ```
787
+ */
788
+ POST_PLAYER_CHANGE_STAT = 52,
758
789
  /**
759
790
  * Fires from the `POST_PEFFECT_UPDATE` callback when a player entity changes its player type
760
- * (i.e. character). For example, it will fire after using Clicker, after dying with the Judas'
761
- * Shadow collectible, etc.
791
+ * (i.e. character) from what it was on the previous frame. For example, it will fire after using
792
+ * Clicker, after dying with the Judas' Shadow collectible, etc.
762
793
  *
763
794
  * Notably, it does not fire after the player uses the Flip item or the Esau Jr. item, because
764
795
  * those items cause separate player entities to be created. Use the `POST_FLIP` and
@@ -772,7 +803,7 @@ export declare enum ModCallbackCustom {
772
803
  * ): void {}
773
804
  * ```
774
805
  */
775
- POST_PLAYER_CHANGE_TYPE = 52,
806
+ POST_PLAYER_CHANGE_TYPE = 53,
776
807
  /**
777
808
  * Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is higher than
778
809
  * what it was on the previous frame.
@@ -787,7 +818,7 @@ export declare enum ModCallbackCustom {
787
818
  * ): void {}
788
819
  * ```
789
820
  */
790
- POST_PLAYER_COLLECTIBLE_ADDED = 53,
821
+ POST_PLAYER_COLLECTIBLE_ADDED = 54,
791
822
  /**
792
823
  * Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is lower than
793
824
  * what it was on the previous frame.
@@ -802,7 +833,7 @@ export declare enum ModCallbackCustom {
802
833
  * ): void {}
803
834
  * ```
804
835
  */
805
- POST_PLAYER_COLLECTIBLE_REMOVED = 54,
836
+ POST_PLAYER_COLLECTIBLE_REMOVED = 55,
806
837
  /**
807
838
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
808
839
  * prevent the fatal damage.
@@ -819,7 +850,7 @@ export declare enum ModCallbackCustom {
819
850
  * function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
820
851
  * ```
821
852
  */
822
- POST_PLAYER_FATAL_DAMAGE = 55,
853
+ POST_PLAYER_FATAL_DAMAGE = 56,
823
854
  /**
824
855
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
825
856
  * `POST_PLAYER_INIT_LATE` callback, with two changes:
@@ -840,7 +871,7 @@ export declare enum ModCallbackCustom {
840
871
  * function postPlayerInitFirst(player: EntityPlayer): void {}
841
872
  * ```
842
873
  */
843
- POST_PLAYER_INIT_FIRST = 56,
874
+ POST_PLAYER_INIT_FIRST = 57,
844
875
  /**
845
876
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
846
877
  *
@@ -859,7 +890,7 @@ export declare enum ModCallbackCustom {
859
890
  * function postPlayerInitLate(pickup: EntityPickup): void {}
860
891
  * ```
861
892
  */
862
- POST_PLAYER_INIT_LATE = 57,
893
+ POST_PLAYER_INIT_LATE = 58,
863
894
  /**
864
895
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
865
896
  * callback fires (if the player is spawning on the 0th game frame of the run).
@@ -882,7 +913,7 @@ export declare enum ModCallbackCustom {
882
913
  * function postPlayerRenderReordered(player: EntityPlayer): void {}
883
914
  * ```
884
915
  */
885
- POST_PLAYER_RENDER_REORDERED = 58,
916
+ POST_PLAYER_RENDER_REORDERED = 59,
886
917
  /**
887
918
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
888
919
  * callback fires (if the player is being updated on the 0th game frame of the run).
@@ -905,7 +936,7 @@ export declare enum ModCallbackCustom {
905
936
  * function postPlayerUpdateReordered(player: EntityPlayer): void {}
906
937
  * ```
907
938
  */
908
- POST_PLAYER_UPDATE_REORDERED = 59,
939
+ POST_PLAYER_UPDATE_REORDERED = 60,
909
940
  /**
910
941
  * Fires from the `POST_RENDER` callback on every frame that a poop exists.
911
942
  *
@@ -916,7 +947,7 @@ export declare enum ModCallbackCustom {
916
947
  * function postPoopRender(poop: GridEntityPoop): void {}
917
948
  * ```
918
949
  */
919
- POST_POOP_RENDER = 60,
950
+ POST_POOP_RENDER = 61,
920
951
  /**
921
952
  * Fires from the `POST_UPDATE` callback on every frame that a poop exists.
922
953
  *
@@ -927,7 +958,7 @@ export declare enum ModCallbackCustom {
927
958
  * function postPoopUpdate(poop: GridEntityPoop): void {}
928
959
  * ```
929
960
  */
930
- POST_POOP_UPDATE = 61,
961
+ POST_POOP_UPDATE = 62,
931
962
  /**
932
963
  * Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
933
964
  *
@@ -938,7 +969,7 @@ export declare enum ModCallbackCustom {
938
969
  * function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
939
970
  * ```
940
971
  */
941
- POST_PRESSURE_PLATE_RENDER = 62,
972
+ POST_PRESSURE_PLATE_RENDER = 63,
942
973
  /**
943
974
  * Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
944
975
  *
@@ -949,7 +980,7 @@ export declare enum ModCallbackCustom {
949
980
  * function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
950
981
  * ```
951
982
  */
952
- POST_PRESSURE_PLATE_UPDATE = 63,
983
+ POST_PRESSURE_PLATE_UPDATE = 64,
953
984
  /**
954
985
  * Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
955
986
  *
@@ -963,7 +994,7 @@ export declare enum ModCallbackCustom {
963
994
  * function postProjectileInitLate(projectile: EntityProjectile): void {}
964
995
  * ```
965
996
  */
966
- POST_PROJECTILE_INIT_LATE = 64,
997
+ POST_PROJECTILE_INIT_LATE = 65,
967
998
  /**
968
999
  * Fires from the `POST_PEFFECT_UPDATE` callback when a player first picks up a new item. The
969
1000
  * pickup returned in the callback is assumed to be the first pickup that no longer exists.
@@ -977,7 +1008,7 @@ export declare enum ModCallbackCustom {
977
1008
  * function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
978
1009
  * ```
979
1010
  */
980
- POST_PURCHASE = 65,
1011
+ POST_PURCHASE = 66,
981
1012
  /**
982
1013
  * Fires from the `POST_RENDER` callback on every frame that a rock exists.
983
1014
  *
@@ -988,7 +1019,7 @@ export declare enum ModCallbackCustom {
988
1019
  * function postRockRender(rock: GridEntityRock): void {}
989
1020
  * ```
990
1021
  */
991
- POST_ROCK_RENDER = 66,
1022
+ POST_ROCK_RENDER = 67,
992
1023
  /**
993
1024
  * Fires from the `POST_UPDATE` callback on every frame that a rock exists.
994
1025
  *
@@ -999,7 +1030,7 @@ export declare enum ModCallbackCustom {
999
1030
  * function postRockUpdate(rock: GridEntityRock): void {}
1000
1031
  * ```
1001
1032
  */
1002
- POST_ROCK_UPDATE = 67,
1033
+ POST_ROCK_UPDATE = 68,
1003
1034
  /**
1004
1035
  * Fires from the `POST_UPDATE` callback when the clear state of a room changes.
1005
1036
  *
@@ -1010,7 +1041,7 @@ export declare enum ModCallbackCustom {
1010
1041
  * function postRoomClearChanged(roomClear: boolean): void {}
1011
1042
  * ```
1012
1043
  */
1013
- POST_ROOM_CLEAR_CHANGED = 68,
1044
+ POST_ROOM_CLEAR_CHANGED = 69,
1014
1045
  /**
1015
1046
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
1016
1047
  * Room.
@@ -1024,7 +1055,7 @@ export declare enum ModCallbackCustom {
1024
1055
  * function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
1025
1056
  * ```
1026
1057
  */
1027
- POST_SACRIFICE = 69,
1058
+ POST_SACRIFICE = 70,
1028
1059
  /**
1029
1060
  * Fires from the `POST_RENDER` callback when a slot entity's animation changes.
1030
1061
  *
@@ -1035,7 +1066,7 @@ export declare enum ModCallbackCustom {
1035
1066
  * function postSlotAnimationChanged(slot: Entity): void {}
1036
1067
  * ```
1037
1068
  */
1038
- POST_SLOT_ANIMATION_CHANGED = 70,
1069
+ POST_SLOT_ANIMATION_CHANGED = 71,
1039
1070
  /**
1040
1071
  * Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
1041
1072
  * has broken.
@@ -1049,7 +1080,7 @@ export declare enum ModCallbackCustom {
1049
1080
  * function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
1050
1081
  * ```
1051
1082
  */
1052
- POST_SLOT_DESTROYED = 71,
1083
+ POST_SLOT_DESTROYED = 72,
1053
1084
  /**
1054
1085
  * Fires when a new slot entity is initialized. Specifically, this is either:
1055
1086
  *
@@ -1065,7 +1096,7 @@ export declare enum ModCallbackCustom {
1065
1096
  * function postSlotInit(slot: Entity): void {}
1066
1097
  * ```
1067
1098
  */
1068
- POST_SLOT_INIT = 72,
1099
+ POST_SLOT_INIT = 73,
1069
1100
  /**
1070
1101
  * Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
1071
1102
  *
@@ -1076,7 +1107,7 @@ export declare enum ModCallbackCustom {
1076
1107
  * function postSlotRender(slot: Entity): void {}
1077
1108
  * ```
1078
1109
  */
1079
- POST_SLOT_RENDER = 73,
1110
+ POST_SLOT_RENDER = 74,
1080
1111
  /**
1081
1112
  * Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
1082
1113
  *
@@ -1087,7 +1118,7 @@ export declare enum ModCallbackCustom {
1087
1118
  * function postSlotUpdate(slot: Entity): void {}
1088
1119
  * ```
1089
1120
  */
1090
- POST_SLOT_UPDATE = 74,
1121
+ POST_SLOT_UPDATE = 75,
1091
1122
  /**
1092
1123
  * Fires from the `POST_RENDER` callback on every frame that spikes exist.
1093
1124
  *
@@ -1098,7 +1129,7 @@ export declare enum ModCallbackCustom {
1098
1129
  * function postSpikesRender(spikes: GridEntitySpikes): void {}
1099
1130
  * ```
1100
1131
  */
1101
- POST_SPIKES_RENDER = 75,
1132
+ POST_SPIKES_RENDER = 76,
1102
1133
  /**
1103
1134
  * Fires from the `POST_UPDATE` callback on every frame that spikes exist.
1104
1135
  *
@@ -1109,7 +1140,7 @@ export declare enum ModCallbackCustom {
1109
1140
  * function postSpikesUpdate(spikes: GridEntitySpikes): void {}
1110
1141
  * ```
1111
1142
  */
1112
- POST_SPIKES_UPDATE = 76,
1143
+ POST_SPIKES_UPDATE = 77,
1113
1144
  /**
1114
1145
  * Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
1115
1146
  * `EntityTear.FrameCount` is equal to 0).
@@ -1124,7 +1155,7 @@ export declare enum ModCallbackCustom {
1124
1155
  * function postTearInitLate(tear: EntityTear): void {}
1125
1156
  * ```
1126
1157
  */
1127
- POST_TEAR_INIT_LATE = 77,
1158
+ POST_TEAR_INIT_LATE = 78,
1128
1159
  /**
1129
1160
  * Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
1130
1161
  * `EntityTear.FrameCount` is equal to 1).
@@ -1138,7 +1169,7 @@ export declare enum ModCallbackCustom {
1138
1169
  * function postTearInitVeryLate(tear: EntityTear): void {}
1139
1170
  * ```
1140
1171
  */
1141
- POST_TEAR_INIT_VERY_LATE = 78,
1172
+ POST_TEAR_INIT_VERY_LATE = 79,
1142
1173
  /**
1143
1174
  * Fires from the `POST_RENDER` callback on every frame that a TNT exists.
1144
1175
  *
@@ -1149,7 +1180,7 @@ export declare enum ModCallbackCustom {
1149
1180
  * function postTNTRender(tnt: GridEntityTNT): void {}
1150
1181
  * ```
1151
1182
  */
1152
- POST_TNT_RENDER = 79,
1183
+ POST_TNT_RENDER = 80,
1153
1184
  /**
1154
1185
  * Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
1155
1186
  *
@@ -1160,7 +1191,7 @@ export declare enum ModCallbackCustom {
1160
1191
  * function postTNTUpdate(tnt: GridEntityTNT): void {}
1161
1192
  * ```
1162
1193
  */
1163
- POST_TNT_UPDATE = 80,
1194
+ POST_TNT_UPDATE = 81,
1164
1195
  /**
1165
1196
  * Fires from the `POST_PEFFECT_UPDATE` callback when a player gains or loses a new
1166
1197
  * transformation.
@@ -1178,7 +1209,7 @@ export declare enum ModCallbackCustom {
1178
1209
  * ): void {}
1179
1210
  * ```
1180
1211
  */
1181
- POST_TRANSFORMATION = 81,
1212
+ POST_TRANSFORMATION = 82,
1182
1213
  /**
1183
1214
  * Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
1184
1215
  *
@@ -1192,7 +1223,7 @@ export declare enum ModCallbackCustom {
1192
1223
  * ): void {}
1193
1224
  * ```
1194
1225
  */
1195
- POST_TRINKET_BREAK = 82,
1226
+ POST_TRINKET_BREAK = 83,
1196
1227
  /**
1197
1228
  * Fires from the `POST_PEFFECT_UPDATE` callback on the frame before a Berserk effect ends when
1198
1229
  * the player is predicted to die (e.g. they currently have no health left or they took damage in
@@ -1207,7 +1238,7 @@ export declare enum ModCallbackCustom {
1207
1238
  * function preBerserkDeath(player: EntityPlayer): void {}
1208
1239
  * ```
1209
1240
  */
1210
- PRE_BERSERK_DEATH = 83,
1241
+ PRE_BERSERK_DEATH = 84,
1211
1242
  /**
1212
1243
  * Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
1213
1244
  * to initiate a custom revival, return an integer that corresponds to the item or type of revival
@@ -1225,7 +1256,7 @@ export declare enum ModCallbackCustom {
1225
1256
  * function preCustomRevive(player: EntityPlayer): int | undefined {}
1226
1257
  * ```
1227
1258
  */
1228
- PRE_CUSTOM_REVIVE = 84,
1259
+ PRE_CUSTOM_REVIVE = 85,
1229
1260
  /**
1230
1261
  * Fires from the `POST_PEFFECT_UPDATE` callback when an item becomes queued (i.e. when the player
1231
1262
  * begins to hold the item above their head).
@@ -1244,7 +1275,7 @@ export declare enum ModCallbackCustom {
1244
1275
  * ): void {}
1245
1276
  * ```
1246
1277
  */
1247
- PRE_ITEM_PICKUP = 85,
1278
+ PRE_ITEM_PICKUP = 86,
1248
1279
  /**
1249
1280
  * Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
1250
1281
  * player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
@@ -1258,6 +1289,6 @@ export declare enum ModCallbackCustom {
1258
1289
  * function preNewLevel(player: EntityPlayer): void {}
1259
1290
  * ```
1260
1291
  */
1261
- PRE_NEW_LEVEL = 86
1292
+ PRE_NEW_LEVEL = 87
1262
1293
  }
1263
1294
  //# sourceMappingURL=ModCallbackCustom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModCallbackCustom.d.ts","sourceRoot":"","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