isaacscript-common 1.2.237 → 1.2.240
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.
|
@@ -198,34 +198,38 @@ export declare function removeAllSlots(variant?: SlotVariant | int, subType?: in
|
|
|
198
198
|
*/
|
|
199
199
|
export declare function removeAllTears(variant?: TearVariant | int, subType?: int, cap?: int): boolean;
|
|
200
200
|
/** Helper function to spawn a `EntityType.ENTITY_BOMB` (4). */
|
|
201
|
-
export declare function spawnBomb(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityBomb;
|
|
201
|
+
export declare function spawnBomb(variant: BombVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityBomb;
|
|
202
202
|
/** Helper function to spawn a `EntityType.ENTITY_BOMB` (4) with a specific seed. */
|
|
203
|
-
export declare function spawnBombWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityBomb;
|
|
203
|
+
export declare function spawnBombWithSeed(variant: BombVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityBomb;
|
|
204
204
|
/** Helper function to spawn a `EntityType.ENTITY_EFFECT` (1000). */
|
|
205
|
-
export declare function spawnEffect(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityEffect;
|
|
205
|
+
export declare function spawnEffect(variant: EffectVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityEffect;
|
|
206
206
|
/** Helper function to spawn a `EntityType.ENTITY_EFFECT` (1000) with a specific seed. */
|
|
207
|
-
export declare function spawnEffectWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityEffect;
|
|
207
|
+
export declare function spawnEffectWithSeed(variant: EffectVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityEffect;
|
|
208
208
|
/** Helper function to spawn a `EntityType.ENTITY_FAMILIAR` (3). */
|
|
209
|
-
export declare function spawnFamiliar(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityFamiliar;
|
|
209
|
+
export declare function spawnFamiliar(variant: FamiliarVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityFamiliar;
|
|
210
210
|
/** Helper function to spawn a `EntityType.ENTITY_FAMILIAR` (3) with a specific seed. */
|
|
211
|
-
export declare function spawnFamiliarWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityFamiliar;
|
|
211
|
+
export declare function spawnFamiliarWithSeed(variant: FamiliarVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityFamiliar;
|
|
212
212
|
/** Helper function to spawn a `EntityType.ENTITY_KNIFE` (8). */
|
|
213
|
-
export declare function spawnKnife(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityKnife;
|
|
213
|
+
export declare function spawnKnife(variant: KnifeVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityKnife;
|
|
214
214
|
/** Helper function to spawn a `EntityType.ENTITY_KNIFE` (8) with a specific seed. */
|
|
215
|
-
export declare function spawnKnifeWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityKnife;
|
|
215
|
+
export declare function spawnKnifeWithSeed(variant: KnifeVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityKnife;
|
|
216
216
|
/** Helper function to spawn a `EntityType.ENTITY_LASER` (7). */
|
|
217
|
-
export declare function spawnLaser(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityLaser;
|
|
217
|
+
export declare function spawnLaser(variant: LaserVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityLaser;
|
|
218
218
|
/** Helper function to spawn a `EntityType.ENTITY_LASER` (7) with a specific seed. */
|
|
219
|
-
export declare function spawnLaserWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityLaser;
|
|
219
|
+
export declare function spawnLaserWithSeed(variant: LaserVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityLaser;
|
|
220
220
|
/** Helper function to spawn a `EntityType.ENTITY_PICKUP` (5). */
|
|
221
|
-
export declare function spawnPickup(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
221
|
+
export declare function spawnPickup(variant: PickupVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
222
222
|
/** Helper function to spawn a `EntityType.ENTITY_PICKUP` (5) with a specific seed. */
|
|
223
|
-
export declare function spawnPickupWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
223
|
+
export declare function spawnPickupWithSeed(variant: PickupVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
224
224
|
/** Helper function to spawn a `EntityType.ENTITY_PROJECTILE` (9). */
|
|
225
|
-
export declare function spawnProjectile(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityProjectile;
|
|
225
|
+
export declare function spawnProjectile(variant: ProjectileVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityProjectile;
|
|
226
226
|
/** Helper function to spawn a `EntityType.ENTITY_PROJECTILE` (9) with a specific seed. */
|
|
227
|
-
export declare function spawnProjectileWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityProjectile;
|
|
227
|
+
export declare function spawnProjectileWithSeed(variant: ProjectileVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityProjectile;
|
|
228
|
+
/** Helper function to spawn a `EntityType.ENTITY_SLOT` (6). */
|
|
229
|
+
export declare function spawnSlot(variant: SlotVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): Entity;
|
|
230
|
+
/** Helper function to spawn a `EntityType.ENTITY_SLOT` (6) with a specific seed. */
|
|
231
|
+
export declare function spawnSlotWithSeed(variant: int | SlotVariant, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): Entity;
|
|
228
232
|
/** Helper function to spawn a `EntityType.ENTITY_TEAR` (2). */
|
|
229
233
|
export declare function spawnTear(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityTear;
|
|
230
234
|
/** Helper function to spawn a `EntityType.EntityType` (2) with a specific seed. */
|
|
231
|
-
export declare function spawnTearWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityTear;
|
|
235
|
+
export declare function spawnTearWithSeed(variant: TearVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityTear;
|
|
@@ -514,6 +514,44 @@ function ____exports.spawnProjectileWithSeed(self, variant, subType, position, s
|
|
|
514
514
|
seed
|
|
515
515
|
)
|
|
516
516
|
end
|
|
517
|
+
function ____exports.spawnSlot(self, variant, subType, position, velocity, spawner, seed)
|
|
518
|
+
if velocity == nil then
|
|
519
|
+
velocity = VectorZero
|
|
520
|
+
end
|
|
521
|
+
if spawner == nil then
|
|
522
|
+
spawner = nil
|
|
523
|
+
end
|
|
524
|
+
if seed == nil then
|
|
525
|
+
seed = nil
|
|
526
|
+
end
|
|
527
|
+
return spawn(
|
|
528
|
+
nil,
|
|
529
|
+
EntityType.ENTITY_SLOT,
|
|
530
|
+
variant,
|
|
531
|
+
subType,
|
|
532
|
+
position,
|
|
533
|
+
velocity,
|
|
534
|
+
spawner,
|
|
535
|
+
seed
|
|
536
|
+
)
|
|
537
|
+
end
|
|
538
|
+
function ____exports.spawnSlotWithSeed(self, variant, subType, position, seed, velocity, spawner)
|
|
539
|
+
if velocity == nil then
|
|
540
|
+
velocity = VectorZero
|
|
541
|
+
end
|
|
542
|
+
if spawner == nil then
|
|
543
|
+
spawner = nil
|
|
544
|
+
end
|
|
545
|
+
return ____exports.spawnSlot(
|
|
546
|
+
nil,
|
|
547
|
+
variant,
|
|
548
|
+
subType,
|
|
549
|
+
position,
|
|
550
|
+
velocity,
|
|
551
|
+
spawner,
|
|
552
|
+
seed
|
|
553
|
+
)
|
|
554
|
+
end
|
|
517
555
|
function ____exports.spawnTear(self, variant, subType, position, velocity, spawner, seed)
|
|
518
556
|
if velocity == nil then
|
|
519
557
|
velocity = VectorZero
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
+
/** Helper function to get all of the battery entities in the room. */
|
|
3
|
+
export declare function getBatteries(matchingSubType?: number): EntityPickup[];
|
|
2
4
|
/** Helper function to get all of the card entities in the room. */
|
|
3
5
|
export declare function getCards(matchingSubType?: number): EntityPickup[];
|
|
4
6
|
/** Helper function to get all of the coin pickup entities in the room. */
|
|
@@ -13,10 +15,20 @@ export declare function getKeys(matchingSubType?: number): EntityPickup[];
|
|
|
13
15
|
export declare function getPills(matchingSubType?: number): EntityPickup[];
|
|
14
16
|
/** Helper function to get all of the red heart pickup entities in the room. */
|
|
15
17
|
export declare function getRedHearts(): EntityPickup[];
|
|
18
|
+
/** Helper function to get all of the sack (i.e. grab bag) entities in the room. */
|
|
19
|
+
export declare function getSacks(matchingSubType?: number): EntityPickup[];
|
|
16
20
|
/** Helper function to get all of the trinket entities in the room. */
|
|
17
21
|
export declare function getTrinkets(matchingSubType?: number): EntityPickup[];
|
|
18
22
|
export declare function isChest(pickup: EntityPickup): boolean;
|
|
19
23
|
export declare function isRedHeart(pickup: EntityPickup): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Helper function to remove all of the batteries in the room.
|
|
26
|
+
*
|
|
27
|
+
* @param batterySubType Optional. If specified, will only remove cards that match this sub-type.
|
|
28
|
+
* @param cap Optional. If specified, will only remove the given amount of cards.
|
|
29
|
+
* @returns True if one or more cards were removed, false otherwise.
|
|
30
|
+
*/
|
|
31
|
+
export declare function removeAllBatteries(batterySubType?: BatterySubType | int, cap?: int): boolean;
|
|
20
32
|
/**
|
|
21
33
|
* Helper function to remove all of the cards in the room.
|
|
22
34
|
*
|
|
@@ -66,6 +78,14 @@ export declare function removeAllKeys(keySubType?: KeySubType | int, cap?: int):
|
|
|
66
78
|
* @returns True if one or more pills were removed, false otherwise.
|
|
67
79
|
*/
|
|
68
80
|
export declare function removeAllPills(pillColor?: PillColor, cap?: int): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Helper function to remove all of the sacks (i.e. grab bags) in the room.
|
|
83
|
+
*
|
|
84
|
+
* @param sackSubType Optional. If specified, will only remove sacks that match this sub-type.
|
|
85
|
+
* @param cap Optional. If specified, will only remove the given amount of trinkets.
|
|
86
|
+
* @returns True if one or more trinkets were removed, false otherwise.
|
|
87
|
+
*/
|
|
88
|
+
export declare function removeAllSacks(sackSubType?: SackSubType | int, cap?: int): boolean;
|
|
69
89
|
/**
|
|
70
90
|
* Helper function to remove all of the trinkets in the room.
|
|
71
91
|
*
|
|
@@ -75,39 +95,51 @@ export declare function removeAllPills(pillColor?: PillColor, cap?: int): boolea
|
|
|
75
95
|
* @returns True if one or more trinkets were removed, false otherwise.
|
|
76
96
|
*/
|
|
77
97
|
export declare function removeAllTrinkets(trinketType?: TrinketType | int, cap?: int): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Helper function to spawn a `EntityType.ENTITY_PICKUP` (5) with variant
|
|
100
|
+
* `PickupVariant.PICKUP_LIL_BATTERY` (90).
|
|
101
|
+
*/
|
|
102
|
+
export declare function spawnBattery(subType: BatterySubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
103
|
+
export declare function spawnBatteryWithSeed(subType: BatterySubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
78
104
|
/**
|
|
79
105
|
* Helper function to spawn a `EntityType.ENTITY_PICKUP` (5) with variant
|
|
80
106
|
* `PickupVariant.PICKUP_TAROTCARD` (300).
|
|
81
107
|
*/
|
|
82
|
-
export declare function spawnCard(subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
83
|
-
export declare function spawnCardWithSeed(subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
108
|
+
export declare function spawnCard(subType: Card | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
109
|
+
export declare function spawnCardWithSeed(subType: Card | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
84
110
|
/**
|
|
85
111
|
* Helper function to spawn a `EntityType.ENTITY_PICKUP` (5) with variant
|
|
86
112
|
* `PickupVariant.PICKUP_COIN` (20).
|
|
87
113
|
*/
|
|
88
|
-
export declare function spawnCoin(subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
89
|
-
export declare function spawnCoinWithSeed(subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
114
|
+
export declare function spawnCoin(subType: CoinSubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
115
|
+
export declare function spawnCoinWithSeed(subType: CoinSubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
90
116
|
/**
|
|
91
117
|
* Helper function to spawn a `EntityType.ENTITY_PICKUP` (5) with variant
|
|
92
118
|
* `PickupVariant.PICKUP_HEART` (10).
|
|
93
119
|
*/
|
|
94
|
-
export declare function spawnHeart(subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
95
|
-
export declare function spawnHeartWithSeed(subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
120
|
+
export declare function spawnHeart(subType: HeartSubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
121
|
+
export declare function spawnHeartWithSeed(subType: HeartSubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
96
122
|
/**
|
|
97
123
|
* Helper function to spawn a `EntityType.ENTITY_PICKUP` (5) with variant
|
|
98
124
|
* `PickupVariant.PICKUP_KEY` (30).
|
|
99
125
|
*/
|
|
100
|
-
export declare function spawnKey(subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
101
|
-
export declare function spawnKeyWithSeed(subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
126
|
+
export declare function spawnKey(subType: KeySubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
127
|
+
export declare function spawnKeyWithSeed(subType: KeySubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
102
128
|
/**
|
|
103
129
|
* Helper function to spawn a `EntityType.ENTITY_PICKUP` (5) with variant
|
|
104
130
|
* `PickupVariant.PICKUP_PILL` (70).
|
|
105
131
|
*/
|
|
106
|
-
export declare function spawnPill(subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
107
|
-
export declare function spawnPillWithSeed(subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
132
|
+
export declare function spawnPill(subType: PillColor | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
133
|
+
export declare function spawnPillWithSeed(subType: PillColor | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
134
|
+
/**
|
|
135
|
+
* Helper function to spawn a `EntityType.ENTITY_PICKUP` (5) with variant
|
|
136
|
+
* `PickupVariant.PICKUP_GRAB_BAG` (69).
|
|
137
|
+
*/
|
|
138
|
+
export declare function spawnSack(subType: SackSubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
139
|
+
export declare function spawnSackWithSeed(subType: SackSubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
108
140
|
/**
|
|
109
141
|
* Helper function to spawn a `EntityType.ENTITY_PICKUP` (5) with variant
|
|
110
142
|
* `PickupVariant.PICKUP_TRINKET` (350).
|
|
111
143
|
*/
|
|
112
|
-
export declare function spawnTrinket(subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
113
|
-
export declare function spawnTrinketWithSeed(subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
144
|
+
export declare function spawnTrinket(subType: TrinketType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
145
|
+
export declare function spawnTrinketWithSeed(subType: TrinketType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
@@ -11,6 +11,12 @@ local ____entitySpecific = require("functions.entitySpecific")
|
|
|
11
11
|
local getPickups = ____entitySpecific.getPickups
|
|
12
12
|
local removeAllPickups = ____entitySpecific.removeAllPickups
|
|
13
13
|
local spawnPickup = ____entitySpecific.spawnPickup
|
|
14
|
+
function ____exports.getBatteries(self, matchingSubType)
|
|
15
|
+
if matchingSubType == nil then
|
|
16
|
+
matchingSubType = -1
|
|
17
|
+
end
|
|
18
|
+
return getPickups(nil, 90, matchingSubType)
|
|
19
|
+
end
|
|
14
20
|
function ____exports.getCards(self, matchingSubType)
|
|
15
21
|
if matchingSubType == nil then
|
|
16
22
|
matchingSubType = -1
|
|
@@ -54,6 +60,12 @@ function ____exports.getRedHearts(self)
|
|
|
54
60
|
function(____, heart) return RED_HEART_SUB_TYPES_SET:has(heart.SubType) end
|
|
55
61
|
)
|
|
56
62
|
end
|
|
63
|
+
function ____exports.getSacks(self, matchingSubType)
|
|
64
|
+
if matchingSubType == nil then
|
|
65
|
+
matchingSubType = -1
|
|
66
|
+
end
|
|
67
|
+
return getPickups(nil, 69, matchingSubType)
|
|
68
|
+
end
|
|
57
69
|
function ____exports.getTrinkets(self, matchingSubType)
|
|
58
70
|
if matchingSubType == nil then
|
|
59
71
|
matchingSubType = -1
|
|
@@ -66,6 +78,9 @@ end
|
|
|
66
78
|
function ____exports.isRedHeart(self, pickup)
|
|
67
79
|
return pickup.Variant == 10 and RED_HEART_SUB_TYPES_SET:has(pickup.SubType)
|
|
68
80
|
end
|
|
81
|
+
function ____exports.removeAllBatteries(self, batterySubType, cap)
|
|
82
|
+
return removeAllPickups(nil, 90, batterySubType, cap)
|
|
83
|
+
end
|
|
69
84
|
function ____exports.removeAllCards(self, card, cap)
|
|
70
85
|
return removeAllPickups(nil, 300, card, cap)
|
|
71
86
|
end
|
|
@@ -84,9 +99,48 @@ end
|
|
|
84
99
|
function ____exports.removeAllPills(self, pillColor, cap)
|
|
85
100
|
return removeAllPickups(nil, 70, pillColor, cap)
|
|
86
101
|
end
|
|
102
|
+
function ____exports.removeAllSacks(self, sackSubType, cap)
|
|
103
|
+
return removeAllPickups(nil, 350, sackSubType, cap)
|
|
104
|
+
end
|
|
87
105
|
function ____exports.removeAllTrinkets(self, trinketType, cap)
|
|
88
106
|
return removeAllPickups(nil, 350, trinketType, cap)
|
|
89
107
|
end
|
|
108
|
+
function ____exports.spawnBattery(self, subType, position, velocity, spawner, seed)
|
|
109
|
+
if velocity == nil then
|
|
110
|
+
velocity = VectorZero
|
|
111
|
+
end
|
|
112
|
+
if spawner == nil then
|
|
113
|
+
spawner = nil
|
|
114
|
+
end
|
|
115
|
+
if seed == nil then
|
|
116
|
+
seed = nil
|
|
117
|
+
end
|
|
118
|
+
return spawnPickup(
|
|
119
|
+
nil,
|
|
120
|
+
90,
|
|
121
|
+
subType,
|
|
122
|
+
position,
|
|
123
|
+
velocity,
|
|
124
|
+
spawner,
|
|
125
|
+
seed
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
function ____exports.spawnBatteryWithSeed(self, subType, position, seed, velocity, spawner)
|
|
129
|
+
if velocity == nil then
|
|
130
|
+
velocity = VectorZero
|
|
131
|
+
end
|
|
132
|
+
if spawner == nil then
|
|
133
|
+
spawner = nil
|
|
134
|
+
end
|
|
135
|
+
return ____exports.spawnBattery(
|
|
136
|
+
nil,
|
|
137
|
+
subType,
|
|
138
|
+
position,
|
|
139
|
+
velocity,
|
|
140
|
+
spawner,
|
|
141
|
+
seed
|
|
142
|
+
)
|
|
143
|
+
end
|
|
90
144
|
function ____exports.spawnCard(self, subType, position, velocity, spawner, seed)
|
|
91
145
|
if velocity == nil then
|
|
92
146
|
velocity = VectorZero
|
|
@@ -267,6 +321,42 @@ function ____exports.spawnPillWithSeed(self, subType, position, seed, velocity,
|
|
|
267
321
|
seed
|
|
268
322
|
)
|
|
269
323
|
end
|
|
324
|
+
function ____exports.spawnSack(self, subType, position, velocity, spawner, seed)
|
|
325
|
+
if velocity == nil then
|
|
326
|
+
velocity = VectorZero
|
|
327
|
+
end
|
|
328
|
+
if spawner == nil then
|
|
329
|
+
spawner = nil
|
|
330
|
+
end
|
|
331
|
+
if seed == nil then
|
|
332
|
+
seed = nil
|
|
333
|
+
end
|
|
334
|
+
return spawnPickup(
|
|
335
|
+
nil,
|
|
336
|
+
69,
|
|
337
|
+
subType,
|
|
338
|
+
position,
|
|
339
|
+
velocity,
|
|
340
|
+
spawner,
|
|
341
|
+
seed
|
|
342
|
+
)
|
|
343
|
+
end
|
|
344
|
+
function ____exports.spawnSackWithSeed(self, subType, position, seed, velocity, spawner)
|
|
345
|
+
if velocity == nil then
|
|
346
|
+
velocity = VectorZero
|
|
347
|
+
end
|
|
348
|
+
if spawner == nil then
|
|
349
|
+
spawner = nil
|
|
350
|
+
end
|
|
351
|
+
return ____exports.spawnSack(
|
|
352
|
+
nil,
|
|
353
|
+
subType,
|
|
354
|
+
position,
|
|
355
|
+
velocity,
|
|
356
|
+
spawner,
|
|
357
|
+
seed
|
|
358
|
+
)
|
|
359
|
+
end
|
|
270
360
|
function ____exports.spawnTrinket(self, subType, position, velocity, spawner, seed)
|
|
271
361
|
if velocity == nil then
|
|
272
362
|
velocity = VectorZero
|