share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua
changeset 12422 959d1f4dff25
parent 12421 a0c655e38cc8
child 12628 96e30c42c318
equal deleted inserted replaced
12421:a0c655e38cc8 12422:959d1f4dff25
  1009   local gearType = GetGearType(gear)
  1009   local gearType = GetGearType(gear)
  1010   
  1010   
  1011   if gearType == gtHedgehog then
  1011   if gearType == gtHedgehog then
  1012     trackGear(gear)
  1012     trackGear(gear)
  1013   elseif gearType == gtRCPlane then
  1013   elseif gearType == gtRCPlane then
  1014     -- Limit bombs to 1 until 0.9.23 is released
  1014     SetHealth(gear, 2)
  1015     SetHealth(gear, 1)
       
  1016   elseif gearType == gtAirBomb then
  1015   elseif gearType == gtAirBomb then
  1017     -- gearUid, Angle, Power, WDTimer, Radius, Density, Karma, DirAngle, AdvBounce, ImpactSound, ImpactSounds, Tint, Damage, Boom
  1016     -- gearUid, Angle, Power, WDTimer, Radius, Density, Karma, DirAngle, AdvBounce, ImpactSound, ImpactSounds, Tint, Damage, Boom
  1018     SetGearValues(gear, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 15)
  1017     SetGearValues(gear, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 20)
  1019   elseif gearType == gtCake then
  1018   elseif gearType == gtCake then
  1020     -- gearUid, Angle, Power, WDTimer, Radius, Density, Karma, DirAngle, AdvBounce, ImpactSound, ImpactSounds, Tint, Damage, Boom
  1019     -- gearUid, Angle, Power, WDTimer, Radius, Density, Karma, DirAngle, AdvBounce, ImpactSound, ImpactSounds, Tint, Damage, Boom
  1021     SetGearValues(gear, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 50)
  1020     SetGearValues(gear, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 50)
  1022   elseif gearType == gtDEagleShot then
  1021   elseif gearType == gtDEagleShot then
  1023     -- gearUid, Angle, Power, WDTimer, Radius, Density, Karma, DirAngle, AdvBounce, ImpactSound, ImpactSounds, Tint, Damage, Boom
  1022     -- gearUid, Angle, Power, WDTimer, Radius, Density, Karma, DirAngle, AdvBounce, ImpactSound, ImpactSounds, Tint, Damage, Boom
  1687 
  1686 
  1688   if mode == 'highland' then
  1687   if mode == 'highland' then
  1689     txt = txt .. string.format(loc("Highland: Hogs get %d random weapons from their pool"), highPickupSDCount) .. "|"
  1688     txt = txt .. string.format(loc("Highland: Hogs get %d random weapons from their pool"), highPickupSDCount) .. "|"
  1690   end
  1689   end
  1691 
  1690 
  1692   SetAmmoDescriptionAppendix(amRCPlane, loc("The RC plane only carries 1 weak bomb."))
  1691   SetAmmoDescriptionAppendix(amRCPlane, loc("The RC plane only carries 2 weak bombs."))
  1693   SetAmmoDescriptionAppendix(amAirAttack, loc("The air bombs are weaker than usual."))
  1692   SetAmmoDescriptionAppendix(amAirAttack, loc("The air bombs are weaker than usual."))
  1694   SetAmmoDescriptionAppendix(amCake, loc("The explosion is weaker than usual."))
  1693   SetAmmoDescriptionAppendix(amCake, loc("The explosion is weaker than usual."))
  1695   SetAmmoDescriptionAppendix(amDEagle, loc("Base damage has been modified to 12 per shot."))
  1694   SetAmmoDescriptionAppendix(amDEagle, loc("Base damage has been modified to 12 per shot."))
  1696 
  1695 
  1697   ShowMission(loc("Battalion"), loc("Less tools, more fun"), txt, icon, 0)
  1696   ShowMission(loc("Battalion"), loc("Less tools, more fun"), txt, icon, 0)