forked from Mirrors/openclonk
KotH goal now announces new king on the death of the old (log)
parent
d5e003e159
commit
f24fceb1f2
|
@ -152,6 +152,15 @@ func OnClonkDeath(object clonk, int killer)
|
|||
return;
|
||||
}
|
||||
|
||||
func GetAdditionalPlayerRelaunchString(object clonk, int plr, int killed_by)
|
||||
{
|
||||
if(!Hostile(killed_by, plr)) return;
|
||||
if(!location->GetKing()) return;
|
||||
if(location->GetKing()->GetOwner() != killed_by) return;
|
||||
var msg=Format("$IsNowKing$", GetTaggedPlayerName(killed_by));
|
||||
return msg;
|
||||
}
|
||||
|
||||
private func CheckForWinner()
|
||||
{
|
||||
for (var i = 0; i < GetPlayerCount(); i++)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
Name=King of the Hill
|
||||
|
||||
MsgGoalDesc=Das Ziel sind %d Punkte.
|
||||
MsgGoalDesc=Das Ziel sind %d Punkte.
|
||||
IsNowKing=%s ist der neue König!
|
|
@ -1,3 +1,4 @@
|
|||
Name=King of the Hill
|
||||
|
||||
MsgGoalDesc=The goal is %d points.
|
||||
MsgGoalDesc=The goal is %d points.
|
||||
IsNowKing=%s is the new king!
|
Loading…
Reference in New Issue