Commit Graph

2504 Commits

Author SHA1 Message Date
Rintim 58379d5835 remove `gnc.escape`.
The original intention of `gnc.escape` was to tell `gnc.await` not to handle generator functions that have gone through this function. In fact, no one uses this function at all, because there would never be a situation where a normal function returns a generator function when `genCoroutine` is needed. Now that `gnc.await` has been removed from the project, there is even less need for `gnc.escape` to exist.
2023-09-17 02:38:05 +08:00
Rintim cfc2c8b69b move `gnc.await` content into `gnc.await`.
Originally, `gnc.await` was separated out from `gnc.async` to handle standalone `genCoroutine` generator functions. However, as the project developed, we realized this didn't make much sense and instead added unnecessary mental overhead for developers to focus on the APIs rather than the content. Therefore, we've now moved the functionality that was part of `gnc.async` back into `gnc.async`.
2023-09-17 02:33:46 +08:00
Rintim cf0bc5bef0 remove `gnc.await`
we noticed that `gnc.await` has almost no logically sound use cases in practice. We shouldn't add error handling for generator functions that haven't been transformed into `genCoroutine`. Functions that need `genCoroutine` should judge the input parameters by themselves.

By the way, this commit only remove the method without any change of the code which use `gnc.await`. In that case, there must be error in the code.
2023-09-17 02:21:21 +08:00
Spmario233 2da3a809d7 小扩表情包 2023-09-16 21:32:44 +08:00
Spmario233 c505e38447
Merge pull request #331 from copcap/dev
区分“获得”和“得到”的概念;调整起包技能效果
2023-09-14 21:15:56 +08:00
mengxinzxz 0e4f1cee7d
昂扬技标签修改
sunben→sunbenSkill
2023-09-14 20:29:26 +08:00
copcap 29ec37a01f
取消带_faq字符技能的拼音显示 2023-09-14 18:38:22 +08:00
copcap 76552f2225
解禁高翔;增加旧小乔的同名替换 2023-09-14 18:38:13 +08:00
mengxinzxz b28148abd5
昂扬技 2023-09-14 12:50:56 +08:00
Spmario233 87d5747ec8
Merge pull request #329 from nofficalfs/PR-BugFix-AsyncLoad
[BugFix] 兼容版异步等待无限加载问题
2023-09-14 11:28:25 +08:00
Rintim 31a7b69799 [2023/09/14: Inchar] wait import.
Use `yield` as `await` to wait `game.import` done.
2023-09-14 00:35:18 +08:00
Rintim 0eec9bcb51 [2023/09/14: Inchar] turn `game.importExtension` to async. 2023-09-14 00:31:18 +08:00
Rintim 9870c39857 [2023/09/14: Inchar] solve the waitever. 2023-09-14 00:29:58 +08:00
Spmario233 c4f777ffd5 image assets 2023-09-13 20:00:51 +08:00
Spmario233 55fa9caba8 liunian update 2023-09-13 19:56:48 +08:00
Spmario233 5f8c320b22 game.washCard 2023-09-13 19:36:33 +08:00
Spmario233 7caa701806
Merge pull request #327 from nonameShijian/PR-Branch
视为牌图片样式属性杀兼容,设置行高
2023-09-13 19:22:54 +08:00
Spmario233 b6d7bdac42 game.cardsGotoPile 2023-09-13 19:21:30 +08:00
shijian e8de26ff60 视为牌图片样式属性杀兼容,设置行高 2023-09-13 19:09:12 +08:00
shijian 8a9a153fe8 视为牌显示的选项增加图片选项 2023-09-13 00:11:38 +08:00
shijian 4459785dfa 优化ui.create.cardTempName,变为两个参数 2023-09-12 19:53:20 +08:00
shijian 8fbd74bcb1 视为牌代码抽离为ui.create.cardTempName 2023-09-12 14:20:45 +08:00
Spmario233 4dcec776da
Merge pull request #316 from nofficalfs/PR-Purify-ImportFix
[Purify] `game.import` fused of `lib.gnc`.
2023-09-11 19:04:19 +08:00
Spmario233 406583ba67
Merge pull request #318 from nofficalfs/PR-Suggest-ExtSkill-Append-Translate
[Suggest] Extension Skill Support Append Info
2023-09-11 19:02:46 +08:00
Spmario233 2c317bdbeb
Merge pull request #319 from nofficalfs/PR-Experimentalize-Guozhan-Extension-Interface
[Experimentalize] Guozhan Extension Interface.
2023-09-11 19:01:31 +08:00
Spmario233 76ce17b65a
Merge pull request #320 from lieren2023/lieren2023-patch-21
update pinyinjs.js
2023-09-11 18:59:11 +08:00
lieren2023 8831f74348
update pinyinjs.js 2023-09-11 14:24:30 +08:00
Rintim ca39862a81 add import wait. 2023-09-11 13:22:58 +08:00
Rintim 4777678bb7 fix. 2023-09-11 12:43:05 +08:00
Rintim 17c9e6fe75 bugfix. 2023-09-11 07:39:32 +08:00
Rintim 8e2d787cf1 let `game.addCharacterPack` check guozhan characters. 2023-09-11 00:30:13 +08:00
Rintim be18fafb85 add guozhan filter array. 2023-09-10 23:53:11 +08:00
Rintim 4b5c2d0005 add append. 2023-09-10 23:36:32 +08:00
Rintim 305d96e7e5 fusion. 2023-09-10 23:20:11 +08:00
Spmario233 31e6d4553b putBack for get.cards and get.bottomCards 2023-09-10 21:59:41 +08:00
Spmario233 cc3c849fac
Merge pull request #314 from nofficalfs/PR-Experimentalize-AsyncGameImport
[Experimentalize] Asyncify `game.import`.
2023-09-10 21:35:14 +08:00
Spmario233 b653bb4b19
Merge pull request #310 from nofficalfs/PR-Purify-LibGnc
[Purify] Modify `lib.gnc`
2023-09-10 21:25:46 +08:00
Spmario233 040cd19c62
Merge pull request #308 from universe-st/PR-Branch
当character4中包含die时不添加die
2023-09-10 21:25:23 +08:00
Spmario233 edb65d8fc2
Merge pull request #305 from lieren2023/lieren2023-patch-19
资料卡显示技能名拼音、武将名拼音等信息
2023-09-10 21:24:31 +08:00
Spmario233 a2e542e66b
Merge pull request #312 from lieren2023/lieren2023-patch-21
格式化pinyinjs.js、拼音库更新
2023-09-10 21:24:04 +08:00
Rintim 7d130339f2 bugfix. 2023-09-10 21:21:16 +08:00
Rintim 7847ac8498 async fix. 2023-09-10 21:19:48 +08:00
Rintim e7d5a64b76 async. 2023-09-10 21:06:46 +08:00
lieren2023 9801500dce
写法改进,增加判断条件 2023-09-10 18:08:22 +08:00
lieren2023 43bab52ea9
bug fix 2023-09-10 18:06:43 +08:00
Rintim 37ec12c866 add `lib.gnc.escape` 2023-09-10 16:50:28 +08:00
Rintim 3b0edf0d27 add default value. 2023-09-10 16:48:02 +08:00
Rintim 0f00fc8332 fix bugs. 2023-09-10 16:44:12 +08:00
lieren2023 f8009af1ae
格式化pinyinjs.js、拼音库更新 2023-09-10 16:41:46 +08:00
Rintim 828b7c0ab2 fix some bugs. 2023-09-10 16:04:59 +08:00
Rintim 4594fb82cb purify lib.gnc 2023-09-10 15:58:51 +08:00
kuangthree 08a88953e6 当character4中包含die时不添加die 2023-09-10 09:07:57 +08:00
Spmario233 87479de03c Update colors and suits (maybe glichy) 2023-09-09 14:36:25 +08:00
Spmario233 a5d2293a8a tianjitu fix 2023-09-09 13:05:30 +08:00
lieren2023 4e0e743575
资料卡显示技能名拼音、武将名拼音等信息 2023-09-08 22:54:02 +08:00
Spmario233 78f6a550c4
Merge pull request #300 from mengxinzxz/PR-Branch
主公技机制修改简化+遗留问题修复
2023-09-08 18:12:49 +08:00
mengxinzxz b48ae29434
主公技机制修改
hasZhuSkill权限降低,取消模式限制,在hasZhuSkill没有对应target参数时均为true
修改玩家角色主公技在init和reinit的时候检测排除(检测函数添加isZhu2:判定是否player有isZhu属性和是否为身份/对决44/对决官渡模式)
2023-09-08 17:53:07 +08:00
Rintim 7bc90a3f3d modify name. 2023-09-08 17:38:32 +08:00
Rintim 07225dc1d2 add card filter 2023-09-08 17:36:17 +08:00
Spmario233 2e99a52909
Merge pull request #296 from nofficalfs/PR-Suggest-AddGroup-With-Hook
[Suggest] proivde game.addGroup
2023-09-08 11:52:13 +08:00
chen079 357e5599ea Update game.js 2023-09-08 10:13:38 +08:00
chen079 0b2ffbfb4a Update game.js 2023-09-08 10:13:38 +08:00
chen079 99397849a4 为damage新增'unreal'参数,表示视为伤害
如题,并修改手杀曹嵩
2023-09-08 10:13:38 +08:00
Rintim ed611433c1 purifid 2023-09-08 02:08:54 +08:00
Rintim e4e31603b5 bugfix2 2023-09-08 02:01:05 +08:00
Rintim ebb0b1b15d bugfix. 2023-09-08 02:00:36 +08:00
Rintim c0df934775 add methods. 2023-09-08 01:59:13 +08:00
Rintim 805848568d give time for extension to add hook. 2023-09-07 23:23:54 +08:00
Rintim a9d10ba774 fix compatibility. 2023-09-07 23:15:25 +08:00
Rintim 598beb4696 fix bug. 2023-09-07 23:08:37 +08:00
Rintim 8108635342 complete dynamicStyle && addGroup. 2023-09-07 23:00:55 +08:00
Rintim 1ff9beb778 add modify functions. 2023-09-07 22:43:15 +08:00
Rintim 41a06fc4a4 add dynamicStyle id. 2023-09-07 22:35:43 +08:00
Rintim 76aa1ae4c0 add dynamicStyle.update 2023-09-07 22:31:54 +08:00
Rintim d77ca4e98b add css selector linq. 2023-09-07 22:13:47 +08:00
Rintim f92614c494 add linq.css.merge 2023-09-07 20:39:35 +08:00
Rintim 5e4d323615 add basic css-string-like methods. 2023-09-07 19:00:34 +08:00
Rintim a372091dac add game.dynamicStyle 2023-09-07 18:54:22 +08:00
Rintim 1e0e18764c Merge branch 'PR-Branch' into PR-Suggest-AddGroup-With-Hook 2023-09-07 18:35:49 +08:00
Rintim db19a1822e add game.addGroup && lib.hook.addGroup. 2023-09-07 18:34:48 +08:00
Spmario233 d2a852d8af
Merge pull request #287 from mengxinzxz/PR-Branch
canSaveCard函数+整肃ai添加+针对canSave的部分技能写法调整
2023-09-07 13:38:02 +08:00
mengxinzxz 5d1915fe20
canSaveTarget函数添加,判断A是否能在B处于濒死状态时对B使用C牌 2023-09-07 12:49:44 +08:00
Tipx-L 1f946fc4bc Keep compatible. 2023-09-06 21:27:01 -07:00
Spmario233 7f25ec94f1
Merge pull request #284 from nofficalfs/PR-Node-Path
[Suggest] Support lib.path
2023-09-07 08:10:26 +08:00
Spmario233 558f194f41
Merge pull request #282 from nofficalfs/PR-genCoroutine-bugFix
[BugFix] fix genCoroutine.
2023-09-07 08:05:31 +08:00
Spmario233 1a80ea598f
Merge pull request #281 from Tipx-L/PR-Branch
Various fix.
2023-09-07 08:05:08 +08:00
Rintim a288afc29c format. 2023-09-06 22:21:37 +08:00
Rintim 21133e1cb2 add path.min.js 2023-09-06 22:16:31 +08:00
Rintim 6ece9e91f7 fix genCoroutine 2023-09-06 19:18:13 +08:00
Spmario233 86fb67a4b5
Merge pull request #277 from nofficalfs/PR-getCardNameLength-Advance
[Suggest] advancify get.cardNameLength
2023-09-06 17:40:04 +08:00
Spmario233 8601cd211d
Merge pull request #278 from nofficalfs/Purify-genCoroutine
[Purify] genCoroutine && lib.onprepare
2023-09-06 17:39:35 +08:00
Tipx-L 4d09055b97 More. 2023-09-06 01:47:53 -07:00
Rintim 87915084c7 lib.gnc 2023-09-06 16:47:47 +08:00
Tipx-L 5a20089ca5 Various fix. 2023-09-05 22:12:11 -07:00
Spmario233 585d6dab38 shownCard 2023-09-06 11:26:37 +08:00
Rintim c17a345781 remove gnc.is.* in lib. 2023-09-06 01:09:20 +08:00
Rintim f99ec24852 modify names. 2023-09-06 00:53:11 +08:00
Rintim 92504b1adf push onprepare later && add methods to determine genCoroutine. 2023-09-06 00:48:14 +08:00
Rintim 67b1b45a83 fix bugs && modify lib.onload3,4 to lib.onprepare 2023-09-05 22:40:16 +08:00
Rintim 666fac9ad0 purity genCoroutine && add lib.onload3 and onload4. 2023-09-05 21:58:39 +08:00