Weapon styles: warhammer, sword and shield, staff, bow; trophies in recipes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
19ccab4ac3
commit
4cb6ff5ec0
6 changed files with 244 additions and 24 deletions
7
app.py
7
app.py
|
|
@ -409,6 +409,13 @@ class Handler(BaseHTTPRequestHandler):
|
|||
problem = game.equip_problem(player, item)
|
||||
if problem:
|
||||
return problem
|
||||
shield = player["equip"].get("shield")
|
||||
if spec.get("two_handed") and shield:
|
||||
# Both hands on the weapon: the shield goes back to the bank.
|
||||
if game.bank_room(self.store.world, player, shield) < 1:
|
||||
return "No room in the bank for your shield"
|
||||
player["bank"][shield] = player["bank"].get(shield, 0) + 1
|
||||
player["equip"]["shield"] = None
|
||||
game.bank_take(player, item, 1)
|
||||
current = player["equip"][spec["slot"]]
|
||||
if current:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue