Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c36ce52 commit d9beb10Copy full SHA for d9beb10
Python-Robocode/Objects/robot.py
@@ -501,10 +501,10 @@ def __robotRebound(self, robot):
501
502
503
def __bulletRebound(self, bullet):
504
- self.__changeHealth(self, - bullet.power)
+ self.__changeHealth(self, - 3*bullet.power)
505
try:
506
if bullet.robot in self.__parent.aliveBots:
507
- self.__changeHealth(bullet.robot, bullet.power)
+ self.__changeHealth(bullet.robot, 2*bullet.power)
508
self.stop()
509
self.onHitByBullet(id(bullet.robot), bullet.robot.__repr__(), bullet.power)
510
animation = self.__physics.makeAnimation()
0 commit comments