Loading…
rrous
Translation changed |
|
rrous
Translation added |
|
None
String updated in the repository |
|
Loading…
rrous
Translation changed |
|
rrous
Translation added |
|
None
String updated in the repository |
|
Add to the [code]take_damage()[/code] function so the following happens:
- [code]if[/code] the robot's [code]level[/code] is greater than [code]2[/code], reduce the damage [code]amount[/code] by 50%
The robot is level 3. An enemy is going to attack for 10 damage. This damage should reduce to 5.
Přidejte instrukce do funkce [code]take_damage()[/code], aby se stalo následující:
- [code]if[/code] je [code]level[code] robota větší než
Robot je na úrovni 3. Nepřítel zaútočí za 10 poškození. Toto poškození by se mělo snížit na 5.