blob: 1bb39bf872e8c61902cf8c933aadf848faf5bfc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
'use strict'
const FnBase = require('./_base')
function FnH (pico, x, y) {
FnBase.call(this, pico, x, y)
this.name = 'halt'
this.glyph = 'h'
this.info = 'Stops southward fn from operating.'
this.ports = [{ x: 0, y: 1, output: true }]
this.haste = function () {
pico.lock(this.x, this.y + 1)
}
}
module.exports = FnH
|