Clement COLMERAUER commited on 2024-10-04 17:13:29
Showing 1 changed files, with 2 additions and 8 deletions.
| ... | ... |
@@ -136,8 +136,6 @@ public class UpdatePlayer {
|
| 136 | 136 |
player.setCurrentHealthPoints(player.getCurrentHealthPoints()+1); |
| 137 | 137 |
} |
| 138 | 138 |
player.setCurrentHealthPoints(player.getCurrentHealthPoints()+1); |
| 139 |
- } else if(player.getAvatarClass().equals("ADVENTURER")) {
|
|
| 140 |
- player.setCurrentHealthPoints(player.getCurrentHealthPoints()+2); |
|
| 141 | 139 |
} |
| 142 | 140 |
|
| 143 | 141 |
|
| ... | ... |
@@ -153,17 +151,13 @@ public class UpdatePlayer {
|
| 153 | 151 |
player.setCurrentHealthPoints(player.getCurrentHealthPoints()-1); |
| 154 | 152 |
} |
| 155 | 153 |
} |
| 156 |
- } else if(player.getCurrentHealthPoints() >= player.getHealthPoints()/2){
|
|
| 154 |
+ } else |
|
| 155 |
+ {
|
|
| 157 | 156 |
if(player.getCurrentHealthPoints() >= player.getHealthPoints()) {
|
| 158 | 157 |
player.setCurrentHealthPoints(player.getHealthPoints()); |
| 159 | 158 |
return; |
| 160 | 159 |
} |
| 161 | 160 |
} |
| 162 |
- |
|
| 163 |
- |
|
| 164 |
- if(player.getCurrentHealthPoints() >= player.getHealthPoints()) {
|
|
| 165 |
- player.setCurrentHealthPoints(player.getHealthPoints()); |
|
| 166 |
- } |
|
| 167 | 161 |
} |
| 168 | 162 |
|
| 169 | 163 |
|
| 170 | 164 |