Added incSystemFlag and decSystemFlag.
This commit is contained in:
parent
35dc771a6d
commit
abd2bd5940
1 changed files with 8 additions and 0 deletions
|
@ -21,6 +21,14 @@ builtin setSystemFlag(flag, value);
|
||||||
function setOnSystemFlag(flag) { setSystemFlag(flag, true); }
|
function setOnSystemFlag(flag) { setSystemFlag(flag, true); }
|
||||||
function setOffSystemFlag(flag) { setSystemFlag(flag, false); }
|
function setOffSystemFlag(flag) { setSystemFlag(flag, false); }
|
||||||
|
|
||||||
|
// [arookas] custom utility
|
||||||
|
function incSystemFlag(flag) {
|
||||||
|
setSystemFlag(flag, getSystemFlag(flag) + 1);
|
||||||
|
}
|
||||||
|
function decSystemFlag(flag) {
|
||||||
|
setSystemFlag(flag, getSystemFlag(flag) - 1);
|
||||||
|
}
|
||||||
|
|
||||||
// ================================================= \\
|
// ================================================= \\
|
||||||
// POLLUTION
|
// POLLUTION
|
||||||
// ================================================= \\
|
// ================================================= \\
|
||||||
|
|
Loading…
Reference in a new issue