Compat/TDB

* update conditions with changes from TC
   > 4fd3669f1b
This commit is contained in:
Sarjuuk 2025-12-26 17:21:44 +01:00
parent 2b3b9de8bc
commit b9d888ab3a
9 changed files with 41 additions and 25 deletions

View file

@ -0,0 +1 @@
UPDATE `aowow_dbversion` SET `build` = CONCAT(IFNULL(`build`, ''), ' globaljs');

View file

@ -194,13 +194,11 @@ var ConditionList = new function() {
str = g_conditions[strIdx];
// fill in params
str = $WH.sprintfa(str, param[0], param[1], param[2]);
return $WH.sprintfa(str, param[0], param[1], param[2], param[3])
// resolve NegativeCondition
str = str.replace(/\$N([^:]*):([^;]*);/g, '$' + (negate > 0 ? 2 : 1));
.replace(/\$N([^:]*):([^;]*);/g, '$' + (negate > 0 ? 2 : 1))
// resolve vars
return str.replace(/\$C(\d+)([^:]*):([^;]*);/g, (_, i, y, n) => (i > 0 ? y : n));
.replace(/\$C(\d+)([^:]*):([^;]*);/g, (_, i, y, n) => (i > 0 ? y : n));
}
function _createTab()