mirror of
https://github.com/Oreolek/raconteur.git
synced 2024-06-30 21:45:00 +03:00
Added hacky function to globally export undum
This commit is contained in:
parent
44be015674
commit
700a0711ac
|
@ -189,7 +189,6 @@ RaconteurSituation.prototype.act = function (character, system, action) {
|
||||||
writer: function (ref) {
|
writer: function (ref) {
|
||||||
var beforeOpts = undefined;
|
var beforeOpts = undefined;
|
||||||
if (self.writers[ref] === undefined) {
|
if (self.writers[ref] === undefined) {
|
||||||
console.log(self);
|
|
||||||
throw new Error("Tried to call undefined writer:" + ref);
|
throw new Error("Tried to call undefined writer:" + ref);
|
||||||
}
|
}
|
||||||
if ($('.options')) {
|
if ($('.options')) {
|
||||||
|
@ -235,8 +234,11 @@ RaconteurSituation.prototype.act = function (character, system, action) {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
module.exports = function (name, spec) {
|
module.exports = function (name, spec) {
|
||||||
spec.name = name;
|
spec.name = name;
|
||||||
return (undum.game.situations[name] = new RaconteurSituation(spec));
|
return (undum.game.situations[name] = new RaconteurSituation(spec));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
module.exports.exportUndum = function () {
|
||||||
|
global.undum = undum;
|
||||||
|
};
|
Loading…
Reference in a new issue