Skip to content

Commit

Permalink
maintenance release
Browse files Browse the repository at this point in the history
  • Loading branch information
theflyingape committed May 16, 2021
1 parent 8c43c3c commit db72651
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 12 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: 'https://npm.pkg.github.com'
scope: '@theflyingape'
- run: npm install
- run: npm test

Expand All @@ -20,10 +25,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://npm.pkg.github.com/
scope: '@theflyingape'
- run: npm install
- run: npm publish
env:
Expand Down
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
registry=https://registry.npmjs.org/
@theflyingape:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=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
package-lock=false
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ENV TARGET=/usr/games/dankdomain
WORKDIR ${TARGET}
#
# add package manifest
COPY .npmrc ${TARGET}
COPY package.json ${TARGET}
# suppress superfluous NPM install messages
ENV npm_config_loglevel warn
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@theflyingape/dankdomain",
"version": "3.0.2",
"version": "3.0.4",
"description": "Ɗaɳƙ Ɗoɱaiɳ: the return of Hack & Slash",
"author": "Robert Hurst",
"homepage": "https://www.ddgame.us",
Expand Down Expand Up @@ -41,9 +41,9 @@
}
],
"dependencies": {
"@theflyingape/xvt": "^1.4.5",
"@theflyingape/xvt": "^1.4.6",
"animate.css": "^4.1.1",
"better-sqlite3": "^7.3.1",
"better-sqlite3": "^7.4.0",
"chokidar": "^3.5.1",
"express": "^4.17.1",
"fs-extra": "^10.0.0",
Expand All @@ -61,14 +61,14 @@
"xterm-addon-fit": "^0.5.0",
"xterm-addon-unicode11": "^0.2.0",
"xterm-addon-web-links": "^0.4.0",
"xterm-addon-webgl": "^0.11.0"
"xterm-addon-webgl": "^0.11.1"
},
"devDependencies": {
"@types/better-sqlite3": "^5.4.1",
"@types/browserify": "^12.0.36",
"@types/express": "^4.17.11",
"@types/fs-extra": "^9.0.11",
"@types/node": "^15.0.2",
"@types/node": "^15.3.0",
"@types/nodemailer": "^6.4.1",
"@types/nodemailer-smtp-transport": "^2.7.4",
"@types/sprintf-js": "^1.1.2",
Expand Down
2 changes: 1 addition & 1 deletion src/door/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ interface network {
path: string
}
let network: network = {
address: 'localhost',
address: '0.0.0.0',
telnet: true, socket: 1986, limit: 2, emulator: 'VT', rows: 25,
web: true, ws: 1939, path: '/'
}
Expand Down
2 changes: 1 addition & 1 deletion src/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ module Items {
let fail: number
let backfire: number

fail = rpc.int + Math.trunc(rpc.user.level / 10) - (this.spells[spell].cast < 17 ? this.spells[spell].cast : this.spells[spell].cast - 8) - (5 - skill) - +rpc.user.coward
fail = rpc.int + int(rpc.user.level / 10) - (this.spells[spell].cast < 17 ? this.spells[spell].cast : this.spells[spell].cast - 8) - (5 - skill) - (+rpc.user.coward || 0)
// is this an attack spell against an opponent?
if (nme && [9, 11, 12, 14, 15, 16, 19, 20, 21, 22].indexOf(this.spells[spell].cast) >= 0) {
let m = rpc.int - nme.int
Expand Down
4 changes: 2 additions & 2 deletions src/sys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module sys {

export const USERS = pathTo('users')

export function an(item: string, show = true) {
export function an(item: string, show = true): string {
return ' ' + (/a|e|i|o|u/i.test(item[0]) ? 'an' : 'a') + ' ' + (show ? item : '')
}

Expand Down Expand Up @@ -154,7 +154,7 @@ module sys {
}

// non-negative integer
export function whole(n: string | number) {
export function whole(n: string | number): number {
const i = int(n)
return (i < 0) ? 0 : i
}
Expand Down

0 comments on commit db72651

Please sign in to comment.