Guild PQ + fixed negative EXP error

Implemented Guild PQ. Fixed a problem introduced earlier where negative
EXP would be deemed as "integer overflow", provoking many game breaking
issues as result.
This commit is contained in:
ronancpl
2017-06-18 03:19:53 -03:00
parent 81f9226286
commit 42fe74955d
135 changed files with 822 additions and 564 deletions

View File

@@ -147,12 +147,12 @@ function action(mode, type, selection) {
var players = Array();
var total = 0;
for (var i = 0; i < 3; i++) {
var z = cm.getMap().getNumPlayersItemsInArea(i);
var z = cm.getMap().getNumPlayersInArea(i);
players.push(z);
total += z;
}
if (total != 3) {
cm.sendOk("There needs to be 3 players OR items on the platforms.");
cm.sendOk("There needs to be exactly 3 players on these platforms.");
} else {
var num_correct = 0;
for (var i = 0; i < 3; i++) {