# HG changeset patch # User sheepluva # Date 1437077795 -7200 # Node ID 16c47a5573e4c6f13d159ceea32466324ada42f2 # Parent 93b3870a538d844242c3d85daba567cbc2ada700 change theme used by sniper training, for performance reasons diff -r 93b3870a538d -r 16c47a5573e4 share/hedgewars/Data/Missions/Training/Basic_Training_-_Sniper_Rifle.lua --- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Sniper_Rifle.lua Thu Jul 16 21:50:59 2015 +0200 +++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Sniper_Rifle.lua Thu Jul 16 22:16:35 2015 +0200 @@ -85,7 +85,7 @@ -- The map to be played Map = "Ropes" -- The theme to be used - Theme = "City" + Theme = "Golf" -- Create the player team AddTeam(loc("Sniperz"), 14483456, "Simple", "Island", "Default") @@ -102,7 +102,7 @@ SendHealthStatsOff() -- Spawn the first target. spawnTarget(860,1020) - + -- Show some nice mission goals. -- Parameters are: caption, sub caption, description, -- extra text, icon and time to show. @@ -178,12 +178,12 @@ -- This function is called before a gear is destroyed. -- We use it to count the number of targets destroyed. function onGearDelete(gear) - + if GetGearType(gear) == gtCase then game_lost = true return end - + if (GetGearType(gear) == gtTarget) then -- remember when the target was hit for adjusting the camera last_hit_time = TurnTimeLeft @@ -339,7 +339,7 @@ SendStat(siCustomAchievement, string.format(loc("You had %.2fs remaining on the clock (+%d points)."), (time_goal/1000), end_score_time)) else SendStat(siGameResult, loc("You lose!")) - + SendStat(siCustomAchievement, string.format(loc("You have destroyed %d of %d targets (+%d points)."), score, score_goal, end_score_targets)) SendStat(siCustomAchievement, string.format(loc("You have made %d shots."), shots)) end_score_overall = end_score_targets