Commit Graph

2473 Commits

Author SHA1 Message Date
Spmario233 90974bf3d1
Merge pull request #342 from nofficalfs/PR-BugFix-IdentityGncNoModify
[BugFix] 一些玄学的遗留bug
2023-09-18 10:48:32 +08:00
Spmario233 bd0cfb2ba8
Merge pull request #341 from nonameShijian/PR-Branch
在初始化(新手教程)之前的菜单不进行懒加载,另添加导出扩展的私货,以及修改分享扩展后的链接地址,player.when
2023-09-18 10:48:20 +08:00
shijian cdd1403125 lib.element.player.when 2023-09-18 09:02:11 +08:00
Rintim 485c6222e0 fix async in identity. 2023-09-18 00:42:46 +08:00
Spmario233 ff2c32277e dynamic range 2023-09-18 00:04:04 +08:00
Spmario233 03f21ad620 Romaji for Key characters 2023-09-17 22:36:19 +08:00
shijian 5f0a78bcd8 在初始化(新手教程)之前的菜单不进行懒加载,另添加导出扩展的私货 2023-09-17 19:49:52 +08:00
Spmario233 50028571b2 menu updates 2023-09-17 16:11:43 +08:00
Spmario233 558d33d54d fix pinyinjs 2023-09-17 15:18:33 +08:00
Spmario233 b5678f7715
Merge pull request #340 from nofficalfs/PR-Alter-GenCoroutine
[Alter] 修改`genCoroutine`的机制
2023-09-17 15:05:07 +08:00
Spmario233 ce07a4af48 彭羕(no AI); fix get.number 2023-09-17 15:04:15 +08:00
Rintim b74aff07c6 last. 2023-09-17 11:26:56 +08:00
Rintim 238cfd8f36 compatible. 2023-09-17 11:08:53 +08:00
Rintim ac34ca2689 fix the bug. 2023-09-17 03:05:00 +08:00
Rintim e20a93d08f clean the `gnc.await`. 2023-09-17 03:00:25 +08:00
Rintim 1b01e5b08b remove comment && fix format. 2023-09-17 02:55:31 +08:00
Rintim f8b7941a16 logic parse.
Originally `gnc.await` would call `gnc.await` internally, so now merging the contents of `gnc.await` into `gnc.async` will definitely cause issues.

We will continue to change the `await` logic in `gnc.async` into a callback function, but at this point we only care about the outermost Promise. After the inner Promise finishes handling the asynchronous data, we no longer create nested Promise objects, we just call the callback function again. This also avoids potential performance losses from multi-layered Promises.
2023-09-17 02:53:28 +08:00
Rintim 31c96dd4ea determine the arg of `gnc.of` as a generator function.
`gnc.of` needs a generator function, so we check the input value to make the error clear.
2023-09-17 02:46:10 +08:00
Rintim 5893baaf9a modify `gnc.async` to `gnc.of`.
The name `gnc.async` was originally paired with `gnc.await`, intended to correspond to the `async` and `await` in` JavaScript`. However, having the same name as keywords in the standard library made the meaning of these two functions unclear on our side. The intention of `gnc.async` is to transform generator functions into `genCoroutine`, so it should contain the meaning of "creating". With simple discussion, we decided to use `of` for now to represent "creating" a `genCoroutine`.
2023-09-17 02:42:45 +08:00
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