Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions gm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
{
Expand Down Expand Up @@ -529,7 +530,9 @@ var autoRoles =
'butcher': {
attributes: {
MULTI:attributes.MULTI,
IMMUNE:attributes.IMMUNE
IMMUNE:attributes.IMMUNE,
KILLBUTCHERRESULT:attributes.KILLBUTCHERRESULT

},
grouping: 'K',
intgrouping: 'J',
Expand Down Expand Up @@ -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 = 'butcher';
}
}
//If the person is framed or doused return a mafia/arsonist result
var visitors = getPeopleTargetting(t[0]);
for (i in players) {
Expand Down Expand Up @@ -1475,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
{
Expand Down