Commit Graph

3920 Commits

Author SHA1 Message Date
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
mengxinzxz 76f780041c
许攸成略添加放置卡牌prompt 2023-09-17 00:17:29 +08:00
copcap 189f1bb003
新增OL曹羲 2023-09-16 22:16:17 +08:00
Spmario233 2da3a809d7 小扩表情包 2023-09-16 21:32:44 +08:00
mengxinzxz 3e0398e5dc
TW王凌→TW王淩 2023-09-16 20:52:57 +08:00
mengxinzxz 30ec9c92f7
鲍信技能调整 2023-09-16 20:47:52 +08:00
Spmario233 8e71f92a39
Merge pull request #335 from mengxinzxz/PR-Branch
调整二张血量,修改张纮一技能翻译
2023-09-16 20:20:35 +08:00
mengxinzxz e091b22c22
王凌→王淩,刘巴锻币修改为限定技 2023-09-16 18:23:56 +08:00
mengxinzxz d4183d3435
族王凌→族王淩 2023-09-16 18:23:03 +08:00
mengxinzxz e2fb1f36ee
傅佥,彭羕技能调整 2023-09-16 18:12:27 +08:00
mengxinzxz f825083463
董翓修复 2023-09-16 18:10:08 +08:00
copcap 520e8fe5ea
卞喜调整 2023-09-16 15:27:36 +08:00
mengxinzxz fba0aec1ce
调整部分武将评级(暂未修改出场率) 2023-09-16 10:40:38 +08:00
mengxinzxz 8528e443bb
调整二张血量,修改张纮一技能翻译 2023-09-16 10:29:42 +08:00
Spmario233 fd89eb8223
Merge pull request #334 from copcap/dev
OL牵招;bug修复
2023-09-15 22:54:48 +08:00
Spmario233 0efc3820c2
Merge pull request #333 from mengxinzxz/PR-Branch
unseen解除,TW谋诛添加ai,部分技能配音调整
2023-09-15 22:53:59 +08:00
copcap 2507216ed4
牵招调整 2023-09-15 22:32:27 +08:00
copcap 7838f80175
高翔语音 2023-09-15 21:55:25 +08:00
mengxinzxz 01fcf76005
删除牵招,防止与cop的重复 2023-09-15 21:39:17 +08:00
mengxinzxz a9d9483456
谋祝融调整 2023-09-15 21:35:37 +08:00
mengxinzxz 9a338ec62d
牵招 2023-09-15 21:35:09 +08:00
copcap d791a2e75d
高翔原画更新 2023-09-15 19:15:46 +08:00
copcap 511687b7ee
bug修复 2023-09-15 19:11:59 +08:00
copcap 6e4abaa784
OL牵招 2023-09-15 18:46:09 +08:00
mengxinzxz 704bd3d65b
bugfix 2023-09-15 15:59:32 +08:00
mengxinzxz 31c1e35a0c
bugfix 2023-09-15 15:58:47 +08:00
mengxinzxz 258bd5e284
Add files via upload 2023-09-15 12:41:52 +08:00
mengxinzxz 18c4759947
张昭解除unseen,添加张纮 2023-09-15 12:41:21 +08:00
mengxinzxz 64a6572cd2
修复许攸【恃才】描述和效果不符的bug 2023-09-14 23:29:22 +08:00
mengxinzxz 3707ef26e3
高达一号阵亡配音 2023-09-14 22:56:58 +08:00
mengxinzxz b06aaa7e83
高达一号素材更换,添加手杀郭照,手杀张嶷,谋张郃配图 2023-09-14 22:56:07 +08:00
mengxinzxz c1bf646d78
解禁谋张郃 2023-09-14 22:54:57 +08:00
mengxinzxz e767cb3c8e
解禁郭照,张嶷 2023-09-14 22:54:34 +08:00
mengxinzxz afa6bb79ac
TW何进【谋诛】ai 2023-09-14 22:53:47 +08:00
mengxinzxz 9cb14a702d
关宁【龙诵】修复 2023-09-14 22:53:08 +08:00
mengxinzxz 27c90a4ea7
神关羽【武魂】,高达一号【绝境】【龙魂】技能配音调整 2023-09-14 22:52:21 +08:00
Spmario233 c505e38447
Merge pull request #331 from copcap/dev
区分“获得”和“得到”的概念;调整起包技能效果
2023-09-14 21:15:56 +08:00
Spmario233 e8844d81c1
Merge pull request #330 from mengxinzxz/PR-Branch
张昭+昂扬技+武将资料页bug修复
2023-09-14 21:15:08 +08:00
mengxinzxz 94148188bc
bugfix 2023-09-14 20:36:20 +08:00
mengxinzxz 88eea6dbb6
区分获得和得到 2023-09-14 20:33:22 +08:00
mengxinzxz 0e4f1cee7d
昂扬技标签修改
sunben→sunbenSkill
2023-09-14 20:29:26 +08:00