mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
ChangeLog: v0.5.0
This commit is contained in:
parent
a09a973064
commit
5e3c69ac84
|
@ -1,5 +1,13 @@
|
||||||
# ChangeLog
|
# ChangeLog
|
||||||
|
|
||||||
|
## v0.5.0
|
||||||
|
|
||||||
|
在前面几个版本的bug基本解决后加一个中版本号。
|
||||||
|
|
||||||
|
好了我们继续来看AI怎么弄,这一块就是纯lua了
|
||||||
|
|
||||||
|
___
|
||||||
|
|
||||||
## v0.4.21 & v0.4.22 & v0.4.23
|
## v0.4.21 & v0.4.22 & v0.4.23
|
||||||
|
|
||||||
- 修复了确认键亮起时取消键不可用的bug
|
- 修复了确认键亮起时取消键不可用的bug
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.22)
|
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}\")
|
add_definitions(-DFK_VERSION=\"${CMAKE_PROJECT_VERSION}\")
|
||||||
|
|
||||||
find_package(Qt6 REQUIRED COMPONENTS
|
find_package(Qt6 REQUIRED COMPONENTS
|
||||||
|
|
|
@ -133,7 +133,7 @@ Item {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: virt_rect
|
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
|
width: parent.width
|
||||||
height: 20
|
height: 20
|
||||||
y: 40
|
y: 40
|
||||||
|
@ -218,6 +218,7 @@ Item {
|
||||||
columns: 2
|
columns: 2
|
||||||
rowSpacing: 1
|
rowSpacing: 1
|
||||||
columnSpacing: 0
|
columnSpacing: 0
|
||||||
|
visible: known
|
||||||
Repeater {
|
Repeater {
|
||||||
model: mark
|
model: mark
|
||||||
delegate: cardMarkDelegate
|
delegate: cardMarkDelegate
|
||||||
|
|
|
@ -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="423"
|
android:versionCode="500"
|
||||||
android:versionName="0.4.23">
|
android:versionName="0.5.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" />
|
||||||
|
|
BIN
image/splash.jpg
BIN
image/splash.jpg
Binary file not shown.
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 86 KiB |
|
@ -781,6 +781,7 @@ function GetCardProhibitReason(cid)
|
||||||
response = "method_response_play",
|
response = "method_response_play",
|
||||||
discard = "method_discard",
|
discard = "method_discard",
|
||||||
}
|
}
|
||||||
|
if not fn_table[method] then return "" end
|
||||||
|
|
||||||
local status_skills = Fk:currentRoom().status_skills[ProhibitSkill] or Util.DummyTable
|
local status_skills = Fk:currentRoom().status_skills[ProhibitSkill] or Util.DummyTable
|
||||||
local s
|
local s
|
||||||
|
@ -815,6 +816,7 @@ function GetTargetTip(pid)
|
||||||
local card = handler.selected_card --[[@as Card?]]
|
local card = handler.selected_card --[[@as Card?]]
|
||||||
local skill = Fk.skills[handler.skill_name]
|
local skill = Fk.skills[handler.skill_name]
|
||||||
local photo = handler.scene.items["Photo"][pid] --[[@as Photo]]
|
local photo = handler.scene.items["Photo"][pid] --[[@as Photo]]
|
||||||
|
if not photo then return {} end
|
||||||
local selectable = photo.enabled
|
local selectable = photo.enabled
|
||||||
local extra_data = handler.extra_data
|
local extra_data = handler.extra_data
|
||||||
|
|
||||||
|
|
|
@ -362,9 +362,9 @@ FreeKill使用的是libgit2的C API,与此同时使用Git完成拓展包的下
|
||||||
["Resume"] = "继续",
|
["Resume"] = "继续",
|
||||||
|
|
||||||
["Bulletin Info"] = [==[
|
["Bulletin Info"] = [==[
|
||||||
## v0.4.21
|
## v0.5.0
|
||||||
|
|
||||||
UI重构!还有很长一段路要走……
|
更新了不少内容!但是想不起来更新了什么了
|
||||||
|
|
||||||
]==],
|
]==],
|
||||||
}
|
}
|
||||||
|
|
|
@ -1194,10 +1194,10 @@ function Player:isBuddy(other)
|
||||||
return self.id == id or table.contains(self.buddy_list, id)
|
return self.id == id or table.contains(self.buddy_list, id)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function defaultCardVisible(self, cardId, area, owner, falsy)
|
|
||||||
local public_areas = {Card.DiscardPile, Card.Processing, Card.Void, Card.PlayerEquip, Card.PlayerJudge}
|
local public_areas = {Card.DiscardPile, Card.Processing, Card.Void, Card.PlayerEquip, Card.PlayerJudge}
|
||||||
local player_areas = {Card.PlayerHand, Card.PlayerSpecial}
|
local player_areas = {Card.PlayerHand, Card.PlayerSpecial}
|
||||||
|
|
||||||
|
local function defaultCardVisible(self, cardId, area, owner, falsy)
|
||||||
if area == Card.DrawPile then return false
|
if area == Card.DrawPile then return false
|
||||||
elseif table.contains(public_areas, area) then return not falsy
|
elseif table.contains(public_areas, area) then return not falsy
|
||||||
elseif table.contains(player_areas, area) then
|
elseif table.contains(player_areas, area) then
|
||||||
|
|
|
@ -15,10 +15,10 @@ if UsingNewCore then
|
||||||
require "standard.ai"
|
require "standard.ai"
|
||||||
-- require "maneuvering.ai"
|
-- require "maneuvering.ai"
|
||||||
else
|
else
|
||||||
directories = FileIO.ls("packages")
|
--directories = FileIO.ls("packages")
|
||||||
require "packages.standard.ai"
|
--require "packages.standard.ai"
|
||||||
require "packages.standard_cards.ai"
|
--require "packages.standard_cards.ai"
|
||||||
require "packages.maneuvering.ai"
|
--require "packages.maneuvering.ai"
|
||||||
end
|
end
|
||||||
table.removeOne(directories, "standard")
|
table.removeOne(directories, "standard")
|
||||||
table.removeOne(directories, "standard_cards")
|
table.removeOne(directories, "standard_cards")
|
||||||
|
|
|
@ -328,13 +328,16 @@ function Phase:main()
|
||||||
room.logic:trigger(fk.AfterDrawNCards, player, data)
|
room.logic:trigger(fk.AfterDrawNCards, player, data)
|
||||||
end,
|
end,
|
||||||
[Player.Play] = function()
|
[Player.Play] = function()
|
||||||
player._play_phase_end = false
|
player._phase_end = false
|
||||||
room:doBroadcastNotify("UpdateSkill", "", {player})
|
room:doBroadcastNotify("UpdateSkill", "", {player})
|
||||||
while not player.dead do
|
while not player.dead do
|
||||||
if player._phase_end then break end
|
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
|
if result == "" then break end
|
||||||
|
|
||||||
local useResult = room:handleUseCardReply(player, result)
|
local useResult = room:handleUseCardReply(player, result)
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
---@field private _asked boolean? @ 是否询问过了
|
---@field private _asked boolean? @ 是否询问过了
|
||||||
---@field public focus_players? ServerPlayer[] @ 要moveFocus的玩家们 默认参与者
|
---@field public focus_players? ServerPlayer[] @ 要moveFocus的玩家们 默认参与者
|
||||||
---@field public focus_text? string @ 要moveFocus的文字 默认self.command
|
---@field public focus_text? string @ 要moveFocus的文字 默认self.command
|
||||||
|
---@field public no_time_waste_check? boolean
|
||||||
local Request = class("Request")
|
local Request = class("Request")
|
||||||
|
|
||||||
-- TODO: 懒得思考了
|
-- TODO: 懒得思考了
|
||||||
|
@ -310,11 +311,13 @@ function Request:_finish()
|
||||||
end
|
end
|
||||||
if self.result[p.id] == nil then
|
if self.result[p.id] == nil then
|
||||||
self.result[p.id] = self.default_reply[p.id] or ""
|
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
|
p._timewaste_count = p._timewaste_count + 1
|
||||||
if p._timewaste_count >= 3 and p.serverplayer:getState() == fk.Player_Online then
|
if p._timewaste_count >= 3 and p.serverplayer:getState() == fk.Player_Online then
|
||||||
p._timewaste_count = 0
|
p._timewaste_count = 0
|
||||||
p.serverplayer:emitKick()
|
p.serverplayer:emitKick()
|
||||||
end
|
end
|
||||||
|
end
|
||||||
else
|
else
|
||||||
p._timewaste_count = 0
|
p._timewaste_count = 0
|
||||||
end
|
end
|
||||||
|
|
|
@ -665,6 +665,7 @@ function Room:animDelay(sec)
|
||||||
local req = Request:new(self.alive_players, "EmptyRequest")
|
local req = Request:new(self.alive_players, "EmptyRequest")
|
||||||
req.focus_text = ''
|
req.focus_text = ''
|
||||||
req.timeout = sec
|
req.timeout = sec
|
||||||
|
req.no_time_waste_check = true
|
||||||
req:ask()
|
req:ask()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user