Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9beb10

Browse files
author
charlie-lutaud
committed
Game balance
1 parent c36ce52 commit d9beb10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python-Robocode/Objects/robot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,10 @@ def __robotRebound(self, robot):
501501

502502

503503
def __bulletRebound(self, bullet):
504-
self.__changeHealth(self, - bullet.power)
504+
self.__changeHealth(self, - 3*bullet.power)
505505
try:
506506
if bullet.robot in self.__parent.aliveBots:
507-
self.__changeHealth(bullet.robot, bullet.power)
507+
self.__changeHealth(bullet.robot, 2*bullet.power)
508508
self.stop()
509509
self.onHitByBullet(id(bullet.robot), bullet.robot.__repr__(), bullet.power)
510510
animation = self.__physics.makeAnimation()

0 commit comments

Comments
 (0)