Skip to content

Commit

Permalink
Merge pull request #123 from Techwise-Team-15/eat_branch
Browse files Browse the repository at this point in the history
add watering can code
  • Loading branch information
kanan42 authored Aug 1, 2023
2 parents 41cb018 + bba6297 commit 7bbc868
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions game_util/scene_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ def get_collision_item(self):
elif self.item_id == config.ItemID.full_cup and self.rect.collidepoint(self.interacting_pet.get_location()):
self.interacting_pet.set_current_animation(config.RockActions.drinking.value, True)
return config.ItemID.full_cup
elif self.item_id==config.ItemID.watering_can and self.rect.collidepoint(self.interacting_pet.get_location()):
self.interacting_pet.set_current_animation(config.RockActions.clean.value,True)
return config.ItemID.watering_can



def handle_event(self, event, item_loc):
Expand Down

0 comments on commit 7bbc868

Please sign in to comment.