QA testing changes
This commit is contained in:
parent
58b48f2a5d
commit
1408e60d7a
@ -12,7 +12,7 @@ import nautilus.game.arcade.stats.StatTracker;
|
|||||||
public class GetGoodStatTracker extends StatTracker<Game>
|
public class GetGoodStatTracker extends StatTracker<Game>
|
||||||
{
|
{
|
||||||
|
|
||||||
private static final int MIN_FALL_DISTANCE = 24;
|
private static final int MIN_FALL_DISTANCE = 15;
|
||||||
|
|
||||||
public GetGoodStatTracker(Game game)
|
public GetGoodStatTracker(Game game)
|
||||||
{
|
{
|
||||||
|
@ -203,7 +203,7 @@ public class CakeResourcePage extends ShopPageBase<ArcadeManager, CakeResourceSh
|
|||||||
ItemBuilder give = new ItemBuilder(_item.getItemStack());
|
ItemBuilder give = new ItemBuilder(_item.getItemStack());
|
||||||
Material material = give.getType();
|
Material material = give.getType();
|
||||||
|
|
||||||
if (UtilItem.isWeapon(material) || UtilItem.isTool(material) || UtilItem.isArmor(material))
|
if (UtilItem.isWeapon(material) || UtilItem.isTool(material) || UtilItem.isArmor(material) || material == Material.SHEARS)
|
||||||
{
|
{
|
||||||
give.setUnbreakable(true);
|
give.setUnbreakable(true);
|
||||||
}
|
}
|
||||||
|
@ -117,6 +117,7 @@ public class CapturePoint
|
|||||||
|
|
||||||
// For each team get the team with the non-zero players
|
// For each team get the team with the non-zero players
|
||||||
GameTeam highest = null;
|
GameTeam highest = null;
|
||||||
|
int highestPlayers = 0;
|
||||||
for (Entry<GameTeam, Integer> entry : playersOnPoint.entrySet())
|
for (Entry<GameTeam, Integer> entry : playersOnPoint.entrySet())
|
||||||
{
|
{
|
||||||
GameTeam team = entry.getKey();
|
GameTeam team = entry.getKey();
|
||||||
@ -129,6 +130,7 @@ public class CapturePoint
|
|||||||
if (highest == null)
|
if (highest == null)
|
||||||
{
|
{
|
||||||
highest = team;
|
highest = team;
|
||||||
|
highestPlayers = players;
|
||||||
}
|
}
|
||||||
// This means there are 2 teams on the point
|
// This means there are 2 teams on the point
|
||||||
else
|
else
|
||||||
@ -141,7 +143,13 @@ public class CapturePoint
|
|||||||
// No one at all is on the point
|
// No one at all is on the point
|
||||||
if (highest == null)
|
if (highest == null)
|
||||||
{
|
{
|
||||||
return;
|
if (_owner == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// If the owner isn't null, move the point's progress back
|
||||||
|
highest = _owner;
|
||||||
}
|
}
|
||||||
// Players on the point
|
// Players on the point
|
||||||
// Only inform if it has been a while
|
// Only inform if it has been a while
|
||||||
@ -165,7 +173,7 @@ public class CapturePoint
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
capture(highest);
|
capture(highest, highestPlayers);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sendMessage(GameTeam team, String message)
|
private void sendMessage(GameTeam team, String message)
|
||||||
@ -177,7 +185,7 @@ public class CapturePoint
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void capture(GameTeam team)
|
private void capture(GameTeam team, int progress)
|
||||||
{
|
{
|
||||||
// No player has ever stood on the point
|
// No player has ever stood on the point
|
||||||
if (_side == null)
|
if (_side == null)
|
||||||
@ -189,7 +197,7 @@ public class CapturePoint
|
|||||||
if (_side.equals(team))
|
if (_side.equals(team))
|
||||||
{
|
{
|
||||||
// Increase progress
|
// Increase progress
|
||||||
_progress++;
|
_progress += progress;
|
||||||
display(team, true);
|
display(team, true);
|
||||||
|
|
||||||
// Captured
|
// Captured
|
||||||
@ -207,7 +215,7 @@ public class CapturePoint
|
|||||||
setBeaconColour(null);
|
setBeaconColour(null);
|
||||||
_side = team;
|
_side = team;
|
||||||
// Recursively call this method now that the first (same team) condition will be true
|
// Recursively call this method now that the first (same team) condition will be true
|
||||||
capture(team);
|
capture(team, progress);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user