Merge branch 'feature/weiwang' into dev

This commit is contained in:
xichaoyin 2024-01-04 17:17:28 +08:00
commit e2df48498a
5 changed files with 7 additions and 7 deletions

View File

@ -1319,7 +1319,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
},
{
"id": 38,
"name": "weiwang",
"name": "weiwangbuff",
"type": {
"type": "Interface",
"indexSignature": {

View File

@ -2640,7 +2640,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
},
{
"id": 38,
"name": "weiwang",
"name": "weiwangbuff",
"type": {
"type": "Interface",
"indexSignature": {

View File

@ -106,7 +106,7 @@ export class FightFun {
if (["tanxian"].indexOf(type) != -1) {
// 威望buff
let weiwang = await G.mongodb.collection("weiwang").findOne({ uid: call.uid });
ext_buff["weiwang"] = weiwang?.buff ? weiwang.buff : { "atk": 0, "def": 0, "hp": 0 };
ext_buff["weiwangbuff"] = weiwang?.buff ? weiwang.buff : { "atk": 0, "def": 0, "hp": 0 };
}
let my = data || await call.conn.getDefaultFightData(undefined, ext_buff);

View File

@ -4588,7 +4588,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
},
{
"id": 38,
"name": "weiwang",
"name": "weiwangbuff",
"type": {
"type": "Interface",
"indexSignature": {
@ -5846,7 +5846,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
},
{
"id": 38,
"name": "weiwang",
"name": "weiwangbuff",
"type": {
"type": "Interface",
"indexSignature": {
@ -24447,7 +24447,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
},
{
"id": 38,
"name": "weiwang",
"name": "weiwangbuff",
"type": {
"type": "Interface",
"indexSignature": {

View File

@ -194,5 +194,5 @@ export type playerAppend = {
[id: string]: number;
};
/**威望额外属性*/
weiwang?: { [k: string]: number };
weiwangbuff?: { [k: string]: number };
};