isaacscript-common 1.0.553 → 1.0.554
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.
package/dist/functions/util.d.ts
CHANGED
|
@@ -61,7 +61,6 @@ export declare function getEnumValues(transpiledEnum: unknown): int[];
|
|
|
61
61
|
* @param hexString A hex string like "#ffffff" or "ffffff". (The "#" character is optional.)
|
|
62
62
|
*/
|
|
63
63
|
export declare function hexToKColor(hexString: string, alpha: float): KColor;
|
|
64
|
-
export declare function isGreedMode(): boolean;
|
|
65
64
|
/**
|
|
66
65
|
* Players can boot the game with an launch option called "--luadebug", which will enable additional
|
|
67
66
|
* functionality that is considered to be unsafe. For more information about this flag, see the
|
package/dist/functions/util.lua
CHANGED
|
@@ -60,10 +60,6 @@ function ____exports.hexToKColor(self, hexString, alpha)
|
|
|
60
60
|
local base = 255
|
|
61
61
|
return KColor(R / base, G / base, B / base, alpha)
|
|
62
62
|
end
|
|
63
|
-
function ____exports.isGreedMode(self)
|
|
64
|
-
local game = Game()
|
|
65
|
-
return (game.Difficulty == Difficulty.DIFFICULTY_GREED) or (game.Difficulty == Difficulty.DIFFICULTY_GREEDIER)
|
|
66
|
-
end
|
|
67
63
|
function ____exports.isLuaDebugEnabled(self)
|
|
68
64
|
return package ~= nil
|
|
69
65
|
end
|