share/hedgewars/Data/Missions/Training/portal.lua
changeset 11675 be57b0e3e289
parent 11674 66ddc8c5ecd7
child 11676 51c4ea6d7f91
equal deleted inserted replaced
11674:66ddc8c5ecd7 11675:be57b0e3e289
   175 	end
   175 	end
   176 	
   176 	
   177 end
   177 end
   178 	
   178 	
   179 function onGearDelete(gear)
   179 function onGearDelete(gear)
   180 
   180 	-- Check gear collection
   181 	if gear == portalgun then
   181 	if CurrentHedgehog == player and (band(GetGearMessage(gear), gmDestroy) ~= 0) then
   182 		HogSay(player, loc("Great! Let’s kill all these enemies, using portals."), SAY_THINK)
   182 		if gear == portalgun then
   183 	end
   183 			HogSay(player, loc("Great! Let’s kill all these enemies, using portals."), SAY_THINK)
   184 
   184 		end
   185 	if gear == girder then 
   185 
   186 		HogSay(player, loc("This will be useful when I need a new platform or if I want to rise."), SAY_THINK)
   186 		if gear == girder then 
   187 	end
   187 			HogSay(player, loc("This will be useful when I need a new platform or if I want to rise."), SAY_THINK)
   188 	
   188 		end
   189 	if gear == parachute then
   189 	
   190 		HogSay(player, loc("You can’t open a portal on the blue surface."), SAY_THINK)
   190 		if gear == parachute then
   191 	end
   191 			HogSay(player, loc("You can’t open a portal on the blue surface."), SAY_THINK)
   192 
   192 		end
   193 	if gear == extratime then
   193 
   194 		HogSay(player, loc("What?! For all this struggle I just win some ... time? Oh dear!"), SAY_SHOUT)
   194 		if gear == extratime then
   195 	end
   195 			HogSay(player, loc("What?! For all this struggle I just win some ... time? Oh dear!"), SAY_SHOUT)
   196 	
   196 		end
       
   197 	end
       
   198 
   197 	if gear == player then
   199 	if gear == player then
   198 		player = nil
   200 		player = nil
   199 	end
   201 	end
   200 end
   202 end
   201 
   203