forked from Dniel97/artemis
wacca: fix bad items being given
This commit is contained in:
parent
b4a0d331d4
commit
0eee2e92a8
@ -237,6 +237,11 @@ class WaccaBase:
|
|||||||
if profileId is None:
|
if profileId is None:
|
||||||
return BaseResponse().make()
|
return BaseResponse().make()
|
||||||
|
|
||||||
|
if profileId == 0:
|
||||||
|
# We've already made this profile, just return success
|
||||||
|
new_user = self.data.profile.get_profile(aime_id=req.aimeId)
|
||||||
|
profileId = new_user['id']
|
||||||
|
|
||||||
# Insert starting items
|
# Insert starting items
|
||||||
self.data.item.put_item(req.aimeId, WaccaConstants.ITEM_TYPES["title"], 104001)
|
self.data.item.put_item(req.aimeId, WaccaConstants.ITEM_TYPES["title"], 104001)
|
||||||
self.data.item.put_item(req.aimeId, WaccaConstants.ITEM_TYPES["title"], 104002)
|
self.data.item.put_item(req.aimeId, WaccaConstants.ITEM_TYPES["title"], 104002)
|
||||||
@ -256,25 +261,11 @@ class WaccaBase:
|
|||||||
self.data.item.put_item(
|
self.data.item.put_item(
|
||||||
req.aimeId, WaccaConstants.ITEM_TYPES["note_sound"], 105001
|
req.aimeId, WaccaConstants.ITEM_TYPES["note_sound"], 105001
|
||||||
)
|
)
|
||||||
self.data.item.put_item(
|
|
||||||
req.aimeId, WaccaConstants.ITEM_TYPES["note_sound"], 205005
|
|
||||||
) # Added lily
|
|
||||||
|
|
||||||
self.data.item.put_item(
|
self.data.item.put_item(
|
||||||
req.aimeId, WaccaConstants.ITEM_TYPES["navigator"], 210001
|
req.aimeId, WaccaConstants.ITEM_TYPES["navigator"], 210001
|
||||||
)
|
)
|
||||||
|
|
||||||
self.data.item.put_item(
|
|
||||||
req.aimeId, WaccaConstants.ITEM_TYPES["user_plate"], 211001
|
|
||||||
) # Added lily
|
|
||||||
|
|
||||||
self.data.item.put_item(
|
|
||||||
req.aimeId, WaccaConstants.ITEM_TYPES["touch_effect"], 312000
|
|
||||||
) # Added reverse
|
|
||||||
self.data.item.put_item(
|
|
||||||
req.aimeId, WaccaConstants.ITEM_TYPES["touch_effect"], 312001
|
|
||||||
) # Added reverse
|
|
||||||
|
|
||||||
return UserStatusCreateResponseV2(profileId, req.username).make()
|
return UserStatusCreateResponseV2(profileId, req.username).make()
|
||||||
|
|
||||||
def handle_user_status_getDetail_request(self, data: Dict) -> Dict:
|
def handle_user_status_getDetail_request(self, data: Dict) -> Dict:
|
||||||
|
@ -43,18 +43,26 @@ class WaccaLily(WaccaS):
|
|||||||
|
|
||||||
def handle_user_status_create_request(self, data: Dict) -> Dict:
|
def handle_user_status_create_request(self, data: Dict) -> Dict:
|
||||||
req = UserStatusCreateRequest(data)
|
req = UserStatusCreateRequest(data)
|
||||||
super().handle_user_status_create_request(data)
|
ret = super().handle_user_status_create_request(data)
|
||||||
|
|
||||||
new_user = self.data.profile.get_profile(aime_id=req.aimeId)
|
new_user = self.data.profile.get_profile(aime_id=req.aimeId)
|
||||||
|
|
||||||
if new_user is None:
|
if new_user is None:
|
||||||
return BaseResponse().make()
|
return BaseResponse().make()
|
||||||
|
|
||||||
|
self.data.item.put_item(
|
||||||
|
req.aimeId, WaccaConstants.ITEM_TYPES["user_plate"], 211001
|
||||||
|
) # Added lily
|
||||||
|
|
||||||
|
self.data.item.put_item(
|
||||||
|
req.aimeId, WaccaConstants.ITEM_TYPES["note_sound"], 205005
|
||||||
|
) # Added lily
|
||||||
|
|
||||||
self.data.item.put_item(
|
self.data.item.put_item(
|
||||||
req.aimeId, WaccaConstants.ITEM_TYPES["navigator"], 210002
|
req.aimeId, WaccaConstants.ITEM_TYPES["navigator"], 210002
|
||||||
) # Lily, Added Lily
|
) # Lily, Added Lily
|
||||||
|
|
||||||
return UserStatusCreateResponseV1(new_user['id'], new_user['username']).make()
|
return ret
|
||||||
|
|
||||||
def handle_user_status_get_request(self, data: Dict) -> Dict:
|
def handle_user_status_get_request(self, data: Dict) -> Dict:
|
||||||
req = UserStatusGetRequest(data)
|
req = UserStatusGetRequest(data)
|
||||||
|
@ -316,4 +316,11 @@ class WaccaReverse(WaccaLilyR):
|
|||||||
req.aimeId, WaccaConstants.ITEM_TYPES["navigator"], 310002
|
req.aimeId, WaccaConstants.ITEM_TYPES["navigator"], 310002
|
||||||
) # Added reverse
|
) # Added reverse
|
||||||
|
|
||||||
|
self.data.item.put_item(
|
||||||
|
req.aimeId, WaccaConstants.ITEM_TYPES["touch_effect"], 312000
|
||||||
|
) # Added reverse
|
||||||
|
self.data.item.put_item(
|
||||||
|
req.aimeId, WaccaConstants.ITEM_TYPES["touch_effect"], 312001
|
||||||
|
) # Added reverse
|
||||||
|
|
||||||
return resp
|
return resp
|
||||||
|
Loading…
Reference in New Issue
Block a user