private byte _pvpFlag; 350 350 351 private final int _baseLoad; 352 351 private int _curWeightPenalty = 0; 353 352 … … 833 832 834 833 _accountName = accountName; 835 _baseLoad = template.baseLoad; 836 834 _appearance = app; 837 835 … … 858 856 super.initCharStatusUpdateValues(); 859 857 initPcStatusUpdateValues(); 860 861 _baseLoad = 0; 862 858 } 863 859 … … 1701 1697 public int getMaxLoad() 1702 1698 { 1703 return (int)calcStat(Stats.MAX_LOAD, _baseLoad, this, null); 1699 // Weight Limit = (CON Modifier*69000)*Skills 1700 // Source http://l2p.bravehost.com/weightlimit.html (May 2007) 1701 // Fitted exponential curve to the data 1702 int con = getCON(); 1703 if (con < 1) return 31000; 1704 if (con > 59) return 176000; 1705 double baseLoad = Math.pow(1.029993928, con)*30495.627366; 1706 return (int)calcStat(Stats.MAX_LOAD, baseLoad, this, null); 1704 1707 } 1705 1708 … … 1722 1725 public void refreshOverloaded() 1723 1726 { 1724 if (getMaxLoad() > 0) 1725 { 1726 setIsOverloaded(getCurrentLoad() > getMaxLoad()); 1727 int weightproc = getCurrentLoad() * 1000 / getMaxLoad(); 1727 int maxLoad = getMaxLoad(); 1728 if (maxLoad > 0) 1729 { 1730 setIsOverloaded(getCurrentLoad() > maxLoad); 1731 int weightproc = getCurrentLoad() * 1000 / maxLoad; 1728 1732 int newWeightPenalty; 1729 1733 if (weightproc < 500 || _dietMode)