forked from MagicBane/Server
1000 unit missed spot
This commit is contained in:
@@ -2098,7 +2098,7 @@ public class CharacterItemManager {
|
|||||||
if (this.absCharacter.getObjectType() == GameObjectType.PlayerCharacter) {
|
if (this.absCharacter.getObjectType() == GameObjectType.PlayerCharacter) {
|
||||||
PlayerCharacter pc = (PlayerCharacter) this.absCharacter;
|
PlayerCharacter pc = (PlayerCharacter) this.absCharacter;
|
||||||
int newWeight = this.getCarriedWeight() + weight;
|
int newWeight = this.getCarriedWeight() + weight;
|
||||||
return newWeight <= (int) pc.statStrBase * 3;
|
return newWeight <= pc.getInventoryCapacity();
|
||||||
} else if (this.absCharacter.getObjectType() == GameObjectType.NPC) {
|
} else if (this.absCharacter.getObjectType() == GameObjectType.NPC) {
|
||||||
int newWeight = this.getCarriedWeight() + weight;
|
int newWeight = this.getCarriedWeight() + weight;
|
||||||
return newWeight <= 1900 + (this.absCharacter.getLevel() * 3);
|
return newWeight <= 1900 + (this.absCharacter.getLevel() * 3);
|
||||||
|
|||||||
Reference in New Issue
Block a user