You wield a hat.
This error was recently discovered and reflects similar problems with wearing items. If you enter wear item then the location it is worn is the last or bottom-most location of the possibilities. This is not usually a problem as users should be able to enter wear item location. However, an error exists that may not allow the item to be worn anywhere, or will give you a message that the item cannot be worn in a completely different location.
>wear skirt body
>You cannot wear a skirt on your shoulders.
The error exists in one place, the definition of the locations struct in constants.c. There are currently multiple lines for the same location, and the location for about is missing. You will need to remove the extra lines, and add in the about location
| What it is now | What it should be |
|
const char *locations [] = { "hand", "hands", "hair", "ears", // 5 "eyes", "face", "mouth", "throat", "neck", // 10 "body", "body", "body", "body", // 15 "body", "back", "shoulder", "wrist", "finger", // 25 "belt", "legs", // 30 "legs", "hand", // shield 35 "eyes", // blindfold "\n" // MAX_WEAR = 36 }; |
const char *locations [] = { "head", "hair", "ears", "eyes", "face", "mouth", "throat", "neck", "body", "about", "back", "shoulder", "arms", "wrist", "hands", "finger", "waist", "belt", "legs", "feet", "hand", // shield "eyes", // blindfold "\n" }; |