UNPKG

cosa-nostra-backstabbers

Version:
37 lines (22 loc) 794 B
var lcn = require("../../../source/lcn.js"); var auxils = lcn.auxils; module.exports = function (game) { var fools = game.findAll(x => x.role_identifier === "fool" && !x.isAlive() && x.misc.fool_lynched === true && !x.hasWon()); if (fools.length > 0) { var winners = fools.filter(x => x.canWin()); game.setWins(winners); return true; }; return false; }; module.exports.STOP_GAME = false; module.exports.STOP_CHECKS = false; module.exports.FACTIONAL = false; module.exports.PRIORITY = 0; module.exports.CHECK_ONLY_WHEN_GAME_ENDS = false; // Accepts function // Should key in wrt to player module.exports.ELIMINATED = []; module.exports.SURVIVING = []; module.exports.PREVENT_CHECK_ON_WIN = []; module.exports.DESCRIPTION = "Get yourself lynched at all costs.";