Skip to content

Blocking but shiftable? #47

@theburning

Description

@theburning

I want to be able to shift clothing under shifted clothing, while still not being able to remove the lower layer of clothing if they are blocked. For example, a pair of pants and a pair of boxers, both lowerable.
I was able to accomplish this (though I haven't thoroughly tested) by changing the can be shifted decision to use the modified cover areas list instead of the blocked cover areas list AND adding a check for the cloth to be shifted.

To decide whether (G - a garment) can be shifted:
	If G is not worn by someone:
		Decide yes;[Technically, no; but we don't want to stop that here.]
	Let cover be the shifting revealed cover areas of G;
	Let clothing be the list of 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 cover:
		Repeat with cloth running through clothing:
			If clothing layer of cloth is greater than clothing layer of G:
				If A is listed in the modified cover areas of cloth:
					If cloth is unshifted, decide no;
	Decide yes;

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions