+ function asta2mult($asta_pnt)
+ {
+ if ($asta_pnt > 110)
+ return (5);
+ else if ($asta_pnt > 100)
+ return (4);
+ else if ($asta_pnt > 90)
+ return (3);
+ else if ($asta_pnt > 80)
+ return (2);
+ else if ($asta_pnt > 70)
+ return (1);
+ else
+ return (0);
+ }
+
+ function multer($is_new)
+ {
+ if ($is_new) {
+ return (pow(2, $this->mult) * $this->asta2mult($this->asta_pnt));
+ }
+ else {
+ return (pow(2, $this->old_mult) * $this->asta2mult($this->old_asta_pnt));
+ }
+ }
+