|
I am messin around on OS-Royale source, and I noticed a bug where the equipment stats go to 0 when you login with items on. And if you take them off your stats go to negative. The only way to fix this is to take off your items and relog. I'd really like some help looking into this Thanks in advance!
https://i.gyazo.com/1ba50243e24a3f51...0d3e959bdd.png
Code:Equipment.java /** * Handles refreshing all the equipment items. */ public void login() { for (int index = 0; index < getItems().length; index++) { set(index, get(index), false); } WeaponInterface.execute(player, getWeapon()); updateWeight(); // calculate the equipment bonuses for(Item item : toArray()) { if(item != null) { addBonus(item); } } refresh(); }
Anyone got full fix to it? without this bug "double stat"?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |