Added comment for changes

This commit is contained in:
Benefit-Zebra 2020-07-04 14:01:57 +05:30 committed by GitHub
parent 406fc2770d
commit 3044099832
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1011,6 +1011,10 @@ class Bomb(ba.Actor):
# impact-bombs by all impacts.
if not ispunched and (not self._exploded
or self.bomb_type in ['impact', 'land_mine']):
# We don't want to give the credit and points to player,
# who punched the bomb of other player in a chain reaction.
# And this will protect the bomb from getting hit_type 'punch'.
# Also lets change the owner of the bomb to whoever is setting
# us off. (this way points for big chain reactions go to the
# person causing them).