mirror of
https://github.com/evennia/evennia.git
synced 2025-11-01 16:16:54 +00:00
Merge branch 'main' into evadventure_work
This commit is contained in:
commit
979a79e832
@ -2555,12 +2555,14 @@ def interactive(func):
|
||||
elif isinstance(value, str):
|
||||
if not caller:
|
||||
raise ValueError(
|
||||
"To retrieve input from a @pausable method, that method "
|
||||
"must be called with a 'caller' argument)"
|
||||
"To use `result yield('prompt')` in an @interactive method, that "
|
||||
"method must have an argument named `caller`.)"
|
||||
)
|
||||
get_input(caller, value, _process_input, generator=generator)
|
||||
else:
|
||||
raise ValueError("yield(val) in a @pausable method must have an int/float as arg.")
|
||||
raise ValueError(
|
||||
"yield(val) in an @interactive method must have an int/float as arg."
|
||||
)
|
||||
|
||||
def decorator(*args, **kwargs):
|
||||
argnames = inspect.getfullargspec(func).args
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user