This commit is contained in:
iVampireSP.com 2022-09-09 20:27:52 +08:00
parent 47edd6cf73
commit 2a4a9f4b1a
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -89,6 +89,8 @@ public function cost($price = null)
$amount = $price / Cache::get('drops_rate', 100) + 1;
$amount = intval(log10(abs($amount)) / 3);
// if drops <= price
if ($drops < $this->price) {
@ -115,6 +117,8 @@ public function cost($price = null)
$this->price = intval(log10(abs($this->price)) / 3);
echo $this->price;
Cache::decrement($cache_key, $this->price);
return true;