Browse Source

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

lakebane-master
FatBoy-DOTC 11 months ago
parent
commit
2e4bf0823c
  1. 2
      src/engine/devcmd/cmds/InfoCmd.java
  2. 21
      src/engine/gameManager/LootManager.java
  3. 2
      src/engine/objects/CharacterItemManager.java
  4. 5
      src/engine/objects/PlayerCharacter.java

2
src/engine/devcmd/cmds/InfoCmd.java

@ -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;

21
src/engine/gameManager/LootManager.java

@ -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) {

2
src/engine/objects/CharacterItemManager.java

@ -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) {

5
src/engine/objects/PlayerCharacter.java

@ -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() {

Loading…
Cancel
Save