Commit 39b3602a authored by JoyJ's avatar JoyJ

add console log

parent 3d8d7377
......@@ -27,7 +27,9 @@ ygopro.ctos_follow_before('CHAT', true, function(buffer, info, client, server, d
for (var i=0;i<dicenum;i++)
{
result += Math.floor(Math.random()*dicemax) + 1;
}
ygopro.stoc_send_chat_to_room(room, client.name + "投掷" + dicenum + "d" + dicemax + "并掷出了" + result + "", ygopro.constants.COLORS.YELLOW);
}
var message = client.name + "投掷" + dicenum + "d" + dicemax + "并掷出了" + result + "";
log.warn(message);
ygopro.stoc_send_chat_to_room(room, message, ygopro.constants.COLORS.YELLOW);
return true;
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment