Added incSystemFlag and decSystemFlag.

This commit is contained in:
arookas 2016-01-29 17:12:08 -05:00
parent 35dc771a6d
commit abd2bd5940

View file

@ -21,6 +21,14 @@ builtin setSystemFlag(flag, value);
function setOnSystemFlag(flag) { setSystemFlag(flag, true); }
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
// ================================================= \\