Add e keybinding to see your cdurrent weapon. Hopefully item tracking works correctly now.

This commit is contained in:
Storm Dragon
2025-02-06 20:12:28 -05:00
parent ffbb9da992
commit 162ebbd5e2
3 changed files with 7 additions and 2 deletions

View File

@@ -91,6 +91,8 @@ class WickedQuest:
if currentTime - self.lastThrowTime >= self.throwDelay:
self.currentLevel.throw_projectile()
self.lastThrowTime = currentTime
if keys[pygame.K_e]:
speak(f"Wielding {self.currentLevel.player.currentWeapon.name.replace('_', ' ')}")
# Handle attack with either CTRL key
if (keys[pygame.K_LCTRL] or keys[pygame.K_RCTRL]) and player.start_attack(currentTime):