equal
deleted
inserted
replaced
170 end |
170 end |
171 |
171 |
172 -- player has successfully captured the enemy flag |
172 -- player has successfully captured the enemy flag |
173 if (GetHogClan(CurrentHedgehog) == flagClan) and (thiefClan ~= nil) and (fIsMissing[flagClan] == false) then |
173 if (GetHogClan(CurrentHedgehog) == flagClan) and (thiefClan ~= nil) and (fIsMissing[flagClan] == false) then |
174 |
174 |
175 DeleteVisualGear(fGear[flagClan]) |
|
176 fGear[flagClan] = nil -- the flag has now disappeared |
|
177 |
|
178 fIsMissing[flagClan] = false |
|
179 fNeedsRespawn[flagClan] = true |
|
180 fIsMissing[thiefClan] = false |
175 fIsMissing[thiefClan] = false |
181 fNeedsRespawn[thiefClan] = true |
176 fNeedsRespawn[thiefClan] = true |
182 fCaptures[flagClan] = fCaptures[flagClan] +1 |
177 fCaptures[flagClan] = fCaptures[flagClan] +1 |
183 AddCaption(string.format(loc("%s has scored!"), GetHogName(CurrentHedgehog)), 0xFFFFFFFF, capgrpGameState) |
178 AddCaption(string.format(loc("%s has scored!"), GetHogName(CurrentHedgehog)), 0xFFFFFFFF, capgrpGameState) |
184 updateScores() |
179 updateScores() |