isaacscript-common 1.2.147 → 1.2.148
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.
|
@@ -45,6 +45,6 @@ export declare function addRoomClearChargeToSlot(player: EntityPlayer, activeSlo
|
|
|
45
45
|
* Helper function to get the combined normal charge and the battery charge for the player's active
|
|
46
46
|
* item. Use this to avoid having to manually retrieve these two values and add them together.
|
|
47
47
|
*/
|
|
48
|
-
export declare function getActiveCharge(player: EntityPlayer): int;
|
|
48
|
+
export declare function getActiveCharge(player: EntityPlayer, activeSlot: ActiveSlot): int;
|
|
49
49
|
export declare function isActiveSlotDoubleCharged(player: EntityPlayer, activeSlot: ActiveSlot): boolean;
|
|
50
50
|
export declare function playChargeSoundEffect(player: EntityPlayer, activeSlot: ActiveSlot): void;
|
|
@@ -105,9 +105,9 @@ function ____exports.addRoomClearCharges(self, ignoreBigRoomDoubleCharge)
|
|
|
105
105
|
____exports.addRoomClearCharge(nil, player, ignoreBigRoomDoubleCharge)
|
|
106
106
|
end
|
|
107
107
|
end
|
|
108
|
-
function ____exports.getActiveCharge(self, player)
|
|
109
|
-
local charge = player:GetActiveCharge()
|
|
110
|
-
local batteryCharge = player:GetBatteryCharge()
|
|
108
|
+
function ____exports.getActiveCharge(self, player, activeSlot)
|
|
109
|
+
local charge = player:GetActiveCharge(activeSlot)
|
|
110
|
+
local batteryCharge = player:GetBatteryCharge(activeSlot)
|
|
111
111
|
return charge + batteryCharge
|
|
112
112
|
end
|
|
113
113
|
function ____exports.isActiveSlotDoubleCharged(self, player, activeSlot)
|