From ac32a1288d1683dfe5d054d3a6081187d124771c Mon Sep 17 00:00:00 2001 From: Pircival <37511858+Pircival@users.noreply.github.com> Date: Thu, 14 Jun 2018 12:12:49 -0500 Subject: [PATCH 1/2] Update gm.js --- gm.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/gm.js b/gm.js index 138174ab..15fb8f73 100644 --- a/gm.js +++ b/gm.js @@ -57,7 +57,8 @@ var attributes = { DEADTARGET:'Able to target players that are dead.', NOLIVINGTARGET:'Unable to target living players.', RAINDANCE: 'Let it rain next night', - INTERVIEW: 'Interview two people each night and compare them' + INTERVIEW: 'Interview two people each night and compare them' + KILLBUTCHERRESULT: 'Shows as a Butcher to the Sheriff while killing.' }; var autoRoles = { @@ -529,7 +530,9 @@ var autoRoles = 'butcher': { attributes: { MULTI:attributes.MULTI, - IMMUNE:attributes.IMMUNE + IMMUNE:attributes.IMMUNE, + KILLBUTCHERRESULT:attributes.KILLBUTCHERRESULT + }, grouping: 'K', intgrouping: 'J', @@ -1384,6 +1387,15 @@ module.exports = { alignment = 'ww'; } } + role = getRole(targets[t[0]]); role = getRole(targets[t[0]]); + if (autoRoles[role].attributes.KILLBUTCHERRESULT) { + if (attackSuccess = false) { + alignment = 'town'; + } + else { + alignment = 'slaug'; + } + } //If the person is framed or doused return a mafia/arsonist result var visitors = getPeopleTargetting(t[0]); for (i in players) { From 5e4c3b0b7eef85f4d30bad75fe8c987d86e2593d Mon Sep 17 00:00:00 2001 From: Pircival <37511858+Pircival@users.noreply.github.com> Date: Thu, 14 Jun 2018 12:48:03 -0500 Subject: [PATCH 2/2] Update gm.js --- gm.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gm.js b/gm.js index 15fb8f73..9a01ff68 100644 --- a/gm.js +++ b/gm.js @@ -1393,7 +1393,7 @@ module.exports = { alignment = 'town'; } else { - alignment = 'slaug'; + alignment = 'butcher'; } } //If the person is framed or doused return a mafia/arsonist result @@ -1487,8 +1487,7 @@ module.exports = { } else if (roleAttributes.INTERVIEW) //Interviewers { - //Remove the - var rbSuccess = true; + var t = targets[num][1].slice(); //Duplicate the array for (j in peopleTargetting) //Loop through and check for heals {