[ WriteAfterEntry o depth stack_p flag flag2 flag3 p comb; if (c_style & PARTINV_BIT ~= 0) { comb=0; if (o has light && location hasnt light) comb=comb+1; if (o has container && o hasnt open) comb=comb+2; if ((o has container && (o has open || o has transparent)) && (child(o)==0)) comb=comb+4; if (comb==1) L__M(##ListMiscellany, 1, o); if (comb==2) L__M(##ListMiscellany, 2, o); if (comb==3) L__M(##ListMiscellany, 3, o); if (comb==4) L__M(##ListMiscellany, 4, o); if (comb==5) L__M(##ListMiscellany, 5, o); if (comb==6) L__M(##ListMiscellany, 6, o); if (comb==7) L__M(##ListMiscellany, 7, o); } if (c_style & FULLINV_BIT ~= 0) { if (o.invent ~= 0) { inventory_stage=2; if (RunRoutines(o,invent)~=0) { if (c_style & NEWLINE_BIT ~= 0) new_line; rtrue; } } if (o has light && o has worn) { L__M(##ListMiscellany, 8); flag2=1; } else { if (o has light) { L__M(##ListMiscellany, 9, o); flag2=1; } if (o has worn) { L__M(##ListMiscellany, 10, o); flag2=1; } } if (o has container) { if (o has openable) { if (flag2==1) print (string) AND__TX; else L__M(##ListMiscellany, 11, o); if (o has open) { if (child(o)==0) L__M(##ListMiscellany, 13, o); else L__M(##ListMiscellany, 12, o); } else { if (o has lockable && o has locked) L__M(##ListMiscellany, 15, o); else L__M(##ListMiscellany, 14, o); } flag2=1; } else if (child(o)==0 && o has transparent) { if (flag2==1) L__M(##ListMiscellany, 16, o); else L__M(##ListMiscellany, 17, o); } } if (flag2==1) print ")"; } if (c_style & CONCEAL_BIT == 0) { flag3 = children(o); flag2 = child(o); } else { flag3 = 0; objectloop (p in o) if (p hasnt concealed && p hasnt scenery) { flag3++; flag2 = p; } } if (c_style & ALWAYS_BIT ~= 0 && flag3>0) { if (c_style & ENGLISH_BIT ~= 0) L__M(##ListMiscellany, 18, o); flag=1; } if (c_style & RECURSE_BIT ~= 0 && flag3>0) { if (o has supporter) { if (c_style & ENGLISH_BIT ~= 0) { if (c_style & TERSE_BIT ~= 0) L__M(##ListMiscellany, 19, o); else L__M(##ListMiscellany, 20, o); if (o has animate) print (string) WHOM__TX; else print (string) WHICH__TX; } flag=1; } if (o has container && (o has open || o has transparent)) { if (c_style & ENGLISH_BIT ~= 0) { if (c_style & TERSE_BIT ~= 0) L__M(##ListMiscellany, 21, o); else L__M(##ListMiscellany, 22, o); if (o has animate) print (string) WHOM__TX; else print (string) WHICH__TX; } flag=1; } } if (flag==1 && c_style & ENGLISH_BIT ~= 0) { if (flag3 > 1 || flag2 has pluralname) print (string) ARE2__TX; else print (string) IS2__TX; } if (c_style & NEWLINE_BIT ~= 0) new_line; if (flag==1) { o = child(o); @push lt_value; @push listing_together; @push listing_size; lt_value = 0; listing_together = 0; listing_size = 0; WriteListR(o, depth+1, stack_p); @pull listing_size; @pull listing_together; @pull lt_value; if (c_style & TERSE_BIT ~= 0) print ")"; } ];