mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-08-08 18:55:45 -05:00
Use "in" clause on dict instead of new method
This commit is contained in:
parent
0825671ccb
commit
f4f1817e31
|
|
@ -70,8 +70,7 @@ class PlayerInfo:
|
|||
|
||||
idx = 0
|
||||
|
||||
# Empty option set is a non-zero opt array, unsure how to do this check with validated_dict cleanly?
|
||||
if not profile.has_key("opt"):
|
||||
if "opt" not in profile:
|
||||
profile.replace_int_array("opt", 16, [2, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 2, 0, 0, 0, 0])
|
||||
|
||||
for entry in profile.get_int_array("opt", 16):
|
||||
|
|
|
|||
|
|
@ -444,12 +444,6 @@ class ValidatedDict(dict):
|
|||
else:
|
||||
self[name] = self[name] + 1
|
||||
|
||||
def has_key(self, name: str) -> bool:
|
||||
if name in self:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
|
||||
class Profile(ValidatedDict):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user