mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-02 08:08:20 +00:00
Take care of the new additions in 0.0.20250202000
This commit is contained in:
parent
42bc44d583
commit
822c9e00d1
5 changed files with 197 additions and 17 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue