From 265fa75d913ddd917b0f6b49244101b5c755166a Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 21 Apr 2018 01:37:52 +0000 Subject: [PATCH] Consistent either way in ship --- commands/analyze/ship.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/analyze/ship.js b/commands/analyze/ship.js index 9e46652d..e24332be 100644 --- a/commands/analyze/ship.js +++ b/commands/analyze/ship.js @@ -26,7 +26,7 @@ module.exports = class ShipCommand extends Command { } run(msg, { first, second }) { - const random = new Random(Random.engines.mt19937().seed(first.id - second.id)); + const random = new Random(Random.engines.mt19937().seed(Math.abs(first.id - second.id))); return msg.say(`I'd give ${first.username} and ${second.username} a ${random.integer(0, 100)}%!`); } }; diff --git a/package.json b/package.json index 0372e02c..8122fb4f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "73.0.0", + "version": "73.0.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {