Avoid shadowing the builtin

(cherry picked from commit e4d64839b8)
This commit is contained in:
Gouvernathor 2024-03-26 19:43:42 +01:00 committed by LoafyLemon
parent 9182e5b750
commit f673985bc3

View File

@ -11,25 +11,25 @@ init -1 python:
__check_exists(key)
return getattr(states, key[:3]).wardrobe_scheduling
def get_character_requirement(key, type):
def get_character_requirement(key, typ):
__check_exists(key)
return getattr(renpy.store, key[:3]+"_requirements").get(type, 0)
return getattr(renpy.store, key[:3]+"_requirements").get(typ, 0)
def get_character_response(key, type):
def get_character_response(key, typ):
__check_exists(key)
return getattr(renpy.store, key[:3]+"_responses").get(type)
return getattr(renpy.store, key[:3]+"_responses").get(typ)
def get_character_object(key):
__check_exists(key)
return getattr(store, key)
def get_character_outfit(key, type="default"):
def get_character_outfit(key, typ="default"):
__check_exists(key)
return getattr(store, "{}_outfit_{}".format(key[:3], type))
return getattr(store, "{}_outfit_{}".format(key[:3], typ))
def get_character_body(key, type="default"):
def get_character_body(key, typ="default"):
__check_exists(key)
return getattr(store, "{}_body_{}".format(key[:3], type))
return getattr(store, "{}_body_{}".format(key[:3], typ))
def get_character_outfit_req(key, item):
__check_exists(key)