equal
deleted
inserted
replaced
349 |
349 |
350 -- end game if its at round limit |
350 -- end game if its at round limit |
351 if roundNumber == roundLimit then |
351 if roundNumber == roundLimit then |
352 for i = 0, (numhhs-1) do |
352 for i = 0, (numhhs-1) do |
353 if GetHogClan(hhs[i]) ~= bestClan then |
353 if GetHogClan(hhs[i]) ~= bestClan then |
354 SetEffect(hhs[i], heResurrectable, false) |
354 SetEffect(hhs[i], heResurrectable, 0) |
355 SetHealth(hhs[i],0) |
355 SetHealth(hhs[i],0) |
356 end |
356 end |
357 end |
357 end |
358 gameOver = true |
358 gameOver = true |
359 TurnTimeLeft = 1 |
359 TurnTimeLeft = 1 |
370 --[[turnN = turnN + 1 |
370 --[[turnN = turnN + 1 |
371 if gameBegun == false then |
371 if gameBegun == false then |
372 if turnN == 2 then |
372 if turnN == 2 then |
373 for i = 0, (numhhs-1) do |
373 for i = 0, (numhhs-1) do |
374 if hhs[i] ~= nil then |
374 if hhs[i] ~= nil then |
375 SetEffect(hhs[i], heResurrectable, false) |
375 SetEffect(hhs[i], heResurrectable, 0) |
376 SetHealth(hhs[i],0) |
376 SetHealth(hhs[i],0) |
377 end |
377 end |
378 end |
378 end |
379 gameOver = true |
379 gameOver = true |
380 TurnTimeLeft = 1 |
380 TurnTimeLeft = 1 |
672 function onGearAdd(gear) |
672 function onGearAdd(gear) |
673 |
673 |
674 if GetGearType(gear) == gtHedgehog then |
674 if GetGearType(gear) == gtHedgehog then |
675 hhs[numhhs] = gear |
675 hhs[numhhs] = gear |
676 numhhs = numhhs + 1 |
676 numhhs = numhhs + 1 |
677 SetEffect(gear, heResurrectable, true) |
677 SetEffect(gear, heResurrectable, 1) |
678 end |
678 end |
679 |
679 |
680 if GetGearType(gear) == gtAirAttack then |
680 if GetGearType(gear) == gtAirAttack then |
681 cGear = gear |
681 cGear = gear |
682 end |
682 end |