FictitiousFrode / AIF

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

Covering list of garments #59

Open Brenoit opened 6 years ago

Brenoit commented 6 years ago

Your template proposes that, when you examine a bodypart covered by garments, you provide a covered description that lists all the covering garments of the bodypart. But if the garment is hidden, I do not see why it would appear since you cannot see or examine it individually. Should it only be showing the topmost garment?

The covered description of ACTOR's vagina is "ACTOR has [short description], covered by [the concealing vision of ACTOR's vagina]."

To decide which list of garments is concealing vision of (G - a garment): Let concealers be a list of garments; If G is not worn by someone: Decide on concealers; Let clothing be the list of opaque garments worn by the holder of G; If G is listed in clothing, remove G from clothing; [We don't want to let G block itself] Sort clothing in reverse clothing layer order; Repeat with A running through the cover areas of G: Repeat with cloth running through clothing: [Only consider opaque garments with a higher clothing layer] If clothing layer of cloth is greater than clothing layer of G: If A is listed in the modified cover areas of cloth: [Take shifted/ripped into account] Add cloth to concealers, if absent; Decide on concealers;

I would like, when I type "x breasts" and I have put a bra and a shirt (being defined as opaque) on the actor, to only get :

Actor's breasts are great. They are covered by a shirt.

Right now, I am getting :

Actor's breasts are great. They are covered by a shirt, a bra.