mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-20 01:29:54 +02:00
Implement character talents
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user