equal
deleted
inserted
replaced
110 TargetPos[7] = { |
110 TargetPos[7] = { |
111 Targets = {{ X = 1884, Y = 704 }}, |
111 Targets = {{ X = 1884, Y = 704 }}, |
112 MessageTime = 6500, |
112 MessageTime = 6500, |
113 Message = loc("Now dive just one more time and collect the next crate.") .. "|" .. |
113 Message = loc("Now dive just one more time and collect the next crate.") .. "|" .. |
114 loc("Tip: Don't remain for too long in the water, or you won't make it."), |
114 loc("Tip: Don't remain for too long in the water, or you won't make it."), |
115 Ammo = { [amJetpack] = 2 }, } |
115 Ammo = { [amJetpack] = 2 }, |
|
116 Respawn = { X = 1968, Y = -1, FaceLeft = true }, } |
116 |
117 |
117 -- The Grenade Drop Target |
118 -- The Grenade Drop Target |
118 local BoomTarget = 8 |
119 local BoomTarget = 8 |
119 TargetPos[8] = { |
120 TargetPos[8] = { |
120 Modifier = true, Func = function() |
121 Modifier = true, Func = function() |
240 Barrels[1] = AddGear(1563, 532, gtExplosives, 0, 0, 0, 0) |
241 Barrels[1] = AddGear(1563, 532, gtExplosives, 0, 0, 0, 0) |
241 end |
242 end |
242 if Barrels[2] == nil then |
243 if Barrels[2] == nil then |
243 Barrels[2] = AddGear(1648, 463, gtExplosives, 0, 0, 0, 0) |
244 Barrels[2] = AddGear(1648, 463, gtExplosives, 0, 0, 0, 0) |
244 end |
245 end |
|
246 if Barrels[3] == nil then |
|
247 Barrels[3] = AddGear(1513, 575, gtExplosives, 0, 0, 0, 0) |
|
248 end |
245 |
249 |
246 for i=1,#Barrels do |
250 for i=1,#Barrels do |
247 SetHealth(Barrels[i], 1) |
251 SetHealth(Barrels[i], 1) |
248 end |
252 end |
249 end |
253 end |
517 end |
521 end |
518 if Gear == Barrels[2] then |
522 if Gear == Barrels[2] then |
519 Barrels[2] = nil |
523 Barrels[2] = nil |
520 AddCaption(loc("Kaboom!"), capcolDefault, capgrpMessage) |
524 AddCaption(loc("Kaboom!"), capcolDefault, capgrpMessage) |
521 end |
525 end |
|
526 if Gear == Barrels[3] then |
|
527 Barrels[3] = nil |
|
528 end |
522 end |
529 end |
523 |
530 |
524 |
531 |
525 |
532 |
526 function onNewTurn() |
533 function onNewTurn() |