We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我觉得为每个棋子写一个函数太麻烦了,最好能弄一种"通用描述符",也就是用几个参数描述所有棋子。
我想可以初步具备这个结构(json):
{ "id": "D", "name": "Deng", "attackLv": 1, # 攻击级别,若底下的棋子防御级别<this,就会被打掉 "defendLv": 2, # 2级防御 "attackSpec": ["T"], # 针对tly,克制 }
但是我还没想好H,x这种范围伤害该怎么办
The text was updated successfully, but these errors were encountered:
你有什么好想法吗?关于h和x的,@Lsccccc
我有一个想法但是不是很好,就是写一个条件判断,如果命中了就吃掉,比如说:for x:
conditions: - abs(target.x-this.x)<=1 - abs(target.y-this.y)<=1 - target.gender="M"
之类的表达式,我们还可以弄集合之类的,这都是后话了
Sorry, something went wrong.
集合的话,这是具体的细节:
conditions: - my_cond_set_1: op: AND exps: - abs(...) - abs(...) - mycondset2: op: OR exps: - 1=1 - 0=1
第一组exps需要全部满足 第二组exps只用满足一个 两组exp的结果做and运算
No branches or pull requests
我觉得为每个棋子写一个函数太麻烦了,最好能弄一种"通用描述符",也就是用几个参数描述所有棋子。
我想可以初步具备这个结构(json):
但是我还没想好H,x这种范围伤害该怎么办
The text was updated successfully, but these errors were encountered: