Skip to content

Commit

Permalink
Update 0.10.1
Browse files Browse the repository at this point in the history
Change: 不再限制Arc.fx
  • Loading branch information
feightwywx committed Aug 30, 2023
1 parent cd856e1 commit 5ee44d2
Show file tree
Hide file tree
Showing 4 changed files with 3,807 additions and 3,145 deletions.
2 changes: 1 addition & 1 deletion docs/api/aff-note.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Note容器内所有Note的Note语句形式字符串。如果`desnity`属性为`1
|color|int|`0`~`3`,分别为蓝,红,绿,未知|
|isskyline|bool|是否为黑线|
|skynote|list|天键时间点列表|`None`|
|fx|str|FX,支持值见`note.validstrings.fxlist`|`None`|
|fx|str|FX,可用于天键打击音|`None`|


### 方法
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="arcfutil",
version="0.10.0",
version="0.10.1",
author=".direwolf",
author_email="[email protected]",
description="A Python module designed for processing Arcaea related files(.aff chart, songlist, etc.)",
Expand Down
10 changes: 5 additions & 5 deletions src/arcfutil/aff/note/arc.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ def __setattr__(self, key, value):
pass
else:
raise AffNoteValueError(f"invalid type '{type(value).__name__}' for attribute slideeasing (excepting str, Callable or List)")
elif key == 'fx' and value is not None:
if value not in validstrings.fxlist:
raise AffNoteValueError('invalid value {} for attribute "fx" (only accept {})'.format(
value, str(validstrings.fxlist)
))
# elif key == 'fx' and value is not None:
# if value not in validstrings.fxlist:
# raise AffNoteValueError('invalid value {} for attribute "fx" (only accept {})'.format(
# value, str(validstrings.fxlist)
# ))

def __geteasingtype(self):
se = self.slideeasing
Expand Down
Loading

0 comments on commit 5ee44d2

Please sign in to comment.