Implement !clean command and f affinity

This commit is contained in:
阁主
2025-11-26 09:05:08 +08:00
committed by Melledy
parent 008cd06b32
commit 3a7d12c7b7
5 changed files with 159 additions and 4 deletions

View File

@@ -123,7 +123,12 @@ public class GameCharacter implements GameDatabaseObject {
public void setAdvance(int advance) {
this.advance = advance;
}
public void setAffinityLevel(int level) {
this.affinityLevel = Math.max(level, 0);
this.affinityExp = 0;
}
public int getMaxGainableExp() {
if (this.getLevel() >= this.getMaxLevel()) {
return 0;