isaacscript-common 1.0.489 → 1.0.490
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
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Helper function to get a card name from a Card.
|
|
4
4
|
*
|
|
5
5
|
* Example:
|
|
6
6
|
* ```
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function getCardDescription(card: Card | int): string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Helper function to get a card name from a Card.
|
|
14
14
|
*
|
|
15
15
|
* Example:
|
|
16
16
|
* ```
|
|
@@ -1,18 +1,38 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare function collectibleHasTag(collectibleType: CollectibleType | int, tag: ItemConfigTag): boolean;
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Helper function to get the in-game description for a collectible. Returns "Unknown" if the
|
|
5
|
+
* provided collectible type was not valid.
|
|
6
|
+
*/
|
|
4
7
|
export declare function getCollectibleDescription(collectibleType: CollectibleType | int): string;
|
|
5
8
|
/**
|
|
6
9
|
* Helper function to get the heart cost that a collectible item would be if it were being offered
|
|
7
10
|
* in a Devil Room deal. Returns 0 if passed CollectibleType.COLLECTIBLE_NULL.
|
|
8
11
|
*/
|
|
9
12
|
export declare function getCollectibleDevilHeartPrice(collectibleType: CollectibleType | int, player: EntityPlayer): PickupPrice;
|
|
13
|
+
/**
|
|
14
|
+
* Helper function to get the path to a collectible's sprite. Returns
|
|
15
|
+
* "gfx/items/collectibles/questionmark.png" if the provided collectible type was not valid.
|
|
16
|
+
*/
|
|
10
17
|
export declare function getCollectibleGfxFilename(collectibleType: CollectibleType | int): string;
|
|
18
|
+
/**
|
|
19
|
+
* Helper function to get the initial amount of charges that a collectible has. Returns 0 if the
|
|
20
|
+
* provided collectible type was not valid.
|
|
21
|
+
*/
|
|
11
22
|
export declare function getCollectibleInitCharges(collectibleType: CollectibleType | int): int;
|
|
23
|
+
/**
|
|
24
|
+
* Helper function to get the `ItemType` of a collectible. Returns `ItemType.ITEM_NULL` if the
|
|
25
|
+
* provided collectible type was not valid.
|
|
26
|
+
*/
|
|
12
27
|
export declare function getCollectibleItemType(collectibleType: CollectibleType | int): ItemType;
|
|
28
|
+
/**
|
|
29
|
+
* Helper function to get the maximum amount of charges that a collectible has. Returns 0 if the
|
|
30
|
+
* provided collectible type was not valid.
|
|
31
|
+
*/
|
|
13
32
|
export declare function getCollectibleMaxCharges(collectibleType: CollectibleType | int): int;
|
|
14
33
|
/**
|
|
15
|
-
*
|
|
34
|
+
* Helper function to get the name of a collectible. Returns "Unknown" if the provided collectible
|
|
35
|
+
* type is not valid.
|
|
16
36
|
*
|
|
17
37
|
* Example:
|
|
18
38
|
* ```
|
|
@@ -16,10 +16,14 @@ export declare function getMaxTrinketID(): int;
|
|
|
16
16
|
export declare function getOpenTrinketSlot(player: EntityPlayer): int | undefined;
|
|
17
17
|
/** Helper function to get all of the trinket entities in the room. */
|
|
18
18
|
export declare function getTrinkets(matchingSubType?: number): EntityPickup[];
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Helper function to get the in-game description for a trinket. Returns "Unknown" if the provided
|
|
21
|
+
* trinket type was not valid.
|
|
22
|
+
*/
|
|
20
23
|
export declare function getTrinketDescription(trinketType: TrinketType | int): string;
|
|
21
24
|
/**
|
|
22
|
-
*
|
|
25
|
+
* Helper function to get the name of a trinket. Returns "Unknown" if the provided trinket type is
|
|
26
|
+
* not valid.
|
|
23
27
|
*
|
|
24
28
|
* Example:
|
|
25
29
|
* ```
|