Move pair descriptor policy
This commit is contained in:
+3
-22
@@ -3819,28 +3819,11 @@ def _insta_of_hardcore_counts(options: dict[str, Any]) -> tuple[int, int]:
|
||||
|
||||
|
||||
def _insta_of_descriptor(row: dict[str, Any]) -> str:
|
||||
return _descriptor_from_parts(
|
||||
"woman",
|
||||
row.get("age_band") or row.get("age"),
|
||||
row.get("body_phrase"),
|
||||
row.get("skin"),
|
||||
row.get("hair"),
|
||||
row.get("eyes"),
|
||||
row.get("descriptor_detail"),
|
||||
)
|
||||
return pair_cast.insta_descriptor_from_row(row)
|
||||
|
||||
|
||||
def _insta_of_descriptor_from_context(context: dict[str, Any]) -> str:
|
||||
subject = str(context.get("subject") or context.get("subject_type") or "person").strip()
|
||||
return _descriptor_from_parts(
|
||||
subject,
|
||||
context.get("age"),
|
||||
context.get("body_phrase"),
|
||||
context.get("skin"),
|
||||
context.get("hair"),
|
||||
context.get("eyes"),
|
||||
context.get("descriptor_detail"),
|
||||
)
|
||||
return pair_cast.insta_descriptor_from_context(context)
|
||||
|
||||
|
||||
def _insta_of_cast_descriptors(
|
||||
@@ -3873,7 +3856,7 @@ def _insta_of_cast_descriptors(
|
||||
|
||||
|
||||
def _insta_of_prompt_cast_descriptors(text: str) -> str:
|
||||
return str(text or "").replace("Woman A / primary creator:", "Woman A:")
|
||||
return pair_cast.prompt_cast_descriptors(text)
|
||||
|
||||
|
||||
def _insta_of_softcore_category(level: str) -> tuple[str, str]:
|
||||
@@ -3990,9 +3973,7 @@ def build_insta_of_pair(
|
||||
platform_styles=INSTA_OF_PLATFORM_STYLES,
|
||||
soft_levels=INSTA_OF_SOFT_LEVELS,
|
||||
hardcore_levels=INSTA_OF_HARDCORE_LEVELS,
|
||||
descriptor_from_row=_insta_of_descriptor,
|
||||
build_cast_descriptors=_insta_of_cast_descriptors,
|
||||
prompt_cast_descriptors=_insta_of_prompt_cast_descriptors,
|
||||
axis_rng=_axis_rng,
|
||||
choose=g.choose,
|
||||
slot_softcore_outfit=_slot_softcore_outfit,
|
||||
|
||||
Reference in New Issue
Block a user