parent
59c638fa47
commit
4d94ee8a93
|
@ -442,10 +442,12 @@ Item {
|
||||||
// id: saveme
|
// id: saveme
|
||||||
visible: (root.dead && !root.rest) || root.dying || root.surrendered
|
visible: (root.dead && !root.rest) || root.dying || root.surrendered
|
||||||
source: {
|
source: {
|
||||||
if (root.dead) {
|
if (root.surrendered) {
|
||||||
|
return SkinBank.DEATH_DIR + "surrender";
|
||||||
|
} else if (root.dead) {
|
||||||
return SkinBank.getRoleDeathPic(root.role);
|
return SkinBank.getRoleDeathPic(root.role);
|
||||||
}
|
}
|
||||||
return SkinBank.DEATH_DIR + (root.surrendered ? "surrender" : "saveme")
|
return SkinBank.DEATH_DIR + "saveme";
|
||||||
}
|
}
|
||||||
anchors.centerIn: photoMask
|
anchors.centerIn: photoMask
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ end
|
||||||
---@param victim ServerPlayer @ 死者
|
---@param victim ServerPlayer @ 死者
|
||||||
---@return string @ 胜者阵营
|
---@return string @ 胜者阵营
|
||||||
function GameMode:getWinner(victim)
|
function GameMode:getWinner(victim)
|
||||||
if victim.rest > 0 then
|
if not victim.surrendered and victim.rest > 0 then
|
||||||
return ""
|
return ""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue