Lower-bracket equip levelup & Channel/World capacity patch
Rebalanced the low level section of the equipment level up system. Fixed EQUIP_EXP_RATE not acting as expected to be. Changed chscroll system, now using a new flag instead of the SCROLL_CHANCE_RATE. Optimized PlayerStorage, now using a proper name map when searching for a character name. Tweaked some aspects of the BalrogPQ. Improved the channel capacity bar and world server capacity checks throughout the source.
This commit is contained in:
@@ -264,6 +264,26 @@ public class World {
|
||||
return g;
|
||||
}
|
||||
|
||||
public boolean isWorldCapacityFull() {
|
||||
return getWorldCapacityStatus() == 2;
|
||||
}
|
||||
|
||||
public int getWorldCapacityStatus() {
|
||||
int worldCap = channels.size() * ServerConstants.CHANNEL_LOAD;
|
||||
int num = players.getSize();
|
||||
|
||||
int status;
|
||||
if (num >= worldCap) {
|
||||
status = 2;
|
||||
} else if (num >= worldCap * .8) { // More than 80 percent o___o
|
||||
status = 1;
|
||||
} else {
|
||||
status = 0;
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
public MapleGuildSummary getGuildSummary(int gid, int wid) {
|
||||
if (gsStore.containsKey(gid)) {
|
||||
return gsStore.get(gid);
|
||||
|
||||
Reference in New Issue
Block a user