hedgewars/uWorld.pas
changeset 2958 e6f7620da87e
parent 2948 3f21a9dc93d0
child 2959 258218a50df8
equal deleted inserted replaced
2957:8f3f2a220835 2958:e6f7620da87e
   118    end;
   118    end;
   119 
   119 
   120 // if special game flags/settings are changed, add them to the game mode notice window and then show it
   120 // if special game flags/settings are changed, add them to the game mode notice window and then show it
   121 g:= ''; // no text/things to note yet
   121 g:= ''; // no text/things to note yet
   122 
   122 
       
   123 // check different game flags (goals/game modes first for now)
       
   124 g:= AddGoal(g, gfKing, gidKing); // king?
       
   125 g:= AddGoal(g, gfTreasureHunt, gidTreasureHunt, cTreasureHuntGoalScore); // treasure hunt?
       
   126 
       
   127 // other important flags
       
   128 g:= AddGoal(g, gfForts, gidForts); // forts?
       
   129 g:= AddGoal(g, gfLowGravity, gidLowGravity); // low gravity?
       
   130 g:= AddGoal(g, gfInvulnerable, gidInvulnerable); // invulnerability?
       
   131 g:= AddGoal(g, gfVampiric, gidVampiric); // vampirism?
       
   132 g:= AddGoal(g, gfKarma, gidKarma); // karma?
       
   133 g:= AddGoal(g, gfPlaceHog, gidPlaceHog); // placement?
       
   134 g:= AddGoal(g, gfArtillery, gidArtillery); // artillery?
       
   135 g:= AddGoal(g, gfSolidLand, gidSolidLand); // solid land?
       
   136 g:= AddGoal(g, gfSharedAmmo, gidSharedAmmo); // shared ammo?
       
   137 
   123 // modified damage modificator?
   138 // modified damage modificator?
   124 if cDamagePercent <> 100 then
   139 if cDamagePercent <> 100 then
   125     g:= AddGoal(g, gfAny, gidDamageModifier, cDamagePercent);
   140     g:= AddGoal(g, gfAny, gidDamageModifier, cDamagePercent);
   126 
   141 
   127 // modified mine timers?
   142 // modified mine timers?
   132     else if cMinesTime < 0 then
   147     else if cMinesTime < 0 then
   133         g:= AddGoal(g, gfMines, gidRandomMineTimer)
   148         g:= AddGoal(g, gfMines, gidRandomMineTimer)
   134     else
   149     else
   135         g:= AddGoal(g, gfMines, gidMineTimer, cMinesTime div 1000);
   150         g:= AddGoal(g, gfMines, gidMineTimer, cMinesTime div 1000);
   136     end;
   151     end;
   137 
       
   138 // check different game flags
       
   139 g:= AddGoal(g, gfForts, gidForts); // forts?
       
   140 g:= AddGoal(g, gfLowGravity, gidLowGravity); // low gravity?
       
   141 g:= AddGoal(g, gfInvulnerable, gidInvulnerable); // invulnerability?
       
   142 g:= AddGoal(g, gfVampiric, gidVampiric); // vampirism?
       
   143 g:= AddGoal(g, gfKarma, gidKarma); // karma?
       
   144 g:= AddGoal(g, gfKing, gidKing); // king?
       
   145 g:= AddGoal(g, gfPlaceHog, gidPlaceHog); // placement?
       
   146 g:= AddGoal(g, gfArtillery, gidArtillery); // artillery?
       
   147 g:= AddGoal(g, gfSolidLand, gidSolidLand); // solid land?
       
   148 g:= AddGoal(g, gfSharedAmmo, gidSharedAmmo); // shared ammo?
       
   149 
   152 
   150 // if the string has been set, show it for (default timeframe) seconds
   153 // if the string has been set, show it for (default timeframe) seconds
   151 if g <> '' then ShowMission(trgoal[gidCaption], trgoal[gidSubCaption], g, 1, 0);
   154 if g <> '' then ShowMission(trgoal[gidCaption], trgoal[gidSubCaption], g, 1, 0);
   152 
   155 
   153 cWaveWidth:= SpritesData[sprWater].Width;
   156 cWaveWidth:= SpritesData[sprWater].Width;