aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/lib/s.js
blob: 684a1d55f1122e650cf413903ccacbb992aa6a46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use strict'

const FnBase = require('./_base')

function FnS (pico, x, y) {
  FnBase.call(this, pico, x, y)

  this.name = 'south'
  this.glyph = 's'
  this.info = 'Moves southward, or bangs.'

  this.operation = function () {
    if (this.is_free(0, 1) != true) { this.replace('b'); this.lock(); return }
    this.move(0, 1)
  }
}

module.exports = FnS