mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 20:58:19 +08:00
Add: Save and upload commission drop screenshots
This commit is contained in:
@@ -55,11 +55,13 @@ class Item:
|
||||
def name(self, value):
|
||||
"""
|
||||
Args:
|
||||
value (str): Item name, Camel-Case, such as 'PlateGeneralT3'. Suffix in name will be ignore.
|
||||
value (str): Item name, such as 'PlateGeneralT3'. Suffix in name will be ignore.
|
||||
For example, 'Javelin' and 'Javelin_2' are different templates, but have same output name 'Javelin'.
|
||||
"""
|
||||
if '_' in value:
|
||||
value = value.split('_')[0]
|
||||
pre, suffix = value.rsplit('_', 1)
|
||||
if suffix.isdigit():
|
||||
value = pre
|
||||
self._name = value
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user