Avoid shadowing the builtin
This commit is contained in:
parent
c816674c7c
commit
e4d64839b8
@ -11,25 +11,25 @@ init -1 python:
|
|||||||
__check_exists(key)
|
__check_exists(key)
|
||||||
return getattr(states, key[:3]).wardrobe_scheduling
|
return getattr(states, key[:3]).wardrobe_scheduling
|
||||||
|
|
||||||
def get_character_requirement(key, type):
|
def get_character_requirement(key, typ):
|
||||||
__check_exists(key)
|
__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)
|
__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):
|
def get_character_object(key):
|
||||||
__check_exists(key)
|
__check_exists(key)
|
||||||
return getattr(store, key)
|
return getattr(store, key)
|
||||||
|
|
||||||
def get_character_outfit(key, type="default"):
|
def get_character_outfit(key, typ="default"):
|
||||||
__check_exists(key)
|
__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)
|
__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):
|
def get_character_outfit_req(key, item):
|
||||||
__check_exists(key)
|
__check_exists(key)
|
||||||
|
Loading…
Reference in New Issue
Block a user