parent
5659c4e4f4
commit
b62fbcb179
@ -1,12 +1,12 @@
|
|||||||
init python:
|
init python:
|
||||||
def wardrobe_check_category(category):
|
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)
|
flag = get_character_progression(states.active_girl)
|
||||||
|
|
||||||
return (flag >= req)
|
return (flag >= req)
|
||||||
|
|
||||||
def wardrobe_check_touch(what):
|
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)
|
flag = get_character_progression(states.active_girl)
|
||||||
|
|
||||||
return (flag >= req)
|
return (flag >= req)
|
||||||
@ -18,7 +18,7 @@ init python:
|
|||||||
return (flag >= req)
|
return (flag >= req)
|
||||||
|
|
||||||
def wardrobe_check_unequip(item):
|
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)
|
flag = get_character_progression(states.active_girl)
|
||||||
|
|
||||||
return (flag >= req)
|
return (flag >= req)
|
||||||
@ -45,7 +45,7 @@ init python:
|
|||||||
if not item.blacklist:
|
if not item.blacklist:
|
||||||
return True
|
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)
|
flag = get_character_progression(states.active_girl)
|
||||||
|
|
||||||
return (flag >= req)
|
return (flag >= req)
|
||||||
@ -53,7 +53,7 @@ init python:
|
|||||||
def wardrobe_fallback_required(item):
|
def wardrobe_fallback_required(item):
|
||||||
fallbacks = {"top", "bottom", "bra", "panties"}
|
fallbacks = {"top", "bottom", "bra", "panties"}
|
||||||
char = get_character_object(states.active_girl)
|
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:
|
if not req:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user