sussman / hoosegow

Muddy's plan done landed you and your partner in the hoosegow. Now you're fixing to rectificate the matter before the marshal introduces you to the business end of a hangin' rope at dawn.
Other
5 stars 0 forks source link

Bad error when returning warrant #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After amending the warrant, I tried to return it directly to the deputy:

>give deputy warrant
You can reach through the bars, but not far enough to touch the warrant.

Oops, it's in my possession but I can't reach it.  
(For some reason, "search deputy" does what I'm looking for here.)

Found in: beta-07.

Original issue reported on code.google.com by aecolley on 30 Jan 2010 at 5:11

GoogleCodeExporter commented 9 years ago
We're getting interference from the "you can't reach stuff outside the jail 
cell". That rule 
looks at the first noun, which in this case is the indirect object, the deputy. 

Original comment by dhakajack on 30 Jan 2010 at 1:39

GoogleCodeExporter commented 9 years ago
Rather, the first noun is the warrant, but second is deputy, and that's where 
we're 
hitting the can't reach rule.

So, added an exception for giving in the can't reach rule. That shouldn't get 
us into 
trouble in terms of giving away stuff in the other room because you still have 
to hold 
something to give it away, and the player would be blocked at that level.

Also added a special case that turns giving into poking when the warrant is 
complete 
and the deputy is knocked out and hasn't previously been shown the warrant.

Original comment by dhakajack on 30 Jan 2010 at 1:50