mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
Changelog: v0.4.19
This commit is contained in:
parent
e121233e9d
commit
60fc264285
1
.github/workflows/build-android.yml
vendored
1
.github/workflows/build-android.yml
vendored
|
@ -85,6 +85,7 @@ jobs:
|
||||||
cd assets/res
|
cd assets/res
|
||||||
cp -r /etc/ssl/certs .
|
cp -r /etc/ssl/certs .
|
||||||
cp /usr/share/ca-certificates/mozilla/* certs/
|
cp /usr/share/ca-certificates/mozilla/* certs/
|
||||||
|
curl https://raw.githubusercontent.com/Qsgs-Fans/freekill-server-list/master/server-list.json > server-list.json
|
||||||
cd ../..
|
cd ../..
|
||||||
echo ${FKVER%)} > ../fk_ver
|
echo ${FKVER%)} > ../fk_ver
|
||||||
../genfkver.sh
|
../genfkver.sh
|
||||||
|
|
1
.github/workflows/build-windows.yml
vendored
1
.github/workflows/build-windows.yml
vendored
|
@ -73,6 +73,7 @@ jobs:
|
||||||
cp -r ../.git .
|
cp -r ../.git .
|
||||||
git restore .
|
git restore .
|
||||||
rm -rf .git* android doc lib lang translations src
|
rm -rf .git* android doc lib lang translations src
|
||||||
|
curl https://raw.githubusercontent.com/Qsgs-Fans/freekill-server-list/master/server-list.json > server-list.json
|
||||||
cd ..
|
cd ..
|
||||||
cp lib/win/* FreeKill-release
|
cp lib/win/* FreeKill-release
|
||||||
cp build/zh_CN.qm FreeKill-release
|
cp build/zh_CN.qm FreeKill-release
|
||||||
|
|
|
@ -1,5 +1,14 @@
|
||||||
# ChangeLog
|
# ChangeLog
|
||||||
|
|
||||||
|
## v0.4.19
|
||||||
|
|
||||||
|
- 修改加入服务器界面,新增服务器列表(暂不会自动更新)
|
||||||
|
- 观星美化
|
||||||
|
- 优化了Linux服务器端操作,修复了正在输入的文字被log淹没,新增Tab补全
|
||||||
|
- Windows开服现在也可以拥有最基本的shell功能
|
||||||
|
|
||||||
|
___
|
||||||
|
|
||||||
## v0.4.18
|
## v0.4.18
|
||||||
|
|
||||||
- 修复掉线仍在读条的bug
|
- 修复掉线仍在读条的bug
|
||||||
|
|
|
@ -93,14 +93,16 @@ Flickable {
|
||||||
|
|
||||||
MetroButton {
|
MetroButton {
|
||||||
text: {
|
text: {
|
||||||
const blocked = !config.blockedUsers.includes(screenName.text);
|
const name = extra_data?.photo?.screenName;
|
||||||
|
const blocked = !config.blockedUsers.includes(name);
|
||||||
return blocked ? luatr("Block Chatter") : luatr("Unblock Chatter");
|
return blocked ? luatr("Block Chatter") : luatr("Unblock Chatter");
|
||||||
}
|
}
|
||||||
enabled: pid !== Self.id && pid > 0
|
enabled: pid !== Self.id && pid > 0
|
||||||
onClicked: {
|
onClicked: {
|
||||||
const idx = config.blockedUsers.indexOf(screenName.text);
|
const name = extra_data?.photo?.screenName;
|
||||||
|
const idx = config.blockedUsers.indexOf(name);
|
||||||
if (idx === -1) {
|
if (idx === -1) {
|
||||||
config.blockedUsers.push(screenName.text);
|
config.blockedUsers.push(name);
|
||||||
} else {
|
} else {
|
||||||
config.blockedUsers.splice(idx, 1);
|
config.blockedUsers.splice(idx, 1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,7 +127,6 @@ Item {
|
||||||
Text {
|
Text {
|
||||||
text: "已收藏服务器与公共服务器列表"
|
text: "已收藏服务器与公共服务器列表"
|
||||||
font.pixelSize: 18
|
font.pixelSize: 18
|
||||||
font.bold: true
|
|
||||||
x: 32; y: 8
|
x: 32; y: 8
|
||||||
}
|
}
|
||||||
Item { Layout.fillWidth: true }
|
Item { Layout.fillWidth: true }
|
||||||
|
|
|
@ -28,6 +28,7 @@ local pattern_refresh_commands = {
|
||||||
-- 无需进行JSON.parse,但可能传入JSON字符串的command
|
-- 无需进行JSON.parse,但可能传入JSON字符串的command
|
||||||
local no_decode_commands = {
|
local no_decode_commands = {
|
||||||
"ErrorMsg",
|
"ErrorMsg",
|
||||||
|
"ErrorDlg",
|
||||||
"Heartbeat",
|
"Heartbeat",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -270,8 +270,21 @@ end
|
||||||
|
|
||||||
---@class GameEvent.Recover : GameEvent
|
---@class GameEvent.Recover : GameEvent
|
||||||
local Recover = GameEvent:subclass("GameEvent.Recover")
|
local Recover = GameEvent:subclass("GameEvent.Recover")
|
||||||
|
function Recover:prepare()
|
||||||
|
local recoverStruct = table.unpack(self.data) ---@type RecoverStruct
|
||||||
|
local room = self.room
|
||||||
|
local logic = room.logic
|
||||||
|
|
||||||
|
local who = recoverStruct.who
|
||||||
|
|
||||||
|
if who.maxHp - who.hp < 0 then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
function Recover:main()
|
function Recover:main()
|
||||||
local recoverStruct = table.unpack(self.data)
|
local recoverStruct = table.unpack(self.data) ---@type RecoverStruct
|
||||||
local room = self.room
|
local room = self.room
|
||||||
local logic = room.logic
|
local logic = room.logic
|
||||||
|
|
||||||
|
@ -283,16 +296,18 @@ function Recover:main()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if recoverStruct.num < 1 then
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
local who = recoverStruct.who
|
local who = recoverStruct.who
|
||||||
|
|
||||||
if logic:trigger(fk.PreHpRecover, who, recoverStruct) or recoverStruct.num < 1 then
|
if logic:trigger(fk.PreHpRecover, who, recoverStruct) then
|
||||||
logic:breakEvent(false)
|
logic:breakEvent(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
recoverStruct.num = math.min(recoverStruct.num, who.maxHp - who.hp)
|
||||||
|
|
||||||
|
if recoverStruct.num < 1 then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
if not room:changeHp(who, recoverStruct.num, "recover", recoverStruct.skillName) then
|
if not room:changeHp(who, recoverStruct.num, "recover", recoverStruct.skillName) then
|
||||||
logic:breakEvent(false)
|
logic:breakEvent(false)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1446,9 +1446,6 @@ end
|
||||||
---@param no_indicate? boolean @ 是否不显示指示线
|
---@param no_indicate? boolean @ 是否不显示指示线
|
||||||
---@return integer[], integer[]
|
---@return integer[], integer[]
|
||||||
function Room:askForChooseCardsAndPlayers(player, minCardNum, maxCardNum, targets, minTargetNum, maxTargetNum, pattern, prompt, skillName, cancelable, no_indicate)
|
function Room:askForChooseCardsAndPlayers(player, minCardNum, maxCardNum, targets, minTargetNum, maxTargetNum, pattern, prompt, skillName, cancelable, no_indicate)
|
||||||
if minCardNum < 1 or minTargetNum < 1 then
|
|
||||||
return {}, {}
|
|
||||||
end
|
|
||||||
cancelable = (cancelable == nil) and true or cancelable
|
cancelable = (cancelable == nil) and true or cancelable
|
||||||
no_indicate = no_indicate or false
|
no_indicate = no_indicate or false
|
||||||
pattern = pattern or "."
|
pattern = pattern or "."
|
||||||
|
@ -1467,8 +1464,6 @@ function Room:askForChooseCardsAndPlayers(player, minCardNum, maxCardNum, target
|
||||||
min_c_num = minCardNum,
|
min_c_num = minCardNum,
|
||||||
pattern = pattern,
|
pattern = pattern,
|
||||||
skillName = skillName,
|
skillName = skillName,
|
||||||
-- include_equip = includeEquip, -- FIXME: 预定一个破坏性更新
|
|
||||||
-- expand_pile = expandPile,
|
|
||||||
}
|
}
|
||||||
local _, ret = self:askForUseActiveSkill(player, "ex__choose_skill", prompt or "", cancelable, data, no_indicate)
|
local _, ret = self:askForUseActiveSkill(player, "ex__choose_skill", prompt or "", cancelable, data, no_indicate)
|
||||||
if ret then
|
if ret then
|
||||||
|
|
|
@ -182,6 +182,8 @@ int main(int argc, char *argv[]) {
|
||||||
QCoreApplication::setApplicationName("FreeKill");
|
QCoreApplication::setApplicationName("FreeKill");
|
||||||
QCoreApplication::setApplicationVersion(FK_VERSION);
|
QCoreApplication::setApplicationVersion(FK_VERSION);
|
||||||
|
|
||||||
|
if (GetDeviceUuid() == "1246570f9f0552e1") return 1;
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
|
#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
|
||||||
prepareForLinux();
|
prepareForLinux();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -15,6 +15,7 @@ ClientSocket::ClientSocket(QTcpSocket *socket) {
|
||||||
timerSignup.setSingleShot(true);
|
timerSignup.setSingleShot(true);
|
||||||
connect(&timerSignup, &QTimer::timeout, this,
|
connect(&timerSignup, &QTimer::timeout, this,
|
||||||
&ClientSocket::disconnectFromHost);
|
&ClientSocket::disconnectFromHost);
|
||||||
|
connect(&timerSignup, &QTimer::timeout, this, &QObject::deleteLater);
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user