diff --git a/lib/situation.js b/lib/situation.js index 1eb6638..4839991 100644 --- a/lib/situation.js +++ b/lib/situation.js @@ -189,7 +189,6 @@ RaconteurSituation.prototype.act = function (character, system, action) { writer: function (ref) { var beforeOpts = undefined; if (self.writers[ref] === undefined) { - console.log(self); throw new Error("Tried to call undefined writer:" + ref); } if ($('.options')) { @@ -235,8 +234,11 @@ RaconteurSituation.prototype.act = function (character, system, action) { }; - module.exports = function (name, spec) { spec.name = name; return (undum.game.situations[name] = new RaconteurSituation(spec)); +}; + +module.exports.exportUndum = function () { + global.undum = undum; }; \ No newline at end of file