blob: 8d54d6cad743e55b3927bf056d5bc5a7100fe81f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
'use strict'
const FnMove = require('./_move')
function FnW (pico, x, y) {
FnMove.call(this, pico, x, y)
this.name = 'west'
this.glyph = 'w'
this.info = 'Moves westward, or bangs.'
this.haste = function () {
if (this.signal()) { return }
if (this.is_free(-1, 0) != true) { this.replace('b'); this.lock(); return }
this.move(-1, 0)
}
}
module.exports = FnW
|