standard 1000 inventory weight && fixed XP rates 5x/10x
This commit is contained in:
@@ -280,7 +280,7 @@ public class InfoCmd extends AbstractDevCmd {
|
|||||||
output += newline;
|
output += newline;
|
||||||
output += "Inventory Weight:" + (targetPC.getCharItemManager().getInventoryWeight() + targetPC.getCharItemManager().getEquipWeight());
|
output += "Inventory Weight:" + (targetPC.getCharItemManager().getInventoryWeight() + targetPC.getCharItemManager().getEquipWeight());
|
||||||
output += newline;
|
output += newline;
|
||||||
output += "Max Inventory Weight:" + ((int) targetPC.statStrBase * 3);
|
output += "Max Inventory Weight:" + targetPC.getInventoryCapacity();
|
||||||
output += newline;
|
output += newline;
|
||||||
output += "ALTITUDE :" + targetPC.getAltitude();
|
output += "ALTITUDE :" + targetPC.getAltitude();
|
||||||
output += newline;
|
output += newline;
|
||||||
|
|||||||
@@ -57,13 +57,20 @@ public enum LootManager {
|
|||||||
|
|
||||||
// Cache drop rate values from Config manager.
|
// Cache drop rate values from Config manager.
|
||||||
|
|
||||||
NORMAL_DROP_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_DROP_RATE.getValue());
|
//NORMAL_DROP_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_DROP_RATE.getValue());
|
||||||
NORMAL_EXP_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_EXP_RATE.getValue());
|
//NORMAL_EXP_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_EXP_RATE.getValue());
|
||||||
NORMAL_GOLD_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_GOLD_RATE.getValue());
|
//NORMAL_GOLD_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_GOLD_RATE.getValue());
|
||||||
HOTZONE_DROP_RATE = Float.parseFloat(ConfigManager.MB_HOTZONE_DROP_RATE.getValue());
|
//HOTZONE_DROP_RATE = Float.parseFloat(ConfigManager.MB_HOTZONE_DROP_RATE.getValue());
|
||||||
HOTZONE_EXP_RATE = Float.parseFloat(ConfigManager.MB_HOTZONE_EXP_RATE.getValue());
|
//HOTZONE_EXP_RATE = Float.parseFloat(ConfigManager.MB_HOTZONE_EXP_RATE.getValue());
|
||||||
HOTZONE_GOLD_RATE = Float.parseFloat(ConfigManager.MB_HOTZONE_GOLD_RATE.getValue());
|
//HOTZONE_GOLD_RATE = Float.parseFloat(ConfigManager.MB_HOTZONE_GOLD_RATE.getValue());
|
||||||
|
|
||||||
|
//hardcoded drop rates
|
||||||
|
NORMAL_DROP_RATE = 5.0f;
|
||||||
|
NORMAL_EXP_RATE = 5.0f;
|
||||||
|
NORMAL_GOLD_RATE = 5.0f;
|
||||||
|
HOTZONE_DROP_RATE = 10.0f;
|
||||||
|
HOTZONE_EXP_RATE = 10.0f;
|
||||||
|
HOTZONE_GOLD_RATE = 10.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void GenerateMobLoot(Mob mob) {
|
public static void GenerateMobLoot(Mob mob) {
|
||||||
|
|||||||
@@ -2131,7 +2131,7 @@ public class CharacterItemManager {
|
|||||||
tradeWeight = tradeWeight + tradeCharacter.getCharItemManager().getTradingWeight();
|
tradeWeight = tradeWeight + tradeCharacter.getCharItemManager().getTradingWeight();
|
||||||
tradeWeight = tradeWeight - this.getTradingWeight();
|
tradeWeight = tradeWeight - this.getTradingWeight();
|
||||||
|
|
||||||
return tradeWeight <= (int) playerCharacter.statStrBase * 3;
|
return tradeWeight <= playerCharacter.getInventoryCapacity();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasRoomBank(short weight) {
|
public boolean hasRoomBank(short weight) {
|
||||||
|
|||||||
@@ -2189,8 +2189,11 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//public int getInventoryCapacity() {
|
||||||
|
// return statStrBase * 3;
|
||||||
|
//}
|
||||||
public int getInventoryCapacity() {
|
public int getInventoryCapacity() {
|
||||||
return statStrBase * 3;
|
return 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getInventoryCapacityRemaining() {
|
public int getInventoryCapacityRemaining() {
|
||||||
|
|||||||
Reference in New Issue
Block a user