Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

破坏性更新与注意事项 #398

Open
Notify-ctrl opened this issue Oct 24, 2024 · 3 comments
Open

破坏性更新与注意事项 #398

Notify-ctrl opened this issue Oct 24, 2024 · 3 comments

Comments

@Notify-ctrl
Copy link
Collaborator

本issue用于记载更新过程中会破坏拓展兼容性的更新,供拓展主们参考。更新的节点有可能是出现某个tag,也有可能是freekill-core仓库里面的某条commit。目前的稳定版本是v0.4.19

@Qsgs-Fans Qsgs-Fans locked and limited conversation to collaborators Oct 24, 2024
@Notify-ctrl Notify-ctrl pinned this issue Oct 24, 2024
@Notify-ctrl
Copy link
Collaborator Author

Notify-ctrl commented Oct 24, 2024

v0.4.21

  • Room:askForRespond函数的bug被修复,cancelable参数已可正常控制取消键亮灭。拓展中可能不少调用了该函数的地方传参了cancelable = false,请注意查验。
  • 客户端手牌可见性被大幅度改动。受到影响的有:
    • Room:prepareDrawPile添加了参数seed,因此不要再用这个函数了,用GameLogic:prepareDrawPile()
    • Player的role_shown属性需要被客户端知道。为此,在player.role_shown = xxx的地方都要改成room:setPlayerProperty(player, "role_shown", xxx)。可以用正则表达式将(\w+).role_shown = (.+)替换为room:setPlayerProperty($1, "role_shown", $2),注意room是否为nil。
    • Player的role属性是公开信息,在客户端由role_shown控制。因此请使用room:broadcastProperty(p, "role")或者setPlayerProperty等
  • 现在所有的私人pile都是公开的。如果需要暗置pile的话,那么pile的名字需要以'$'符号开头。如果需要暗置pile中混合有明置牌(或者反之),请使用fk.CreateVisibilitySkill创建状态技管理。
  • 通过GetGeneralDetail不再直接获得武将的related_skill,全部放入skill,依靠参数is_related_skill区分。

@Notify-ctrl
Copy link
Collaborator Author

Qsgs-Fans/freekill-core@e3fe1aa

Room:doRequest系列函数宣告废弃并即将删除。请拓展主将这些函数用新的写法重新实现一下:#409

@Notify-ctrl
Copy link
Collaborator Author

Qsgs-Fans/freekill-core@465f6b7

Room:getNCards函数依然是从牌堆中拿牌,但不再从牌堆删除,请注意

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant