mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-14 13:54:43 +01:00
16 lines
523 B
Python
16 lines
523 B
Python
import betterproto
|
|
from game_server.net.session import Session
|
|
from utils.time import get_unix_in_seconds
|
|
from lib.proto import GetBuffEffectReq, GetBuffEffectRsp, BuffEffect
|
|
|
|
|
|
async def handle(session: Session, msg: GetBuffEffectReq) -> betterproto.Message:
|
|
return GetBuffEffectRsp(
|
|
retcode=0,
|
|
effect_list=[
|
|
BuffEffect(effect_id=i, end_time=int(get_unix_in_seconds() + 3600 * 24 * 7))
|
|
for i in msg.effect_id_list
|
|
],
|
|
aura_effect_list=msg.effect_id_list[:],
|
|
)
|