I found this issue while back but now up to trying to plug this whole. I thought I had found a solution but really it wasn't. Looked good an all lol. Anyway so when you use an item if you have say maximum health or energy and the item effect is to increase the amount, what I'd like is a message that says don't do that, you're on the maximum and not allow the item to be used at all (not removed from inventory).
this is what I have where I shove it in the item use function on inventory.inc file:
if ($this->user->info->US_energy >= $this->user->info->US_maxEnergy) {
return $this->error('You have enough energy go use some before loading up again');
}
if ($this->user->info->US_brave >= $this->user->info->US_maxbrave) {
return $this->error('You have enough brave go use some before loading up again');
}
I think it will be a good one to fix up now as anyone who runs a game on GL currently they'll find this to be an issue.