isaacscript-common 1.0.486 → 1.0.487

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.
@@ -18,19 +18,19 @@ function ____exports.getPocketItems(self, player)
18
18
  local card = player:GetCard(slot)
19
19
  local pill = player:GetPill(slot)
20
20
  if card ~= Card.CARD_NULL then
21
- __TS__ArrayPush(pocketItems, {type = PocketItemType.CARD, id = card})
21
+ __TS__ArrayPush(pocketItems, {type = PocketItemType.CARD, id = card, slot = slot})
22
22
  elseif pill ~= PillColor.PILL_NULL then
23
- __TS__ArrayPush(pocketItems, {type = PocketItemType.PILL, id = pill})
23
+ __TS__ArrayPush(pocketItems, {type = PocketItemType.PILL, id = pill, slot = slot})
24
24
  elseif (hasPocketItem and (not hasPocketItem2)) and (not pocketItemIdentified) then
25
25
  pocketItemIdentified = true
26
- __TS__ArrayPush(pocketItems, {type = PocketItemType.ACTIVE_ITEM, id = pocketItem})
26
+ __TS__ArrayPush(pocketItems, {type = PocketItemType.ACTIVE_ITEM, id = pocketItem, slot = slot})
27
27
  elseif ((not hasPocketItem) and hasPocketItem2) and (not pocketItem2Identified) then
28
28
  pocketItem2Identified = true
29
- __TS__ArrayPush(pocketItems, {type = PocketItemType.DICE_BAG_DICE, id = pocketItem2})
29
+ __TS__ArrayPush(pocketItems, {type = PocketItemType.DICE_BAG_DICE, id = pocketItem2, slot = slot})
30
30
  elseif hasPocketItem and hasPocketItem2 then
31
- __TS__ArrayPush(pocketItems, {type = PocketItemType.UNDETERMINABLE, id = 0})
31
+ __TS__ArrayPush(pocketItems, {type = PocketItemType.UNDETERMINABLE, id = 0, slot = slot})
32
32
  else
33
- __TS__ArrayPush(pocketItems, {type = PocketItemType.EMPTY, id = 0})
33
+ __TS__ArrayPush(pocketItems, {type = PocketItemType.EMPTY, id = 0, slot = slot})
34
34
  end
35
35
  if (slot + 1) == maxPocketItems then
36
36
  break
@@ -3,4 +3,5 @@ import { PocketItemType } from "./PocketItemType";
3
3
  export interface PocketItemDescription {
4
4
  type: PocketItemType;
5
5
  id: int;
6
+ slot: PocketItemSlot;
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.0.486",
3
+ "version": "1.0.487",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",