mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-03-24 21:37:40 +08:00
add no Random
This commit is contained in:
@@ -20,7 +20,8 @@ class Event {
|
|||||||
}
|
}
|
||||||
|
|
||||||
check(eventId, property) {
|
check(eventId, property) {
|
||||||
const { include, exclude } = this.get(eventId);
|
const { include, exclude, NoRandom } = this.get(eventId);
|
||||||
|
if(NoRandom) return false;
|
||||||
if(exclude && checkCondition(property, exclude)) return false;
|
if(exclude && checkCondition(property, exclude)) return false;
|
||||||
if(include) return checkCondition(property, include);
|
if(include) return checkCondition(property, include);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user