Update bomb.py

This commit is contained in:
VinniTR 2023-12-29 13:10:25 -05:00 committed by GitHub
parent 0dcad474d5
commit 47f2ae4594
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1145,14 +1145,12 @@ class Bomb(bs.Actor):
self.explode() self.explode()
elif isinstance(msg, ImpactMessage): elif isinstance(msg, ImpactMessage):
self._handle_impact() self._handle_impact()
# Ok the logic below looks like it was backwards to me. elif isinstance(msg, bs.PickedUpMessage):
# Disabling for now; can bring back if need be. # Change our source to whoever just picked us up *only* if it
# elif isinstance(msg, bs.PickedUpMessage): # is None. This way we can get points for killing bots with their
# # Change our source to whoever just picked us up *only* if it # own bombs. Hmm would there be a downside to this?
# # is None. This way we can get points for killing bots with their if self._source_player is None:
# # own bombs. Hmm would there be a downside to this? self._source_player = msg.node.source_player
# if self._source_player is not None:
# self._source_player = msg.node.source_player
elif isinstance(msg, SplatMessage): elif isinstance(msg, SplatMessage):
self._handle_splat() self._handle_splat()
elif isinstance(msg, bs.DroppedMessage): elif isinstance(msg, bs.DroppedMessage):