standard 1000 inventory weight && fixed XP rates 5x/10x

This commit is contained in:
2024-02-07 15:52:42 -06:00
parent d70f9f6dc3
commit 2e4bf0823c
4 changed files with 19 additions and 9 deletions
+1 -1
View File
@@ -280,7 +280,7 @@ public class InfoCmd extends AbstractDevCmd {
output += newline;
output += "Inventory Weight:" + (targetPC.getCharItemManager().getInventoryWeight() + targetPC.getCharItemManager().getEquipWeight());
output += newline;
output += "Max Inventory Weight:" + ((int) targetPC.statStrBase * 3);
output += "Max Inventory Weight:" + targetPC.getInventoryCapacity();
output += newline;
output += "ALTITUDE :" + targetPC.getAltitude();
output += newline;
+13 -6
View File
@@ -57,13 +57,20 @@ public enum LootManager {
// Cache drop rate values from Config manager.
NORMAL_DROP_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_DROP_RATE.getValue());
NORMAL_EXP_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_EXP_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_EXP_RATE = Float.parseFloat(ConfigManager.MB_HOTZONE_EXP_RATE.getValue());
HOTZONE_GOLD_RATE = Float.parseFloat(ConfigManager.MB_HOTZONE_GOLD_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_GOLD_RATE = Float.parseFloat(ConfigManager.MB_NORMAL_GOLD_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_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) {
+1 -1
View File
@@ -2131,7 +2131,7 @@ public class CharacterItemManager {
tradeWeight = tradeWeight + tradeCharacter.getCharItemManager().getTradingWeight();
tradeWeight = tradeWeight - this.getTradingWeight();
return tradeWeight <= (int) playerCharacter.statStrBase * 3;
return tradeWeight <= playerCharacter.getInventoryCapacity();
}
public boolean hasRoomBank(short weight) {
+4 -1
View File
@@ -2189,8 +2189,11 @@ public class PlayerCharacter extends AbstractCharacter {
}
//public int getInventoryCapacity() {
// return statStrBase * 3;
//}
public int getInventoryCapacity() {
return statStrBase * 3;
return 1000;
}
public int getInventoryCapacityRemaining() {