isaacscript-common 1.2.13 → 1.2.14
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.
- package/dist/functions/player.d.ts +12 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.lua +16 -0
- package/dist/types/PillEffectClass.d.ts +7 -0
- package/dist/types/PillEffectClass.lua +12 -0
- package/dist/types/PillEffectType.d.ts +5 -0
- package/dist/types/PillEffectType.lua +10 -0
- package/package.json +2 -2
|
@@ -59,6 +59,10 @@ export declare function getClosestPlayer(position: Vector): EntityPlayer;
|
|
|
59
59
|
* Tainted Forgotten have a 20 frame death animation (i.e. the "ForgottenDeath" animation).
|
|
60
60
|
*/
|
|
61
61
|
export declare function getDeathAnimationName(player: EntityPlayer): string;
|
|
62
|
+
/**
|
|
63
|
+
* Helper function to return the player with the highest index, according to the
|
|
64
|
+
* `Isaac.GetPlayer()` method.
|
|
65
|
+
*/
|
|
62
66
|
export declare function getFinalPlayer(): EntityPlayer;
|
|
63
67
|
/**
|
|
64
68
|
* Helper function that returns the type of the rightmost heart, not including golden hearts since
|
|
@@ -219,6 +223,10 @@ export declare function isTainted(player: EntityPlayer): boolean;
|
|
|
219
223
|
export declare function isTaintedLazarus(player: EntityPlayer): boolean;
|
|
220
224
|
export declare function isModdedCharacter(player: EntityPlayer): boolean;
|
|
221
225
|
export declare function isVanillaCharacter(player: EntityPlayer): boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Helper function to remove a collectible costume from a player. Use this helper function to avoid
|
|
228
|
+
* having to request the collectible from the item config.
|
|
229
|
+
*/
|
|
222
230
|
export declare function removeCollectibleCostume(player: EntityPlayer, collectibleType: CollectibleType | int): void;
|
|
223
231
|
/**
|
|
224
232
|
* Helper function to remove the Dead Eye multiplier from a player.
|
|
@@ -227,6 +235,10 @@ export declare function removeCollectibleCostume(player: EntityPlayer, collectib
|
|
|
227
235
|
* chance of working, so this function calls it 100 times to be safe.
|
|
228
236
|
*/
|
|
229
237
|
export declare function removeDeadEyeMultiplier(player: EntityPlayer): void;
|
|
238
|
+
/**
|
|
239
|
+
* Helper function to remove a trinket costume from a player. Use this helper function to avoid
|
|
240
|
+
* having to request the trinket from the item config.
|
|
241
|
+
*/
|
|
230
242
|
export declare function removeTrinketCostume(player: EntityPlayer, trinketType: TrinketType | int): void;
|
|
231
243
|
/**
|
|
232
244
|
* Helper function to set an active collectible to a particular slot. This has different behavior
|
package/dist/index.d.ts
CHANGED
|
@@ -74,6 +74,8 @@ export * from "./types/JSONSpawn";
|
|
|
74
74
|
export * from "./types/ModCallbacksCustom";
|
|
75
75
|
export * from "./types/ModUpgraded";
|
|
76
76
|
export * from "./types/PickingUpItem";
|
|
77
|
+
export * from "./types/PillEffectClass";
|
|
78
|
+
export * from "./types/PillEffectType";
|
|
77
79
|
export * from "./types/PlayerHealth";
|
|
78
80
|
export * from "./types/PocketItemDescription";
|
|
79
81
|
export * from "./types/PocketItemType";
|
package/dist/index.lua
CHANGED
|
@@ -534,6 +534,22 @@ do
|
|
|
534
534
|
end
|
|
535
535
|
end
|
|
536
536
|
end
|
|
537
|
+
do
|
|
538
|
+
local ____export = require("types.PillEffectClass")
|
|
539
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
540
|
+
if ____exportKey ~= "default" then
|
|
541
|
+
____exports[____exportKey] = ____exportValue
|
|
542
|
+
end
|
|
543
|
+
end
|
|
544
|
+
end
|
|
545
|
+
do
|
|
546
|
+
local ____export = require("types.PillEffectType")
|
|
547
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
548
|
+
if ____exportKey ~= "default" then
|
|
549
|
+
____exports[____exportKey] = ____exportValue
|
|
550
|
+
end
|
|
551
|
+
end
|
|
552
|
+
end
|
|
537
553
|
do
|
|
538
554
|
local ____export = require("types.PocketItemType")
|
|
539
555
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____exports = {}
|
|
3
|
+
____exports.PillEffectClass = PillEffectClass or ({})
|
|
4
|
+
____exports.PillEffectClass.JOKE = 0
|
|
5
|
+
____exports.PillEffectClass[____exports.PillEffectClass.JOKE] = "JOKE"
|
|
6
|
+
____exports.PillEffectClass.MINOR = 1
|
|
7
|
+
____exports.PillEffectClass[____exports.PillEffectClass.MINOR] = "MINOR"
|
|
8
|
+
____exports.PillEffectClass.MEDIUM = 2
|
|
9
|
+
____exports.PillEffectClass[____exports.PillEffectClass.MEDIUM] = "MEDIUM"
|
|
10
|
+
____exports.PillEffectClass.MAJOR = 3
|
|
11
|
+
____exports.PillEffectClass[____exports.PillEffectClass.MAJOR] = "MAJOR"
|
|
12
|
+
return ____exports
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____exports = {}
|
|
3
|
+
____exports.PillEffectType = PillEffectType or ({})
|
|
4
|
+
____exports.PillEffectType.GOOD = 0
|
|
5
|
+
____exports.PillEffectType[____exports.PillEffectType.GOOD] = "GOOD"
|
|
6
|
+
____exports.PillEffectType.BAD = 1
|
|
7
|
+
____exports.PillEffectType[____exports.PillEffectType.BAD] = "BAD"
|
|
8
|
+
____exports.PillEffectType.NEUTRAL = 2
|
|
9
|
+
____exports.PillEffectType[____exports.PillEffectType.NEUTRAL] = "NEUTRAL"
|
|
10
|
+
return ____exports
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.14",
|
|
4
4
|
"description": "Helper functions for IsaacScript mods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@zamiell/typescript-to-lua": "^1.4.0",
|
|
29
|
-
"isaac-typescript-definitions": "^1.0.
|
|
29
|
+
"isaac-typescript-definitions": "^1.0.337",
|
|
30
30
|
"isaacscript-lint": "^1.0.79",
|
|
31
31
|
"isaacscript-tsconfig": "^1.1.8",
|
|
32
32
|
"typedoc": "^0.22.11",
|