1
0
Fork 0
mirror of https://github.com/Oreolek/raconteur.git synced 2024-06-26 03:30:47 +03:00

Added hacky function to globally export undum

This commit is contained in:
Bruno Dias 2015-04-13 01:18:24 -03:00
parent 44be015674
commit 700a0711ac

View file

@ -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;
};