Warn about using reset_variables
This commit is contained in:
parent
be88d0ed7e
commit
04f76d2b54
@ -102,7 +102,10 @@ init python early:
|
|||||||
print(e)
|
print(e)
|
||||||
|
|
||||||
def reset_variables(*args):
|
def reset_variables(*args):
|
||||||
"""Resets the given variables to their default values."""
|
"""
|
||||||
|
Resets the given variables to their default values.
|
||||||
|
Should not be used : instead, define the base value and have a function set the defaulted one to the defined value (or a copy of it).
|
||||||
|
"""
|
||||||
# Refer to renpy.ast.Default.set_default for implementation details
|
# Refer to renpy.ast.Default.set_default for implementation details
|
||||||
defaults_set = renpy.store._defaults_set
|
defaults_set = renpy.store._defaults_set
|
||||||
changed_set = renpy.store.__dict__.ever_been_changed
|
changed_set = renpy.store.__dict__.ever_been_changed
|
||||||
|
Loading…
Reference in New Issue
Block a user