Changelog: v0.2.0

This commit is contained in:
notify 2023-05-28 18:58:58 +08:00
parent 5128100083
commit a97f74450d
10 changed files with 43 additions and 24 deletions

View File

@ -2,6 +2,22 @@
___ ___
## v0.2.0
修复了标准版吕布属性杀不触发无双、貂蝉决斗可被无懈。
由于标准包更加完善了,所以增加一位中版本号。
1. 获得了中文名“新月杀”
2. 房间可设置密码
3. 手牌上限不等于HP时会显示
4. 修禁用铁锁无法重铸
5. 修视为技按钮一直亮着
6. 使命技机制,完善游戏逻辑
7. 拖孩
___
## v0.1.9 ## v0.1.9
1. 实现移动场上一张牌 1. 实现移动场上一张牌

View File

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.16) cmake_minimum_required(VERSION 3.16)
project(FreeKill VERSION 0.1.9) project(FreeKill VERSION 0.2.0)
add_definitions(-DFK_VERSION=\"${CMAKE_PROJECT_VERSION}\") add_definitions(-DFK_VERSION=\"${CMAKE_PROJECT_VERSION}\")
find_package(Qt6 REQUIRED COMPONENTS find_package(Qt6 REQUIRED COMPONENTS

View File

@ -3,8 +3,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.notify.FreeKill" package="org.notify.FreeKill"
android:installLocation="preferExternal" android:installLocation="preferExternal"
android:versionCode="109" android:versionCode="200"
android:versionName="0.1.9"> android:versionName="0.2.0">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

View File

@ -1 +0,0 @@
/home/notify/develop/FreeKill/image/icon.png

Before

Width:  |  Height:  |  Size: 44 B

After

Width:  |  Height:  |  Size: 18 KiB

BIN
image/logo/freekill.png Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 B

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -183,6 +183,10 @@
<source>room password error</source> <source>room password error</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>no such room</source>
<translation></translation>
</message>
</context> </context>
<context> <context>

View File

@ -208,19 +208,18 @@ FreeKill使用的是libgit2的C API与此同时使用Git完成拓展包的下
["$NoWinner"] = "平局!", ["$NoWinner"] = "平局!",
["Back To Lobby"] = "返回大厅", ["Back To Lobby"] = "返回大厅",
["Bulletin Info"] = "<h2>更新说明</h2>\ ["Bulletin Info"] = [==[<h2>v0.2.0 </h2>
1. <br>\ <br/>
2. mark<br>\
3. askForChoice和interaction的文本解析方式改为prompt<br>\ <br/>
4. <br>\
5. <br>\ 1. <br/>
6. <br>\ 2. <br/>
7. <br>\ 3. HP时会显示<br/>
8. qml文件结构<br>\ 4. <br/>
9. <br>\ 5. <br/>
10. <br>\ 6. 使<br/>
11. <br>\ 7. <br/>]==],
12. ",
} }
-- Game concepts -- Game concepts

View File

@ -425,11 +425,14 @@ end
--- 获取其他玩家是否在玩家的攻击距离内。 --- 获取其他玩家是否在玩家的攻击距离内。
---@param other Player @ 其他玩家 ---@param other Player @ 其他玩家
function Player:inMyAttackRange(other) ---@param fixLimit number|null @ 卡牌距离限制增加专用
function Player:inMyAttackRange(other, fixLimit)
if self == other then if self == other then
return false return false
end end
fixLimit = fixLimit or 0
local status_skills = Fk:currentRoom().status_skills[AttackRangeSkill] or {} local status_skills = Fk:currentRoom().status_skills[AttackRangeSkill] or {}
for _, skill in ipairs(status_skills) do for _, skill in ipairs(status_skills) do
if skill:withinAttackRange(self, other) then if skill:withinAttackRange(self, other) then
@ -438,7 +441,7 @@ function Player:inMyAttackRange(other)
end end
local baseAttackRange = self:getAttackRange() local baseAttackRange = self:getAttackRange()
return self:distanceTo(other) <= baseAttackRange return self:distanceTo(other) <= (baseAttackRange + fixLimit)
end end
--- 增加玩家使用特定牌的历史次数。 --- 增加玩家使用特定牌的历史次数。

View File

@ -276,7 +276,7 @@ local supplyShortageSkill = fk.CreateActiveSkill{
local player = Fk:currentRoom():getPlayerById(to_select) local player = Fk:currentRoom():getPlayerById(to_select)
if Self ~= player then if Self ~= player then
return not player:hasDelayedTrick("supply_shortage") and return not player:hasDelayedTrick("supply_shortage") and
Self:distanceTo(player) <= self:getDistanceLimit(Self, card, Fk:currentRoom():getPlayerById(to_select)) Self:distanceTo(player) <= self:getDistanceLimit(Self, card, player)
end end
end end
return false return false

View File

@ -38,10 +38,7 @@ local slashSkill = fk.CreateActiveSkill{
target_filter = function(self, to_select, selected, _, card) target_filter = function(self, to_select, selected, _, card)
if #selected < self:getMaxTargetNum(Self, card) then if #selected < self:getMaxTargetNum(Self, card) then
local player = Fk:currentRoom():getPlayerById(to_select) local player = Fk:currentRoom():getPlayerById(to_select)
return Self ~= player and return Self ~= player and Self:inMyAttackRange(player, self:getDistanceLimit(Self, card, player))
(self:getDistanceLimit(Self, card, Fk:currentRoom():getPlayerById(to_select)) -- for no distance limit for slash
+ Self:getAttackRange()
>= Self:distanceTo(player))
end end
end, end,
on_effect = function(self, room, effect) on_effect = function(self, room, effect)
@ -229,7 +226,7 @@ local snatchSkill = fk.CreateActiveSkill{
local player = Fk:currentRoom():getPlayerById(to_select) local player = Fk:currentRoom():getPlayerById(to_select)
return return
Self ~= player and Self ~= player and
Self:distanceTo(player) <= self:getDistanceLimit(Self, card, Fk:currentRoom():getPlayerById(to_select)) and -- for no distance limit for snatch Self:distanceTo(player) <= self:getDistanceLimit(Self, card, player) and -- for no distance limit for snatch
not player:isAllNude() not player:isAllNude()
end end
end, end,