mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-11 02:17:28 +08:00
Update to v2.8
This commit is contained in:
@@ -1034,6 +1034,21 @@ def arc_all_get(user_id):
|
||||
"mi": 3,
|
||||
"c": True,
|
||||
"r": True
|
||||
}, {
|
||||
"ma": 11,
|
||||
"mi": 1,
|
||||
"c": True,
|
||||
"r": True
|
||||
}, {
|
||||
"ma": 11,
|
||||
"mi": 2,
|
||||
"c": True,
|
||||
"r": True
|
||||
}, {
|
||||
"ma": 11,
|
||||
"mi": 3,
|
||||
"c": True,
|
||||
"r": True
|
||||
}]
|
||||
unlocklist_data = [{
|
||||
"unlock_key": "worldvanquisher|1|0",
|
||||
|
||||
@@ -7,10 +7,12 @@ import server.info
|
||||
import server.arcpurchase
|
||||
import os
|
||||
import time
|
||||
import random
|
||||
|
||||
|
||||
ETO_UNCAP_BONUS_PROGRESS = 7
|
||||
LUNA_UNCAP_BONUS_PROGRESS = 7
|
||||
AYU_UNCAP_BONUS_PROGRESS = 5
|
||||
|
||||
|
||||
def int2b(x):
|
||||
@@ -452,9 +454,9 @@ def world_update(c, user_id, song_id, difficulty, rating, clear_type, beyond_gau
|
||||
# Eto和Luna的技能
|
||||
character_bonus_progress = None
|
||||
skill_special = ''
|
||||
if skill_uncap is not None and skill_uncap and skill_uncap in ['eto_uncap', 'luna_uncap']:
|
||||
if skill_uncap is not None and skill_uncap and skill_uncap in ['eto_uncap', 'luna_uncap', 'ayu_uncap']:
|
||||
skill_special = skill_uncap
|
||||
elif skill is not None and skill and skill in ['eto_uncap', 'luna_uncap']:
|
||||
elif skill is not None and skill and skill in ['eto_uncap', 'luna_uncap', 'ayu_uncap']:
|
||||
skill_special = skill
|
||||
if skill_special == 'eto_uncap':
|
||||
# eto觉醒技能,获得残片奖励时世界模式进度加7
|
||||
@@ -480,6 +482,21 @@ def world_update(c, user_id, song_id, difficulty, rating, clear_type, beyond_gau
|
||||
rewards, steps, curr_position, curr_capture, info = climb_step(
|
||||
user_id, map_id, step, y[3], y[2]) # 二次爬梯,重新计算
|
||||
|
||||
elif skill_special == 'ayu_uncap':
|
||||
# ayu觉醒技能,世界模式进度+5或-5,但不会小于0
|
||||
if random.random() >= 0.5:
|
||||
character_bonus_progress = AYU_UNCAP_BONUS_PROGRESS
|
||||
else:
|
||||
character_bonus_progress = -AYU_UNCAP_BONUS_PROGRESS
|
||||
|
||||
step += character_bonus_progress * step_times
|
||||
if step < 0:
|
||||
character_bonus_progress += step / step_times
|
||||
step = 0
|
||||
|
||||
rewards, steps, curr_position, curr_capture, info = climb_step(
|
||||
user_id, map_id, step, y[3], y[2]) # 二次爬梯,重新计算
|
||||
|
||||
for i in rewards: # 物品分发
|
||||
for j in i['items']:
|
||||
amount = j['amount'] if 'amount' in j else 1
|
||||
|
||||
Reference in New Issue
Block a user