X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=brisk.git;a=blobdiff_plain;f=web%2Fbriskin5%2FObj%2Frules_old_rules.phh;h=957b8be73421fe785a5cb00b0debe2e42b03b0c9;hp=29d9833c78b52d80e1b04fe1bcffddc19747d536;hb=827cf9b1db2abe2e726ac97063f90445244cf99f;hpb=6a939415c569cb6b078b3dab42be2d35c7238d4f diff --git a/web/briskin5/Obj/rules_old_rules.phh b/web/briskin5/Obj/rules_old_rules.phh index 29d9833..957b8be 100644 --- a/web/briskin5/Obj/rules_old_rules.phh +++ b/web/briskin5/Obj/rules_old_rules.phh @@ -125,6 +125,18 @@ class Rules_old_rules extends Rules { return FALSE; } + function rules_nextauct(&$bri, $curtime, $action, $user, $maxcard) + { + if (($this->table->asta_pla_n > ($maxcard > -1 ? 1 : 0)) && + !($this->table->asta_card == 9 && $this->table->asta_pnt == 120)) { + return TRUE; + } + else { + return FALSE; + } + + } + function engine(&$bri, $curtime, $action, $user, &$opt1 = NULL, &$opt2 = NULL, &$opt3 = NULL) { GLOBAL $G_all_points, $G_dbasetype; @@ -135,7 +147,10 @@ class Rules_old_rules extends Rules { if ($action == BIN5_RULES_ASTA) { return ($this->rules_asta($bri, $curtime, $action, $user, &$opt1, $opt2, $opt3)); } - if ($action == BIN5_RULES_ALLPASS) { // return TRUE if all correct + else if ($action == BIN5_RULES_NEXTAUCT) { + return ($this->rules_nextauct($bri, $curtime, $action, $user, $opt1)); + } + else if ($action == BIN5_RULES_ALLPASS) { // return TRUE if all correct $table->old_act = $action; $table->old_asta_win = -1; $table->old_pnt = 0;