TrapContainerBase

TrapContainerBase

Base for containers that release a cloud when opened.

Constructor

new TrapContainerBase()

Source:

Methods

onAdjacentToInternal()

Description:
  • When the player is adjacent and has DETECT_HIDDEN, reveals the trap by swapping in a red-highlighted version of the container's own symbol — but only for Chest/Crate containers, matching Java's TrapContainerBase.onAdjacentToInternal.

Source:

onEnterInternal()

Description:
  • Rather than triggering immediately on entry, the trap wraps the container's just-created Open effect so it fires when the open animation completes — mirrors Java's TrappedOpenCommand, which decorates the Open effect's Command.

Source: