isaacscript-common 20.11.5 → 20.11.6

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.
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 20.11.5
3
+ isaacscript-common 20.11.6
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -39233,6 +39233,8 @@ local ____DefaultMap = require("src.classes.DefaultMap")
39233
39233
  local DefaultMap = ____DefaultMap.DefaultMap
39234
39234
  local ____Feature = require("src.classes.private.Feature")
39235
39235
  local Feature = ____Feature.Feature
39236
+ local ____constants = require("src.classes.features.other.customStages.constants")
39237
+ local CUSTOM_FLOOR_STAGE = ____constants.CUSTOM_FLOOR_STAGE
39236
39238
  function anyPlayerPlayingExtraAnimation(self)
39237
39239
  local players = getAllPlayers(nil)
39238
39240
  return __TS__ArraySome(
@@ -39420,6 +39422,11 @@ function CustomTrapdoors.prototype.checkSecondPixelationHalfWay(self)
39420
39422
  player.EntityCollisionClass = EntityCollisionClass.ALL
39421
39423
  player.GridCollisionClass = EntityGridCollisionClass.GROUND
39422
39424
  end
39425
+ local level = game:GetLevel()
39426
+ local stage = level:GetStage()
39427
+ if stage ~= CUSTOM_FLOOR_STAGE then
39428
+ level:ShowName(false)
39429
+ end
39423
39430
  end)
39424
39431
  end
39425
39432
  function CustomTrapdoors.prototype.checkAllPlayersLayingDownComplete(self)
@@ -39483,14 +39490,14 @@ function CustomTrapdoors.prototype.checkCustomTrapdoorPlayerTouched(self, gridEn
39483
39490
  do
39484
39491
  local player = playerEntity:ToPlayer()
39485
39492
  if player == nil then
39486
- goto __continue42
39493
+ goto __continue43
39487
39494
  end
39488
39495
  if not self.ponyDetection:isPlayerUsingPony(player) and not isChildPlayer(nil, player) and canPlayerInteractWithTrapdoor(nil, player) then
39489
39496
  self:playerTouchedCustomTrapdoor(gridEntity, trapdoorDescription, player)
39490
39497
  return
39491
39498
  end
39492
39499
  end
39493
- ::__continue42::
39500
+ ::__continue43::
39494
39501
  end
39495
39502
  end
39496
39503
  function CustomTrapdoors.prototype.playerTouchedCustomTrapdoor(self, gridEntity, trapdoorDescription, player)
@@ -1 +1 @@
1
- {"version":3,"file":"CustomTrapdoors.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CustomTrapdoors.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,UAAU,EAKV,SAAS,EACV,MAAM,8BAA8B,CAAC;AA6BtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA+BhD,qBAAa,eAAgB,SAAQ,OAAO;IAC1C,qCAAqC;IACrC,OAAO,CAAC,kBAAkB,CAOtB;IAqBJ;;;;;OAKG;IACH,OAAO,CAAC,WAAW,CAAY;IAE/B,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,YAAY,CAAe;IAmDnC,OAAO,CAAC,UAAU,CAMhB;IAEF,OAAO,CAAC,2BAA2B;IA+BnC,OAAO,CAAC,8BAA8B;IAmDtC,OAAO,CAAC,6BAA6B;IAsBrC,OAAO,CAAC,kBAAkB;IAqB1B,OAAO,CAAC,4BAA4B;IAyCpC,OAAO,CAAC,iCAAiC;IAsBzC,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,kCAAkC,CAaxC;IAEF,OAAO,CAAC,4BAA4B;IAcpC,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,sBAAsB;IAmB9B,OAAO,CAAC,gCAAgC;IAuCxC,OAAO,CAAC,2BAA2B;IAqCnC,OAAO,CAAC,gBAAgB;IAoBxB,OAAO,CAAC,8BAA8B;IAmDtC,OAAO,CAAC,0BAA0B,CAEhC;IAEF,OAAO,CAAC,iBAAiB;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O,CAAC,kBAAkB;IAqB1B,OAAO,CAAC,4BAA4B;IA+CpC,OAAO,CAAC,iCAAiC;IAsBzC,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,kCAAkC,CAaxC;IAEF,OAAO,CAAC,4BAA4B;IAcpC,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,sBAAsB;IAmB9B,OAAO,CAAC,gCAAgC;IAuCxC,OAAO,CAAC,2BAA2B;IAqCnC,OAAO,CAAC,gBAAgB;IAoBxB,OAAO,CAAC,8BAA8B;IAmDtC,OAAO,CAAC,0BAA0B,CAEhC;IAEF,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,uBAAuB;IA4B/B,OAAO,CAAC,eAAe;IAUvB;;;;;;;;;;;;;;;;;;OAkBG;IAEI,iCAAiC,CACtC,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,CACf,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,gBAAgB,EAAE,UAAU,EAC5B,oBAAoB,EAAE,SAAS,KAC5B,IAAI,GACR,IAAI;IAUP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IAEI,mBAAmB,CACxB,mBAAmB,EAAE,GAAG,GAAG,MAAM,EACjC,eAAe,CAAC,EAAE,MAAM,EACxB,gBAAgB,CAAC,EAAE,UAAU,EAC7B,oBAAoB,CAAC,EAAE,SAAS,EAChC,QAAQ,SAAmC,EAC3C,SAAS,CAAC,EAAE,OAAO,GAClB,UAAU;CA0Dd"}
@@ -67,6 +67,8 @@ local ____DefaultMap = require("src.classes.DefaultMap")
67
67
  local DefaultMap = ____DefaultMap.DefaultMap
68
68
  local ____Feature = require("src.classes.private.Feature")
69
69
  local Feature = ____Feature.Feature
70
+ local ____constants = require("src.classes.features.other.customStages.constants")
71
+ local CUSTOM_FLOOR_STAGE = ____constants.CUSTOM_FLOOR_STAGE
70
72
  function anyPlayerPlayingExtraAnimation(self)
71
73
  local players = getAllPlayers(nil)
72
74
  return __TS__ArraySome(
@@ -255,6 +257,11 @@ function CustomTrapdoors.prototype.checkSecondPixelationHalfWay(self)
255
257
  player.EntityCollisionClass = EntityCollisionClass.ALL
256
258
  player.GridCollisionClass = EntityGridCollisionClass.GROUND
257
259
  end
260
+ local level = game:GetLevel()
261
+ local stage = level:GetStage()
262
+ if stage ~= CUSTOM_FLOOR_STAGE then
263
+ level:ShowName(false)
264
+ end
258
265
  end)
259
266
  end
260
267
  function CustomTrapdoors.prototype.checkAllPlayersLayingDownComplete(self)
@@ -318,14 +325,14 @@ function CustomTrapdoors.prototype.checkCustomTrapdoorPlayerTouched(self, gridEn
318
325
  do
319
326
  local player = playerEntity:ToPlayer()
320
327
  if player == nil then
321
- goto __continue42
328
+ goto __continue43
322
329
  end
323
330
  if not self.ponyDetection:isPlayerUsingPony(player) and not isChildPlayer(nil, player) and canPlayerInteractWithTrapdoor(nil, player) then
324
331
  self:playerTouchedCustomTrapdoor(gridEntity, trapdoorDescription, player)
325
332
  return
326
333
  end
327
334
  end
328
- ::__continue42::
335
+ ::__continue43::
329
336
  end
330
337
  end
331
338
  function CustomTrapdoors.prototype.playerTouchedCustomTrapdoor(self, gridEntity, trapdoorDescription, player)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "20.11.5",
3
+ "version": "20.11.6",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -42,6 +42,7 @@ import { CustomTrapdoorDescription } from "../../../interfaces/private/CustomTra
42
42
  import { DefaultMap } from "../../DefaultMap";
43
43
  import { Feature } from "../../private/Feature";
44
44
  import { CustomGridEntities } from "../callbackLogic/CustomGridEntities";
45
+ import { CUSTOM_FLOOR_STAGE } from "./customStages/constants";
45
46
  import { DisableInputs } from "./DisableInputs";
46
47
  import { PonyDetection } from "./PonyDetection";
47
48
  import { RoomClearFrame } from "./RoomClearFrame";
@@ -337,6 +338,12 @@ export class CustomTrapdoors extends Feature {
337
338
  player.EntityCollisionClass = EntityCollisionClass.ALL;
338
339
  player.GridCollisionClass = EntityGridCollisionClass.GROUND;
339
340
  }
341
+
342
+ const level = game.GetLevel();
343
+ const stage = level.GetStage();
344
+ if (stage !== CUSTOM_FLOOR_STAGE) {
345
+ level.ShowName(false);
346
+ }
340
347
  });
341
348
  }
342
349