X-Git-Url: https://git.yukkurigames.com/?p=heroik.git;a=blobdiff_plain;f=heroik.js;h=bca710e0ef8be74598fdaca363e8d8304f71113c;hp=401268bdbdf12d9d7eef9cccdee73b5d62001302;hb=dff204dd481ca30605bf45af479e502eb550b165;hpb=fd1a99b3c704f04f9c8a3b7b27631fe84a78a2f6 diff --git a/heroik.js b/heroik.js index 401268b..bca710e 100644 --- a/heroik.js +++ b/heroik.js @@ -58,6 +58,10 @@ function choice (seq) { return seq[(Math.random() * seq.length) | 0]; } +function not (f) { + return function () { return !f.apply(this, arguments); }; +} + function contains (element) { return this.indexOf(element) >= 0; }