More f-strings

(cherry picked from commit 15b6025d39)
This commit is contained in:
Gouvernathor 2024-03-26 19:56:38 +01:00 committed by LoafyLemon
parent 5659c4e4f4
commit b62fbcb179

View File

@ -1,12 +1,12 @@
init python:
def wardrobe_check_category(category):
req = get_character_requirement(states.active_girl, "category {}".format(category))
req = get_character_requirement(states.active_girl, f"category {category}")
flag = get_character_progression(states.active_girl)
return (flag >= req)
def wardrobe_check_touch(what):
req = get_character_requirement(states.active_girl, "touch {}".format(what))
req = get_character_requirement(states.active_girl, f"touch {what}")
flag = get_character_progression(states.active_girl)
return (flag >= req)
@ -18,7 +18,7 @@ init python:
return (flag >= req)
def wardrobe_check_unequip(item):
req = get_character_requirement(states.active_girl, "unequip {}".format(item.type))
req = get_character_requirement(states.active_girl, f"unequip {item.type}")
flag = get_character_progression(states.active_girl)
return (flag >= req)
@ -45,7 +45,7 @@ init python:
if not item.blacklist:
return True
req = max( ( get_character_requirement(states.active_girl, "unequip {}".format(i)) for i in item.blacklist ) )
req = max((get_character_requirement(states.active_girl, f"unequip {i}") for i in item.blacklist))
flag = get_character_progression(states.active_girl)
return (flag >= req)
@ -53,7 +53,7 @@ init python:
def wardrobe_fallback_required(item):
fallbacks = {"top", "bottom", "bra", "panties"}
char = get_character_object(states.active_girl)
req = [get_character_requirement(states.active_girl, "unequip {}".format(i)) for i in fallbacks if not char.is_equipped(i) and not i in char.blacklist]
req = [get_character_requirement(states.active_girl, f"unequip {i}") for i in fallbacks if not char.is_equipped(i) and not i in char.blacklist]
if not req:
return False