Skip to content

Commit 7eb288d

Browse files
authored
Merge pull request #2695 from AstralBarrage/PRBranch
2 parents 6b4583f + ab72d6b commit 7eb288d

23 files changed

+189
-27
lines changed

character/clan/skill.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ const skills = {
393393
if (get.type(card, player) != "equip") {
394394
return false;
395395
}
396-
return lib.filter.cardDiscardable(card, player, "clanjuewei") || lib.filter.cardRecastable(card, player, "clanjuewei");
396+
return lib.filter.cardDiscardable(card, player, "clanjuewei") || lib.filter.cardRecastable(card, player);
397397
});
398398
},
399399
usable: 1,
@@ -412,12 +412,13 @@ const skills = {
412412
],
413413
])
414414
.set("filterButton", button => {
415-
const player = get.player();
415+
const player = get.player(),
416+
source = button.link == "Recast" ? null : "clanjuewei";
416417
return player.countCards("he", card => {
417418
if (get.type(card, player) != "equip") {
418419
return false;
419420
}
420-
return lib.filter[`card${button.link}able`](card, player, "clanjuewei");
421+
return lib.filter[`card${button.link}able`](card, player, source);
421422
});
422423
})
423424
.set("ai", button => {
@@ -452,8 +453,9 @@ const skills = {
452453
"绝围",
453454
link == "Recast" ? prompt1 : prompt2,
454455
card => {
455-
const { player, actType: type } = get.event();
456-
return get.type(card, player) == "equip" && lib.filter[type](card, player, "clanjuewei");
456+
const { player, actType: type } = get.event(),
457+
source = type == "Recast" ? null : "clanjuewei";
458+
return get.type(card, player) == "equip" && lib.filter[type](card, player, source);
457459
},
458460
"he"
459461
)

character/mobile/dynamicTranslate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { lib, game, ui, get, ai, _status } from "../../noname.js";
33
const dynamicTranslates = {
44
potkuanggu(player) {
55
if (player.getStorage("potkuanggu", 0)) {
6-
return lib.translate["potkuanggu_rewrite_info"];
6+
return lib.translate["potkuanggu_pot_weiyan_achieve_info"];
77
}
88
return lib.translate["potkuanggu_info"];
99
},

character/offline/character.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ const characters = {
531531
hp: 3,
532532
skills: ["xkbimeng", "xkzhue", "xkfuzhu"],
533533
doubleGroup: ["shu", "qun"],
534+
names: "徐|庶",
534535
},
535536
xk_pengqi: {
536537
sex: "female",

character/rank.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ window.noname_character_rank = {
387387
"ps_caopi",
388388
"ps2063_zhaoyun",
389389
"shen_jiaxu",
390+
"renwan",
390391
],
391392
am: [
392393
"dc_zhaoxiang",
@@ -1811,8 +1812,8 @@ window.noname_character_rank = {
18111812
"old_majun",
18121813
],
18131814
bm: [
1814-
"std_zhangmeiren",
1815-
"std_wangmeiren",
1815+
"std_zhangyao",
1816+
"std_wangfuren",
18161817
"std_panglin",
18171818
"std_huangchong",
18181819
"std_caoxiong",
@@ -2728,6 +2729,7 @@ window.noname_character_rank = {
27282729
"diy_zhangfei",
27292730
"sxrm_caocao",
27302731
"wn_shen_machao",
2732+
"renwan",
27312733
],
27322734
epic: [
27332735
"pe_jun_liubei",
@@ -3244,8 +3246,8 @@ window.noname_character_rank = {
32443246
"sxrm_liubei",
32453247
],
32463248
rare: [
3247-
"std_zhangmeiren",
3248-
"std_wangmeiren",
3249+
"std_zhangyao",
3250+
"std_wangfuren",
32493251
"std_panglin",
32503252
"std_huangchong",
32513253
"std_caoxiong",

character/replace.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ window.noname_character_replace = {
286286
xunyu: ["xunyu", "ol_xunyu", "dc_sb_xunyu", "star_xunyu", "re_xunyu", "sb_xunyu", "sxrm_xunyu"],
287287
xushao: ["xushao", "jsrg_xushao"],
288288
xusheng: ["xusheng", "xin_xusheng", "re_xusheng", "old_xusheng", "drag_xusheng"],
289-
xushu: ["xin_xushu", "re_xushu", "dc_xushu", "friend_xushu", "xia_xushu", "std_xushu", "xushu"],
289+
xushu: ["xin_xushu", "re_xushu", "dc_xushu", "friend_xushu", "xia_xushu", "std_xushu", "xushu", "xk_shanfu"],
290290
xuyou: ["xuyou", "sp_xuyou", "jsrg_xuyou", "yj_xuyou", "junk_xuyou"],
291291
xuzhu: ["xuzhu", "re_xuzhu"],
292292
yangbiao: ["dc_yangbiao", "yangbiao", "jsrg_yangbiao", "clan_yangbiao", "std_yangbiao"],
@@ -417,4 +417,5 @@ window.noname_character_replace = {
417417
zerong: ["zerong", "std_zerong"],
418418
tw_zhugejun: ["tw_zhugejun", "dc_zhugejun"],
419419
wufu: ["wufu", "hr_wufu"],
420+
zhangyao: ["zhangyao", "std_zhangyao"],
420421
};

character/sixiang/character.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
const characters = {
2-
std_zhangmeiren: {
2+
std_zhangyao: {
33
sex: "female",
44
group: "wu",
55
hp: 3,
66
skills: ["stdlianrong", "stdyuanzhuo"],
7-
names: "张|null",
7+
names: "张|",
88
},
9-
std_wangmeiren: {
9+
std_wangfuren: {
1010
sex: "female",
1111
group: "wu",
1212
hp: 3,
@@ -39,7 +39,7 @@ const characters = {
3939
names: "毛|null",
4040
},
4141
std_zhengcong: {
42-
sex: "male",
42+
sex: "female",
4343
group: "qun",
4444
hp: 4,
4545
skills: ["stdqiyue", "stdjieji"],

character/sixiang/intro.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
const characterIntro = {
22
guanxing: "关兴,名将关羽之子,继承了父亲汉寿亭侯的爵位。年少时即受诸葛亮器重,在蜀汉担任侍中、中监军之职,后在夷陵之战中报了杀父之仇。",
33
std_zhangbao: "张苞,张飞的长子,使用父亲的家传蛇矛为兵器,勇猛剽悍不弱其父。",
4+
wangfuren: "敬怀皇后王氏,生卒年不详。荆州南阳(河南省南阳市)人。吴大帝孙权妃嫔。吴景帝孙休生母。又称南阳王夫人、小王夫人。王夫人在儿子即位前就已亡故,永安元年(258年),王夫人之子孙休继位,是为吴景帝。永安五年(262年),孙休追尊母王氏为敬怀皇后,将之改葬敬陵。",
5+
panglin: "庞林,荆州襄阳(今湖北襄樊)人,三国时期蜀汉刘备重要谋士庞统的弟弟,起初为蜀汉官员,后来随黄权投降曹魏,成为魏国官员。《三国志》中对庞林的记载很少,只记在《庞统传》末。",
6+
caoxiong: "曹熊(生卒年不详),字子威,沛国谯县(今安徽省亳州市)人。三国时期曹魏宗室,魏武帝曹操之子,魏文帝曹丕、曹彰、曹植同母弟,母为武宣皇后卞氏。体弱多病,英年早逝。曹魏建立后,追赠东平公。魏明帝太和三年,追封萧王,谥号为怀。",
7+
huangchong: "黄崇(?~263年),巴西阆中(今四川省阆中市)人,三国时期蜀汉官员,黄权之子。官至尚书郎。景耀六年(263年),跟随诸葛瞻抗击邓艾。大军到达涪县,诸葛瞻止步不前,黄崇多次劝他应快速向前行军,占领险要地势,不让敌军进入平原,诸葛瞻犹豫不决,没有采纳黄崇的意见,邓艾得以长驱直入。诸葛瞻退守绵竹后,黄崇激励部下将士并决心战斗到死。后来,黄崇死于邓艾的乱军之中。",
8+
maohuanghou: "明悼毛皇后(?~237年9月22日 [1]),河内郡人,魏明帝曹叡第一任皇后。黄初年间,毛氏选入平原王府,很受曹叡宠爱,进出常同乘一副辇同车。黄初七年(226年),曹叡即位,封毛氏为贵嫔。太和元年(227年),立为皇后。曹叡后来又宠幸郭夫人(明元郭皇后),对毛皇后日益淡漠。景初元年(237年),曹叡将毛皇后赐死,谥号“悼皇后”,葬于愍陵。",
9+
zhengcong: "《三国志·周宣传》记载:“后东平刘桢梦蛇生四足,穴居门中,使宣占之,宣曰:‘此为国梦,非君家之事也。当杀女子而作贼者。’顷之,女贼郑、姜遂惧夷讨,以蛇女子之祥,足非蛇之所宜故也。”。",
10+
jiangjie: "《三国志·周宣传》记载:“后东平刘桢梦蛇生四足,穴居门中,使宣占之,宣曰:‘此为国梦,非君家之事也。当杀女子而作贼者。’顷之,女贼郑、姜遂惧夷讨,以蛇女子之祥,足非蛇之所宜故也。”。",
411
};
512

613
export default characterIntro;

character/sixiang/sort.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const characterSort = {
44
sixiang_shaoyang: ["std_zhangbao", "std_liuchen", "std_guansuo", "std_xiahouba", "std_caorui", "std_liuye", "std_guohuanghou", "std_lvfan", "std_dingfeng", "std_sunluban", "std_liuzan", "std_sunyi", "std_taoqian", "std_jiling", "std_liru", "std_wangyun"],
55
sixiang_taiyang: ["std_tianfeng", "std_liuxie", "std_simazhao", "std_guozhao", "std_jiakui", "std_yufan", "std_zhugeke", "std_mengda", "std_caozhen", "std_dongyun", "std_baosanniang", "std_liuba", "std_kongrong", "std_zoushi", "std_sunluyu", "std_zhoufang"],
66
sixiang_qinglong: ["std_baoxin", "std_peixiu", "std_yangbiao", "std_huangfusong", "std_zerong", "std_pangdegong", "std_nanhualaoxian"],
7-
sixiang_zhencang: ["std_zhangmeiren", "std_wangmeiren", "std_panglin", "std_huangchong", "std_caoxiong", "std_maohuanghou", "std_zhencong", "std_jiangjie"],
7+
sixiang_zhencang: ["std_zhangyao", "std_wangfuren", "std_panglin", "std_huangchong", "std_caoxiong", "std_maohuanghou", "std_zhencong", "std_jiangjie", "std_zhengcong"],
88
sixiang_trashBin: ["old_shen_zhaoyun"],
99
};
1010

character/sixiang/translate.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,16 +390,16 @@ const translates = {
390390
stdtianshu: "天书",
391391
stdtianshu_info: "锁定技,你的手牌上限+X(X为当前势力数-1)。",
392392

393-
std_zhangmeiren: "标张美人",
394-
std_wangmeiren: "标王美人",
393+
std_zhangyao: "标张美人",
394+
std_wangfuren: "标王夫人",
395395
std_panglin: "标庞林",
396396
std_huangchong: "标黄崇",
397397
std_caoxiong: "标曹熊",
398398
std_maohuanghou: "标毛皇后",
399399
std_zhengcong: "标郑聪",
400400
std_jiangjie: "标姜婕",
401-
std_zhangmeiren_prefix: "标",
402-
std_wangmeiren_prefix: "标",
401+
std_zhangyao_prefix: "标",
402+
std_wangfuren_prefix: "标",
403403
std_panglin_prefix: "标",
404404
std_huangchong_prefix: "标",
405405
std_caoxiong_prefix: "标",

character/sp/skill.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5337,12 +5337,17 @@ const skills = {
53375337
},
53385338
async content(event, trigger, player) {
53395339
await player.draw(2);
5340-
let card = get
5340+
let cards = get
53415341
.discarded()
5342-
.filter(c => get.type(c) === "trick")
5343-
.randomGet();
5344-
if (card) {
5345-
await player.gain(card, "gain2");
5342+
.filter(c => get.type(c) === "trick");
5343+
if (cards?.length) {
5344+
const result = await player
5345+
.chooseButton(["累卵:获得一张普通锦囊牌", cards], true)
5346+
.set("ai", button => get.buttonValue(button))
5347+
.forResult();
5348+
if (result?.bool && result?.links?.length) {
5349+
await player.gain(result.links, "gain2");
5350+
}
53465351
}
53475352
player.tempBanSkill("leiluan", { player: "damageEnd" });
53485353
},

0 commit comments

Comments
 (0)