RezmasonInitial commit.56b98775 years agoHistory
25 lines · 517 B · JavaScript
RawDownload
'use strict' class ClockDoor extends Door {  constructor (id, lockValue) {    super(id)    this.lockValue = lockValue  }   setup () {    super.setup()    hiversaires.interface.flashVignette()     hiversaires.interface.showClock()    hiversaires.music.playEffect('action_DoorInit')    if (this.isUnlocked) {      hiversaires.setModifier('open')    } else {      hiversaires.interface.showClockAlert()    }  }   get isUnlocked () {    return hiversaires.game.puzzleState.clock != this.lockValue  }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t