This commit is contained in:
Mechanel 2023-09-06 22:33:42 +08:00 committed by notify
parent 05f65ef284
commit 2d1382d9cf
6 changed files with 30 additions and 25 deletions

View File

@ -2,6 +2,12 @@
___
## v0.3.8
为国战添加专属ui修复一些bug。
___
## v0.3.7
新老bug一起修复

View File

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

View File

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

View File

@ -288,11 +288,10 @@ FreeKill使用的是libgit2的C API与此同时使用Git完成拓展包的下
["Resume"] = "继续",
["Bulletin Info"] = [==[
## v0.3.7
## v0.3.8
0.3.7bug退
uibug
]==],
}

View File

@ -27,15 +27,6 @@ local function tellRoomToObserver(self, player)
end
player:doNotify("ArrangeSeats", json.encode(player_circle))
for _, p in ipairs(self.players) do
self:notifyProperty(player, p, "general")
self:notifyProperty(player, p, "deputyGeneral")
p:marshal(player, true)
end
player:doNotify("UpdateDrawPile", #self.draw_pile)
player:doNotify("UpdateRoundNum", self:getTag("RoundCount") or 0)
-- send printed_cards
for i = -2, -math.huge, -1 do
local c = Fk.printed_cards[i]
@ -44,12 +35,21 @@ local function tellRoomToObserver(self, player)
end
-- send card marks
for id, marks in pairs(room.card_marks) do
for id, marks in pairs(self.card_marks) do
for k, v in pairs(marks) do
player:doNotify("SetCardMark", json.encode{ id, k, v })
end
end
for _, p in ipairs(self.players) do
self:notifyProperty(player, p, "general")
self:notifyProperty(player, p, "deputyGeneral")
p:marshal(player, true)
end
player:doNotify("UpdateDrawPile", #self.draw_pile)
player:doNotify("UpdateRoundNum", self:getTag("RoundCount") or 0)
table.insert(self.observers, {observee.id, player, player:getId()})
end

View File

@ -346,15 +346,6 @@ function ServerPlayer:reconnect()
end
self:doNotify("ArrangeSeats", json.encode(player_circle))
for _, p in ipairs(room.players) do
room:notifyProperty(self, p, "general")
room:notifyProperty(self, p, "deputyGeneral")
p:marshal(self)
end
self:doNotify("UpdateDrawPile", #room.draw_pile)
self:doNotify("UpdateRoundNum", room:getTag("RoundCount") or 0)
-- send printed_cards
for i = -2, -math.huge, -1 do
local c = Fk.printed_cards[i]
@ -369,6 +360,15 @@ function ServerPlayer:reconnect()
end
end
for _, p in ipairs(room.players) do
room:notifyProperty(self, p, "general")
room:notifyProperty(self, p, "deputyGeneral")
p:marshal(self)
end
self:doNotify("UpdateDrawPile", #room.draw_pile)
self:doNotify("UpdateRoundNum", room:getTag("RoundCount") or 0)
-- send fake skills
for _, s in ipairs(self._manually_fake_skills) do
self:doNotify("AddSkill", json.encode{ self.id, s.name, true })