Jump to content
MakeWebGames

[GLV2][MOD][FREE] Workout (Gym)


Dayo

Recommended Posts

  • 1 month later...
  • 2 weeks later...

Thanks for the mod great addition. 

Just found a little bug when you reset your energy or will and try and do it again when its already full it lets you reset and still deducts points from account 

in workout.inc.php 

find on line 29:

if ($this->user->info->US_points < $cost) {
   return $this->error("You can't afford this!");
}

add below:
  

if ($this->user->info->US_energy == $this->user->info->US_maxEnergy) {
   return $this->error("Your energy is already full!");
}


  
find on line 39:
  

if ($this->user->info->US_points < $cost) {
   return $this->error("You can't afford this!");
}


  
add below:
  

if ($this->user->info->US_will == $this->user->info->US_maxWill) {
   return $this->error("Your will is already full!");
}

 

  • Like 4
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...