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")
|
self.say_delayed("bank")
|
||||||
return
|
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
|
# DEBT / FORCED MORTGAGE
|
||||||
# ============================================================
|
# ============================================================
|
||||||
|
|
@ -378,13 +385,16 @@ class PlayerBot:
|
||||||
|
|
||||||
# Mortgage property selection
|
# Mortgage property selection
|
||||||
if msg == "Which property do you want to mortgage?":
|
if msg == "Which property do you want to mortgage?":
|
||||||
# monop will present options via getinp; it takes the property
|
if self.is_my_turn():
|
||||||
# name. We'll wait for the valid inputs prompt.
|
if self.in_debt:
|
||||||
self.awaiting_prompt = "mortgage_choice"
|
self.say_delayed("?") # get list, pick first
|
||||||
|
else:
|
||||||
|
self.say_delayed("done") # not in debt, stop mortgaging
|
||||||
return
|
return
|
||||||
|
|
||||||
if msg == "Which property do you want to unmortgage?":
|
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
|
return
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue