Fix mortgage flow: send ? for property list, done when solvent
This commit is contained in:
parent
2ffd7c3845
commit
775bbde030
1 changed files with 14 additions and 4 deletions
|
|
@ -350,6 +350,13 @@ class PlayerBot:
|
|||
self.say_delayed("bank")
|
||||
return
|
||||
|
||||
if msg.startswith("Which player do you wish to trade with?"):
|
||||
# We don't trade proactively — shouldn't hit this
|
||||
return
|
||||
|
||||
if msg.startswith("Which property do you wish to trade?"):
|
||||
return
|
||||
|
||||
# ============================================================
|
||||
# DEBT / FORCED MORTGAGE
|
||||
# ============================================================
|
||||
|
|
@ -378,13 +385,16 @@ class PlayerBot:
|
|||
|
||||
# Mortgage property selection
|
||||
if msg == "Which property do you want to mortgage?":
|
||||
# monop will present options via getinp; it takes the property
|
||||
# name. We'll wait for the valid inputs prompt.
|
||||
self.awaiting_prompt = "mortgage_choice"
|
||||
if self.is_my_turn():
|
||||
if self.in_debt:
|
||||
self.say_delayed("?") # get list, pick first
|
||||
else:
|
||||
self.say_delayed("done") # not in debt, stop mortgaging
|
||||
return
|
||||
|
||||
if msg == "Which property do you want to unmortgage?":
|
||||
self.awaiting_prompt = "unmortgage_choice"
|
||||
if self.is_my_turn():
|
||||
self.say_delayed("done") # don't unmortgage proactively
|
||||
return
|
||||
|
||||
# ============================================================
|
||||
|
|
|
|||
Loading…
Reference in a new issue