isaacscript-common 1.0.338 → 1.0.339

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.
@@ -163,3 +163,5 @@ export declare function isJacobOrEsau(player: EntityPlayer): boolean;
163
163
  export declare function isKeeper(player: EntityPlayer): boolean;
164
164
  export declare function isLost(player: EntityPlayer): boolean;
165
165
  export declare function removeDeadEyeMultiplier(player: EntityPlayer): void;
166
+ /** This function was originally created by im_tem. */
167
+ export declare function setBlindfold(player: EntityPlayer, enabled: boolean): void;
@@ -337,4 +337,19 @@ function ____exports.removeDeadEyeMultiplier(self, player)
337
337
  end
338
338
  end
339
339
  end
340
+ function ____exports.setBlindfold(self, player, enabled)
341
+ local game = Game()
342
+ local character = player:GetPlayerType()
343
+ local challenge = Isaac.GetChallenge()
344
+ if enabled then
345
+ game.Challenge = Challenge.CHALLENGE_NULL
346
+ player:ChangePlayerType(character)
347
+ game.Challenge = challenge
348
+ player:TryRemoveNullCostume(NullItemID.ID_BLINDFOLD)
349
+ else
350
+ game.Challenge = Challenge.CHALLENGE_SOLAR_SYSTEM
351
+ player:ChangePlayerType(character)
352
+ game.Challenge = challenge
353
+ end
354
+ end
340
355
  return ____exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.0.338",
3
+ "version": "1.0.339",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",
@@ -25,7 +25,7 @@
25
25
  "dist/**/*.d.ts"
26
26
  ],
27
27
  "devDependencies": {
28
- "isaac-typescript-definitions": "^1.0.207",
28
+ "isaac-typescript-definitions": "^1.0.208",
29
29
  "isaacscript-lint": "^1.0.61",
30
30
  "typedoc": "^0.22.5",
31
31
  "typescript": "4.4.3",