projects
/
heroik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement anti-magic zone.
[heroik.git]
/
heroik.js
diff --git
a/heroik.js
b/heroik.js
index
401268b
..
bca710e
100644
(file)
--- a/
heroik.js
+++ b/
heroik.js
@@
-58,6
+58,10
@@
function choice (seq) {
return seq[(Math.random() * seq.length) | 0];
}
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;
}
function contains (element) {
return this.indexOf(element) >= 0;
}