feat: 添加炫耀逻辑

This commit is contained in:
chenkai 2023-12-21 20:16:29 +08:00
parent 82b4b61725
commit 2ae2a1362d
3 changed files with 18 additions and 4 deletions

View File

@ -1,8 +1,8 @@
import { ApiCall } from "tsrpc";
import { HuoDongFun } from "../../../public/huodongfun";
import { ReqReceive, ResReceive } from '../../../shared/protocols/event/payForDiamond/PtlReceive';
import { playerCanReceive } from './ApiCanReceive';
import { PublicShared } from "../../../shared/public/public";
import { ChatFun } from "../../../public/chat";
type diamondWeightGroup = {
weight: number;
@ -98,7 +98,16 @@ export default async function (call: ApiCall<ReqReceive, ResReceive>) {
}
// 发送炫耀
if (gotAmount >= activityData['groupConf']['base']['loglimit']) {
ChatFun.newMsg({
type: 'local',
msg: G.gc.pmd.get_hero_star5_pmd,
time: G.time,
sender: 'system',
otherData: {
pmd: true,
args: [gotAmount]
}
});
}
}
}

View File

@ -14,5 +14,7 @@
//黑帮争霸争霸赛第二名
hbzb_pmd2: 'intr_pmd_hbzb2',
//黑帮争霸争霸赛第三名
hbzb_pmd3: 'intr_pmd_hbzb3'
hbzb_pmd3: 'intr_pmd_hbzb3',
// 充值抢钻石 - 抢到大量钻石
pay_for_diamond: 'intr_pmd_pfd'
}

View File

@ -50,7 +50,10 @@ export type eventType = {
qirichongzhi: Omit<ResOpenQirichongzhi, 'finished'>;
jierihuodong: Omit<ResOpenJierihuodong, 'taskFinish'> & { refreshTime: number; };
kaifujingsai: ResOpenKaifujingsai;
zhoumolibao: ResOpenZhoumolibao & { refreshTime: number; }
zhoumolibao: ResOpenZhoumolibao & { refreshTime: number; };
payForDiamond: {
[time: number]: number[]
}
} & {
[k: `${number}jijin`]: ResOpenYuedujijin;
[k: `yangchengmubiao${number}`]: yangchengmubiao;