curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-2042] [Mantis 2079] Object excluded from "drop all" is thrown at itself instead #42

Open curiousdannii-testing opened 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : unclesporky

Description :

When excluding an object from "drop all," the parser decides to throw it at itself. With actions on:

>drop all
(the key at the key)
[throwing the key at the key]
Futile.
[throwing the key at the key - failed the futile to throw things at inanimate objects rule]

This only applies to "drop." If "all" is excluded from other commands like putting or inserting, you get the expected result ("There are none at all available!").

Steps to reproduce :

The player carries a key.

Rule for deciding whether all includes the key when dropping: it does not.

Test me with "drop all".

Additional information :

Forum thread:
https://www.intfiction.org/forum/viewtopic.php?f=7&t=26750&sid=c9476a1b93ecf3c1320803fbbde17c58

A more complete test, showing expected behavior when the player carries at least one other object, and also demonstrating that other "all" exclusions do work properly, only "drop" has this behavior:

Test is a room. A table is a supporter in Test. a bowl is a container in Test.

The player carries a key and a hat.

Rule for deciding whether all includes the key when putting or inserting or dropping: it does not.

Test me with "actions/drop all/drop all/put all on table/put all in bowl".

imported from: [Mantis 2079] Object excluded from "drop all" is thrown at itself instead
  • status: Reported
  • resolution: Open
  • resolved: 2022-04-07T05:02:44+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by mattweiner :
This looks like a manifestation of http://inform7.com/mantis/view.php?id=1720 to me.