Changelog: v0.3.3

This commit is contained in:
notify 2023-08-13 16:36:11 +08:00
parent 3a207442f4
commit 6dd1eded9a
17 changed files with 16 additions and 12 deletions

View File

@ -2,6 +2,12 @@
___ ___
## v0.3.3
修复上个版本发现的bug.
___
## v0.3.2 ## v0.3.2
本次更新的主要看点是废除装备栏和判定区。 本次更新的主要看点是废除装备栏和判定区。

View File

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.16) cmake_minimum_required(VERSION 3.16)
project(FreeKill VERSION 0.3.2) project(FreeKill VERSION 0.3.3)
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

@ -92,7 +92,7 @@ Rectangle {
Layout.preferredHeight: 120 Layout.preferredHeight: 120
cellHeight: 48 cellHeight: 48
cellWidth: 48 cellWidth: 48
model: 50 model: 59
visible: false visible: false
clip: true clip: true
delegate: ItemDelegate { delegate: ItemDelegate {

View File

@ -180,9 +180,9 @@ callbacks["Chat"] = (jsonData) => {
} }
if (general === "") if (general === "")
current.addToChat(pid, data, `[${time}] ${userName}: ${msg}`); current.addToChat(pid, data, `<font color="#3598E8">[${time}] ${userName}:</font> ${msg}`);
else else
current.addToChat(pid, data, `[${time}] ${userName}(${general}): ${msg}`); current.addToChat(pid, data, `<font color="#3598E8">[${time}] ${userName}(${general}):</font> ${msg}`);
} }
callbacks["ServerMessage"] = (jsonData) => { callbacks["ServerMessage"] = (jsonData) => {

View File

@ -288,8 +288,6 @@ Item {
let ret = Backend.translate(e); let ret = Backend.translate(e);
if (ret.search(/特殊牌|衍生牌/) === -1) { // TODO: 西= = if (ret.search(/特殊牌|衍生牌/) === -1) { // TODO: 西= =
ret = "<b>" + ret + "</b>"; ret = "<b>" + ret + "</b>";
} else {
ret = '<font color="grey"><i>' + ret + "</i></font>";
} }
return ret; return ret;
}).join('') }).join('')

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="302" android:versionCode="303"
android:versionName="0.3.2"> android:versionName="0.3.3">
<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" />

BIN
image/emoji/50.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

BIN
image/emoji/51.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
image/emoji/52.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
image/emoji/53.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
image/emoji/54.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
image/emoji/55.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
image/emoji/56.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
image/emoji/57.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
image/emoji/58.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -19,7 +19,6 @@
---@field public discard_pile integer[] @ 弃牌堆也是卡牌id的数组 ---@field public discard_pile integer[] @ 弃牌堆也是卡牌id的数组
---@field public processing_area integer[] @ 处理区依然是卡牌id数组 ---@field public processing_area integer[] @ 处理区依然是卡牌id数组
---@field public void integer[] @ 从游戏中除外区一样的是卡牌id数组 ---@field public void integer[] @ 从游戏中除外区一样的是卡牌id数组
---@field public general_pile string[] @ 武将牌堆,这是武将名的数组
---@field public card_place table<integer, CardArea> @ 每个卡牌的id对应的区域一张表 ---@field public card_place table<integer, CardArea> @ 每个卡牌的id对应的区域一张表
---@field public owner_map table<integer, integer> @ 每个卡牌id对应的主人表的值是那个玩家的id可能是nil ---@field public owner_map table<integer, integer> @ 每个卡牌id对应的主人表的值是那个玩家的id可能是nil
---@field public status_skills Skill[] @ 这个房间中含有的状态技列表 ---@field public status_skills Skill[] @ 这个房间中含有的状态技列表
@ -81,7 +80,6 @@ function Room:initialize(_room)
self.discard_pile = {} self.discard_pile = {}
self.processing_area = {} self.processing_area = {}
self.void = {} self.void = {}
self.general_pile = {}
self.card_place = {} self.card_place = {}
self.owner_map = {} self.owner_map = {}
self.status_skills = {} self.status_skills = {}
@ -110,6 +108,7 @@ function Room:resume()
-- 如果还没运行的话就先创建自己的主协程 -- 如果还没运行的话就先创建自己的主协程
if not self.main_co then if not self.main_co then
self.main_co = coroutine.create(function() self.main_co = coroutine.create(function()
self.tag["_general_pile"] = Fk:getAllGenerals()
self:run() self:run()
end) end)
end end
@ -2440,6 +2439,7 @@ function Room:handleCardEffect(event, cardEffectEvent)
end end
end end
if not table.contains(players, p) then if not table.contains(players, p) then
Self = p -- for enabledAtResponse
for _, s in ipairs(p.player_skills) do for _, s in ipairs(p.player_skills) do
if if
s.pattern and s.pattern and

View File

@ -1283,8 +1283,8 @@ Fk:loadTranslationTable{
["anjiang"] = "暗将", ["anjiang"] = "暗将",
} }
local heg_mode = require "packages.standard.hegemony" -- local heg_mode = require "packages.standard.hegemony"
extension:addGameMode(heg_mode) -- extension:addGameMode(heg_mode)
-- load translations of this package -- load translations of this package
dofile "packages/standard/i18n/init.lua" dofile "packages/standard/i18n/init.lua"