Add seeded random character slots

This commit is contained in:
2026-06-24 21:33:28 +02:00
parent 79661c396a
commit cf4fec34b8
3 changed files with 78 additions and 4 deletions
+9
View File
@@ -756,6 +756,7 @@ class SxCPCharacterSlot:
"enabled": ("BOOLEAN", {"default": True}),
"subject_type": (["woman", "man"], {"default": "woman"}),
"label": (character_label_choices(), {"default": "auto_chain"}),
"slot_seed": ("INT", {"default": -1, "min": -1, "max": 0xFFFFFFFF}),
"age": (character_age_choices(), {"default": "random"}),
"manual_age": ("STRING", {"default": ""}),
"ethnicity": (character_ethnicity_choices(), {"default": "random"}),
@@ -790,6 +791,7 @@ class SxCPCharacterSlot:
enabled,
subject_type,
label,
slot_seed,
age,
manual_age,
ethnicity,
@@ -813,6 +815,7 @@ class SxCPCharacterSlot:
result = build_character_slot_json(
subject_type=subject_type,
label=label,
slot_seed=slot_seed,
age=age,
manual_age=manual_age,
ethnicity=ethnicity,
@@ -844,6 +847,7 @@ class SxCPWomanSlot:
"required": {
"enabled": ("BOOLEAN", {"default": True}),
"label": (character_label_choices(), {"default": "auto_chain"}),
"slot_seed": ("INT", {"default": -1, "min": -1, "max": 0xFFFFFFFF}),
"age": (character_age_choices(), {"default": "random"}),
"manual_age": ("STRING", {"default": ""}),
"ethnicity": (character_ethnicity_choices(), {"default": "random"}),
@@ -876,6 +880,7 @@ class SxCPWomanSlot:
self,
enabled,
label,
slot_seed,
age,
manual_age,
ethnicity,
@@ -898,6 +903,7 @@ class SxCPWomanSlot:
result = build_character_slot_json(
subject_type="woman",
label=label,
slot_seed=slot_seed,
age=age,
manual_age=manual_age,
ethnicity=ethnicity,
@@ -928,6 +934,7 @@ class SxCPManSlot:
"required": {
"enabled": ("BOOLEAN", {"default": True}),
"label": (character_label_choices(), {"default": "auto_chain"}),
"slot_seed": ("INT", {"default": -1, "min": -1, "max": 0xFFFFFFFF}),
"age": (character_age_choices(), {"default": "random"}),
"manual_age": ("STRING", {"default": ""}),
"ethnicity": (character_ethnicity_choices(), {"default": "random"}),
@@ -960,6 +967,7 @@ class SxCPManSlot:
self,
enabled,
label,
slot_seed,
age,
manual_age,
ethnicity,
@@ -982,6 +990,7 @@ class SxCPManSlot:
result = build_character_slot_json(
subject_type="man",
label=label,
slot_seed=slot_seed,
age=age,
manual_age=manual_age,
ethnicity=ethnicity,