hedgewars/uWorld.pas
changeset 15070 57f7d89067ef
parent 15052 1a754860b0e5
child 15149 a8b1e25040f3
equal deleted inserted replaced
15069:e16f906224fd 15070:57f7d89067ef
   187 // add custom goals from lua script if there are any
   187 // add custom goals from lua script if there are any
   188 if LuaGoals <> ansistring('') then
   188 if LuaGoals <> ansistring('') then
   189     g:= LuaGoals + '|';
   189     g:= LuaGoals + '|';
   190 
   190 
   191 // check different game flags
   191 // check different game flags
   192 g:= AddGoal(g, gfPlaceHog, gidPlaceHog); // placement?
       
   193 g:= AddGoal(g, gfKing, gidKing); // king?
   192 g:= AddGoal(g, gfKing, gidKing); // king?
   194 if ((GameFlags and gfKing) <> 0) and ((GameFlags and gfPlaceHog) = 0) then
   193 if ((GameFlags and gfKing) <> 0) and ((GameFlags and gfPlaceHog) = 0) then
   195     g:= AddGoal(g, gfAny, gidPlaceKing);
   194     g:= AddGoal(g, gfAny, gidPlaceKing);
       
   195 g:= AddGoal(g, gfPlaceHog, gidPlaceHog); // placement?
   196 g:= AddGoal(g, gfTagTeam, gidTagTeam); // tag team mode?
   196 g:= AddGoal(g, gfTagTeam, gidTagTeam); // tag team mode?
   197 g:= AddGoal(g, gfSharedAmmo, gidSharedAmmo); // shared ammo?
   197 g:= AddGoal(g, gfSharedAmmo, gidSharedAmmo); // shared ammo?
   198 g:= AddGoal(g, gfPerHogAmmo, gidPerHogAmmo);
   198 g:= AddGoal(g, gfPerHogAmmo, gidPerHogAmmo);
   199 g:= AddGoal(g, gfMoreWind, gidMoreWind);
   199 g:= AddGoal(g, gfMoreWind, gidMoreWind);
   200 g:= AddGoal(g, gfLowGravity, gidLowGravity); // low gravity?
   200 g:= AddGoal(g, gfLowGravity, gidLowGravity); // low gravity?
   228         g:= AddGoal(g, gfAny, gidMineTimer, cMinesTime div 1000);
   228         g:= AddGoal(g, gfAny, gidMineTimer, cMinesTime div 1000);
   229     end;
   229     end;
   230 
   230 
   231 // if the string has been set, show it for (default timeframe) seconds
   231 // if the string has been set, show it for (default timeframe) seconds
   232 if length(g) > 0 then
   232 if length(g) > 0 then
   233     ShowMission(trgoal[gidCaption], trgoal[gidSubCaption], g, 1, 0);
   233     // choose icon
       
   234     if ((GameFlags and gfKing) <> 0) then
       
   235         // crown icon for King Mode
       
   236         ShowMission(trgoal[gidCaption], trgoal[gidSubCaption], g, 0, 0)
       
   237     else
       
   238         // target icon for anything else
       
   239         ShowMission(trgoal[gidCaption], trgoal[gidSubCaption], g, 1, 0);
   234 
   240 
   235 //cWaveWidth:= SpritesData[sprWater].Width;
   241 //cWaveWidth:= SpritesData[sprWater].Width;
   236 //cWaveHeight:= SpritesData[sprWater].Height;
   242 //cWaveHeight:= SpritesData[sprWater].Height;
   237 cWaveHeight:= 32;
   243 cWaveHeight:= 32;
   238 
   244