Implement character talents

This commit is contained in:
Melledy
2025-10-31 00:15:23 -07:00
parent da1856df50
commit 78f992f2f5
12 changed files with 292 additions and 33 deletions
@@ -41,6 +41,10 @@ public class Inventory extends PlayerManager {
//
public PlayerChangeInfo addItem(int id, int count) {
return this.addItem(id, count, null);
}
public synchronized PlayerChangeInfo addItem(int id, int count, PlayerChangeInfo changes) {
// Changes
if (changes == null) {
@@ -210,6 +214,10 @@ public class Inventory extends PlayerManager {
return changes;
}
public PlayerChangeInfo removeItem(int id, int count) {
return this.removeItem(id, count, null);
}
public synchronized PlayerChangeInfo removeItem(int id, int count, PlayerChangeInfo changes) {
if (count > 0) {
count = -count;