蓄谋机制更新

This commit is contained in:
Spmario233 2024-01-13 11:10:41 +08:00
parent 7369c6af78
commit 2c5cd401a4
7 changed files with 9 additions and 7 deletions

View File

@ -67,9 +67,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
perfectPair:{},
card:{
xumou_jsrg:{
type:'delay',
type:'special_delay',
allowDuplicate:true,
blankCard:true,
fullimage:true,
effect:function(){
'step 0'
var card=event.cards[0];

View File

@ -133,7 +133,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
perfectPair:{},
card:{
yanxiao_card:{
type:'delay',
type:'special_delay',
fullimage:true,
noEffect:true,
ai:{

View File

@ -91,7 +91,7 @@ new Promise(resolve => {
script.async = true
script.onerror = (event) => {
console.error(event)
const message = `您使用的浏览器或无名杀客户端加载内容失败!\n请检查游戏环境以及"(游戏根目录)/game/entry.js"文件的位置\n若该BUG不为您个人原因造成的请及时反馈给无名杀开发组`;
const message = `您使用的浏览器或无名杀客户端加载内容失败!\n若您使用的客户端为旧版“兼容版”或其他内核较低的版本,请及时更新客户端版本!\n请检查游戏环境以及"(游戏根目录)/game/entry.js"文件的位置\n若该BUG不为您个人原因造成的请及时反馈给无名杀开发组`;
console.error(message);
alert(message);
exit()

BIN
image/card/xumou_jsrg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -7399,7 +7399,7 @@ export class Game extends Uninstantable {
if (card.ai.basic.value == undefined) card.ai.basic.value = aiBasicValue;
if (!card.ai.result.keepAI) card.ai.result.target = aiResultTarget;
}
else if (card.type == 'delay') {
else if (card.type == 'delay' || card.type == 'special_delay') {
if (card.enable == undefined) card.enable = true;
if (card.filterTarget == undefined) card.filterTarget = lib.filter.judge;
if (card.content == undefined) card.content = lib.element.content.addJudgeCard;

View File

@ -5210,7 +5210,7 @@ export const Content = {
if (!info || !info.blankCard) return true;
return false;
});
if (shown.length < js.length) {
if (shown.length < js.length && !target.isUnderControl(true)) {
var hidden = js.filter(card => !shown.includes(card));
var buttons = ui.create.div('.buttons', event.dialog.content);
event.dialog.buttons = event.dialog.buttons.concat(ui.create.buttons(shown, 'card', buttons));
@ -5385,7 +5385,7 @@ export const Content = {
if (!info || !info.blankCard) return true;
return false;
});
if (shown.length < js.length) {
if (shown.length < js.length && !target.isUnderControl(true)) {
var hidden = js.filter(card => !shown.includes(card));
var buttons = ui.create.div('.buttons', event.dialog.content);
event.dialog.buttons = event.dialog.buttons.concat(ui.create.buttons(shown, 'card', buttons));
@ -5585,7 +5585,7 @@ export const Content = {
if (!info || !info.blankCard) return true;
return false;
});
if (shown.length < js.length) {
if (shown.length < js.length && !target.isUnderControl(true)) {
var hidden = js.filter(card => !shown.includes(card));
var buttons = ui.create.div('.buttons', event.dialog.content);
event.dialog.buttons = event.dialog.buttons.concat(ui.create.buttons(shown, 'card', buttons));

View File

@ -9271,6 +9271,7 @@ export class Library extends Uninstantable {
equip: '装备',
trick: '锦囊',
delay: '延时锦囊',
special_delay: '技能机制',
character: '角色',
revive: '复活',
equip1: '武器',