Take care of the new additions in 0.0.20250202000

This commit is contained in:
Sei Lisa 2025-02-02 13:01:28 +01:00
parent 42bc44d583
commit 822c9e00d1
5 changed files with 197 additions and 17 deletions

View file

@ -229,7 +229,7 @@ def LoadLibrary(builtins = None, fndata = None):
r'("(?:\\.|[^"])*"|<[^>]+>|[-+0-9x.e]+' # strings, vectors, numbers
r'|\[(?:[^]"]|"(?:\\.|[^"])*")*\]))' # lists
r'(?:\s+if\s+(.*\S))?'
r'|(unstable|stop|strlen|detect|touch|grab)'
r'|(unstable|stop|strlen|detect|touch|grab|damage)'
r'|(min|max|delay)\s+([-0-9.]+)'
r'|listto\s+(integer|float|string|key|vector|rotation|list)'
r')\s*$'), re.I)
@ -362,7 +362,7 @@ def LoadLibrary(builtins = None, fndata = None):
elif curr_ty == 'event':
if match_flag.group(4):
flag = match_flag.group(4).lower()
if flag in ('detect','touch','grab'):
if flag in ('detect','touch','grab', 'damage'):
events[curr_fn][flag] = True
else:
warning(u"Events only support a few flags"