mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-02-01 07:39:35 +01:00
Setter skade til 2 når roboter blir gjenopplivet
This commit is contained in:
parent
b5be1ac787
commit
1d7ee02f59
@ -328,6 +328,7 @@ public class Board {
|
|||||||
if (robot.getAmountOfLives() > 0) {
|
if (robot.getAmountOfLives() > 0) {
|
||||||
robot.setPosition(robot.getBackupPosition());
|
robot.setPosition(robot.getBackupPosition());
|
||||||
robot.setFacingDirection(Direction.NORTH);
|
robot.setFacingDirection(Direction.NORTH);
|
||||||
|
robot.setDamageTaken(2);
|
||||||
robots.put(robot.getRobotId(), robot);
|
robots.put(robot.getRobotId(), robot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user