FictitiousFrode / AIF

AIF Framework for Inform 7
GNU General Public License v2.0
16 stars 8 forks source link

Prevent two items at the same layer being worn together. #42

Closed allisonedwards closed 7 years ago

allisonedwards commented 7 years ago

eg. two pairs of trousers; or two dresses.

It seems reasonable to stop the player being able to wear tow items at the same layer together, in my test game I was able wear two dresses at the same time and (more reasonably) a dress and a pair of trousers. This changes prevents both of the above cases. If the later case is needed , more layers is the most reasonable solution - perhaps a intermediate layer for each is required; or a just_above_LAYER; and just_below_LAYER - although that complicates things immensely.

FictitiousFrode commented 7 years ago

Good catch; I was pretty sure I had taken this into consideration.