Merge pull request #820 from Tipx-L/PR-Branch
Finally fix the gift mechanic.
This commit is contained in:
commit
70cfb46fb1
|
@ -414,7 +414,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
||||||
filter:(event,player)=>event.player!=player,
|
filter:(event,player)=>event.player!=player,
|
||||||
logTarget:'player',
|
logTarget:'player',
|
||||||
content:()=>{
|
content:()=>{
|
||||||
trigger.deniedGift.add(trigger.card);
|
trigger.deniedGifts.add(trigger.card);
|
||||||
},
|
},
|
||||||
ai:{
|
ai:{
|
||||||
refuseGifts:true
|
refuseGifts:true
|
||||||
|
|
|
@ -710,7 +710,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
player.storage.xinluoshen=event.cards.slice(0);
|
player.storage.xinluoshen=event.cards.slice(0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mod:{
|
mod:{
|
||||||
|
|
|
@ -8434,6 +8434,6 @@ export class Game extends Uninstantable {
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
export const game = Game;
|
export const game = Game;
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
import { AI as ai } from '../../ai/index.js';
|
|
||||||
import { Get as get } from '../../get/index.js';
|
import { Get as get } from '../../get/index.js';
|
||||||
import { Game as game } from '../../game/index.js';
|
import { Game as game } from '../../game/index.js';
|
||||||
import { Library as lib } from "../index.js";
|
import { Library as lib } from "../index.js";
|
||||||
import { status as _status } from '../../status/index.js';
|
import { status as _status } from '../../status/index.js';
|
||||||
import { UI as ui } from '../../ui/index.js';
|
|
||||||
import { AsyncFunction } from '../../util/index.js';
|
import { AsyncFunction } from '../../util/index.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,7 +14,7 @@ import { AsyncFunction } from '../../util/index.js';
|
||||||
* 且Promise的原有属性无法被修改,一切对这个类实例的属性修改,删除,
|
* 且Promise的原有属性无法被修改,一切对这个类实例的属性修改,删除,
|
||||||
* 再配置等操作都会转发到事件对应的属性中。
|
* 再配置等操作都会转发到事件对应的属性中。
|
||||||
*
|
*
|
||||||
* @template { GameEvent } T
|
* @extends {Promise<GameEvent>}
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* 使用await xx()等待异步事件执行:
|
* 使用await xx()等待异步事件执行:
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* @typedef { InstanceType<typeof lib.element.Button> } Button
|
* @typedef { InstanceType<typeof lib.element.Button> } Button
|
||||||
* @typedef { InstanceType<typeof lib.element.Dialog> } Dialog
|
* @typedef { InstanceType<typeof lib.element.Dialog> } Dialog
|
||||||
* @typedef { InstanceType<typeof lib.element.GameEvent> } GameEvent
|
* @typedef { InstanceType<typeof lib.element.GameEvent> } GameEvent
|
||||||
* @typedef { InstanceType<typeof lib.element.GameEvent> & InstanceType<typeof lib.element.GameEventPromise & typeof Promise<InstanceType<typeof lib.element.GameEvent>> } GameEventPromise
|
* @typedef { InstanceType<typeof lib.element.GameEvent> & InstanceType<typeof lib.element.GameEventPromise> } GameEventPromise
|
||||||
* @typedef { InstanceType<typeof lib.element.NodeWS> } NodeWS
|
* @typedef { InstanceType<typeof lib.element.NodeWS> } NodeWS
|
||||||
* @typedef { InstanceType<typeof lib.element.Control> } Control
|
* @typedef { InstanceType<typeof lib.element.Control> } Control
|
||||||
*/
|
*/
|
||||||
|
@ -13088,7 +13088,7 @@ export class Library extends Uninstantable {
|
||||||
static other = {
|
static other = {
|
||||||
ignore: () => void 0
|
ignore: () => void 0
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
Library.config = undefined;
|
Library.config = undefined;
|
||||||
Library.configOL = undefined;
|
Library.configOL = undefined;
|
||||||
|
|
Loading…
Reference in New Issue