new item, shin bone , added.
This commit is contained in:
@@ -43,6 +43,7 @@ class Player:
|
||||
self.collectedItems = []
|
||||
self._coins = 0
|
||||
self._jack_o_lantern_count = 0
|
||||
self.shinBoneCount = 0
|
||||
|
||||
# Combat related attributes
|
||||
self.weapons = []
|
||||
@@ -64,7 +65,7 @@ class Player:
|
||||
hitSound="player_shovel_hit",
|
||||
attackDuration=200 # 200ms attack duration
|
||||
))
|
||||
|
||||
|
||||
def should_play_footstep(self, currentTime):
|
||||
"""Check if it's time to play a footstep sound"""
|
||||
return (self.distanceSinceLastStep >= self.get_step_distance() and
|
||||
@@ -211,7 +212,7 @@ class Player:
|
||||
"""Add an item to inventory"""
|
||||
self.inventory.append(item)
|
||||
self.collectedItems.append(item)
|
||||
|
||||
|
||||
def start_attack(self, currentTime):
|
||||
"""Attempt to start an attack with the current weapon"""
|
||||
if self.currentWeapon and self.currentWeapon.start_attack(currentTime):
|
||||
|
Reference in New Issue
Block a user