Extract character slot policy

This commit is contained in:
2026-06-27 08:30:41 +02:00
parent 3f251a6bb7
commit e9cc75bd5f
7 changed files with 484 additions and 244 deletions
+6
View File
@@ -107,6 +107,7 @@ CHARACTER_DESCRIPTOR_DETAIL_CHOICES = ["auto", "full", "medium", "compact", "min
CHARACTER_PRESENCE_CHOICES = ["visible", "pov"]
CHARACTER_RANDOM_TOKENS = {"", "random", "auto", "global", "from_global", "default"}
CHARACTER_SLOT_SEED_MAX = 0xFFFFFFFF
CHARACTER_FIGURE_CHOICES = ["random", "curvy", "balanced", "bombshell"]
CHARACTER_HAIR_COLOR_CHOICES = [
"random",
"black",
@@ -215,6 +216,10 @@ def character_presence_choices() -> list[str]:
return list(CHARACTER_PRESENCE_CHOICES)
def character_figure_choices() -> list[str]:
return list(CHARACTER_FIGURE_CHOICES)
def character_hair_color_choices() -> list[str]:
return list(CHARACTER_HAIR_COLOR_CHOICES)
@@ -661,6 +666,7 @@ _slot_value = slot_value
_normalize_descriptor_detail = normalize_descriptor_detail
_normalize_presence_mode = normalize_presence_mode
_normalize_slot_seed = normalize_slot_seed
_character_figure_choices = character_figure_choices
_empty_characteristics_config = empty_characteristics_config
_normalize_characteristic_choice = normalize_characteristic_choice
_normalize_characteristic_values = normalize_characteristic_values