isaacscript-common 87.2.2 → 87.4.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.
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 87.2.1
3
+ isaacscript-common 87.3.0
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -640,6 +640,12 @@ local function __TS__ArrayWith(self, index, value)
640
640
  return copy
641
641
  end
642
642
 
643
+ local function __TS__New(target, ...)
644
+ local instance = setmetatable({}, target.prototype)
645
+ instance:____constructor(...)
646
+ return instance
647
+ end
648
+
643
649
  local function __TS__InstanceOf(obj, classTbl)
644
650
  if type(classTbl) ~= "table" then
645
651
  error("Right-hand side of 'instanceof' is not an object", 0)
@@ -659,12 +665,6 @@ local function __TS__InstanceOf(obj, classTbl)
659
665
  return false
660
666
  end
661
667
 
662
- local function __TS__New(target, ...)
663
- local instance = setmetatable({}, target.prototype)
664
- instance:____constructor(...)
665
- return instance
666
- end
667
-
668
668
  local function __TS__Class(self)
669
669
  local c = {prototype = {}}
670
670
  c.prototype.__index = c.prototype
@@ -672,35 +672,27 @@ local function __TS__Class(self)
672
672
  return c
673
673
  end
674
674
 
675
- local function __TS__FunctionBind(fn, ...)
676
- local boundArgs = {...}
677
- return function(____, ...)
678
- local args = {...}
679
- __TS__ArrayUnshift(
680
- args,
681
- __TS__Unpack(boundArgs)
682
- )
683
- return fn(__TS__Unpack(args))
684
- end
685
- end
686
-
687
675
  local __TS__Promise
688
676
  do
689
- local function promiseDeferred(self)
677
+ local function makeDeferredPromiseFactory()
690
678
  local resolve
691
679
  local reject
692
- local promise = __TS__New(
693
- __TS__Promise,
694
- function(____, res, rej)
695
- resolve = res
696
- reject = rej
697
- end
698
- )
699
- return {promise = promise, resolve = resolve, reject = reject}
680
+ local function executor(____, res, rej)
681
+ resolve = res
682
+ reject = rej
683
+ end
684
+ return function()
685
+ local promise = __TS__New(__TS__Promise, executor)
686
+ return promise, resolve, reject
687
+ end
700
688
  end
701
- local function isPromiseLike(self, thing)
702
- return __TS__InstanceOf(thing, __TS__Promise)
689
+ local makeDeferredPromise = makeDeferredPromiseFactory()
690
+ local function isPromiseLike(value)
691
+ return __TS__InstanceOf(value, __TS__Promise)
703
692
  end
693
+ local function doNothing(self)
694
+ end
695
+ local ____pcall = _G.pcall
704
696
  __TS__Promise = __TS__Class()
705
697
  __TS__Promise.name = "__TS__Promise"
706
698
  function __TS__Promise.prototype.____constructor(self, executor)
@@ -708,206 +700,177 @@ do
708
700
  self.fulfilledCallbacks = {}
709
701
  self.rejectedCallbacks = {}
710
702
  self.finallyCallbacks = {}
711
- do
712
- local function ____catch(e)
713
- self:reject(e)
714
- end
715
- local ____try, ____hasReturned = pcall(function()
716
- executor(
717
- nil,
718
- __TS__FunctionBind(self.resolve, self),
719
- __TS__FunctionBind(self.reject, self)
720
- )
721
- end)
722
- if not ____try then
723
- ____catch(____hasReturned)
724
- end
703
+ local success, ____error = ____pcall(
704
+ executor,
705
+ nil,
706
+ function(____, v) return self:resolve(v) end,
707
+ function(____, err) return self:reject(err) end
708
+ )
709
+ if not success then
710
+ self:reject(____error)
725
711
  end
726
712
  end
727
- function __TS__Promise.resolve(data)
728
- local promise = __TS__New(
729
- __TS__Promise,
730
- function()
731
- end
732
- )
713
+ function __TS__Promise.resolve(value)
714
+ if __TS__InstanceOf(value, __TS__Promise) then
715
+ return value
716
+ end
717
+ local promise = __TS__New(__TS__Promise, doNothing)
733
718
  promise.state = 1
734
- promise.value = data
719
+ promise.value = value
735
720
  return promise
736
721
  end
737
722
  function __TS__Promise.reject(reason)
738
- local promise = __TS__New(
739
- __TS__Promise,
740
- function()
741
- end
742
- )
723
+ local promise = __TS__New(__TS__Promise, doNothing)
743
724
  promise.state = 2
744
725
  promise.rejectionReason = reason
745
726
  return promise
746
727
  end
747
728
  __TS__Promise.prototype["then"] = function(self, onFulfilled, onRejected)
748
- local ____promiseDeferred_result_0 = promiseDeferred(nil)
749
- local promise = ____promiseDeferred_result_0.promise
750
- local resolve = ____promiseDeferred_result_0.resolve
751
- local reject = ____promiseDeferred_result_0.reject
752
- local isFulfilled = self.state == 1
753
- local isRejected = self.state == 2
754
- if onFulfilled then
755
- local internalCallback = self:createPromiseResolvingCallback(onFulfilled, resolve, reject)
756
- local ____self_fulfilledCallbacks_1 = self.fulfilledCallbacks
757
- ____self_fulfilledCallbacks_1[#____self_fulfilledCallbacks_1 + 1] = internalCallback
758
- if isFulfilled then
759
- internalCallback(nil, self.value)
760
- end
761
- else
762
- local ____self_fulfilledCallbacks_2 = self.fulfilledCallbacks
763
- ____self_fulfilledCallbacks_2[#____self_fulfilledCallbacks_2 + 1] = function(____, v) return resolve(nil, v) end
764
- end
765
- if onRejected then
766
- local internalCallback = self:createPromiseResolvingCallback(onRejected, resolve, reject)
767
- local ____self_rejectedCallbacks_3 = self.rejectedCallbacks
768
- ____self_rejectedCallbacks_3[#____self_rejectedCallbacks_3 + 1] = internalCallback
769
- if isRejected then
770
- internalCallback(nil, self.rejectionReason)
771
- end
772
- else
773
- local ____self_rejectedCallbacks_4 = self.rejectedCallbacks
774
- ____self_rejectedCallbacks_4[#____self_rejectedCallbacks_4 + 1] = function(____, err) return reject(nil, err) end
775
- end
776
- if isFulfilled then
777
- resolve(nil, self.value)
729
+ local promise, resolve, reject = makeDeferredPromise()
730
+ self:addCallbacks(
731
+ onFulfilled and self:createPromiseResolvingCallback(onFulfilled, resolve, reject) or resolve,
732
+ onRejected and self:createPromiseResolvingCallback(onRejected, resolve, reject) or reject
733
+ )
734
+ return promise
735
+ end
736
+ function __TS__Promise.prototype.addCallbacks(self, fulfilledCallback, rejectedCallback)
737
+ if self.state == 1 then
738
+ return fulfilledCallback(nil, self.value)
778
739
  end
779
- if isRejected then
780
- reject(nil, self.rejectionReason)
740
+ if self.state == 2 then
741
+ return rejectedCallback(nil, self.rejectionReason)
781
742
  end
782
- return promise
743
+ local ____self_fulfilledCallbacks_0 = self.fulfilledCallbacks
744
+ ____self_fulfilledCallbacks_0[#____self_fulfilledCallbacks_0 + 1] = fulfilledCallback
745
+ local ____self_rejectedCallbacks_1 = self.rejectedCallbacks
746
+ ____self_rejectedCallbacks_1[#____self_rejectedCallbacks_1 + 1] = rejectedCallback
783
747
  end
784
748
  function __TS__Promise.prototype.catch(self, onRejected)
785
749
  return self["then"](self, nil, onRejected)
786
750
  end
787
751
  function __TS__Promise.prototype.finally(self, onFinally)
788
752
  if onFinally then
789
- local ____self_finallyCallbacks_5 = self.finallyCallbacks
790
- ____self_finallyCallbacks_5[#____self_finallyCallbacks_5 + 1] = onFinally
753
+ local ____self_finallyCallbacks_2 = self.finallyCallbacks
754
+ ____self_finallyCallbacks_2[#____self_finallyCallbacks_2 + 1] = onFinally
791
755
  if self.state ~= 0 then
792
756
  onFinally(nil)
793
757
  end
794
758
  end
795
759
  return self
796
760
  end
797
- function __TS__Promise.prototype.resolve(self, data)
798
- if __TS__InstanceOf(data, __TS__Promise) then
799
- data["then"](
800
- data,
761
+ function __TS__Promise.prototype.resolve(self, value)
762
+ if isPromiseLike(value) then
763
+ return value:addCallbacks(
801
764
  function(____, v) return self:resolve(v) end,
802
765
  function(____, err) return self:reject(err) end
803
766
  )
804
- return
805
767
  end
806
768
  if self.state == 0 then
807
769
  self.state = 1
808
- self.value = data
809
- for ____, callback in ipairs(self.fulfilledCallbacks) do
810
- callback(nil, data)
811
- end
812
- for ____, callback in ipairs(self.finallyCallbacks) do
813
- callback(nil)
814
- end
770
+ self.value = value
771
+ return self:invokeCallbacks(self.fulfilledCallbacks, value)
815
772
  end
816
773
  end
817
774
  function __TS__Promise.prototype.reject(self, reason)
818
775
  if self.state == 0 then
819
776
  self.state = 2
820
777
  self.rejectionReason = reason
821
- for ____, callback in ipairs(self.rejectedCallbacks) do
822
- callback(nil, reason)
778
+ return self:invokeCallbacks(self.rejectedCallbacks, reason)
779
+ end
780
+ end
781
+ function __TS__Promise.prototype.invokeCallbacks(self, callbacks, value)
782
+ local callbacksLength = #callbacks
783
+ local finallyCallbacks = self.finallyCallbacks
784
+ local finallyCallbacksLength = #finallyCallbacks
785
+ if callbacksLength ~= 0 then
786
+ for i = 1, callbacksLength - 1 do
787
+ callbacks[i](callbacks, value)
788
+ end
789
+ if finallyCallbacksLength == 0 then
790
+ return callbacks[callbacksLength](callbacks, value)
823
791
  end
824
- for ____, callback in ipairs(self.finallyCallbacks) do
825
- callback(nil)
792
+ callbacks[callbacksLength](callbacks, value)
793
+ end
794
+ if finallyCallbacksLength ~= 0 then
795
+ for i = 1, finallyCallbacksLength - 1 do
796
+ finallyCallbacks[i](finallyCallbacks)
826
797
  end
798
+ return finallyCallbacks[finallyCallbacksLength](finallyCallbacks)
827
799
  end
828
800
  end
829
801
  function __TS__Promise.prototype.createPromiseResolvingCallback(self, f, resolve, reject)
830
802
  return function(____, value)
831
- do
832
- local function ____catch(e)
833
- reject(nil, e)
834
- end
835
- local ____try, ____hasReturned = pcall(function()
836
- self:handleCallbackData(
837
- f(nil, value),
838
- resolve,
839
- reject
840
- )
841
- end)
842
- if not ____try then
843
- ____catch(____hasReturned)
844
- end
803
+ local success, resultOrError = ____pcall(f, nil, value)
804
+ if not success then
805
+ return reject(nil, resultOrError)
845
806
  end
807
+ return self:handleCallbackValue(resultOrError, resolve, reject)
846
808
  end
847
809
  end
848
- function __TS__Promise.prototype.handleCallbackData(self, data, resolve, reject)
849
- if isPromiseLike(nil, data) then
850
- local nextpromise = data
810
+ function __TS__Promise.prototype.handleCallbackValue(self, value, resolve, reject)
811
+ if isPromiseLike(value) then
812
+ local nextpromise = value
851
813
  if nextpromise.state == 1 then
852
- resolve(nil, nextpromise.value)
814
+ return resolve(nil, nextpromise.value)
853
815
  elseif nextpromise.state == 2 then
854
- reject(nil, nextpromise.rejectionReason)
816
+ return reject(nil, nextpromise.rejectionReason)
855
817
  else
856
- data["then"](data, resolve, reject)
818
+ return nextpromise:addCallbacks(resolve, reject)
857
819
  end
858
820
  else
859
- resolve(nil, data)
821
+ return resolve(nil, value)
860
822
  end
861
823
  end
862
824
  end
863
825
 
864
- local function __TS__AsyncAwaiter(generator)
865
- return __TS__New(
866
- __TS__Promise,
867
- function(____, resolve, reject)
868
- local adopt, fulfilled, step, resolved, asyncCoroutine
869
- function adopt(self, value)
870
- return __TS__InstanceOf(value, __TS__Promise) and value or __TS__Promise.resolve(value)
871
- end
872
- function fulfilled(self, value)
873
- local success, resultOrError = coroutine.resume(asyncCoroutine, value)
874
- if success then
875
- step(nil, resultOrError)
876
- else
877
- reject(nil, resultOrError)
826
+ local __TS__AsyncAwaiter, __TS__Await
827
+ do
828
+ local ____coroutine = _G.coroutine or ({})
829
+ local cocreate = ____coroutine.create
830
+ local coresume = ____coroutine.resume
831
+ local costatus = ____coroutine.status
832
+ local coyield = ____coroutine.yield
833
+ function __TS__AsyncAwaiter(generator)
834
+ return __TS__New(
835
+ __TS__Promise,
836
+ function(____, resolve, reject)
837
+ local fulfilled, step, resolved, asyncCoroutine
838
+ function fulfilled(self, value)
839
+ local success, resultOrError = coresume(asyncCoroutine, value)
840
+ if success then
841
+ return step(resultOrError)
842
+ end
843
+ return reject(nil, resultOrError)
878
844
  end
879
- end
880
- function step(self, result)
881
- if resolved then
882
- return
845
+ function step(result)
846
+ if resolved then
847
+ return
848
+ end
849
+ if costatus(asyncCoroutine) == "dead" then
850
+ return resolve(nil, result)
851
+ end
852
+ return __TS__Promise.resolve(result):addCallbacks(fulfilled, reject)
883
853
  end
884
- if coroutine.status(asyncCoroutine) == "dead" then
885
- resolve(nil, result)
854
+ resolved = false
855
+ asyncCoroutine = cocreate(generator)
856
+ local success, resultOrError = coresume(
857
+ asyncCoroutine,
858
+ function(____, v)
859
+ resolved = true
860
+ return __TS__Promise.resolve(v):addCallbacks(resolve, reject)
861
+ end
862
+ )
863
+ if success then
864
+ return step(resultOrError)
886
865
  else
887
- local ____self_0 = adopt(nil, result)
888
- ____self_0["then"](____self_0, fulfilled, reject)
866
+ return reject(nil, resultOrError)
889
867
  end
890
868
  end
891
- resolved = false
892
- asyncCoroutine = coroutine.create(generator)
893
- local success, resultOrError = coroutine.resume(
894
- asyncCoroutine,
895
- function(____, v)
896
- resolved = true
897
- local ____self_1 = adopt(nil, v)
898
- ____self_1["then"](____self_1, resolve, reject)
899
- end
900
- )
901
- if success then
902
- step(nil, resultOrError)
903
- else
904
- reject(nil, resultOrError)
905
- end
906
- end
907
- )
908
- end
909
- local function __TS__Await(thing)
910
- return coroutine.yield(thing)
869
+ )
870
+ end
871
+ function __TS__Await(thing)
872
+ return coyield(thing)
873
+ end
911
874
  end
912
875
 
913
876
  local function __TS__ClassExtends(target, base)
@@ -1005,20 +968,17 @@ local function __TS__ObjectGetOwnPropertyDescriptor(object, key)
1005
968
  return rawget(metatable, "_descriptors")[key]
1006
969
  end
1007
970
 
1008
- local __TS__SetDescriptor
971
+ local __TS__DescriptorGet
1009
972
  do
1010
- local function descriptorIndex(self, key)
1011
- local value = rawget(self, key)
1012
- if value ~= nil then
1013
- return value
1014
- end
1015
- local metatable = getmetatable(self)
973
+ local getmetatable = _G.getmetatable
974
+ local ____rawget = _G.rawget
975
+ function __TS__DescriptorGet(self, metatable, key)
1016
976
  while metatable do
1017
- local rawResult = rawget(metatable, key)
977
+ local rawResult = ____rawget(metatable, key)
1018
978
  if rawResult ~= nil then
1019
979
  return rawResult
1020
980
  end
1021
- local descriptors = rawget(metatable, "_descriptors")
981
+ local descriptors = ____rawget(metatable, "_descriptors")
1022
982
  if descriptors then
1023
983
  local descriptor = descriptors[key]
1024
984
  if descriptor ~= nil then
@@ -1031,10 +991,16 @@ do
1031
991
  metatable = getmetatable(metatable)
1032
992
  end
1033
993
  end
1034
- local function descriptorNewIndex(self, key, value)
1035
- local metatable = getmetatable(self)
994
+ end
995
+
996
+ local __TS__DescriptorSet
997
+ do
998
+ local getmetatable = _G.getmetatable
999
+ local ____rawget = _G.rawget
1000
+ local rawset = _G.rawset
1001
+ function __TS__DescriptorSet(self, metatable, key, value)
1036
1002
  while metatable do
1037
- local descriptors = rawget(metatable, "_descriptors")
1003
+ local descriptors = ____rawget(metatable, "_descriptors")
1038
1004
  if descriptors then
1039
1005
  local descriptor = descriptors[key]
1040
1006
  if descriptor ~= nil then
@@ -1056,6 +1022,26 @@ do
1056
1022
  end
1057
1023
  rawset(self, key, value)
1058
1024
  end
1025
+ end
1026
+
1027
+ local __TS__SetDescriptor
1028
+ do
1029
+ local getmetatable = _G.getmetatable
1030
+ local function descriptorIndex(self, key)
1031
+ return __TS__DescriptorGet(
1032
+ self,
1033
+ getmetatable(self),
1034
+ key
1035
+ )
1036
+ end
1037
+ local function descriptorNewIndex(self, key, value)
1038
+ return __TS__DescriptorSet(
1039
+ self,
1040
+ getmetatable(self),
1041
+ key,
1042
+ value
1043
+ )
1044
+ end
1059
1045
  function __TS__SetDescriptor(target, key, desc, isPrototype)
1060
1046
  if isPrototype == nil then
1061
1047
  isPrototype = false
@@ -1284,6 +1270,18 @@ local function __TS__DelegatedYield(iterable)
1284
1270
  end
1285
1271
  end
1286
1272
 
1273
+ local function __TS__FunctionBind(fn, ...)
1274
+ local boundArgs = {...}
1275
+ return function(____, ...)
1276
+ local args = {...}
1277
+ __TS__ArrayUnshift(
1278
+ args,
1279
+ __TS__Unpack(boundArgs)
1280
+ )
1281
+ return fn(__TS__Unpack(args))
1282
+ end
1283
+ end
1284
+
1287
1285
  local __TS__Generator
1288
1286
  do
1289
1287
  local function generatorIterator(self)
@@ -1472,6 +1470,22 @@ do
1472
1470
  Map[Symbol.species] = Map
1473
1471
  end
1474
1472
 
1473
+ local function __TS__MapGroupBy(items, keySelector)
1474
+ local result = __TS__New(Map)
1475
+ local i = 0
1476
+ for ____, item in __TS__Iterator(items) do
1477
+ local key = keySelector(nil, item, i)
1478
+ if result:has(key) then
1479
+ local ____temp_0 = result:get(key)
1480
+ ____temp_0[#____temp_0 + 1] = item
1481
+ else
1482
+ result:set(key, {item})
1483
+ end
1484
+ i = i + 1
1485
+ end
1486
+ return result
1487
+ end
1488
+
1475
1489
  local __TS__Match = string.match
1476
1490
 
1477
1491
  local __TS__MathAtan2 = math.atan2 or math.atan
@@ -1726,6 +1740,22 @@ local function __TS__ObjectFromEntries(entries)
1726
1740
  return obj
1727
1741
  end
1728
1742
 
1743
+ local function __TS__ObjectGroupBy(items, keySelector)
1744
+ local result = {}
1745
+ local i = 0
1746
+ for ____, item in __TS__Iterator(items) do
1747
+ local key = keySelector(nil, item, i)
1748
+ if result[key] ~= nil then
1749
+ local ____result_key_0 = result[key]
1750
+ ____result_key_0[#____result_key_0 + 1] = item
1751
+ else
1752
+ result[key] = {item}
1753
+ end
1754
+ i = i + 1
1755
+ end
1756
+ return result
1757
+ end
1758
+
1729
1759
  local function __TS__ObjectKeys(obj)
1730
1760
  local result = {}
1731
1761
  local len = 0
@@ -2603,6 +2633,8 @@ return {
2603
2633
  __TS__DecorateParam = __TS__DecorateParam,
2604
2634
  __TS__Delete = __TS__Delete,
2605
2635
  __TS__DelegatedYield = __TS__DelegatedYield,
2636
+ __TS__DescriptorGet = __TS__DescriptorGet,
2637
+ __TS__DescriptorSet = __TS__DescriptorSet,
2606
2638
  Error = Error,
2607
2639
  RangeError = RangeError,
2608
2640
  ReferenceError = ReferenceError,
@@ -2616,6 +2648,7 @@ return {
2616
2648
  __TS__Iterator = __TS__Iterator,
2617
2649
  __TS__LuaIteratorSpread = __TS__LuaIteratorSpread,
2618
2650
  Map = Map,
2651
+ __TS__MapGroupBy = __TS__MapGroupBy,
2619
2652
  __TS__Match = __TS__Match,
2620
2653
  __TS__MathAtan2 = __TS__MathAtan2,
2621
2654
  __TS__MathModf = __TS__MathModf,
@@ -2635,6 +2668,7 @@ return {
2635
2668
  __TS__ObjectFromEntries = __TS__ObjectFromEntries,
2636
2669
  __TS__ObjectGetOwnPropertyDescriptor = __TS__ObjectGetOwnPropertyDescriptor,
2637
2670
  __TS__ObjectGetOwnPropertyDescriptors = __TS__ObjectGetOwnPropertyDescriptors,
2671
+ __TS__ObjectGroupBy = __TS__ObjectGroupBy,
2638
2672
  __TS__ObjectKeys = __TS__ObjectKeys,
2639
2673
  __TS__ObjectRest = __TS__ObjectRest,
2640
2674
  __TS__ObjectValues = __TS__ObjectValues,
@@ -3626,6 +3660,14 @@ do
3626
3660
  end
3627
3661
  end
3628
3662
  end
3663
+ do
3664
+ local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.AnnouncerVoiceMode")
3665
+ for ____exportKey, ____exportValue in pairs(____export) do
3666
+ if ____exportKey ~= "default" then
3667
+ ____exports[____exportKey] = ____exportValue
3668
+ end
3669
+ end
3670
+ end
3629
3671
  do
3630
3672
  local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.BackdropType")
3631
3673
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -3658,6 +3700,14 @@ do
3658
3700
  end
3659
3701
  end
3660
3702
  end
3703
+ do
3704
+ local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.CameraStyle")
3705
+ for ____exportKey, ____exportValue in pairs(____export) do
3706
+ if ____exportKey ~= "default" then
3707
+ ____exports[____exportKey] = ____exportValue
3708
+ end
3709
+ end
3710
+ end
3661
3711
  do
3662
3712
  local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.Challenge")
3663
3713
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -3698,6 +3748,14 @@ do
3698
3748
  end
3699
3749
  end
3700
3750
  end
3751
+ do
3752
+ local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.ConsoleFont")
3753
+ for ____exportKey, ____exportValue in pairs(____export) do
3754
+ if ____exportKey ~= "default" then
3755
+ ____exports[____exportKey] = ____exportValue
3756
+ end
3757
+ end
3758
+ end
3701
3759
  do
3702
3760
  local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.Controller")
3703
3761
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -3730,6 +3788,14 @@ do
3730
3788
  end
3731
3789
  end
3732
3790
  end
3791
+ do
3792
+ local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.Cutscene")
3793
+ for ____exportKey, ____exportValue in pairs(____export) do
3794
+ if ____exportKey ~= "default" then
3795
+ ____exports[____exportKey] = ____exportValue
3796
+ end
3797
+ end
3798
+ end
3733
3799
  do
3734
3800
  local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.DebugCommand")
3735
3801
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -3771,7 +3837,7 @@ do
3771
3837
  end
3772
3838
  end
3773
3839
  do
3774
- local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.Ending")
3840
+ local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.EntityCollisionClass")
3775
3841
  for ____exportKey, ____exportValue in pairs(____export) do
3776
3842
  if ____exportKey ~= "default" then
3777
3843
  ____exports[____exportKey] = ____exportValue
@@ -3779,7 +3845,7 @@ do
3779
3845
  end
3780
3846
  end
3781
3847
  do
3782
- local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.EntityCollisionClass")
3848
+ local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.EntityGridCollisionClass")
3783
3849
  for ____exportKey, ____exportValue in pairs(____export) do
3784
3850
  if ____exportKey ~= "default" then
3785
3851
  ____exports[____exportKey] = ____exportValue
@@ -3787,7 +3853,7 @@ do
3787
3853
  end
3788
3854
  end
3789
3855
  do
3790
- local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.EntityGridCollisionClass")
3856
+ local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.EntityType")
3791
3857
  for ____exportKey, ____exportValue in pairs(____export) do
3792
3858
  if ____exportKey ~= "default" then
3793
3859
  ____exports[____exportKey] = ____exportValue
@@ -3795,7 +3861,7 @@ do
3795
3861
  end
3796
3862
  end
3797
3863
  do
3798
- local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.EntityType")
3864
+ local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.ExtraHudStyle")
3799
3865
  for ____exportKey, ____exportValue in pairs(____export) do
3800
3866
  if ____exportKey ~= "default" then
3801
3867
  ____exports[____exportKey] = ____exportValue
@@ -4171,7 +4237,7 @@ do
4171
4237
  end
4172
4238
  end
4173
4239
  do
4174
- local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.StageTransition")
4240
+ local ____export = require("lua_modules.isaac-typescript-definitions.dist.enums.StageTransitionType")
4175
4241
  for ____exportKey, ____exportValue in pairs(____export) do
4176
4242
  if ____exportKey ~= "default" then
4177
4243
  ____exports[____exportKey] = ____exportValue
@@ -10466,6 +10532,28 @@ ____exports.PoofSubType.SMALL = 1
10466
10532
  ____exports.PoofSubType[____exports.PoofSubType.SMALL] = "SMALL"
10467
10533
  ____exports.PoofSubType.LARGE = 3
10468
10534
  ____exports.PoofSubType[____exports.PoofSubType.LARGE] = "LARGE"
10535
+ --- For `EntityType.EFFECT` (1000), `EffectVariant.POOF_2` (16).
10536
+ ____exports.Poof2SubType = {}
10537
+ ____exports.Poof2SubType.NORMAL = 0
10538
+ ____exports.Poof2SubType[____exports.Poof2SubType.NORMAL] = "NORMAL"
10539
+ ____exports.Poof2SubType.LARGE_GROUND_POOF = 1
10540
+ ____exports.Poof2SubType[____exports.Poof2SubType.LARGE_GROUND_POOF] = "LARGE_GROUND_POOF"
10541
+ ____exports.Poof2SubType.LARGE_GROUND_POOF_FOREGROUND = 2
10542
+ ____exports.Poof2SubType[____exports.Poof2SubType.LARGE_GROUND_POOF_FOREGROUND] = "LARGE_GROUND_POOF_FOREGROUND"
10543
+ ____exports.Poof2SubType.LARGE_BLOOD_POOF = 3
10544
+ ____exports.Poof2SubType[____exports.Poof2SubType.LARGE_BLOOD_POOF] = "LARGE_BLOOD_POOF"
10545
+ ____exports.Poof2SubType.LARGE_BLOOD_POOF_FOREGROUND = 4
10546
+ ____exports.Poof2SubType[____exports.Poof2SubType.LARGE_BLOOD_POOF_FOREGROUND] = "LARGE_BLOOD_POOF_FOREGROUND"
10547
+ ____exports.Poof2SubType.BLOOD_CLOUD = 5
10548
+ ____exports.Poof2SubType[____exports.Poof2SubType.BLOOD_CLOUD] = "BLOOD_CLOUD"
10549
+ ____exports.Poof2SubType.FORGOTTEN_SOUL_POOF = 10
10550
+ ____exports.Poof2SubType[____exports.Poof2SubType.FORGOTTEN_SOUL_POOF] = "FORGOTTEN_SOUL_POOF"
10551
+ ____exports.Poof2SubType.HOLY_MANTLE_POOF = 11
10552
+ ____exports.Poof2SubType[____exports.Poof2SubType.HOLY_MANTLE_POOF] = "HOLY_MANTLE_POOF"
10553
+ ____exports.Poof2SubType.LAVA_SPLASH = 66
10554
+ ____exports.Poof2SubType[____exports.Poof2SubType.LAVA_SPLASH] = "LAVA_SPLASH"
10555
+ ____exports.Poof2SubType.LAVA_SPLASH_LARGE = 67
10556
+ ____exports.Poof2SubType[____exports.Poof2SubType.LAVA_SPLASH_LARGE] = "LAVA_SPLASH_LARGE"
10469
10557
  --- For `EntityType.EFFECT` (1000), `EffectVariant.HEAVEN_LIGHT_DOOR` (39).
10470
10558
  ____exports.HeavenLightDoorSubType = {}
10471
10559
  ____exports.HeavenLightDoorSubType.HEAVEN_DOOR = 0
@@ -11531,13 +11619,13 @@ ____exports.StageType.REPENTANCE_B = 5
11531
11619
  ____exports.StageType[____exports.StageType.REPENTANCE_B] = "REPENTANCE_B"
11532
11620
  return ____exports
11533
11621
  end,
11534
- ["lua_modules.isaac-typescript-definitions.dist.enums.StageTransition"] = function(...)
11622
+ ["lua_modules.isaac-typescript-definitions.dist.enums.StageTransitionType"] = function(...)
11535
11623
  local ____exports = {}
11536
- ____exports.StageTransition = {}
11537
- ____exports.StageTransition.DISAPPEAR = 0
11538
- ____exports.StageTransition[____exports.StageTransition.DISAPPEAR] = "DISAPPEAR"
11539
- ____exports.StageTransition.NONE = 1
11540
- ____exports.StageTransition[____exports.StageTransition.NONE] = "NONE"
11624
+ ____exports.StageTransitionType = {}
11625
+ ____exports.StageTransitionType.DISAPPEAR = 0
11626
+ ____exports.StageTransitionType[____exports.StageTransitionType.DISAPPEAR] = "DISAPPEAR"
11627
+ ____exports.StageTransitionType.NONE = 1
11628
+ ____exports.StageTransitionType[____exports.StageTransitionType.NONE] = "NONE"
11541
11629
  return ____exports
11542
11630
  end,
11543
11631
  ["lua_modules.isaac-typescript-definitions.dist.enums.StageID"] = function(...)
@@ -16494,6 +16582,17 @@ ____exports.FadeoutTarget.TITLE_SCREEN = 3
16494
16582
  ____exports.FadeoutTarget[____exports.FadeoutTarget.TITLE_SCREEN] = "TITLE_SCREEN"
16495
16583
  ____exports.FadeoutTarget.RESTART_RUN = 4
16496
16584
  ____exports.FadeoutTarget[____exports.FadeoutTarget.RESTART_RUN] = "RESTART_RUN"
16585
+ return ____exports
16586
+ end,
16587
+ ["lua_modules.isaac-typescript-definitions.dist.enums.ExtraHudStyle"] = function(...)
16588
+ local ____exports = {}
16589
+ ____exports.ExtraHudStyle = {}
16590
+ ____exports.ExtraHudStyle.OFF = 0
16591
+ ____exports.ExtraHudStyle[____exports.ExtraHudStyle.OFF] = "OFF"
16592
+ ____exports.ExtraHudStyle.ON = 1
16593
+ ____exports.ExtraHudStyle[____exports.ExtraHudStyle.ON] = "ON"
16594
+ ____exports.ExtraHudStyle.ON_MINI = 2
16595
+ ____exports.ExtraHudStyle[____exports.ExtraHudStyle.ON_MINI] = "ON_MINI"
16497
16596
  return ____exports
16498
16597
  end,
16499
16598
  ["lua_modules.isaac-typescript-definitions.dist.enums.EntityType"] = function(...)
@@ -17207,64 +17306,6 @@ ____exports.EntityCollisionClass.ENEMIES = 3
17207
17306
  ____exports.EntityCollisionClass[____exports.EntityCollisionClass.ENEMIES] = "ENEMIES"
17208
17307
  ____exports.EntityCollisionClass.ALL = 4
17209
17308
  ____exports.EntityCollisionClass[____exports.EntityCollisionClass.ALL] = "ALL"
17210
- return ____exports
17211
- end,
17212
- ["lua_modules.isaac-typescript-definitions.dist.enums.Ending"] = function(...)
17213
- local ____exports = {}
17214
- --- Matches the entries in the "cutscenes.xml" file.
17215
- ____exports.Ending = {}
17216
- ____exports.Ending.INTRO = 1
17217
- ____exports.Ending[____exports.Ending.INTRO] = "INTRO"
17218
- ____exports.Ending.CREDITS = 2
17219
- ____exports.Ending[____exports.Ending.CREDITS] = "CREDITS"
17220
- ____exports.Ending.EPILOGUE = 3
17221
- ____exports.Ending[____exports.Ending.EPILOGUE] = "EPILOGUE"
17222
- ____exports.Ending.WOMB_EDEN = 4
17223
- ____exports.Ending[____exports.Ending.WOMB_EDEN] = "WOMB_EDEN"
17224
- ____exports.Ending.WOMB_RUBBER_CEMENT = 5
17225
- ____exports.Ending[____exports.Ending.WOMB_RUBBER_CEMENT] = "WOMB_RUBBER_CEMENT"
17226
- ____exports.Ending.WOMB_NOOSE = 6
17227
- ____exports.Ending[____exports.Ending.WOMB_NOOSE] = "WOMB_NOOSE"
17228
- ____exports.Ending.WOMB_WIRE_COAT_HANGER = 7
17229
- ____exports.Ending[____exports.Ending.WOMB_WIRE_COAT_HANGER] = "WOMB_WIRE_COAT_HANGER"
17230
- ____exports.Ending.WOMB_EVERYTHING_IS_TERRIBLE = 8
17231
- ____exports.Ending[____exports.Ending.WOMB_EVERYTHING_IS_TERRIBLE] = "WOMB_EVERYTHING_IS_TERRIBLE"
17232
- ____exports.Ending.WOMB_IPECAC = 9
17233
- ____exports.Ending[____exports.Ending.WOMB_IPECAC] = "WOMB_IPECAC"
17234
- ____exports.Ending.WOMB_EXPERIMENTAL_TREATMENT = 10
17235
- ____exports.Ending[____exports.Ending.WOMB_EXPERIMENTAL_TREATMENT] = "WOMB_EXPERIMENTAL_TREATMENT"
17236
- ____exports.Ending.WOMB_A_QUARTER = 11
17237
- ____exports.Ending[____exports.Ending.WOMB_A_QUARTER] = "WOMB_A_QUARTER"
17238
- ____exports.Ending.WOMB_DR_FETUS = 12
17239
- ____exports.Ending[____exports.Ending.WOMB_DR_FETUS] = "WOMB_DR_FETUS"
17240
- ____exports.Ending.WOMB_BLUE_BABY = 13
17241
- ____exports.Ending[____exports.Ending.WOMB_BLUE_BABY] = "WOMB_BLUE_BABY"
17242
- ____exports.Ending.WOMB_IT_LIVES = 14
17243
- ____exports.Ending[____exports.Ending.WOMB_IT_LIVES] = "WOMB_IT_LIVES"
17244
- ____exports.Ending.SHEOL = 15
17245
- ____exports.Ending[____exports.Ending.SHEOL] = "SHEOL"
17246
- ____exports.Ending.CATHEDRAL = 16
17247
- ____exports.Ending[____exports.Ending.CATHEDRAL] = "CATHEDRAL"
17248
- ____exports.Ending.CHEST = 17
17249
- ____exports.Ending[____exports.Ending.CHEST] = "CHEST"
17250
- ____exports.Ending.DARK_ROOM = 18
17251
- ____exports.Ending[____exports.Ending.DARK_ROOM] = "DARK_ROOM"
17252
- ____exports.Ending.MEGA_SATAN = 19
17253
- ____exports.Ending[____exports.Ending.MEGA_SATAN] = "MEGA_SATAN"
17254
- ____exports.Ending.BLUE_WOMB = 20
17255
- ____exports.Ending[____exports.Ending.BLUE_WOMB] = "BLUE_WOMB"
17256
- ____exports.Ending.GREED_MODE = 21
17257
- ____exports.Ending[____exports.Ending.GREED_MODE] = "GREED_MODE"
17258
- ____exports.Ending.VOID = 22
17259
- ____exports.Ending[____exports.Ending.VOID] = "VOID"
17260
- ____exports.Ending.GREEDIER = 23
17261
- ____exports.Ending[____exports.Ending.GREEDIER] = "GREEDIER"
17262
- ____exports.Ending.MOTHER = 24
17263
- ____exports.Ending[____exports.Ending.MOTHER] = "MOTHER"
17264
- ____exports.Ending.DOGMA = 25
17265
- ____exports.Ending[____exports.Ending.DOGMA] = "DOGMA"
17266
- ____exports.Ending.BEAST = 26
17267
- ____exports.Ending[____exports.Ending.BEAST] = "BEAST"
17268
17309
  return ____exports
17269
17310
  end,
17270
17311
  ["lua_modules.isaac-typescript-definitions.dist.enums.Direction"] = function(...)
@@ -17338,6 +17379,64 @@ ____exports.DebugCommand.PLAYER_ITEM_INFO = 12
17338
17379
  ____exports.DebugCommand[____exports.DebugCommand.PLAYER_ITEM_INFO] = "PLAYER_ITEM_INFO"
17339
17380
  ____exports.DebugCommand.SHOW_GRID_COLLISION_POINTS = 13
17340
17381
  ____exports.DebugCommand[____exports.DebugCommand.SHOW_GRID_COLLISION_POINTS] = "SHOW_GRID_COLLISION_POINTS"
17382
+ return ____exports
17383
+ end,
17384
+ ["lua_modules.isaac-typescript-definitions.dist.enums.Cutscene"] = function(...)
17385
+ local ____exports = {}
17386
+ --- Matches the entries in the "cutscenes.xml" file.
17387
+ ____exports.Cutscene = {}
17388
+ ____exports.Cutscene.INTRO = 1
17389
+ ____exports.Cutscene[____exports.Cutscene.INTRO] = "INTRO"
17390
+ ____exports.Cutscene.CREDITS = 2
17391
+ ____exports.Cutscene[____exports.Cutscene.CREDITS] = "CREDITS"
17392
+ ____exports.Cutscene.EPILOGUE = 3
17393
+ ____exports.Cutscene[____exports.Cutscene.EPILOGUE] = "EPILOGUE"
17394
+ ____exports.Cutscene.WOMB_EDEN = 4
17395
+ ____exports.Cutscene[____exports.Cutscene.WOMB_EDEN] = "WOMB_EDEN"
17396
+ ____exports.Cutscene.WOMB_RUBBER_CEMENT = 5
17397
+ ____exports.Cutscene[____exports.Cutscene.WOMB_RUBBER_CEMENT] = "WOMB_RUBBER_CEMENT"
17398
+ ____exports.Cutscene.WOMB_NOOSE = 6
17399
+ ____exports.Cutscene[____exports.Cutscene.WOMB_NOOSE] = "WOMB_NOOSE"
17400
+ ____exports.Cutscene.WOMB_WIRE_COAT_HANGER = 7
17401
+ ____exports.Cutscene[____exports.Cutscene.WOMB_WIRE_COAT_HANGER] = "WOMB_WIRE_COAT_HANGER"
17402
+ ____exports.Cutscene.WOMB_EVERYTHING_IS_TERRIBLE = 8
17403
+ ____exports.Cutscene[____exports.Cutscene.WOMB_EVERYTHING_IS_TERRIBLE] = "WOMB_EVERYTHING_IS_TERRIBLE"
17404
+ ____exports.Cutscene.WOMB_IPECAC = 9
17405
+ ____exports.Cutscene[____exports.Cutscene.WOMB_IPECAC] = "WOMB_IPECAC"
17406
+ ____exports.Cutscene.WOMB_EXPERIMENTAL_TREATMENT = 10
17407
+ ____exports.Cutscene[____exports.Cutscene.WOMB_EXPERIMENTAL_TREATMENT] = "WOMB_EXPERIMENTAL_TREATMENT"
17408
+ ____exports.Cutscene.WOMB_A_QUARTER = 11
17409
+ ____exports.Cutscene[____exports.Cutscene.WOMB_A_QUARTER] = "WOMB_A_QUARTER"
17410
+ ____exports.Cutscene.WOMB_DR_FETUS = 12
17411
+ ____exports.Cutscene[____exports.Cutscene.WOMB_DR_FETUS] = "WOMB_DR_FETUS"
17412
+ ____exports.Cutscene.WOMB_BLUE_BABY = 13
17413
+ ____exports.Cutscene[____exports.Cutscene.WOMB_BLUE_BABY] = "WOMB_BLUE_BABY"
17414
+ ____exports.Cutscene.WOMB_IT_LIVES = 14
17415
+ ____exports.Cutscene[____exports.Cutscene.WOMB_IT_LIVES] = "WOMB_IT_LIVES"
17416
+ ____exports.Cutscene.SHEOL = 15
17417
+ ____exports.Cutscene[____exports.Cutscene.SHEOL] = "SHEOL"
17418
+ ____exports.Cutscene.CATHEDRAL = 16
17419
+ ____exports.Cutscene[____exports.Cutscene.CATHEDRAL] = "CATHEDRAL"
17420
+ ____exports.Cutscene.CHEST = 17
17421
+ ____exports.Cutscene[____exports.Cutscene.CHEST] = "CHEST"
17422
+ ____exports.Cutscene.DARK_ROOM = 18
17423
+ ____exports.Cutscene[____exports.Cutscene.DARK_ROOM] = "DARK_ROOM"
17424
+ ____exports.Cutscene.MEGA_SATAN = 19
17425
+ ____exports.Cutscene[____exports.Cutscene.MEGA_SATAN] = "MEGA_SATAN"
17426
+ ____exports.Cutscene.BLUE_WOMB = 20
17427
+ ____exports.Cutscene[____exports.Cutscene.BLUE_WOMB] = "BLUE_WOMB"
17428
+ ____exports.Cutscene.GREED_MODE = 21
17429
+ ____exports.Cutscene[____exports.Cutscene.GREED_MODE] = "GREED_MODE"
17430
+ ____exports.Cutscene.VOID = 22
17431
+ ____exports.Cutscene[____exports.Cutscene.VOID] = "VOID"
17432
+ ____exports.Cutscene.GREEDIER = 23
17433
+ ____exports.Cutscene[____exports.Cutscene.GREEDIER] = "GREEDIER"
17434
+ ____exports.Cutscene.MOTHER = 24
17435
+ ____exports.Cutscene[____exports.Cutscene.MOTHER] = "MOTHER"
17436
+ ____exports.Cutscene.DOGMA = 25
17437
+ ____exports.Cutscene[____exports.Cutscene.DOGMA] = "DOGMA"
17438
+ ____exports.Cutscene.BEAST = 26
17439
+ ____exports.Cutscene[____exports.Cutscene.BEAST] = "BEAST"
17341
17440
  return ____exports
17342
17441
  end,
17343
17442
  ["lua_modules.isaac-typescript-definitions.dist.enums.CopyableIsaacAPIClassType"] = function(...)
@@ -17354,6 +17453,8 @@ return ____exports
17354
17453
  ["lua_modules.isaac-typescript-definitions.dist.enums.ControllerIndex"] = function(...)
17355
17454
  local ____exports = {}
17356
17455
  ____exports.ControllerIndex = {}
17456
+ ____exports.ControllerIndex.NONE = -1
17457
+ ____exports.ControllerIndex[____exports.ControllerIndex.NONE] = "NONE"
17357
17458
  ____exports.ControllerIndex.KEYBOARD = 0
17358
17459
  ____exports.ControllerIndex[____exports.ControllerIndex.KEYBOARD] = "KEYBOARD"
17359
17460
  ____exports.ControllerIndex.CONTROLLER_1 = 1
@@ -17402,6 +17503,17 @@ ____exports.Controller.BUTTON_BACK = 14
17402
17503
  ____exports.Controller[____exports.Controller.BUTTON_BACK] = "BUTTON_BACK"
17403
17504
  ____exports.Controller.BUTTON_START = 15
17404
17505
  ____exports.Controller[____exports.Controller.BUTTON_START] = "BUTTON_START"
17506
+ return ____exports
17507
+ end,
17508
+ ["lua_modules.isaac-typescript-definitions.dist.enums.ConsoleFont"] = function(...)
17509
+ local ____exports = {}
17510
+ ____exports.ConsoleFont = {}
17511
+ ____exports.ConsoleFont.DEFAULT = 0
17512
+ ____exports.ConsoleFont[____exports.ConsoleFont.DEFAULT] = "DEFAULT"
17513
+ ____exports.ConsoleFont.SMALL = 1
17514
+ ____exports.ConsoleFont[____exports.ConsoleFont.SMALL] = "SMALL"
17515
+ ____exports.ConsoleFont.TINY = 2
17516
+ ____exports.ConsoleFont[____exports.ConsoleFont.TINY] = "TINY"
17405
17517
  return ____exports
17406
17518
  end,
17407
17519
  ["lua_modules.isaac-typescript-definitions.dist.enums.CollectibleSpriteLayer"] = function(...)
@@ -17625,6 +17737,15 @@ ____exports.Challenge.RED_REDEMPTION = 44
17625
17737
  ____exports.Challenge[____exports.Challenge.RED_REDEMPTION] = "RED_REDEMPTION"
17626
17738
  ____exports.Challenge.DELETE_THIS = 45
17627
17739
  ____exports.Challenge[____exports.Challenge.DELETE_THIS] = "DELETE_THIS"
17740
+ return ____exports
17741
+ end,
17742
+ ["lua_modules.isaac-typescript-definitions.dist.enums.CameraStyle"] = function(...)
17743
+ local ____exports = {}
17744
+ ____exports.CameraStyle = {}
17745
+ ____exports.CameraStyle.ON = 1
17746
+ ____exports.CameraStyle[____exports.CameraStyle.ON] = "ON"
17747
+ ____exports.CameraStyle.OFF = 2
17748
+ ____exports.CameraStyle[____exports.CameraStyle.OFF] = "OFF"
17628
17749
  return ____exports
17629
17750
  end,
17630
17751
  ["lua_modules.isaac-typescript-definitions.dist.enums.CallbackPriority"] = function(...)
@@ -17836,6 +17957,17 @@ ____exports.BackdropType.ASHPIT_SHAFT = 59
17836
17957
  ____exports.BackdropType[____exports.BackdropType.ASHPIT_SHAFT] = "ASHPIT_SHAFT"
17837
17958
  ____exports.BackdropType.DARK_CLOSET = 60
17838
17959
  ____exports.BackdropType[____exports.BackdropType.DARK_CLOSET] = "DARK_CLOSET"
17960
+ return ____exports
17961
+ end,
17962
+ ["lua_modules.isaac-typescript-definitions.dist.enums.AnnouncerVoiceMode"] = function(...)
17963
+ local ____exports = {}
17964
+ ____exports.AnnouncerVoiceMode = {}
17965
+ ____exports.AnnouncerVoiceMode.RANDOM = 0
17966
+ ____exports.AnnouncerVoiceMode[____exports.AnnouncerVoiceMode.RANDOM] = "RANDOM"
17967
+ ____exports.AnnouncerVoiceMode.OFF = 1
17968
+ ____exports.AnnouncerVoiceMode[____exports.AnnouncerVoiceMode.OFF] = "OFF"
17969
+ ____exports.AnnouncerVoiceMode.ALWAYS = 2
17970
+ ____exports.AnnouncerVoiceMode[____exports.AnnouncerVoiceMode.ALWAYS] = "ALWAYS"
17839
17971
  return ____exports
17840
17972
  end,
17841
17973
  ["lua_modules.isaac-typescript-definitions.dist.enums.ActiveSlot"] = function(...)
@@ -18002,6 +18134,22 @@ function ____exports.isRepentance(self)
18002
18134
  local getAnimation = classTable.GetAnimation
18003
18135
  return isFunction(nil, getAnimation)
18004
18136
  end
18137
+ --- Helper function to check if the player is using REPENTOGON, an exe-hack which expands the modding
18138
+ -- API.
18139
+ --
18140
+ -- Although REPENTOGON has a `REPENTOGON` global to check if it's present, it is not safe to use as
18141
+ -- it can be overwritten by other mods.
18142
+ --
18143
+ -- Specifically, this function checks for the `Sprite.Continue` method:
18144
+ -- https://repentogon.com/Sprite.html#continue
18145
+ function ____exports.isRepentogon(self)
18146
+ local metatable = getmetatable(Sprite)
18147
+ ____exports.assertDefined(nil, metatable, "Failed to get the metatable of the Sprite global table.")
18148
+ local classTable = metatable.__class
18149
+ ____exports.assertDefined(nil, classTable, "Failed to get the \"__class\" key of the Sprite metatable.")
18150
+ local getAnimation = classTable.Continue
18151
+ return isFunction(nil, getAnimation)
18152
+ end
18005
18153
  --- Helper function to repeat code N times. This is faster to type and cleaner than using a for loop.
18006
18154
  --
18007
18155
  -- For example:
@@ -18167,7 +18315,7 @@ end
18167
18315
  --- Helper function to parse a Semantic Versioning string into its individual constituents. Returns
18168
18316
  -- undefined if the submitted string was not a proper Semantic Version string.
18169
18317
  --
18170
- -- https://semver.org/
18318
+ -- @see https ://semver.org/
18171
18319
  function ____exports.parseSemanticVersion(self, versionString)
18172
18320
  local majorVersionString, minorVersionString, patchVersionString = string.match(versionString, "(%d+).(%d+).(%d+)")
18173
18321
  if majorVersionString == nil or minorVersionString == nil or patchVersionString == nil then
@@ -23531,7 +23679,7 @@ end
23531
23679
  -- Useful for equally distributing things in a circle pattern.
23532
23680
  --
23533
23681
  -- @param centerPos A position that represents the center of the center to get the points from.
23534
- -- @param radius The radius of the circle.
23682
+ -- @param radius The length of the radius of the circle.
23535
23683
  -- @param numPoints The number of points on the circumference of the circle to get.
23536
23684
  -- @param xMultiplier An optional multiplier to get the points around an oval. Default is 1.
23537
23685
  -- @param yMultiplier An optional multiplier to get the points around an oval. Default is 1.
@@ -36463,7 +36611,7 @@ function ____exports.addPlayerStat(self, player, cacheFlag, amount)
36463
36611
  ____cond4 = ____cond4 or ____switch4 == CacheFlag.RANGE
36464
36612
  if ____cond4 then
36465
36613
  do
36466
- player.TearHeight = player.TearHeight + amount
36614
+ player.TearRange = player.TearRange + amount
36467
36615
  break
36468
36616
  end
36469
36617
  end
@@ -67152,6 +67300,10 @@ return ____exports
67152
67300
  end,
67153
67301
  ["types.LowercaseKeys"] = function(...)
67154
67302
  local ____exports = {}
67303
+ return ____exports
67304
+ end,
67305
+ ["types.ObjectValues"] = function(...)
67306
+ local ____exports = {}
67155
67307
  return ____exports
67156
67308
  end,
67157
67309
  ["types.StartsWithUppercase"] = function(...)