Skip to content
Snippets Groups Projects
Commit 4b68a3db authored by Schlütter Yannik's avatar Schlütter Yannik
Browse files

Update: BombPlacementRate Item bombplacement reduction and ignoring exception

parent b04348a0
No related branches found
No related tags found
5 merge requests!74V1,!73Initial commit,!71Merge DataBase into Development,!64Merge LocalGameplay into Development,!63Merge localGameplay into development
...@@ -219,9 +219,11 @@ public class GameSceneController implements Initializable { ...@@ -219,9 +219,11 @@ public class GameSceneController implements Initializable {
private void renderGameplayObjects(GraphicsContext graphicsContext) { private void renderGameplayObjects(GraphicsContext graphicsContext) {
List<IEntity> gameplayObjects = runtimeInfo.getGameplayObjects(); List<IEntity> gameplayObjects = runtimeInfo.getGameplayObjects();
for (IEntity gameplayObject : gameplayObjects) { try {
gameplayObject.renderEntity(graphicsContext); for (IEntity gameplayObject : gameplayObjects) {
} gameplayObject.renderEntity(graphicsContext);
}
} catch (ConcurrentModificationException ignore){}
} }
private void updateGameplayObjects() { private void updateGameplayObjects() {
......
...@@ -593,8 +593,8 @@ class Player implements IEntity { ...@@ -593,8 +593,8 @@ class Player implements IEntity {
} }
private int updateBombPlacementRate(int bombPlacementRate) { private int updateBombPlacementRate(int bombPlacementRate) {
if (isBombClockItemFrame && bombReducedPlacementRate > 10) { if (isBombClockItemFrame && bombReducedPlacementRate > 15) {
bombReducedPlacementRate -= 10; bombReducedPlacementRate -= 15;
log.info("Reducing bomb Placementrate:" + bombReducedPlacementRate); log.info("Reducing bomb Placementrate:" + bombReducedPlacementRate);
isBombClockItemFrame = false; isBombClockItemFrame = false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment