isaacscript-common 11.2.2 → 11.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 11.2.
|
|
3
|
+
isaacscript-common 11.2.3
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -4861,7 +4861,7 @@ return ____exports
|
|
|
4861
4861
|
["lua_modules.isaac-typescript-definitions.dist.package"] = function(...)
|
|
4862
4862
|
return {
|
|
4863
4863
|
name = "isaac-typescript-definitions",
|
|
4864
|
-
version = "7.2.
|
|
4864
|
+
version = "7.2.4",
|
|
4865
4865
|
description = "TypeScript definitions for The Binding of Isaac: Repentance.",
|
|
4866
4866
|
keywords = {"isaac", "rebirth", "afterbirth", "repentance"},
|
|
4867
4867
|
homepage = "https://isaacscript.github.io/",
|
|
@@ -8785,9 +8785,10 @@ ____exports.PlayerVariant[____exports.PlayerVariant.COOP_BABY] = "COOP_BABY"
|
|
|
8785
8785
|
-- explode. `TearVariant.NEEDLE` makes the tear look like a needle, and the exploding effect comes
|
|
8786
8786
|
-- from `TearFlag.NEEDLE`.
|
|
8787
8787
|
--
|
|
8788
|
-
-- However, there are some exceptions
|
|
8789
|
-
--
|
|
8790
|
-
-- `TearVariant.KEY_BLOOD
|
|
8788
|
+
-- However, there are some exceptions:
|
|
8789
|
+
-- - `TearVariant.CHAOS_CARD` (9) - The variant grants the instant-kill property of the tear.
|
|
8790
|
+
-- - `TearVariant.KEY_BLOOD` (44) - Sharp Key makes Isaac shoot key tears that deal extra damage.
|
|
8791
|
+
-- Both the graphical effect and the extra damage are granted by this variant.
|
|
8791
8792
|
____exports.TearVariant = {}
|
|
8792
8793
|
____exports.TearVariant.BLUE = 0
|
|
8793
8794
|
____exports.TearVariant[____exports.TearVariant.BLUE] = "BLUE"
|
|
@@ -46969,7 +46970,7 @@ return ____exports
|
|
|
46969
46970
|
["package"] = function(...)
|
|
46970
46971
|
return {
|
|
46971
46972
|
name = "isaacscript-common",
|
|
46972
|
-
version = "11.2.
|
|
46973
|
+
version = "11.2.3",
|
|
46973
46974
|
description = "Helper functions and features for IsaacScript mods.",
|
|
46974
46975
|
keywords = {"isaac", "rebirth", "afterbirth", "repentance"},
|
|
46975
46976
|
homepage = "https://isaacscript.github.io/",
|
|
@@ -46980,7 +46981,7 @@ return {
|
|
|
46980
46981
|
type = "commonjs",
|
|
46981
46982
|
main = "dist/src/index",
|
|
46982
46983
|
types = "dist/src/index.d.ts",
|
|
46983
|
-
dependencies = {["isaac-typescript-definitions"] = "^7.2.
|
|
46984
|
+
dependencies = {["isaac-typescript-definitions"] = "^7.2.4"}
|
|
46984
46985
|
}
|
|
46985
46986
|
end,
|
|
46986
46987
|
["src.functions.map"] = function(...)
|
|
@@ -52316,13 +52317,14 @@ local ____lualib = require("lualib_bundle")
|
|
|
52316
52317
|
local Map = ____lualib.Map
|
|
52317
52318
|
local __TS__ObjectEntries = ____lualib.__TS__ObjectEntries
|
|
52318
52319
|
local ____exports = {}
|
|
52319
|
-
local initCommandMap, initCallbacks, postUpdate, evaluateCacheDamage, evaluateCacheFireDelay, evaluateCacheSpeed, evaluateCacheFlying, entityTakeDmgPlayer, postCurseEval, executeCmd
|
|
52320
|
+
local initCommandMap, initCallbacks, postUpdate, evaluateCacheDamage, evaluateCacheFireDelay, evaluateCacheSpeed, evaluateCacheFlying, entityTakeDmgPlayer, postCurseEval, executeCmd, postFireTear
|
|
52320
52321
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
52321
52322
|
local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
|
|
52322
52323
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
52323
52324
|
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
52324
52325
|
local LevelCurse = ____isaac_2Dtypescript_2Ddefinitions.LevelCurse
|
|
52325
52326
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
52327
|
+
local TearVariant = ____isaac_2Dtypescript_2Ddefinitions.TearVariant
|
|
52326
52328
|
local ____flag = require("src.functions.flag")
|
|
52327
52329
|
local addFlag = ____flag.addFlag
|
|
52328
52330
|
local bitFlags = ____flag.bitFlags
|
|
@@ -52360,6 +52362,7 @@ function initCallbacks(self, mod)
|
|
|
52360
52362
|
mod:AddCallback(ModCallback.ENTITY_TAKE_DMG, entityTakeDmgPlayer, EntityType.PLAYER)
|
|
52361
52363
|
mod:AddCallback(ModCallback.POST_CURSE_EVAL, postCurseEval)
|
|
52362
52364
|
mod:AddCallback(ModCallback.EXECUTE_CMD, executeCmd)
|
|
52365
|
+
mod:AddCallback(ModCallback.POST_FIRE_TEAR, postFireTear)
|
|
52363
52366
|
end
|
|
52364
52367
|
function postUpdate(self)
|
|
52365
52368
|
if v.persistent.spamBloodRights then
|
|
@@ -52440,6 +52443,11 @@ function executeCmd(self, command, params)
|
|
|
52440
52443
|
printConsole(nil, "Command: " .. commandName)
|
|
52441
52444
|
commandFunction(nil, params)
|
|
52442
52445
|
end
|
|
52446
|
+
function postFireTear(self, tear)
|
|
52447
|
+
if v.persistent.chaosCardTears then
|
|
52448
|
+
tear:ChangeVariant(TearVariant.CHAOS_CARD)
|
|
52449
|
+
end
|
|
52450
|
+
end
|
|
52443
52451
|
function ____exports.extraConsoleCommandsInit(self, mod)
|
|
52444
52452
|
saveDataManager(nil, "extraConsoleCommands", v, false)
|
|
52445
52453
|
initCommandMap(nil)
|
package/dist/package.lua
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
return {
|
|
2
2
|
name = "isaacscript-common",
|
|
3
|
-
version = "11.2.
|
|
3
|
+
version = "11.2.3",
|
|
4
4
|
description = "Helper functions and features for IsaacScript mods.",
|
|
5
5
|
keywords = {"isaac", "rebirth", "afterbirth", "repentance"},
|
|
6
6
|
homepage = "https://isaacscript.github.io/",
|
|
@@ -11,5 +11,5 @@ return {
|
|
|
11
11
|
type = "commonjs",
|
|
12
12
|
main = "dist/src/index",
|
|
13
13
|
types = "dist/src/index.d.ts",
|
|
14
|
-
dependencies = {["isaac-typescript-definitions"] = "^7.2.
|
|
14
|
+
dependencies = {["isaac-typescript-definitions"] = "^7.2.4"}
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../src/features/extraConsoleCommands/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../src/features/extraConsoleCommands/init.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAUxD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,CAK/D"}
|
|
@@ -2,13 +2,14 @@ local ____lualib = require("lualib_bundle")
|
|
|
2
2
|
local Map = ____lualib.Map
|
|
3
3
|
local __TS__ObjectEntries = ____lualib.__TS__ObjectEntries
|
|
4
4
|
local ____exports = {}
|
|
5
|
-
local initCommandMap, initCallbacks, postUpdate, evaluateCacheDamage, evaluateCacheFireDelay, evaluateCacheSpeed, evaluateCacheFlying, entityTakeDmgPlayer, postCurseEval, executeCmd
|
|
5
|
+
local initCommandMap, initCallbacks, postUpdate, evaluateCacheDamage, evaluateCacheFireDelay, evaluateCacheSpeed, evaluateCacheFlying, entityTakeDmgPlayer, postCurseEval, executeCmd, postFireTear
|
|
6
6
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
7
7
|
local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
|
|
8
8
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
9
9
|
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
10
10
|
local LevelCurse = ____isaac_2Dtypescript_2Ddefinitions.LevelCurse
|
|
11
11
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
12
|
+
local TearVariant = ____isaac_2Dtypescript_2Ddefinitions.TearVariant
|
|
12
13
|
local ____flag = require("src.functions.flag")
|
|
13
14
|
local addFlag = ____flag.addFlag
|
|
14
15
|
local bitFlags = ____flag.bitFlags
|
|
@@ -46,6 +47,7 @@ function initCallbacks(self, mod)
|
|
|
46
47
|
mod:AddCallback(ModCallback.ENTITY_TAKE_DMG, entityTakeDmgPlayer, EntityType.PLAYER)
|
|
47
48
|
mod:AddCallback(ModCallback.POST_CURSE_EVAL, postCurseEval)
|
|
48
49
|
mod:AddCallback(ModCallback.EXECUTE_CMD, executeCmd)
|
|
50
|
+
mod:AddCallback(ModCallback.POST_FIRE_TEAR, postFireTear)
|
|
49
51
|
end
|
|
50
52
|
function postUpdate(self)
|
|
51
53
|
if v.persistent.spamBloodRights then
|
|
@@ -126,6 +128,11 @@ function executeCmd(self, command, params)
|
|
|
126
128
|
printConsole(nil, "Command: " .. commandName)
|
|
127
129
|
commandFunction(nil, params)
|
|
128
130
|
end
|
|
131
|
+
function postFireTear(self, tear)
|
|
132
|
+
if v.persistent.chaosCardTears then
|
|
133
|
+
tear:ChangeVariant(TearVariant.CHAOS_CARD)
|
|
134
|
+
end
|
|
135
|
+
end
|
|
129
136
|
function ____exports.extraConsoleCommandsInit(self, mod)
|
|
130
137
|
saveDataManager(nil, "extraConsoleCommands", v, false)
|
|
131
138
|
initCommandMap(nil)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.3",
|
|
4
4
|
"description": "Helper functions and features for IsaacScript mods.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"main": "dist/src/index",
|
|
23
23
|
"types": "dist/src/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"isaac-typescript-definitions": "^7.2.
|
|
25
|
+
"isaac-typescript-definitions": "^7.2.4"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
EntityType,
|
|
6
6
|
LevelCurse,
|
|
7
7
|
ModCallback,
|
|
8
|
+
TearVariant,
|
|
8
9
|
} from "isaac-typescript-definitions";
|
|
9
10
|
import { ModUpgraded } from "../../classes/ModUpgraded";
|
|
10
11
|
import { addFlag, bitFlags } from "../../functions/flag";
|
|
@@ -62,6 +63,7 @@ function initCallbacks(mod: ModUpgraded) {
|
|
|
62
63
|
); // 11
|
|
63
64
|
mod.AddCallback(ModCallback.POST_CURSE_EVAL, postCurseEval); // 12
|
|
64
65
|
mod.AddCallback(ModCallback.EXECUTE_CMD, executeCmd); // 22
|
|
66
|
+
mod.AddCallback(ModCallback.POST_FIRE_TEAR, postFireTear); // 61
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
// ModCallback.POST_UPDATE (1)
|
|
@@ -188,3 +190,10 @@ function executeCmd(command: string, params: string) {
|
|
|
188
190
|
printConsole(`Command: ${commandName}`);
|
|
189
191
|
commandFunction(params);
|
|
190
192
|
}
|
|
193
|
+
|
|
194
|
+
// ModCallback.POST_FIRE_TEAR (61)
|
|
195
|
+
function postFireTear(tear: EntityTear) {
|
|
196
|
+
if (v.persistent.chaosCardTears) {
|
|
197
|
+
tear.ChangeVariant(TearVariant.CHAOS_CARD);
|
|
198
|
+
}
|
|
199
|
+
}
|