ChangeLog: v0.5.0
Some checks failed
Check Whitespace and New Line / check (push) Has been cancelled
Deploy Doxygen to Pages / build (push) Has been cancelled
Deploy Doxygen to Pages / deploy (push) Has been cancelled

This commit is contained in:
notify 2024-11-09 21:39:12 +08:00
parent a09a973064
commit 5e3c69ac84
12 changed files with 38 additions and 20 deletions

View File

@ -1,5 +1,13 @@
# ChangeLog
## v0.5.0
在前面几个版本的bug基本解决后加一个中版本号。
好了我们继续来看AI怎么弄这一块就是纯lua了
___
## v0.4.21 & v0.4.22 & v0.4.23
- 修复了确认键亮起时取消键不可用的bug

View File

@ -6,7 +6,7 @@
cmake_minimum_required(VERSION 3.22)
project(FreeKill VERSION 0.4.23)
project(FreeKill VERSION 0.5.0)
add_definitions(-DFK_VERSION=\"${CMAKE_PROJECT_VERSION}\")
find_package(Qt6 REQUIRED COMPONENTS

View File

@ -133,7 +133,7 @@ Item {
Rectangle {
id: virt_rect
visible: root.virt_name !== "" && root.virt_name !== root.name
visible: known && root.virt_name !== "" && root.virt_name !== root.name
width: parent.width
height: 20
y: 40
@ -218,6 +218,7 @@ Item {
columns: 2
rowSpacing: 1
columnSpacing: 0
visible: known
Repeater {
model: mark
delegate: cardMarkDelegate

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="423"
android:versionName="0.4.23">
android:versionCode="500"
android:versionName="0.5.0">
<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" />

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

@ -781,6 +781,7 @@ function GetCardProhibitReason(cid)
response = "method_response_play",
discard = "method_discard",
}
if not fn_table[method] then return "" end
local status_skills = Fk:currentRoom().status_skills[ProhibitSkill] or Util.DummyTable
local s
@ -815,6 +816,7 @@ function GetTargetTip(pid)
local card = handler.selected_card --[[@as Card?]]
local skill = Fk.skills[handler.skill_name]
local photo = handler.scene.items["Photo"][pid] --[[@as Photo]]
if not photo then return {} end
local selectable = photo.enabled
local extra_data = handler.extra_data

View File

@ -362,9 +362,9 @@ FreeKill使用的是libgit2的C API与此同时使用Git完成拓展包的下
["Resume"] = "继续",
["Bulletin Info"] = [==[
## v0.4.21
## v0.5.0
UI重构
]==],
}

View File

@ -1194,10 +1194,10 @@ function Player:isBuddy(other)
return self.id == id or table.contains(self.buddy_list, id)
end
local function defaultCardVisible(self, cardId, area, owner, falsy)
local public_areas = {Card.DiscardPile, Card.Processing, Card.Void, Card.PlayerEquip, Card.PlayerJudge}
local player_areas = {Card.PlayerHand, Card.PlayerSpecial}
local function defaultCardVisible(self, cardId, area, owner, falsy)
if area == Card.DrawPile then return false
elseif table.contains(public_areas, area) then return not falsy
elseif table.contains(player_areas, area) then

View File

@ -15,10 +15,10 @@ if UsingNewCore then
require "standard.ai"
-- require "maneuvering.ai"
else
directories = FileIO.ls("packages")
require "packages.standard.ai"
require "packages.standard_cards.ai"
require "packages.maneuvering.ai"
--directories = FileIO.ls("packages")
--require "packages.standard.ai"
--require "packages.standard_cards.ai"
--require "packages.maneuvering.ai"
end
table.removeOne(directories, "standard")
table.removeOne(directories, "standard_cards")

View File

@ -328,13 +328,16 @@ function Phase:main()
room.logic:trigger(fk.AfterDrawNCards, player, data)
end,
[Player.Play] = function()
player._play_phase_end = false
player._phase_end = false
room:doBroadcastNotify("UpdateSkill", "", {player})
while not player.dead do
if player._phase_end then break end
logic:trigger(fk.StartPlayCard, player, nil, true)
local data = { timeout = room.timeout }
logic:trigger(fk.StartPlayCard, player, data, true)
local result = Request:new(player, "PlayCard"):getResult(player)
local req = Request:new(player, "PlayCard")
req.timeout = data.timeout
local result = req:getResult(player)
if result == "" then break end
local useResult = room:handleUseCardReply(player, result)

View File

@ -18,6 +18,7 @@
---@field private _asked boolean? @ 是否询问过了
---@field public focus_players? ServerPlayer[] @ 要moveFocus的玩家们 默认参与者
---@field public focus_text? string @ 要moveFocus的文字 默认self.command
---@field public no_time_waste_check? boolean
local Request = class("Request")
-- TODO: 懒得思考了
@ -310,11 +311,13 @@ function Request:_finish()
end
if self.result[p.id] == nil then
self.result[p.id] = self.default_reply[p.id] or ""
if not self.no_time_waste_check then
p._timewaste_count = p._timewaste_count + 1
if p._timewaste_count >= 3 and p.serverplayer:getState() == fk.Player_Online then
p._timewaste_count = 0
p.serverplayer:emitKick()
end
end
else
p._timewaste_count = 0
end

View File

@ -665,6 +665,7 @@ function Room:animDelay(sec)
local req = Request:new(self.alive_players, "EmptyRequest")
req.focus_text = ''
req.timeout = sec
req.no_time_waste_check = true
req:ask()
end