la-cosa-nostra
Version:
A Mafia bot designed to run in Discord - beware the traitors and the lies!
25 lines (17 loc) • 602 B
JavaScript
var lcn = require("../../../../../source/lcn.js");
var rs = lcn.rolesystem;
module.exports = function (actionable, game, params) {
var target = game.getPlayerByIdentifier(actionable.to);
var from = game.getPlayerByIdentifier(actionable.from);
/*
target.misc.protections ? target.misc.protections++ : target.misc.protections = 1;
// Add message
game.addAction("doctor/single_protection", ["attacked"], {
name: "Doc-single-protection",
from: actionable.from,
to: actionable.to,
expiry: 1,
priority: 1
});*/
target.addAttribute("protection", 1, {amount: 1});
};