fix(gaming): Removed random value from rewardKey

Issue #206Signed-off-by: Stuart McCulloch Anderson's avatarStuart McCulloch Anderson <stuart@nxfifteen.me.uk>
parent 591d5bf2
......@@ -35,8 +35,8 @@ class Gaming extends Delivery
public function deliver($rewardProfile, $state, $rewardKey)
{
if (!$this->getAppClass()->getDatabase()->has($this->dbPrefix . "users_xp", ['fuid' => $this->getUserID()])) {
$this->getAppClass()->getDatabase()->insert($this->dbPrefix . "users_xp", ["class" => "Rebel", "xp" => 1, "mana" => 1, "health" => 1, "fuid" => $this->getUserID()]);
$dbCurrent = ["class" => "Rebel", "xp" => 1, "mana" => 1, "health" => 1];
$this->getAppClass()->getDatabase()->insert($this->dbPrefix . "users_xp", ["class" => "Rebel", "xp" => 0, "mana" => 0, "health" => 100, "fuid" => $this->getUserID()]);
$dbCurrent = ["class" => "Rebel", "xp" => 0, "mana" => 0, "health" => 100];
} else {
$dbCurrent = $this->getAppClass()->getDatabase()->get($this->dbPrefix . "users_xp", ['class','xp','mana','health'], ["fuid" => $this->getUserID()]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment