public void gainAp(int ap) {
        if (this.remainingAp + ap > 32767) {
            dropMessage("You tried to get more than 32767 AP so you got scammed");
            ap = 32767 - this.remainingAp;
        }
        this.remainingAp += ap;
        updateSingleStat(MapleStat.AVAILABLEAP, this.remainingAp);
    }