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:
parent
44be015674
commit
700a0711ac
|
@ -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;
|
||||
};
|
Loading…
Reference in a new issue