mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-18 08:01:30 +08:00
Fix: limitation should not be None
This commit is contained in:
@@ -30,7 +30,7 @@ class Ship:
|
|||||||
def satisfy_limitation(self, limitaion) -> bool:
|
def satisfy_limitation(self, limitaion) -> bool:
|
||||||
for key in self.__dict__:
|
for key in self.__dict__:
|
||||||
value = limitaion.get(key)
|
value = limitaion.get(key)
|
||||||
if value is not None:
|
if self.__dict__[key] is not None:
|
||||||
# str and int should be exactly equal to
|
# str and int should be exactly equal to
|
||||||
if isinstance(value, (str, int)):
|
if isinstance(value, (str, int)):
|
||||||
if value == 'any':
|
if value == 'any':
|
||||||
|
|||||||
Reference in New Issue
Block a user