1234567891011121314 |
- var t = require;
- var e = module;
- var i = exports;
- Object.defineProperty(i, "__esModule", {value: !0});
- const s = t("Actions"),
- o = t("constants"),
- a = t("Condition");
- class n extends a.default {
- tick(t) {
- var e = Math.random() < this.properties.rate;
- return this.log(this.properties.rate, e), e ? o.SUCCESS : o.FAILURE;
- }
- }
- (i.default = n), s.register(n, "Random");
|