Skip to content

Commit db72651

Browse files
committed
maintenance release
1 parent 8c43c3c commit db72651

File tree

7 files changed

+21
-12
lines changed

7 files changed

+21
-12
lines changed

.github/workflows/release-package.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10-
steps:
10+
permissions:
11+
contents: read
12+
packages: write
13+
steps:
1114
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v1
15+
- uses: actions/setup-node@v2
1316
with:
1417
node-version: 14
18+
registry-url: 'https://npm.pkg.github.com'
19+
scope: '@theflyingape'
1520
- run: npm install
1621
- run: npm test
1722

@@ -20,10 +25,11 @@ jobs:
2025
runs-on: ubuntu-latest
2126
steps:
2227
- uses: actions/checkout@v2
23-
- uses: actions/setup-node@v1
28+
- uses: actions/setup-node@v2
2429
with:
2530
node-version: 14
2631
registry-url: https://npm.pkg.github.com/
32+
scope: '@theflyingape'
2733
- run: npm install
2834
- run: npm publish
2935
env:

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
registry=https://registry.npmjs.org/
12
@theflyingape:registry=https://npm.pkg.github.com
3+
//npm.pkg.github.com/:_authToken=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
24
package-lock=false

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ENV TARGET=/usr/games/dankdomain
99
WORKDIR ${TARGET}
1010
#
1111
# add package manifest
12+
COPY .npmrc ${TARGET}
1213
COPY package.json ${TARGET}
1314
# suppress superfluous NPM install messages
1415
ENV npm_config_loglevel warn

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@theflyingape/dankdomain",
3-
"version": "3.0.2",
3+
"version": "3.0.4",
44
"description": "Ɗaɳƙ Ɗoɱaiɳ: the return of Hack & Slash",
55
"author": "Robert Hurst",
66
"homepage": "https://www.ddgame.us",
@@ -41,9 +41,9 @@
4141
}
4242
],
4343
"dependencies": {
44-
"@theflyingape/xvt": "^1.4.5",
44+
"@theflyingape/xvt": "^1.4.6",
4545
"animate.css": "^4.1.1",
46-
"better-sqlite3": "^7.3.1",
46+
"better-sqlite3": "^7.4.0",
4747
"chokidar": "^3.5.1",
4848
"express": "^4.17.1",
4949
"fs-extra": "^10.0.0",
@@ -61,14 +61,14 @@
6161
"xterm-addon-fit": "^0.5.0",
6262
"xterm-addon-unicode11": "^0.2.0",
6363
"xterm-addon-web-links": "^0.4.0",
64-
"xterm-addon-webgl": "^0.11.0"
64+
"xterm-addon-webgl": "^0.11.1"
6565
},
6666
"devDependencies": {
6767
"@types/better-sqlite3": "^5.4.1",
6868
"@types/browserify": "^12.0.36",
6969
"@types/express": "^4.17.11",
7070
"@types/fs-extra": "^9.0.11",
71-
"@types/node": "^15.0.2",
71+
"@types/node": "^15.3.0",
7272
"@types/nodemailer": "^6.4.1",
7373
"@types/nodemailer-smtp-transport": "^2.7.4",
7474
"@types/sprintf-js": "^1.1.2",

src/door/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ interface network {
148148
path: string
149149
}
150150
let network: network = {
151-
address: 'localhost',
151+
address: '0.0.0.0',
152152
telnet: true, socket: 1986, limit: 2, emulator: 'VT', rows: 25,
153153
web: true, ws: 1939, path: '/'
154154
}

src/items.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ module Items {
221221
let fail: number
222222
let backfire: number
223223

224-
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
224+
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)
225225
// is this an attack spell against an opponent?
226226
if (nme && [9, 11, 12, 14, 15, 16, 19, 20, 21, 22].indexOf(this.spells[spell].cast) >= 0) {
227227
let m = rpc.int - nme.int

src/sys.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module sys {
2525

2626
export const USERS = pathTo('users')
2727

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

@@ -154,7 +154,7 @@ module sys {
154154
}
155155

156156
// non-negative integer
157-
export function whole(n: string | number) {
157+
export function whole(n: string | number): number {
158158
const i = int(n)
159159
return (i < 0) ? 0 : i
160160
}

0 commit comments

Comments
 (0)