It provides two methods `Player:hasMark` and `Card:hasMark` for
determining if the player/card has the mark, which is more expressive
than `xxx:getMark` when only checking for the existence.
By the way, xxx:hasMark may directly determine a `Mark` in xxx.mark, for
which I added `table:hasKey` method in `util.lua`, but currently the
code still checks if the result of `xxx:getMark` is not 0.
---
提供了`Player:hasMark`和`Card:hasMark`两个方法,用于在只需要判断是否有标记时可以直接使用`xxx:hasMark`,相比使用`xxx:getMark`而言更加表达代码的作用。
顺带一提,`xxx:hasMark`应该可以直接判断`Mark`是否在`xxx.mark`里,我在`util.lua`里添加了`table:hasKey`的方法用于判断,但目前的代码还是判断`xxx:getMark`的结果是否不为0。
* todo
* todo.md
* doc for move cards
* weapons excluding qinggang
* equip sound and emotion
* remove silence on the starting of using skill
* add audio skill for TMD equip
* fixbug: running and observing
* when PreUseCard is broken, jump to move cards to discardPile
* doc for diy
* addToPile
* viewPile (WIP)
* fix git bug
* auto update packages when md5 fail
* use thread when updating pack
* correct status() handling
* update fkp
* remove PKGBUILD since it's presented in AUR repo
* fix fkp md5 bug
* extensible qml
* set bigAnim's z to 999
* nioh sheild
* lijian
* now mod can return nil
* if dmg.nature == nil then = normal
* disable notifyUI when qWarning
* fix lijian and gender problem
* support fkp
* get default setting in qml
* correct zixing
* mark
* TODO: parse fkp in c++
* scale the drawer
* free assign
* fix free assign bug
* add submodule for official generals
* generate fkp in cpp code
* use UTF-8 in windows conhost
* use onUse for regular skill
* active skill for fkp
* add fkp function; change data for DMG and Heal
* add cancelable to askForDiscard
* don't let generals naked
* config bg and bgm
* fix exists for win
* bugfix: rewardandpunish
* fkp: vs skill
* room config
* observe
* god_salavation
* fkp: judge
* add read storage permission for android build
* remove submodule fk_official
* remove include/
* use a submodule as include directory
* libgit2
* remove debugging 'downloadNewPack'
* libgit2.dll for Windows
* rewrite system_enum, disable dangerous function
* fix bug in trigger()
* filter skill
* filter judgement card
* add about page for git2
* very basic general detail
* FKP: status skill
* libgit: android test
* libgit: build for android
* 1
* libgit2.dll
* android: load qm file after copy asset
* filter skill: if no filter skill then remove filtered card
* allow warning and critical to show a popup, and fix warnings from QML
* resource: move general audio/image to packages/
* move assets of cards
* FKP: modify
* use sqlite db to manage packages
* packman cli
* packman gui
* use Popup for error dialog
* android full screen note
* fix android ssl problem