isaacscript-common 6.16.1 → 6.16.2
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saveFile.d.ts","sourceRoot":"","sources":["../../src/functions/saveFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"saveFile.d.ts","sourceRoot":"","sources":["../../src/functions/saveFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAI7E;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,GACzB,OAAO,CAMT"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
|
+
local ____itemPool = require("functions.itemPool")
|
|
3
|
+
local isCollectibleInItemPool = ____itemPool.isCollectibleInItemPool
|
|
2
4
|
local ____players = require("functions.players")
|
|
3
5
|
local anyPlayerHasCollectible = ____players.anyPlayerHasCollectible
|
|
4
6
|
--- Helper function to see if the given collectible is unlocked on the current save file. This
|
|
@@ -17,6 +19,6 @@ function ____exports.isCollectibleUnlocked(self, collectibleType, itemPoolType)
|
|
|
17
19
|
if anyPlayerHasCollectible(nil, collectibleType) then
|
|
18
20
|
return true
|
|
19
21
|
end
|
|
20
|
-
return
|
|
22
|
+
return isCollectibleInItemPool(nil, collectibleType, itemPoolType)
|
|
21
23
|
end
|
|
22
24
|
return ____exports
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CollectibleType, ItemPoolType } from "isaac-typescript-definitions";
|
|
2
|
+
import { isCollectibleInItemPool } from "./itemPool";
|
|
2
3
|
import { anyPlayerHasCollectible } from "./players";
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -23,5 +24,5 @@ export function isCollectibleUnlocked(
|
|
|
23
24
|
return true;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
return
|
|
27
|
+
return isCollectibleInItemPool(collectibleType, itemPoolType);
|
|
27
28
|
}
|